summaryrefslogtreecommitdiffstats
path: root/kwin4
diff options
context:
space:
mode:
Diffstat (limited to 'kwin4')
-rw-r--r--kwin4/Makefile.am6
-rw-r--r--kwin4/README4
-rw-r--r--kwin4/grafix/Makefile.am2
-rw-r--r--kwin4/kwin4.desktop6
-rw-r--r--kwin4/kwin4.kdelnk8
-rw-r--r--kwin4/kwin4/AboutDlg.kdevdlg2
-rw-r--r--kwin4/kwin4/Makefile.am28
-rw-r--r--kwin4/kwin4/kwin4.cpp22
-rw-r--r--kwin4/kwin4/kwin4.h2
-rw-r--r--kwin4/kwin4/kwin4.kcfg2
-rw-r--r--kwin4/kwin4/kwin4doc.cpp14
-rw-r--r--kwin4/kwin4/kwin4doc.h2
-rw-r--r--kwin4/kwin4/kwin4player.cpp4
-rw-r--r--kwin4/kwin4/kwin4proc.cpp4
-rw-r--r--kwin4/kwin4/kwin4proc.h2
-rw-r--r--kwin4/kwin4/kwin4ui.rc2
-rw-r--r--kwin4/kwin4/kwin4view.cpp12
-rw-r--r--kwin4/kwin4/main.cpp10
-rw-r--r--kwin4/kwin4/prefs.kcfgc2
-rw-r--r--kwin4/kwin4/scorewidget.cpp2
20 files changed, 68 insertions, 68 deletions
diff --git a/kwin4/Makefile.am b/kwin4/Makefile.am
index 98008b8e..bce84320 100644
--- a/kwin4/Makefile.am
+++ b/kwin4/Makefile.am
@@ -1,7 +1,7 @@
-SUBDIRS = kwin4 grafix
+SUBDIRS = twin4 grafix
AUTOMAKE_OPTIONS = foreign
-KDE_ICON = kwin4
+KDE_ICON = twin4
-xdg_apps_DATA = kwin4.desktop
+xdg_apps_DATA = twin4.desktop
diff --git a/kwin4/README b/kwin4/README
index 88cf297b..9f2dc592 100644
--- a/kwin4/README
+++ b/kwin4/README
@@ -12,10 +12,10 @@ GENERAL NOTE:
INSTALLATION:
# unpack the archive
-tar xzf kwin4-0.9.tar.gz
+tar xzf twin4-0.9.tar.gz
# build the package
-cd kwin4-0.9
+cd twin4-0.9
./configure
# or if KDE is in /opt/kde2
./configure --prefix=/opt/kde2
diff --git a/kwin4/grafix/Makefile.am b/kwin4/grafix/Makefile.am
index 6390e071..70c3bfeb 100644
--- a/kwin4/grafix/Makefile.am
+++ b/kwin4/grafix/Makefile.am
@@ -1,6 +1,6 @@
GRAFIXDIRS = default
-grafixdir = $(kde_datadir)/kwin4/grafix
+grafixdir = $(kde_datadir)/twin4/grafix
uninstall-local:
rm -rf $(DESTDIR)$(grafixdir)
diff --git a/kwin4/kwin4.desktop b/kwin4/kwin4.desktop
index 2071cc5a..c4a3edfa 100644
--- a/kwin4/kwin4.desktop
+++ b/kwin4/kwin4.desktop
@@ -85,10 +85,10 @@ GenericName[xh]=Indlela yokudlala umdlalo
GenericName[zh_CN]=策略游戏
GenericName[zh_TW]=策略遊戲
GenericName[zu]=Umdlalo wamaqhinga
-Exec=kwin4
-Icon=kwin4
+Exec=twin4
+Icon=twin4
MimeType=
Terminal=false
Type=Application
-DocPath=kwin4/index.html
+DocPath=twin4/index.html
Categories=Qt;KDE;Game;BoardGame;
diff --git a/kwin4/kwin4.kdelnk b/kwin4/kwin4.kdelnk
index c2703b9b..5e56dc47 100644
--- a/kwin4/kwin4.kdelnk
+++ b/kwin4/kwin4.kdelnk
@@ -1,10 +1,10 @@
# KDE Config File
[KDE Desktop Entry]
Type=Application
-Exec=kwin4 -caption "%c" %i %m
-Icon=kwin4.xpm
-MiniIcon=kwin4.xpm
-DocPath=kwin4/index.html
+Exec=twin4 -caption "%c" %i %m
+Icon=twin4.xpm
+MiniIcon=twin4.xpm
+DocPath=twin4/index.html
Comment=
Terminal=0
Name=Kwin4
diff --git a/kwin4/kwin4/AboutDlg.kdevdlg b/kwin4/kwin4/AboutDlg.kdevdlg
index dc87a8b2..08ad214a 100644
--- a/kwin4/kwin4/AboutDlg.kdevdlg
+++ b/kwin4/kwin4/AboutDlg.kdevdlg
@@ -5,7 +5,7 @@
//
data Information
{
- Filename="/home/martin/mgames/kwin4/kwin4/AboutDlg.kdevdlg"
+ Filename="/home/martin/mgames/twin4/twin4/AboutDlg.kdevdlg"
KDevelopVersion="1.1"
DlgEditVersion="0.1alpha"
LastChanged="Mon Apr 17 09:29:55 2000"
diff --git a/kwin4/kwin4/Makefile.am b/kwin4/kwin4/Makefile.am
index 5c64fba4..eda2b55f 100644
--- a/kwin4/kwin4/Makefile.am
+++ b/kwin4/kwin4/Makefile.am
@@ -1,28 +1,28 @@
-bin_PROGRAMS = kwin4 kwin4proc
-kwin4_SOURCES = main.cpp kwin4.cpp kwin4view.cpp kwin4doc.cpp \
- kwin4player.cpp kspritecache.cpp \
+bin_PROGRAMS = twin4 twin4proc
+twin4_SOURCES = main.cpp twin4.cpp twin4view.cpp twin4doc.cpp \
+ twin4player.cpp kspritecache.cpp \
scorewidget.cpp prefs.kcfgc settings.ui statistics.ui statuswidget.ui
-kwin4_LDADD = $(LIB_KFILE) $(LIB_TDEGAMES)
-kwin4_DEPENDENCIES = $(LIB_TDEGAMES_DEP)
+twin4_LDADD = $(LIB_KFILE) $(LIB_TDEGAMES)
+twin4_DEPENDENCIES = $(LIB_TDEGAMES_DEP)
-kwin4proc_SOURCES = kwin4proc.cpp
-kwin4proc_LDADD = $(LIB_KFILE) $(LIB_TDEGAMES)
-kwin4proc_DEPENDENCIES = $(LIB_TDEGAMES_DEP)
+twin4proc_SOURCES = twin4proc.cpp
+twin4proc_LDADD = $(LIB_KFILE) $(LIB_TDEGAMES)
+twin4proc_DEPENDENCIES = $(LIB_TDEGAMES_DEP)
INCLUDES = -I$(top_srcdir)/libtdegames -I$(top_srcdir)/libtdegames/kgame $(all_includes)
METASOURCES = AUTO
-rcdir = $(kde_datadir)/kwin4
-rc_DATA = kwin4ui.rc
+rcdir = $(kde_datadir)/twin4
+rc_DATA = twin4ui.rc
-kwin4_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
-kwin4proc_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
+twin4_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
+twin4proc_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
-kde_kcfg_DATA = kwin4.kcfg
+kde_kcfg_DATA = twin4.kcfg
messages: rc.cpp
- $(XGETTEXT) *.cpp -o $(podir)/kwin4.pot
+ $(XGETTEXT) *.cpp -o $(podir)/twin4.pot
diff --git a/kwin4/kwin4/kwin4.cpp b/kwin4/kwin4/kwin4.cpp
index 98bfdb3d..8500c2e6 100644
--- a/kwin4/kwin4/kwin4.cpp
+++ b/kwin4/kwin4/kwin4.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- kwin4 - Boardgame for KDE
+ twin4 - Boardgame for KDE
-------------------
begin : Sun Mar 26 12:50:12 CEST 2000
copyright : (C) |1995-2000 by Martin Heni
@@ -48,9 +48,9 @@
#include <dialogs/kgamedebugdialog.h>
// application specific includes
-#include "kwin4.h"
-#include "kwin4view.h"
-#include "kwin4doc.h"
+#include "twin4.h"
+#include "twin4view.h"
+#include "twin4doc.h"
#include "prefs.h"
#include "settings.h"
#include "statistics.h"
@@ -290,7 +290,7 @@ void Kwin4App::changeAction(const char *action, bool enable){
*/
void Kwin4App::saveProperties(KConfig *cfg)
{
- TQString tempfile = kapp->tempSaveName(TQDir::currentDirPath()+"kwin4");
+ TQString tempfile = kapp->tempSaveName(TQDir::currentDirPath()+"twin4");
cfg->writePathEntry("filename", tempfile );
doc->save(tempfile);
}
@@ -310,9 +310,9 @@ void Kwin4App::readProperties(KConfig* cfg)
*/
void Kwin4App::slotOpenGame()
{
- TQString dir(":<kwin4>");
+ TQString dir(":<twin4>");
TQString filter("*");
- TQString file("/tmp/kwin.save");
+ TQString file("/tmp/twin.save");
if (global_debug < 10)
file=KFileDialog::getOpenFileName(dir,filter,this);
doc->load(file,true);
@@ -324,9 +324,9 @@ void Kwin4App::slotOpenGame()
*/
void Kwin4App::slotSaveGame()
{
- TQString dir(":<kwin4>");
+ TQString dir(":<twin4>");
TQString filter("*");
- TQString file("/tmp/kwin.save");
+ TQString file("/tmp/twin.save");
if (global_debug < 10)
file=KFileDialog::getSaveFileName(dir,filter,this);
doc->save(file);
@@ -536,7 +536,7 @@ void Kwin4App::slotInitNetwork()
KGameDialog dlg(doc, 0, i18n("Network Configuration"), this,
KGameDialog::NetworkConfig, 20000, true);
dlg.networkConfig()->setDefaultNetworkInfo(host, port);
- dlg.networkConfig()->setDiscoveryInfo("_kwin4._tcp",Prefs::gamename());
+ dlg.networkConfig()->setDiscoveryInfo("_twin4._tcp",Prefs::gamename());
TQVBox *box=dlg.configPage(KGameDialog::NetworkConfig);
TQVBoxLayout *l=(TQVBoxLayout *)(box->tqlayout());
@@ -623,4 +623,4 @@ void Kwin4App::showSettings(){
dialog->show();
}
-#include "kwin4.moc"
+#include "twin4.moc"
diff --git a/kwin4/kwin4/kwin4.h b/kwin4/kwin4/kwin4.h
index d5a132ad..20141076 100644
--- a/kwin4/kwin4/kwin4.h
+++ b/kwin4/kwin4/kwin4.h
@@ -20,7 +20,7 @@
#include <kmainwindow.h>
#include <kdialogbase.h>
-#include "kwin4doc.h"
+#include "twin4doc.h"
#include <kdemacros.h>
class Kwin4Player;
class KGameChat;
diff --git a/kwin4/kwin4/kwin4.kcfg b/kwin4/kwin4/kwin4.kcfg
index 2ac852e2..c16e27c5 100644
--- a/kwin4/kwin4/kwin4.kcfg
+++ b/kwin4/kwin4/kwin4.kcfg
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
- <kcfgfile name="kwin4rc"/>
+ <kcfgfile name="twin4rc"/>
<group name="Parameter">
<entry name="port" type="Int">
<label>Network connection port</label>
diff --git a/kwin4/kwin4/kwin4doc.cpp b/kwin4/kwin4/kwin4doc.cpp
index 3cce2df6..303fd776 100644
--- a/kwin4/kwin4/kwin4doc.cpp
+++ b/kwin4/kwin4/kwin4doc.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- kwin4doc.cpp - Boardgame for KDE
+ twin4doc.cpp - Boardgame for KDE
-------------------
begin : Sun Mar 26 12:50:12 CEST 2000
copyright : (C) |1995-2000 by Martin Heni
@@ -15,7 +15,7 @@
* *
***************************************************************************/
-#include "kwin4doc.h"
+#include "twin4doc.h"
// include files for TQt
#include <tqdir.h>
@@ -31,7 +31,7 @@
// application specific includes
#include "kspritecache.h"
-#include "kwin4view.h"
+#include "twin4view.h"
#include "scorewidget.h"
#include "prefs.h"
#include "statuswidget.h"
@@ -781,14 +781,14 @@ TQString Kwin4Doc::QueryProcessName()
{
// First try a local dir override
TQDir dir;
- TQString filename=dir.path()+TQString("/kwin4/kwin4proc");
+ TQString filename=dir.path()+TQString("/twin4/twin4proc");
TQFile flocal(filename);
if (flocal.exists())
{
if (global_debug>1) kdDebug(12010) << " Found local process " << filename << endl;
return filename;
}
- TQString path=kapp->dirs()->findExe("kwin4proc");
+ TQString path=kapp->dirs()->findExe("twin4proc");
if (!path.isNull())
{
if (global_debug>1) kdDebug(12010) << " Found system process " << path << endl;
@@ -858,7 +858,7 @@ bool Kwin4Doc::Move(int x,int id)
int Kwin4Doc::checkGameOver(KPlayer *p)
{
if (global_debug>1)
- kdDebug(12010) <<"kwin4doc::checkGameOver::"<<p->userId()<<endl;
+ kdDebug(12010) <<"twin4doc::checkGameOver::"<<p->userId()<<endl;
return CheckGameOver(QueryLastcolumn(),QueryLastcolour());
}
@@ -1319,4 +1319,4 @@ void Kwin4Doc::newPlayersJoin(KGamePlayerList * /*oldList*/,KGamePlayerList *new
kdDebug(12010) << "newPlayersJoin: DONE"<<endl;
}
-#include "kwin4doc.moc"
+#include "twin4doc.moc"
diff --git a/kwin4/kwin4/kwin4doc.h b/kwin4/kwin4/kwin4doc.h
index d501918f..25be0c2f 100644
--- a/kwin4/kwin4/kwin4doc.h
+++ b/kwin4/kwin4/kwin4doc.h
@@ -22,7 +22,7 @@
#include <kgameio.h>
#include <kgamepropertyarray.h>
-#include "kwin4player.h"
+#include "twin4player.h"
class Kwin4View;
class TQCanvasItem;
diff --git a/kwin4/kwin4/kwin4player.cpp b/kwin4/kwin4/kwin4player.cpp
index 5c35d0c6..ca05ab5d 100644
--- a/kwin4/kwin4/kwin4player.cpp
+++ b/kwin4/kwin4/kwin4player.cpp
@@ -21,7 +21,7 @@
#include <kconfig.h>
#include <kgamepropertyhandler.h>
-#include "kwin4player.h"
+#include "twin4player.h"
#include "statuswidget.h"
Kwin4Player::Kwin4Player() : KPlayer(), sWidget(0)
@@ -154,7 +154,7 @@ void Kwin4Player::resetStats(bool all)
}
}
-#include "kwin4player.moc"
+#include "twin4player.moc"
diff --git a/kwin4/kwin4/kwin4proc.cpp b/kwin4/kwin4/kwin4proc.cpp
index c69071c1..4b798a62 100644
--- a/kwin4/kwin4/kwin4proc.cpp
+++ b/kwin4/kwin4/kwin4proc.cpp
@@ -15,7 +15,7 @@
* *
***************************************************************************/
-#include "kwin4proc.h"
+#include "twin4proc.h"
#include <stdio.h>
#include <stdlib.h>
@@ -429,4 +429,4 @@ int main(int argc ,char * argv[])
fprintf(stderr,"nach exec\n");
return 1;
}
-#include "kwin4proc.moc"
+#include "twin4proc.moc"
diff --git a/kwin4/kwin4/kwin4proc.h b/kwin4/kwin4/kwin4proc.h
index 0efea7bf..6d988c06 100644
--- a/kwin4/kwin4/kwin4proc.h
+++ b/kwin4/kwin4/kwin4proc.h
@@ -20,7 +20,7 @@
#include <kgameprocess.h>
-// TODO match up with what is in kwin4doc.h
+// TODO match up with what is in twin4doc.h
typedef enum e_farbe {Niemand=0,Gelb=1,Rot=2,Tip=3,Rand=4} Farbe;
typedef char FARBE;
diff --git a/kwin4/kwin4/kwin4ui.rc b/kwin4/kwin4/kwin4ui.rc
index 1d31536a..0024576f 100644
--- a/kwin4/kwin4/kwin4ui.rc
+++ b/kwin4/kwin4/kwin4ui.rc
@@ -1,5 +1,5 @@
<!DOCTYPE kpartgui>
-<kpartgui name="kwin4" version="1">
+<kpartgui name="twin4" version="1">
<MenuBar>
<Menu name="game"><text>&amp;Game</text>
diff --git a/kwin4/kwin4/kwin4view.cpp b/kwin4/kwin4/kwin4view.cpp
index e526539e..c425f90f 100644
--- a/kwin4/kwin4/kwin4view.cpp
+++ b/kwin4/kwin4/kwin4view.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- kwin4view.cpp - View of the kwin4 program
+ twin4view.cpp - View of the twin4 program
-------------------
begin : Sun Mar 26 12:50:12 CEST 2000
copyright : (C) |1995-2000 by Martin Heni
@@ -15,7 +15,7 @@
* *
***************************************************************************/
-#include "kwin4view.h"
+#include "twin4view.h"
#include <stdio.h>
#include <math.h>
@@ -25,7 +25,7 @@
#include <kapplication.h>
#include <kstandarddirs.h>
-#include "kwin4doc.h"
+#include "twin4doc.h"
#include "scorewidget.h"
#include "statuswidget.h"
#include "kspritecache.h"
@@ -108,12 +108,12 @@ Kwin4View::Kwin4View(Kwin4Doc *theDoc, TQWidget *parent, const char *name)
// localise data file
- TQString file="kwin4/grafix/default/grafix.rc";
+ TQString file="twin4/grafix/default/grafix.rc";
TQString mGrafix=kapp->dirs()->findResourceDir("data",file);
if (mGrafix.isNull())
mGrafix="grafix/default/";
else
- mGrafix+="kwin4/grafix/default/";
+ mGrafix+="twin4/grafix/default/";
if (global_debug>3)
kdDebug(12010) << "Localised grafix dir " << mGrafix << endl;
@@ -726,4 +726,4 @@ void Kwin4View::resizeEvent(TQResizeEvent *e)
if (mCanvas) mCanvas->resize(e->size().width(),e->size().height());
}
-#include "kwin4view.moc"
+#include "twin4view.moc"
diff --git a/kwin4/kwin4/main.cpp b/kwin4/kwin4/main.cpp
index 32d2073d..fbdebf3c 100644
--- a/kwin4/kwin4/main.cpp
+++ b/kwin4/kwin4/main.cpp
@@ -20,7 +20,7 @@
#include <kdebug.h>
#include <kaboutdata.h>
-#include "kwin4.h"
+#include "twin4.h"
#define KWIN4_VERSION "v1.10"
@@ -36,7 +36,7 @@ int global_debug;
int main(int argc, char *argv[])
{
global_debug=0;
- KAboutData aboutData( "kwin4", I18N_NOOP("KWin4"),
+ KAboutData aboutData( "twin4", I18N_NOOP("KWin4"),
KWIN4_VERSION,
I18N_NOOP("KWin4: Two player network game"),
KAboutData::License_GPL,
@@ -65,9 +65,9 @@ int main(int argc, char *argv[])
}
else
{
- Kwin4App *kwin4 = new Kwin4App();
- app.setMainWidget(kwin4);
- kwin4->show();
+ Kwin4App *twin4 = new Kwin4App();
+ app.setMainWidget(twin4);
+ twin4->show();
}
return app.exec();
diff --git a/kwin4/kwin4/prefs.kcfgc b/kwin4/kwin4/prefs.kcfgc
index 6abe752a..ad918c2a 100644
--- a/kwin4/kwin4/prefs.kcfgc
+++ b/kwin4/kwin4/prefs.kcfgc
@@ -1,5 +1,5 @@
# Code generation options for kconfig_compiler
-File=kwin4.kcfg
+File=twin4.kcfg
#IncludeFiles=defines.h
ClassName=Prefs
Singleton=true
diff --git a/kwin4/kwin4/scorewidget.cpp b/kwin4/kwin4/scorewidget.cpp
index d9c99225..7a070322 100644
--- a/kwin4/kwin4/scorewidget.cpp
+++ b/kwin4/kwin4/scorewidget.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- kwin4 program
+ twin4 program
-------------------
begin : Sun Mar 26 12:50:12 CEST 2000
copyright : (C) |1995-2000 by Martin Heni