Compare commits

...

64 Commits

Author SHA1 Message Date
  TDE Gitea 3cd8e6e868 Reset submodule main/applications/knights/cmake to latest HEAD 1 week ago
  TDE Gitea 11f6c7e741 Reset submodule main/applications/knights/admin to latest HEAD 1 week ago
  TDE Gitea 4dfbd9627d Reset submodule main/applications/knights/cmake to latest HEAD 1 week ago
  TDE Gitea 9d2aee7003 Reset submodule main/applications/knights/admin to latest HEAD 1 week ago
  TDE Gitea 8e96b54a48 Reset submodule main/applications/knights/cmake to latest HEAD 2 months ago
  TDE Gitea cdda448407 Reset submodule main/applications/knights/cmake to latest HEAD 3 months ago
  TDE Gitea 93edf7800b Reset submodule main/applications/knights/cmake to latest HEAD 3 months ago
  TDE Gitea b13e878556 Reset submodule main/applications/knights/admin to latest HEAD 3 months ago
  TDE Gitea 76f188563a Reset submodule main/applications/knights/cmake to latest HEAD 3 months ago
  TDE Gitea fca682b8f6 Reset submodule main/applications/knights/cmake to latest HEAD 3 months ago
  TDE Gitea 7c04c848c5 Reset submodule main/applications/knights/cmake to latest HEAD 3 months ago
  TDE Gitea e22e7c384d Reset submodule main/applications/knights/cmake to latest HEAD 3 months ago
  TDE Gitea a542a49d72 Reset submodule main/applications/knights/admin to latest HEAD 3 months ago
  TDE Gitea 296a6fe3a3 Reset submodule main/applications/knights/cmake to latest HEAD 4 months ago
  TDE Gitea 2bc2024fc1 Reset submodule main/applications/knights/cmake to latest HEAD 4 months ago
  TDE Gitea 6634870f4d Reset submodule main/applications/knights/cmake to latest HEAD 4 months ago
  TDE Gitea b0daaea7c7 Reset submodule main/applications/knights/cmake to latest HEAD 4 months ago
  TDE Gitea bd78f95f1d Reset submodule main/applications/knights/cmake to latest HEAD 4 months ago
  TDE Gitea ec1817ed71 Reset submodule main/applications/knights/cmake to latest HEAD 5 months ago
  TDE Gitea 28a270b380 Reset submodule main/applications/knights/cmake to latest HEAD 5 months ago
  TDE Gitea caf946b2af Reset submodule main/applications/knights/cmake to latest HEAD 6 months ago
  TDE Gitea 5a5d981cfb Reset submodule main/applications/knights/cmake to latest HEAD 9 months ago
  Slávek Banko 2eb19a3bcd
Switch all submodules to https. 9 months ago
  TDE Gitea 68ffb9dce5 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 5777ea320d Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 9d68c722d6 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 5ec1f0f6be Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 58e03e16c2 Reset submodule main/applications/knights/admin to latest HEAD 1 year ago
  TDE Gitea 7b021f12a3 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 4114124bc7 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 52577c0107 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea bb41506fb5 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea e6247dd382 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 2a4dfd2c25 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 0a79e21ebe Reset submodule main/applications/knights/admin to latest HEAD 1 year ago
  TDE Gitea a1f8ad45f2 Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea 9b13f1fd4d Reset submodule main/applications/knights/cmake to latest HEAD 1 year ago
  TDE Gitea dc491cc0a2 Reset submodule main/applications/knights/admin to latest HEAD 2 years ago
  Slávek Banko e168d72ba9 Reset submodule main/applications/knights/admin to latest HEAD 2 years ago
  Slávek Banko e716f960c0 Reset submodule main/applications/knights/admin to latest HEAD 2 years ago
  Slávek Banko 39c2475faf Reset submodule main/applications/knights/admin to latest HEAD 2 years ago
  Slávek Banko 49e91108bd Reset submodule main/applications/knights/cmake to latest HEAD 3 years ago
  Slávek Banko a01cd3b657 Reset submodule main/applications/knights/admin to latest HEAD 4 years ago
  Slávek Banko d3e6faba4c Reset submodule main/applications/knights/cmake to latest HEAD 4 years ago
  Slávek Banko 6a68231da6 Reset submodule main/applications/knights/admin to latest HEAD 4 years ago
  Slávek Banko 6ee7aac89f Reset submodule main/applications/knights/admin to latest HEAD 7 years ago
  Slávek Banko 31efc2b891 Reset submodule main/applications/knights/admin to latest HEAD 7 years ago
  Slávek Banko 1e8d0490b1 Reset submodule main/applications/knights/cmake to latest HEAD 7 years ago
  Slávek Banko 8f43aaab9f Reset submodule main/applications/knights/cmake to latest HEAD 7 years ago
  Slávek Banko 6d9787c4bc Reset submodule main/applications/knights/cmake to latest HEAD 7 years ago
  Slávek Banko 6c2b2860a3 Reset submodule main/applications/knights/cmake to latest HEAD 7 years ago
  Slávek Banko 25c2560b8d Reset submodule main/applications/knights/admin to latest HEAD 7 years ago
  Slávek Banko d63a834f7e Reset submodule main/applications/knights/cmake to latest HEAD 8 years ago
  Slávek Banko c820bfbbd2 Reset submodule main/applications/knights/cmake to latest HEAD 8 years ago
  Slávek Banko e4781bcaea Reset submodule main/applications/knights/admin to latest HEAD 8 years ago
  Slávek Banko 8ca4401ace Update final HTML install path so all modules are consistent. 8 years ago
  Darrell Anderson 532ba1685d Update HTML install path references. 8 years ago
  Darrell Anderson e420447b5f Add description to desktop file. 8 years ago
  Darrell Anderson 09e8a2f3b7 Fix inadvertent "TQ" changes. 8 years ago
  Darrell Anderson 1a954a9729 Fix errors about non-existent docbook files and delete Makefile.in.backup. 8 years ago
  Timothy Pearson c8e5fa0aea Rename obsolete tq methods to standard names 8 years ago
  Timothy Pearson 27ebdc4087 Remove additional unneeded tq method conversions 8 years ago
  Timothy Pearson 25ad6268bc Rename old tq methods that no longer need a unique name 8 years ago
  Slávek Banko 8ba0d12534 Add common directories 8 years ago
36 changed files with 153 additions and 737 deletions
Split View
  1. +6
    -0
      .gitmodules
  2. +1
    -1
      acinclude.m4
  3. +1
    -1
      aclocal.m4
  4. +1
    -0
      admin
  5. +1
    -0
      cmake
  6. +2
    -62
      doc/Makefile.am
  7. +0
    -533
      doc/Makefile.in.backup
  8. +6
    -6
      knights.spec
  9. +3
    -3
      knights/challenge_graph.cpp
  10. +2
    -2
      knights/challenge_graph_view.cpp
  11. +3
    -3
      knights/console.cpp
  12. +1
    -1
      knights/core.cpp
  13. +1
    -1
      knights/definitions.h
  14. +5
    -5
      knights/dlg_challenge.cpp
  15. +8
    -8
      knights/io_internet.cpp
  16. +40
    -40
      knights/knights.cpp
  17. +1
    -0
      knights/knights.desktop
  18. +1
    -1
      knights/knights.h
  19. +2
    -2
      knights/knightstextview.cpp
  20. +2
    -2
      knights/list_pgn.cpp
  21. +1
    -1
      knights/logic.cpp
  22. +1
    -1
      knights/match.cpp
  23. +12
    -12
      knights/pgn.cpp
  24. +10
    -10
      knights/proto_uci.cpp
  25. +18
    -18
      knights/proto_xboard.cpp
  26. +1
    -1
      knights/setpagedisplay.cpp
  27. +4
    -4
      knights/setpageengines.cpp
  28. +2
    -2
      knights/setpageservers.cpp
  29. +1
    -1
      knights/splash.cpp
  30. +1
    -1
      knights/tab_seeklist.cpp
  31. +2
    -2
      knights/tabbox.cpp
  32. +3
    -3
      knights/tabgrip.cpp
  33. +1
    -1
      knights/tabmanager.cpp
  34. +1
    -1
      knights/tabpage.cpp
  35. +2
    -2
      knights/thinbuttons.cpp
  36. +6
    -6
      knights/wiz_setup.cpp

+ 6
- 0
.gitmodules View File

@@ -0,0 +1,6 @@
[submodule "admin"]
path = admin
url = https://system@scm.trinitydesktop.org/scm/git/tde-common-admin
[submodule "cmake"]
path = cmake
url = https://system@scm.trinitydesktop.org/scm/git/tde-common-cmake

+ 1
- 1
acinclude.m4 View File

@@ -419,7 +419,7 @@ AC_DEFUN(KDE_SET_DEFAULT_PATHS,
if test "$1" = "default"; then

if test -z "$kde_htmldir"; then
kde_htmldir='\${prefix}/share/doc/HTML'
kde_htmldir='\${prefix}/share/doc/tde/HTML'
fi
if test -z "$kde_appsdir"; then
kde_appsdir='\${prefix}/share/applnk'


+ 1
- 1
aclocal.m4 View File

@@ -431,7 +431,7 @@ AC_DEFUN(KDE_SET_DEFAULT_PATHS,
if test "$1" = "default"; then

if test -z "$kde_htmldir"; then
kde_htmldir='\${prefix}/share/doc/HTML'
kde_htmldir='\${prefix}/share/doc/tde/HTML'
fi
if test -z "$kde_appsdir"; then
kde_appsdir='\${prefix}/share/applnk'


+ 1
- 0
admin

@@ -0,0 +1 @@
Subproject commit 9c3a708c04ab11ee9bc511e7fb90b59db5eecf22

+ 1
- 0
cmake

@@ -0,0 +1 @@
Subproject commit adf1b92de6227b1d277e2cc89e70286acd205c39

+ 2
- 62
doc/Makefile.am View File

@@ -1,7 +1,7 @@
####### kdevelop will overwrite this part!!! (begin)##########


EXTRA_DIST = help_en.docbook help_fr.docbook
EXTRA_DIST = help_en.docbook help_fr.docbook

####### kdevelop will overwrite this part!!! (end)############

@@ -9,7 +9,7 @@ MAINTAINERCLEANFILES = ./*.html
CLEANFILES = core *~ .deps/* doc/*~ *.orig changes.docbook
DISTCLEANFILES = Makefile.in Makefile

LANGUAGES = en fr de et it fi es ru
LANGUAGES = en fr
SUFFIXES = .docbook .po .pot
SGMLDIR=$(kde_datadir)/ksgmltools2
DOCDIR = $(DESTDIR)${kde_htmldir}
@@ -33,66 +33,6 @@ help_fr.docbook: help_en.docbook help_en.pot
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ French\ /g \
> help_fr.docbook

help_de.po: help_en.pot
$(MSGMERGE) -o help_de.po help_de.po help_en.pot

help_de.docbook: help_en.docbook help_en.pot
${MAKE} help_de.po
@echo "converting german help"
@ $(PO2XML) help_en.docbook help_de.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ German\ /g \
> help_de.docbook

help_et.po: help_en.pot
$(MSGMERGE) -o help_et.po help_et.po help_en.pot

help_et.docbook: help_en.docbook help_en.pot
${MAKE} help_et.po
@echo "converting estonian help"
@ $(PO2XML) help_en.docbook help_et.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Estonian\ /g \
> help_de.docbook

help_it.po: help_en.pot
$(MSGMERGE) -o help_it.po help_it.po help_en.pot

help_it.docbook: help_en.docbook help_en.pot
${MAKE} help_it.po
@echo "converting italian help"
@ $(PO2XML) help_en.docbook help_it.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Italian\ /g \
> help_it.docbook

help_fi.po: help_en.pot
$(MSGMERGE) -o help_fi.po help_fi.po help_en.pot

help_fi.docbook: help_en.docbook help_en.pot
${MAKE} help_fi.po
@echo "converting finnish help"
@ $(PO2XML) help_en.docbook help_fi.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Finnish\ /g \
> help_fi.docbook

help_es.po: help_en.pot
$(MSGMERGE) -o help_es.po help_es.po help_en.pot

help_es.docbook: help_en.docbook help_en.pot
${MAKE} help_es.po
@echo "converting spanish help"
@ $(PO2XML) help_en.docbook help_es.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Spanish\ /g \
> help_es.docbook

help_ru.po: help_en.pot
$(MSGMERGE) -o help_ru.po help_ru.po help_en.pot

help_ru.docbook: help_en.docbook help_en.pot
${MAKE} help_ru.po
@echo "converting russian help"
@ $(PO2XML) help_en.docbook help_ru.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Russian\ /g \
> help_ru.docbook

# --- ---

install-data-local:


+ 0
- 533
doc/Makefile.in.backup View File

@@ -1,533 +0,0 @@
# Makefile.in generated automatically by automake 1.5 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@

####### kdevelop will overwrite this part!!! (begin)##########

SHELL = @SHELL@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
EXEEXT = @EXEEXT@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBXINERAMA = @LIBXINERAMA@
LIBZ = @LIBZ@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
NOREPO = @NOREPO@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
REPO = @REPO@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@

EXTRA_DIST = help_en.docbook help_fr.docbook


####### kdevelop will overwrite this part!!! (end)############
MAINTAINERCLEANFILES = ./*.html
CLEANFILES = core *~ .deps/* doc/*~ *.orig changes.docbook
DISTCLEANFILES = Makefile.in Makefile

LANGUAGES = en fr de et it fi es ru
SUFFIXES = .docbook .po .pot
SGMLDIR = $(kde_datadir)/ksgmltools2
DOCDIR = $(DESTDIR)${kde_htmldir}
XML2POT = xml2pot
PO2XML = po2xml
MSGMERGE = msgmerge
subdir = doc
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: docs-am all-am

.SUFFIXES:
.SUFFIXES: .docbook .po .pot

mostlyclean-libtool:
-rm -f *.lo

clean-libtool:
-rm -rf .libs _libs

distclean-libtool:
-rm -f libtool
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu doc/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
cd $(top_srcdir) && perl admin/am_edit knights-0.6/doc/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
uninstall-info-am:
tags: TAGS
TAGS:


#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 4
KDE_DIST=help_et.po help_fi.po help_de.po help_it.po help_ru.po help_es.po help_fr.po help_en.pot

DISTFILES= $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)


top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)

distdir: $(DISTFILES)
@for file in $(DISTFILES); do \
if test -f $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
$(mkinstalldirs) "$(distdir)/$$dir"; \
fi; \
if test -d $$d/$$file; then \
cp -pR $$d/$$file $(distdir) \
|| exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile

installdirs:

install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)

maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am

clean-am: clean-generic clean-libtool mostlyclean-am

distclean: distclean-am

distclean-am: clean-am distclean-generic distclean-libtool

dvi: dvi-am

dvi-am:

info: info-am

info-am:

install-data-am: install-data-local

install-exec-am:

install-info: install-info-am

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-am

maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

uninstall-am: uninstall-info-am uninstall-local

.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-data-local install-exec install-exec-am \
install-info install-info-am install-man install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool uninstall uninstall-am uninstall-info-am \
uninstall-local


help_en.pot: help_en.docbook
$(XML2POT) help_en.docbook > help_en.pot

# --- translated docbook online help ---

help_fr.po: help_en.pot
$(MSGMERGE) -o help_fr.po help_fr.po help_en.pot

help_fr.docbook: help_en.docbook help_en.pot
${MAKE} help_fr.po
@echo "converting french help"
@ $(PO2XML) help_en.docbook help_fr.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ French\ /g \
> help_fr.docbook

help_de.po: help_en.pot
$(MSGMERGE) -o help_de.po help_de.po help_en.pot

help_de.docbook: help_en.docbook help_en.pot
${MAKE} help_de.po
@echo "converting german help"
@ $(PO2XML) help_en.docbook help_de.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ German\ /g \
> help_de.docbook

help_et.po: help_en.pot
$(MSGMERGE) -o help_et.po help_et.po help_en.pot

help_et.docbook: help_en.docbook help_en.pot
${MAKE} help_et.po
@echo "converting estonian help"
@ $(PO2XML) help_en.docbook help_et.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Estonian\ /g \
> help_de.docbook

help_it.po: help_en.pot
$(MSGMERGE) -o help_it.po help_it.po help_en.pot

help_it.docbook: help_en.docbook help_en.pot
${MAKE} help_it.po
@echo "converting italian help"
@ $(PO2XML) help_en.docbook help_it.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Italian\ /g \
> help_it.docbook

help_fi.po: help_en.pot
$(MSGMERGE) -o help_fi.po help_fi.po help_en.pot

help_fi.docbook: help_en.docbook help_en.pot
${MAKE} help_fi.po
@echo "converting finnish help"
@ $(PO2XML) help_en.docbook help_fi.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Finnish\ /g \
> help_fi.docbook

help_es.po: help_en.pot
$(MSGMERGE) -o help_es.po help_es.po help_en.pot

help_es.docbook: help_en.docbook help_en.pot
${MAKE} help_es.po
@echo "converting spanish help"
@ $(PO2XML) help_en.docbook help_es.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Spanish\ /g \
> help_es.docbook

help_ru.po: help_en.pot
$(MSGMERGE) -o help_ru.po help_ru.po help_en.pot

help_ru.docbook: help_en.docbook help_en.pot
${MAKE} help_ru.po
@echo "converting russian help"
@ $(PO2XML) help_en.docbook help_ru.po | \
sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Russian\ /g \
> help_ru.docbook

# --- ---

install-data-local:
echo installing docs in $(DOCDIR)
for lang in ${LANGUAGES}; do \
{ \
$(mkinstalldirs) ${DOCDIR}/$${lang}/$(PACKAGE); \
$(INSTALL_DATA) help_$${lang}.docbook ${DOCDIR}/$${lang}/$(PACKAGE)/index.docbook; \
if test ! -e ${DOCDIR}/$${lang}/$(PACKAGE)/common ; then \
rm -f ${DOCDIR}/$${lang}/$(PACKAGE)/common ; fi ; \
( cd ${DOCDIR}/$${lang}/${PACKAGE} ; ln -sf ../common . ) ; \
}; done
cd ${DOCDIR} ; \
if test ! -e default/$(PACKAGE) -a -e default ; then ln -sf ../en/$(PACKAGE) default; fi;

uninstall-local:
for lang in ${LANGUAGES}; do { \
rm -R -f ${DOCDIR}/$${lang}/${PACKAGE} ; \
rmdir -p --ignore-fail-on-non-empty $(DOCDIR)/$$lang >/dev/null 2>&1; \
if test -L ${DOCDIR}/default/$(PACKAGE); then rm -f ${DOCDIR}/default/$(PACKAGE); fi; \
}; done

all:
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:



#>+ 2
docs-am:

#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
cd $(top_srcdir) && perl admin/am_edit knights-0.6/doc/Makefile.in


#>+ 2
final:
$(MAKE) all-am
#>+ 2
final-install:
$(MAKE) install-am
#>+ 2
no-final:
$(MAKE) all-am
#>+ 2
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean

#>+ 3
kde-rpo-clean:
-rm -f *.rpo

+ 6
- 6
knights.spec View File

@@ -64,12 +64,12 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,0755)
%doc README COPYING AUTHORS ChangeLog CreatingThemes TODO INSTALL
/usr/bin/knights
/usr/share/doc/HTML/en/knights/knights-01.png
/usr/share/doc/HTML/en/knights/knights-02.png
/usr/share/doc/HTML/en/knights/configure-02.png
/usr/share/doc/HTML/en/knights/configure-1.png
/usr/share/doc/HTML/en/knights/configure-3.png
/usr/share/doc/HTML/en/knights/index.docbook
/usr/share/doc/tde/HTML/en/knights/knights-01.png
/usr/share/doc/tde/HTML/en/knights/knights-02.png
/usr/share/doc/tde/HTML/en/knights/configure-02.png
/usr/share/doc/tde/HTML/en/knights/configure-1.png
/usr/share/doc/tde/HTML/en/knights/configure-3.png
/usr/share/doc/tde/HTML/en/knights/index.docbook
/usr/share/apps/knights/splash.png
/usr/share/apps/knights/wizard.png
/usr/share/apps/knights/themes/KBDefault.tar.gz


+ 3
- 3
knights/challenge_graph.cpp View File

@@ -66,7 +66,7 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *


/* Setup Style for myStatusBar */
myStatusBar->tqsetAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
myStatusBar->setAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
myStatusBar->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
clear();

@@ -311,7 +311,7 @@ void Challenge_Graph::createBackground( void )
painter.drawText( 64, y_size - 8, i18n( "Time" ) );
painter.end();

graph->tqsetBackgroundPixmap( background );
graph->setBackgroundPixmap( background );
}
///////////////////////////////////////
//
@@ -339,7 +339,7 @@ void Challenge_Graph::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) );
break;
case MENU_TELL:
emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).tqarg( selectedPlayerName ) ) );
emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).arg( selectedPlayerName ) ) );
break;
case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );


+ 2
- 2
knights/challenge_graph_view.cpp View File

@@ -103,8 +103,8 @@ void Challenge_Graph_View::contentsMouseMoveEvent(TQMouseEvent* e)
Challenge_Game *g = cr->getGame();

match = i18n( " Name: %1 Rating: %2 Match Type: %3 %4 Base Time: %5 Increment: %6" )
.tqarg( g->_player ).tqarg( g->rating() ).tqarg( g->_match_type ).tqarg( g->_is_rated )
.tqarg( g->clock() ).tqarg( g->increment() );
.arg( g->_player ).arg( g->rating() ).arg( g->_match_type ).arg( g->_is_rated )
.arg( g->clock() ).arg( g->increment() );
break;
}
statusbar->setText( match );


+ 3
- 3
knights/console.cpp View File

@@ -32,7 +32,7 @@ Console::Console(TQWidget *parent,
{
myResource = Rsrc;
SelfMoving = FALSE;
TQStyle& Style = TQApplication::tqstyle();
TQStyle& Style = TQApplication::style();

margin = Style.defaultFrameWidth();
myTextView = new KnightsTextView( this, myResource );
@@ -171,7 +171,7 @@ void Console::historyForward( void )
///////////////////////////////////////
void Console::replyPrivate( void )
{
myLineEdit->setText( TQString( "tell %1 " ).tqarg( lastPrivateSource ) );
myLineEdit->setText( TQString( "tell %1 " ).arg( lastPrivateSource ) );
if( !myLineEdit->hasFocus() )
getFocus();
}
@@ -182,7 +182,7 @@ void Console::replyPrivate( void )
///////////////////////////////////////
void Console::replyChannel( void )
{
myLineEdit->setText( TQString( "tell %1 " ).tqarg( lastChannelSource ) );
myLineEdit->setText( TQString( "tell %1 " ).arg( lastChannelSource ) );
if( !myLineEdit->hasFocus() )
getFocus();
}


+ 1
- 1
knights/core.cpp View File

@@ -227,7 +227,7 @@ void core::setMatch( int ID )

/* Give Ourselves Focus */
setActiveWindow();
tqtopLevelWidget()->raise();
topLevelWidget()->raise();
}

///////////////////////////////////////


+ 1
- 1
knights/definitions.h View File

@@ -72,7 +72,7 @@ const int MENU_LOAD = 0x02;
const int MENU_SAVE = 0x03;
const int MENU_SAVEAS = 0x04;
const int MENU_PRINT = 0x05;
const int MENU_TQUIT = 0x06;
const int MENU_QUIT = 0x06;
const int MENU_CLOSE = 0x08;
const int MENU_CLOSEALL = 0x09;
const int MENU_CONNECT = 0x0A;


+ 5
- 5
knights/dlg_challenge.cpp View File

@@ -48,7 +48,7 @@ dlg_challenge::dlg_challenge(TQWidget *parent, const char *name, resource *Rsrc
LABEL_BlackInc = new TQLabel( BOX_Black );
BUTTON_TimeOdds = new TQCheckBox( i18n("Time Odds Match"),BOX_Parent );

LABEL_Headline->tqsetAlignment( TQt::AlignCenter );
LABEL_Headline->setAlignment( TQt::AlignCenter );
COMBO_Rated->setEditable( FALSE );
COMBO_Rated->insertItem( i18n("Unrated"), 0 );
COMBO_Rated->insertItem( i18n("Rated"), 1 );
@@ -107,7 +107,7 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
localRating = list[3];
}
LABEL_Headline->setText( i18n("%1 %2 vs. %3 %4\nin a %5 match.")
.tqarg(local).tqarg(localRating).tqarg(otherPlayer).tqarg(otherRating).tqarg(list[5]) );
.arg(local).arg(localRating).arg(otherPlayer).arg(otherRating).arg(list[5]) );
if( list[4].lower() == "rated" )
{
COMBO_Rated->setCurrentItem(1);
@@ -137,14 +137,14 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
TQString dlg_challenge::values( void )
{
TQString match;
match = TQString("match %1").tqarg(otherPlayer);
match = TQString("match %1").arg(otherPlayer);
if( COMBO_Rated->currentItem() == 0 )
match += " unrated";
else
match += " rated";
match += TQString(" %1 %1").tqarg(BOX_WhiteBase->value()).tqarg(BOX_WhiteInc->value());
match += TQString(" %1 %1").arg(BOX_WhiteBase->value()).arg(BOX_WhiteInc->value());
if( BUTTON_TimeOdds->isChecked() )
match += TQString(" %1 %1").tqarg(BOX_BlackBase->value()).tqarg(BOX_BlackInc->value());
match += TQString(" %1 %1").arg(BOX_BlackBase->value()).arg(BOX_BlackInc->value());
return match;
}



+ 8
- 8
knights/io_internet.cpp View File

@@ -223,7 +223,7 @@ void io_internet::connectToServer()
*/
consoleTab = new Console( 0, myServer->Name, myResource );
myTabList[consoleTab] = consoleTab;
myResource->tabManager->addTab( myTabList[consoleTab], i18n( "%1 Console" ).tqarg( myServer->Name ) );
myResource->tabManager->addTab( myTabList[consoleTab], i18n( "%1 Console" ).arg( myServer->Name ) );
connect( myTabList[consoleTab], TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( recvCMD( const Command& ) ) );
connect( this, TQT_SIGNAL( sendCMD( const Command& ) ), myTabList[consoleTab], TQT_SLOT( recvCMD( const Command& ) ) );

@@ -996,13 +996,13 @@ void io_internet::updateSoughtList(TQString soughtLine)
void io_internet::sendUserSettings()
{
send("set style 12");
send(TQString("set interface Knights %1").tqarg(_VERSION_));
send(TQString("set private %1").tqarg(myResource->OPTION_Private));
send(TQString("set kibitz %1").tqarg(myResource->OPTION_Kibitz));
send(TQString("set tell %1").tqarg(myResource->OPTION_Tell));
send(TQString("set shout %1").tqarg(myResource->OPTION_Shout));
send(TQString("set seek %1").tqarg(myResource->OPTION_Seek));
send(TQString("set tolerance %1").tqarg(myResource->OPTION_Profanity));
send(TQString("set interface Knights %1").arg(_VERSION_));
send(TQString("set private %1").arg(myResource->OPTION_Private));
send(TQString("set kibitz %1").arg(myResource->OPTION_Kibitz));
send(TQString("set tell %1").arg(myResource->OPTION_Tell));
send(TQString("set shout %1").arg(myResource->OPTION_Shout));
send(TQString("set seek %1").arg(myResource->OPTION_Seek));
send(TQString("set tolerance %1").arg(myResource->OPTION_Profanity));
}

///////////////////////////////////////


+ 40
- 40
knights/knights.cpp View File

@@ -163,21 +163,21 @@ bool Knights::init( void )
initMenus();

/* Init Message */
Message->tqsetAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
Message->setAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );

/* Init White Time Label */
GroupWhite.setColor( TQColorGroup::Background, Resource->COLOR_White );
GroupWhite.setColor( TQColorGroup::Foreground, Resource->COLOR_Black );
whiteTimeLabel->setPalette( TQPalette( GroupWhite, GroupWhite, GroupWhite ) );
whiteTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
whiteTimeLabel->tqsetAlignment( TQt::AlignCenter | TQt::SingleLine );
whiteTimeLabel->setAlignment( TQt::AlignCenter | TQt::SingleLine );

/* Init Black Time Label */
GroupBlack.setColor( TQColorGroup::Background, Resource->COLOR_Black );
GroupBlack.setColor( TQColorGroup::Foreground, Resource->COLOR_White );
blackTimeLabel->setPalette( TQPalette( GroupBlack, GroupBlack, GroupBlack ) );
blackTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
blackTimeLabel->tqsetAlignment( TQt::AlignCenter | TQt::SingleLine );
blackTimeLabel->setAlignment( TQt::AlignCenter | TQt::SingleLine );

/* Configure self */
setCentralWidget( MainFrame );
@@ -250,122 +250,122 @@ void Knights::initMenus( void )
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("undo"), KIcon::Small ) ),
i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT );
matchMenu->setItemEnabled( MENU_RETRACT, FALSE );
matchMenu->tqsetWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) );
matchMenu->setWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) );
// MENU_RESIGN
matchMenu->insertItem( i18n( "Resign" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RESIGN );
matchMenu->setItemEnabled( MENU_RESIGN, FALSE );
matchMenu->tqsetWhatsThis( MENU_RESIGN, i18n( "Use this to concede the match to your opponent." ) );
matchMenu->setWhatsThis( MENU_RESIGN, i18n( "Use this to concede the match to your opponent." ) );
// MENU_CALL_FLAG
matchMenu->insertItem( i18n( "&Call Flag" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_CALL_FLAG );
matchMenu->setItemEnabled( MENU_CALL_FLAG, FALSE );
matchMenu->tqsetWhatsThis( MENU_CALL_FLAG, i18n( "Use this to declare the match over, due to your opponent being out of time." ) );
matchMenu->setWhatsThis( MENU_CALL_FLAG, i18n( "Use this to declare the match over, due to your opponent being out of time." ) );
// MENU_HINT
matchMenu->insertItem( i18n( "&Hint" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_HINT );
matchMenu->setItemEnabled( MENU_HINT, FALSE );
matchMenu->tqsetWhatsThis( MENU_HINT, i18n( "This will ask your opponent for a hint." ) );
matchMenu->setWhatsThis( MENU_HINT, i18n( "This will ask your opponent for a hint." ) );
// MENU_MOVE_NOW
matchMenu->insertItem( i18n( "Move &Now" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_MOVE_NOW );
matchMenu->setItemEnabled( MENU_MOVE_NOW, FALSE );
matchMenu->tqsetWhatsThis( MENU_MOVE_NOW, i18n( "Clicking this option will force your opponent to move immediately." ) );
matchMenu->setWhatsThis( MENU_MOVE_NOW, i18n( "Clicking this option will force your opponent to move immediately." ) );
// MENU_ORIENTATION
matchMenu->insertItem( i18n( "&Flip View" ), Core, TQT_SLOT(matchMenu(int)), Key_F2, MENU_ORIENTATION );
matchMenu->setItemEnabled( MENU_ORIENTATION, FALSE );
matchMenu->tqsetWhatsThis( MENU_ORIENTATION, i18n( "This will reverse the chessboard's orientation by 180 degrees." ) );
matchMenu->setWhatsThis( MENU_ORIENTATION, i18n( "This will reverse the chessboard's orientation by 180 degrees." ) );
// MENU_PONDER
matchMenu->insertItem( i18n( "&Ponder" ), this, TQT_SLOT(Settings(int)), 0, MENU_PONDER );
matchMenu->setItemChecked( MENU_PONDER, Resource->OPTION_Ponder );
matchMenu->setItemEnabled( MENU_PONDER, FALSE );
matchMenu->tqsetWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) );
matchMenu->setWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) );
matchMenu->insertSeparator();
// MENU_PAUSE
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("player_pause"), KIcon::Small ) ),
i18n( "Pause" ), this, TQT_SLOT( Settings(int) ), Key_F12, MENU_PAUSE );
matchMenu->setItemEnabled( MENU_PAUSE, FALSE );
matchMenu->tqsetWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) );
matchMenu->setWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) );
/*
drawMenu menu
*/
// MENU_OFFER_DRAW
drawMenu->insertItem( i18n( "&Offer Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_OFFER_DRAW );
drawMenu->tqsetWhatsThis( MENU_OFFER_DRAW, i18n( "Clicking this will inform your opponent that you are willing draw the match." ) );
drawMenu->setWhatsThis( MENU_OFFER_DRAW, i18n( "Clicking this will inform your opponent that you are willing draw the match." ) );
// MENU_ACCEPT_DRAW
drawMenu->insertItem( i18n( "&Accept Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_ACCEPT_DRAW );
drawMenu->tqsetWhatsThis( MENU_ACCEPT_DRAW, i18n( "Clicking this will accept a draw offered by your opponent." ) );
drawMenu->setWhatsThis( MENU_ACCEPT_DRAW, i18n( "Clicking this will accept a draw offered by your opponent." ) );
// MENU_REJECT_DRAW
drawMenu->insertItem( i18n( "&Reject Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_REJECT_DRAW );
drawMenu->tqsetWhatsThis( MENU_REJECT_DRAW, i18n( "Clicking this will reject a draw offered by your opponent." ) );
drawMenu->setWhatsThis( MENU_REJECT_DRAW, i18n( "Clicking this will reject a draw offered by your opponent." ) );
// MENU_IGNORE_DRAW
drawMenu->insertItem( i18n( "&Ignore Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_IGNORE_DRAW );
drawMenu->tqsetWhatsThis( MENU_IGNORE_DRAW, i18n( "Clicking this will ignore future draw offers from your opponent." ) );
drawMenu->setWhatsThis( MENU_IGNORE_DRAW, i18n( "Clicking this will ignore future draw offers from your opponent." ) );
/*
fileMenu menu
*/
// MENU_NEWGAME
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), KIcon::Small ) ),
i18n( "&New Match..." ), this, TQT_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME );
fileMenu->tqsetWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) );
fileMenu->setWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) );
// MENU_LOAD
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileopen"), KIcon::Small ) ),
i18n( "&Load Match..." ), Core, TQT_SLOT( load() ), CTRL+Key_L, MENU_LOAD );
fileMenu->tqsetWhatsThis( MENU_LOAD, i18n( "The Load command will allow you to select a previously saved match and play it again." ) );
fileMenu->setWhatsThis( MENU_LOAD, i18n( "The Load command will allow you to select a previously saved match and play it again." ) );
fileMenu->insertSeparator();
// MENU_SAVE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
i18n( "&Save Match" ), this, TQT_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE );
fileMenu->setItemEnabled( MENU_SAVE, FALSE );
fileMenu->tqsetWhatsThis( MENU_SAVE, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
fileMenu->setWhatsThis( MENU_SAVE, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
// MENU_SAVEAS
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
i18n( "Save Match &As..." ), this, TQT_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS );
fileMenu->setItemEnabled( MENU_SAVEAS, FALSE );
fileMenu->tqsetWhatsThis( MENU_SAVEAS, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
fileMenu->setWhatsThis( MENU_SAVEAS, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
fileMenu->insertSeparator();
// MENU_CONNECT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("connect_creating"), KIcon::Small ) ),
i18n( "Connect to Server" ), this, TQT_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT );
fileMenu->tqsetWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) );
fileMenu->setWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) );
fileMenu->insertSeparator();
// MENU_PRINT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), KIcon::Small ) ),
i18n( "&Print Notation..." ), Core, TQT_SLOT( print() ), CTRL+Key_P, MENU_PRINT );
fileMenu->setItemEnabled( MENU_PRINT, FALSE );
fileMenu->tqsetWhatsThis( MENU_PRINT, i18n( "The Print command will allow you to print this game's notation on your printer." ) );
fileMenu->setWhatsThis( MENU_PRINT, i18n( "The Print command will allow you to print this game's notation on your printer." ) );
fileMenu->insertSeparator();
// MENU_CLOSE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), KIcon::Small ) ),
i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE );
fileMenu->setItemEnabled( MENU_CLOSE, FALSE );
fileMenu->tqsetWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) );
fileMenu->setWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) );
// MENU_CLOSEALL
fileMenu->insertItem( i18n( "Close All" ), Core, TQT_SLOT( clearAll() ), 0, MENU_CLOSEALL );
fileMenu->setItemEnabled( MENU_CLOSEALL, FALSE );
fileMenu->tqsetWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) );
fileMenu->setWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) );
fileMenu->insertSeparator();
// MENU_TQUIT
// MENU_QUIT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("exit"), KIcon::Small ) ),
i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_TQUIT );
fileMenu->tqsetWhatsThis( MENU_TQUIT, i18n( "The Quit command will stop all matches and exit Knights." ) );
i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_QUIT );
fileMenu->setWhatsThis( MENU_QUIT, i18n( "The Quit command will stop all matches and exit Knights." ) );
/*
settingsMenu menu
*/
// MENU_INSTALL_THEMES
settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQT_SLOT(installThemes()), 0, MENU_INSTALL_THEMES );
settingsMenu->tqsetWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) );
settingsMenu->setWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) );
// MENU_BINDINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), KIcon::Small ) ),
i18n( "Configure &Key Bindings..." ), this, TQT_SLOT(openKeyBindingDialog()), 0, MENU_BINDINGS_DIALOG );
settingsMenu->tqsetWhatsThis( MENU_BINDINGS_DIALOG, i18n( "Click this if you want to change the keyboard shortcuts that Knights uses." ) );
settingsMenu->setWhatsThis( MENU_BINDINGS_DIALOG, i18n( "Click this if you want to change the keyboard shortcuts that Knights uses." ) );
// MENU_SETTINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), KIcon::Small ) ),
i18n( "&Configure Knights..." ), this, TQT_SLOT(openSettingsDialog()), 0, MENU_SETTINGS_DIALOG );
settingsMenu->tqsetWhatsThis( MENU_SETTINGS_DIALOG, i18n( "This opens a new window which allows you to customize Knights to your particular tastes." ) );
settingsMenu->setWhatsThis( MENU_SETTINGS_DIALOG, i18n( "This opens a new window which allows you to customize Knights to your particular tastes." ) );
/*
tutorialMenu menu
*/
tutorialMenu->setCheckable(TRUE);
// MENU_OPEN_TUTORIAL
tutorialMenu->insertItem( i18n( "Begin a Tutorial" ), this, TQT_SLOT(Settings(int)), 0, MENU_OPEN_TUTORIAL );
// tutorialMenu->tqsetWhatsThis( MENU_OPEN_TUTORIAL, i18n( "" ) );
// tutorialMenu->setWhatsThis( MENU_OPEN_TUTORIAL, i18n( "" ) );
/*
topMenu menu
*/
@@ -383,7 +383,7 @@ void Knights::initMenus( void )
///////////////////////////////////////
void Knights::resizeMainFrame(void)
{
TQStyle& Style = TQApplication::tqstyle();
TQStyle& Style = TQApplication::style();
TQSize S_Message;
TQSize S_Menu;
@@ -397,8 +397,8 @@ void Knights::resizeMainFrame(void)
Core->move( 0, 0 );
Core->resize();
/* Get our size hints */
S_Message = Message->tqsizeHint();
S_Menu = topMenu->tqsizeHint();
S_Message = Message->sizeHint();
S_Menu = topMenu->sizeHint();
statusHeight = S_Message.height() + ( margin << 1 );
statusY += Core->height() + margin + statusHeight + margin;
statusX = Core->width();
@@ -447,7 +447,7 @@ void Knights::resizeEvent( TQResizeEvent * )
if( ResizeFlag ) return;
/* Get the height & Y of the status bar */
gridX = Core->width() >> 3;
S_Message = Message->tqsizeHint() + TQSize( 2, 2 );
S_Message = Message->sizeHint() + TQSize( 2, 2 );
statusHeight = S_Message.height() + ( margin << 1 );
Resource->Widget_Height = statusHeight;
statusY += Core->height() + margin;
@@ -561,29 +561,29 @@ void Knights::setStatusBar( const int &ID, const TQString &MSG )
case BOOK_ERROR_1:
Message->setText( i18n( "Error with white engine" ) );
KMessageBox::sorry( this,
i18n("You selected %1 to play white,\nbut it can only be used as a book engine.\nPlease select another engine to play white.").tqarg( MSG ),
i18n("You selected %1 to play white,\nbut it can only be used as a book engine.\nPlease select another engine to play white.").arg( MSG ),
i18n("White Engine Problem") );
break;
case BOOK_ERROR_2:
Message->setText( i18n( "Error with white book engine" ) );
KMessageBox::sorry( this,
i18n("You selected %1 to play white's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play white's book.").tqarg( MSG ),
i18n("You selected %1 to play white's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play white's book.").arg( MSG ),
i18n("White Book Engine Problem") );
break;
case BOOK_ERROR_3:
Message->setText( i18n( "Error with black engine" ) );
KMessageBox::sorry( this,
i18n("You selected %1 to play black,\nbut it can only be used as a book engine.\nPlease select another engine to play black.").tqarg( MSG ),
i18n("You selected %1 to play black,\nbut it can only be used as a book engine.\nPlease select another engine to play black.").arg( MSG ),
i18n("Black Engine Problem") );
break;
case BOOK_ERROR_4:
Message->setText( i18n( "Error with black book engine" ) );
KMessageBox::sorry( this,
i18n("You selected %1 to play black's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play black's book.").tqarg( MSG ),
i18n("You selected %1 to play black's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play black's book.").arg( MSG ),
i18n("Black Book Engine Problem") );
break;
case ENGINE_DIED_ERROR:
Message->setText( i18n( "The computer opponent assigned to play %1 has crashed" ).tqarg( MSG ) );
Message->setText( i18n( "The computer opponent assigned to play %1 has crashed" ).arg( MSG ) );
break;
case LOAD_ERROR:
Message->setText( i18n( "There was an error while loading the file" ) );
@@ -1017,7 +1017,7 @@ void Knights::installThemes( void )
if( installError )
{
KMessageBox::sorry( this,
i18n("The theme could not be installed:\n%1").tqarg( allerror ),
i18n("The theme could not be installed:\n%1").arg( allerror ),
i18n("Can not install theme") );
}
return;


+ 1
- 0
knights/knights.desktop View File

@@ -5,6 +5,7 @@ Icon=knights.png
MiniIcon=knights.png
Name=Knights
Name[de]=Knights
GenericName=Chess Game
Comment=A graphical chess interface
Comment[de]=A graphical chess interface
InitialPreference=1


+ 1
- 1
knights/knights.h View File

@@ -72,7 +72,7 @@ class Knights : public KMainWindow
public slots:
void KillAll( void );
void menuClose( void );
/** Yeah, they're sloppy, but I need my own tqgeometry managment routines
/** Yeah, they're sloppy, but I need my own geometry managment routines
because I don't like the "default" look my statusbar was getting
( double-height ). Plus, I want the console to appear only when needed. */
void resizeMainFrame( void );


+ 2
- 2
knights/knightstextview.cpp View File

@@ -207,7 +207,7 @@ void KnightsTextView::print( void )
{
/* Print the Contents */
paint.setClipRect( body );
simpText.draw( &paint, body.left(), body.top(), view, tqcolorGroup() );
simpText.draw( &paint, body.left(), body.top(), view, colorGroup() );
paint.setClipping( false );
view.moveBy( 0, body.height() );
paint.translate( 0, -body.height() );
@@ -215,7 +215,7 @@ void KnightsTextView::print( void )
/* Print the Page Number */
paint.setFont( myResource->FONT_Standard );
paint.setPen( myResource->COLOR_Black );
TQString pageCount = i18n( "Page %1 of %2" ).tqarg( currentPage ).tqarg( totalPages );
TQString pageCount = i18n( "Page %1 of %2" ).arg( currentPage ).arg( totalPages );
paint.drawText( view.width() - paint.fontMetrics().width( pageCount ),
view.bottom() + paint.fontMetrics().ascent() + 5, pageCount );
if( view.top() >= simpText.height() )


+ 2
- 2
knights/list_pgn.cpp View File

@@ -80,7 +80,7 @@ void list_pgn::setURL( TQString URL )

if( tmpPGN.open( URL ) == FALSE )
{
status->message( i18n( "Can not open %1" ).tqarg( URL ) );
status->message( i18n( "Can not open %1" ).arg( URL ) );
return;
}
listView->hide();
@@ -140,6 +140,6 @@ void list_pgn::timerEvent( TQTimerEvent* )
tmpPGN.TAG_Site,
tmpPGN.TAG_Date,
TQString::number(tmpPGN.File_Position) );
status->message( i18n( TQString( "%1 matches found." ).tqarg( listView->childCount() ) ) );
status->message( i18n( TQString( "%1 matches found." ).arg( listView->childCount() ) ) );
}
}

+ 1
- 1
knights/logic.cpp View File

@@ -1064,7 +1064,7 @@ void logic::_HashLegal( const bool Recursion )

switch( chessman[ManPtr].Type )
{
/* ROOK & TQUEEN */
/* ROOK & QUEEN */
case Rook:
case Queen:
/* Positive Rank Movement */


+ 1
- 1
knights/match.cpp View File

@@ -891,7 +891,7 @@ bool match::move( void )
Clock->Pause();

Logic->OnMove = !Logic->OnMove;
/* Set tqStatus Bar */
/* Set Status Bar */
if( Logic->OnMove == WHITE )
{
emit setStatusBar( WHITE_TURN );


+ 12
- 12
knights/pgn.cpp View File

@@ -134,11 +134,11 @@ TQStringList* pgn::notation( const int format )
Line = ( tmp + 2 ) >> 1;
if( ( tmp % 2 ) == 0 )
{
notation = TQString( "%1. %2" ).tqarg( Line ).tqarg( (*IT).SAN );
notation = TQString( "%1. %2" ).arg( Line ).arg( (*IT).SAN );
}
else
{
notation = TQString( "%1... %2" ).tqarg( Line ).tqarg( (*IT).SAN );
notation = TQString( "%1... %2" ).arg( Line ).arg( (*IT).SAN );
}
list->append( notation );
tmp++;
@@ -152,13 +152,13 @@ TQStringList* pgn::notation( const int format )
Line = ( tmp + 2 ) >> 1;
if( ( tmp % 2 ) == 0 )
{
notation = TQString( "%1. %2" ).tqarg( Line ).tqarg( (*IT).SAN );
notation = TQString( "%1. %2" ).arg( Line ).arg( (*IT).SAN );
}
else
{
if( showLineNumber )
{
notation = TQString( "%1... %2" ).tqarg( Line ).tqarg( (*IT).SAN );
notation = TQString( "%1... %2" ).arg( Line ).arg( (*IT).SAN );
}
else
{
@@ -169,20 +169,20 @@ TQStringList* pgn::notation( const int format )
/* Insert NAGs */
if( (*IT).NAG != 0 )
{
notation += TQString( " $%1" ).tqarg( TQString::number( (*IT).NAG ) );
notation += TQString( " $%1" ).arg( TQString::number( (*IT).NAG ) );
}
/* Insert RAVs */
annon = RAV.find( tmp );
if( annon != NULL )
{
notation += TQString( " (%1)" ).tqarg( annon->text );
notation += TQString( " (%1)" ).arg( annon->text );
showLineNumber = true;
}
/* Insert Annotations */
annon = annotations.find( tmp );
if( annon != NULL )
{
notation += TQString( " {%1}" ).tqarg( annon->text );
notation += TQString( " {%1}" ).arg( annon->text );
showLineNumber = true;
}
list->append( notation );
@@ -204,7 +204,7 @@ TQString pgn::caption( void )
{
TQString caption;

caption = i18n( "%1 vs. %2").tqarg( TAG_White ).tqarg( TAG_Black );
caption = i18n( "%1 vs. %2").arg( TAG_White ).arg( TAG_Black );
return caption;
}
///////////////////////////////////////
@@ -288,8 +288,8 @@ void pgn::init( void )
uname( &unamePtr );

/* Build Date */
qdt = TQDateTime::tqcurrentDateTime();
TAG_Date = TQString("%1.%2.%3").tqarg(qdt.date().year(),4).tqarg(qdt.date().month(),2).tqarg(qdt.date().day(),2);
qdt = TQDateTime::currentDateTime();
TAG_Date = TQString("%1.%2.%3").arg(qdt.date().year(),4).arg(qdt.date().month(),2).arg(qdt.date().day(),2);
TAG_Date = TAG_Date.replace( TQRegExp("\\s"), TQString("0") );
TAG_Time = qdt.time().toString();

@@ -387,7 +387,7 @@ bool pgn::load( const int pos )
/* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource );
connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).tqarg( TAG_White ).tqarg( TAG_Black ) );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) );
pgnView->init();
File.at( File_Position );
currentLine = "";
@@ -950,7 +950,7 @@ void pgn::print( void )
{
/* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).tqarg( TAG_White ).tqarg( TAG_Black ) );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) );
connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
pgnView->init();
}


+ 10
- 10
knights/proto_uci.cpp View File

@@ -76,13 +76,13 @@ void proto_uci::parse( const Command &command )
}
if( FEN.isEmpty() )
{
emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
emit output( TQString("position startpos moves %1").arg( cmd.getData() ) );
}
else
{
emit output( TQString("position fen %1 moves %2").tqarg( FEN ).tqarg( cmd.getData() ) );
emit output( TQString("position fen %1 moves %2").arg( FEN ).arg( cmd.getData() ) );
}
emit output( TQString("go wtime %1 btime %2 depth %3").tqarg( cmd.getWhiteTime() ).tqarg( cmd.getBlackTime() ).tqarg( difficulty ) );
emit output( TQString("go wtime %1 btime %2 depth %3").arg( cmd.getWhiteTime() ).arg( cmd.getBlackTime() ).arg( difficulty ) );
break;

/* Command: Set Difficulty */
@@ -105,13 +105,13 @@ void proto_uci::parse( const Command &command )
hintMode = TRUE;
if( FEN.isEmpty() )
{
emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
emit output( TQString("position startpos moves %1").arg( cmd.getData() ) );
}
else
{
emit output( TQString("position fen %1 moves %2").tqarg( FEN ).tqarg( cmd.getData() ) );
emit output( TQString("position fen %1 moves %2").arg( FEN ).arg( cmd.getData() ) );
}
emit output( TQString("go wtime %1 btime %2 depth %3").tqarg( cmd.getWhiteTime() ).tqarg( cmd.getBlackTime() ).tqarg( difficulty ) );
emit output( TQString("go wtime %1 btime %2 depth %3").arg( cmd.getWhiteTime() ).arg( cmd.getBlackTime() ).arg( difficulty ) );
break;

/* Command: Play White */
@@ -154,8 +154,8 @@ void proto_uci::parse( const TQString &string )
{
/* The Engine Gives a Hint */
hintMode = FALSE;
// emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).tqarg( engineName ).tqarg( strList[1] ) ) );
emit output( Command( myID, CMD_Hint, TQString( "%1 suggests this move:\n%2" ).tqarg( engineName ).tqarg( strList[1] ) ) );
// emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).arg( engineName ).arg( strList[1] ) ) );
emit output( Command( myID, CMD_Hint, TQString( "%1 suggests this move:\n%2" ).arg( engineName ).arg( strList[1] ) ) );
}
else
{
@@ -197,8 +197,8 @@ void proto_uci::parse( const TQString &string )
{
if( strList[1] == "error" )
{
// emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 did not pass it's copy protection check." ).tqarg( engineName ) ) );
emit output( Command( myID, CMD_Tell_User_Error, TQString( "%1 did not pass it's copy protection check." ).tqarg( engineName ) ) );
// emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 did not pass it's copy protection check." ).arg( engineName ) ) );
emit output( Command( myID, CMD_Tell_User_Error, TQString( "%1 did not pass it's copy protection check." ).arg( engineName ) ) );
}
}
}


+ 18
- 18
knights/proto_xboard.cpp View File

@@ -120,13 +120,13 @@ void proto_xboard::parse( const Command &command )
{
if( Army == WHITE )
{
emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) );
emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) );
}
else
{
emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) );
emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) );
}
}
if( FEATURE_UserMove )
@@ -267,9 +267,9 @@ void proto_xboard::parse( const Command &command )
if( FEATURE_Time )
{
if( Army == WHITE )
emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) );
emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) );
else
emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) );
emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) );
}
break;

@@ -278,9 +278,9 @@ void proto_xboard::parse( const Command &command )
if( FEATURE_Time )
{
if( Army == WHITE )
emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) );
else
emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) );
}
break;

@@ -354,7 +354,7 @@ void proto_xboard::parse( const Command &command )
case CMD_Set_Board:
if( FEATURE_SetBoard == TRUE )
{
emit output( TQString( "setboard %1" ).tqarg( cmd.getData() ) );
emit output( TQString( "setboard %1" ).arg( cmd.getData() ) );
}
else
{
@@ -446,7 +446,7 @@ void proto_xboard::parse( const TQString &string )
/* Hint */
if( strList[0] == "Hint:" )
{
emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strList[1] ) ) );
emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).arg( FEATURE_MyName ).arg( strList[1] ) ) );
return;
}

@@ -468,56 +468,56 @@ void proto_xboard::parse( const TQString &string )
/* Tell User */
if( strList[0] == "telluser" )
{
emit output( Command( myID, CMD_Tell_User, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() - 9 ) ) ) );
emit output( Command( myID, CMD_Tell_User, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() - 9 ) ) ) );
return;
}

/* Tell User Error */
if( strList[0] == "tellusererror" )
{
emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() - 14 ) ) ) );
emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() - 14 ) ) ) );
return;
}

/* Error */
if( strList[0] == "Error" )
{
emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() ) ) ) );
emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() ) ) ) );
return;
}

/* Tell Opponent */
if( strList[0] == "tellopponent" )
{
emit output( Command( myID, CMD_Tell_Opponent, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 13 ) ) ) );
emit output( Command( myID, CMD_Tell_Opponent, TQString( "%1" ).arg( strIn.right( strIn.length() - 13 ) ) ) );
return;
}

/* Tell Others */
if( strList[0] == "tellothers" )
{
emit output( Command( myID, CMD_Tell_Others, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 11 ) ) ) );
emit output( Command( myID, CMD_Tell_Others, TQString( "%1" ).arg( strIn.right( strIn.length() - 11 ) ) ) );
return;
}

/* Tell All */
if( strList[0] == "tellall" )
{
emit output( Command( myID, CMD_Tell_All, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 8 ) ) ) );
emit output( Command( myID, CMD_Tell_All, TQString( "%1" ).arg( strIn.right( strIn.length() - 8 ) ) ) );
return;
}

/* Tell ICS */
if( strList[0] == "tellics" )
{
emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 8 ) ) ) );
emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).arg( strIn.right( strIn.length() - 8 ) ) ) );
return;
}

/* Tell ICS No Alias */
if( strList[0] == "tellicsnoalias" )
{
emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 15 ) ) ) );
emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).arg( strIn.right( strIn.length() - 15 ) ) ) );
return;
}



+ 1
- 1
knights/setpagedisplay.cpp View File

@@ -28,7 +28,7 @@

setPageDisplay::setPageDisplay(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{
TQStyle& Style = TQApplication::tqstyle();
TQStyle& Style = TQApplication::style();
Resource = Rsrc;
margin = Style.defaultFrameWidth();
NewBoards = 0;


+ 4
- 4
knights/setpageengines.cpp View File

@@ -73,7 +73,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) );
Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) );
Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) );
Engines_ButtonBox->tqlayout();
Engines_ButtonBox->layout();

BuildEngineData();

@@ -143,9 +143,9 @@ void setPageEngines::BuildEngineData( void )
(void) new TQListViewItem( Engines_ListView,
(*enginesIT).Name,
proto,
TQString( "%1" ).tqarg( (*enginesIT).Wins ),
TQString( "%1" ).tqarg( (*enginesIT).Losses ),
TQString( "%1" ).tqarg( (*enginesIT).Draws ) );
TQString( "%1" ).arg( (*enginesIT).Wins ),
TQString( "%1" ).arg( (*enginesIT).Losses ),
TQString( "%1" ).arg( (*enginesIT).Draws ) );
EngineList.append( (*enginesIT).Name );
}



+ 2
- 2
knights/setpageservers.cpp View File

@@ -21,7 +21,7 @@

setPageServers::setPageServers(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{
TQStyle& Style = TQApplication::tqstyle();
TQStyle& Style = TQApplication::style();
margin = Style.defaultFrameWidth();
Resource = Rsrc;
Servers_ListView = NULL;
@@ -77,7 +77,7 @@ void setPageServers::initTab1( void )
Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) );
Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) );
Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) );
Servers_ButtonBox->tqlayout();
Servers_ButtonBox->layout();

BuildServerData();



+ 1
- 1
knights/splash.cpp View File

@@ -33,7 +33,7 @@ splash::splash() :
move( ( TQApplication::desktop()->width() - Hint.width() ) / 2,
( TQApplication::desktop()->height() - Hint.height() ) / 2 );
show();
tqrepaint( FALSE );
repaint( FALSE );
}
splash::~splash()
{


+ 1
- 1
knights/tab_seeklist.cpp View File

@@ -186,7 +186,7 @@ void tab_SeekList::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) );
break;
case MENU_TELL:
emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).tqarg( selectedPlayerName ) ) );
emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).arg( selectedPlayerName ) ) );
break;
case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );


+ 2
- 2
knights/tabbox.cpp View File

@@ -26,7 +26,7 @@
TabBox::TabBox( resource *rsrc ) : TQVBox(0,"TabBox",TQt::WDestructiveClose)
{
myResource = rsrc;
setMargin( TQApplication::tqstyle().defaultFrameWidth() );
setMargin( TQApplication::style().defaultFrameWidth() );

myTabs = new TQTabWidget( this, "myTabs" );
myTabs->setTabShape( TQTabWidget::Rounded );
@@ -160,7 +160,7 @@ void TabBox::destroyChild( void )
///////////////////////////////////////
void TabBox::changeMyCaption( TQWidget *child )
{
setCaption( i18n("%1 - Knights").tqarg( myTabs->tabLabel( child ) ) );
setCaption( i18n("%1 - Knights").arg( myTabs->tabLabel( child ) ) );
}
///////////////////////////////////////
//


+ 3
- 3
knights/tabgrip.cpp View File

@@ -42,7 +42,7 @@ TabGrip::~TabGrip()
void TabGrip::paintEvent( TQPaintEvent* )
{
TQPainter paint( this );
TQColorGroup group( tqcolorGroup() );
TQColorGroup group( colorGroup() );
paint.setPen( group.light() );
paint.drawLine( 2, 2, width() - 3, 2 );
paint.drawLine( 2, 5, width() - 3, 5 );
@@ -64,8 +64,8 @@ void TabGrip::mousePressEvent( TQMouseEvent *event )
{
couldDrag = TRUE;
offset = mapToGlobal( event->pos() );
offset.setX( tqtopLevelWidget()->x() - offset.x() );
offset.setY( tqtopLevelWidget()->y() - offset.y() );
offset.setX( topLevelWidget()->x() - offset.x() );
offset.setY( topLevelWidget()->y() - offset.y() );
}
}
///////////////////////////////////////


+ 1
- 1
knights/tabmanager.cpp View File

@@ -150,7 +150,7 @@ void TabManager::saveTabGeometry( const TQString &childName, const TQSize &child
appConfig->writeEntry( childName, childSize );
appConfig->sync();

kdDebug() << "Saved tqgeometry for Widget: " << childName << endl;
kdDebug() << "Saved geometry for Widget: " << childName << endl;
}
///////////////////////////////////////
//


+ 1
- 1
knights/tabpage.cpp View File

@@ -53,7 +53,7 @@ TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(p
closeButton->setIconSet( TQIconSet( map ) );
closeButton->setAutoRaise( TRUE );
closeButton->setTextLabel( i18n( "Close This Tab" ), TRUE );
closeButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
closeButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
connect( closeButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( requestDestruction() ) );

myChild->reparent( this, TQPoint( 0, 0 ), TRUE );


+ 2
- 2
knights/thinbuttons.cpp View File

@@ -193,7 +193,7 @@ void thinbuttons::buttonClicked( void )
void thinbuttons::resize( const int Width )
{
Buttons *button;
TQStyle& Style = TQApplication::tqstyle();
TQStyle& Style = TQApplication::style();
int margin;
unsigned int Index;

@@ -215,7 +215,7 @@ void thinbuttons::resize( const int Width )
///////////////////////////////////////
void thinbuttons::mousePressEvent( TQMouseEvent *event )
{
TQStyle& Style = TQApplication::tqstyle();
TQStyle& Style = TQApplication::style();
int margin, xpos(0), index(0);

/* We only want RightClick */


+ 6
- 6
knights/wiz_setup.cpp View File

@@ -70,11 +70,11 @@ void wiz_setup::initPage1( void )
P1B1->addWidget( SideImage1, 1, 1 );

WelcomeMessage = new TQLabel( Page1 );
WelcomeMessage->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
WelcomeMessage->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
WelcomeMessage->setText( i18n( "Thank you for installing Knights, the graphical chess interface for KDE. To help you get started quickly, there are a few things Knights will need to setup. You should click 'Next' to see what they are." ) );
P1B1->addWidget( WelcomeMessage, 1, 3 );

addPage( Page1, i18n("Welcome to Knights v%1!").tqarg(_VERSION_) );
addPage( Page1, i18n("Welcome to Knights v%1!").arg(_VERSION_) );
setNextEnabled( Page1, TRUE );
setHelpEnabled( Page1, FALSE );
}
@@ -93,7 +93,7 @@ void wiz_setup::initPage2( void )
P2B1->addMultiCellWidget( SideImage2, 1, 2, 1, 1 );

pgnExplain = new TQLabel( Page2 );
pgnExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
pgnExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
pgnExplain->setText( i18n( "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." ) );
P2B1->addWidget( pgnExplain, 1, 3 );

@@ -121,7 +121,7 @@ void wiz_setup::initPage3( void )
P3B1->addMultiCellWidget( SideImage3, 1, 2, 1, 1 );

engineExplain = new TQLabel( Page3 );
engineExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
engineExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
engineExplain->setText( i18n( "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." ) );
P3B1->addWidget( engineExplain, 1, 3 );

@@ -149,7 +149,7 @@ void wiz_setup::initPage4( void )
P4B1->addMultiCellWidget( SideImage4, 1, 2, 1, 1 );

serverExplain = new TQLabel( Page4 );
serverExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
serverExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
serverExplain->setText( i18n( "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." ) );
P4B1->addWidget( serverExplain, 1, 3 );

@@ -177,7 +177,7 @@ void wiz_setup::initPage5( void )
P5B1->addMultiCellWidget( SideImage5, 1, 2, 1, 1 );

FinishExplain = new TQLabel( Page5 );
FinishExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
FinishExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
FinishExplain->setText( i18n( "Knights has now configured itself according to your choices. We strongly recommend that you read the documentation to make full use of all that Knights has to offer. You can access it by pressing F1." ) );
P5B1->addWidget( FinishExplain, 1, 3 );



Loading…
Cancel
Save