-rw-r--r-- | noncore/games/kcheckers/kcheckers.cpp | 5 | ||||
-rw-r--r-- | noncore/games/kcheckers/kcheckers.h | 3 | ||||
-rw-r--r-- | noncore/games/kcheckers/kcheckers.pro | 5 | ||||
-rw-r--r-- | noncore/games/kcheckers/main.cpp | 12 | ||||
-rw-r--r-- | noncore/games/kcheckers/opie-kcheckers.control | 2 |
5 files changed, 10 insertions, 17 deletions
diff --git a/noncore/games/kcheckers/kcheckers.cpp b/noncore/games/kcheckers/kcheckers.cpp index c2eba0d..2eb37e5 100644 --- a/noncore/games/kcheckers/kcheckers.cpp +++ b/noncore/games/kcheckers/kcheckers.cpp | |||
@@ -39,15 +39,16 @@ QString KCheckers::enNumeration="1 2 3 4 5 6 7 8 9 10111213141516171819202122232 | |||
39 | QString KCheckers::ruNumeration="B8D8F8H8A7C7E7G7B6D6F6H6A5C5E5G5B4D4F4H4A3C3E3G3B2D2F2H2A1C1E1G1"; | 39 | QString KCheckers::ruNumeration="B8D8F8H8A7C7E7G7B6D6F6H6A5C5E5G5B4D4F4H4A3C3E3G3B2D2F2H2A1C1E1G1"; |
40 | 40 | ||
41 | const int KCheckers::t[]={6,7,8,9,11,12,13,14,17,18,19,20,22,23, | 41 | const int KCheckers::t[]={6,7,8,9,11,12,13,14,17,18,19,20,22,23, |
42 | 24,25,28,29,30,31,33,34,35,36,39,40,41,42,44,45,46,47}; | 42 | 24,25,28,29,30,31,33,34,35,36,39,40,41,42,44,45,46,47}; |
43 | 43 | ||
44 | 44 | ||
45 | KCheckers::KCheckers():QMainWindow(0,0,WStyle_DialogBorder) | 45 | KCheckers::KCheckers(QWidget *p, const char* n, WFlags ) |
46 | :QMainWindow(p,n,WStyle_DialogBorder) | ||
46 | { | 47 | { |
47 | setCaption("KCheckers"); | 48 | setCaption(tr("KCheckers") ); |
48 | setIcon(QPixmap(biglogo_xpm)); | 49 | setIcon(QPixmap(biglogo_xpm)); |
49 | 50 | ||
50 | setToolBarsMovable(false); | 51 | setToolBarsMovable(false); |
51 | 52 | ||
52 | // Make a menubar | 53 | // Make a menubar |
53 | 54 | ||
diff --git a/noncore/games/kcheckers/kcheckers.h b/noncore/games/kcheckers/kcheckers.h index ccf5bae..bd4afc7 100644 --- a/noncore/games/kcheckers/kcheckers.h +++ b/noncore/games/kcheckers/kcheckers.h | |||
@@ -26,13 +26,14 @@ class QToolButton; | |||
26 | 26 | ||
27 | 27 | ||
28 | class KCheckers:public QMainWindow | 28 | class KCheckers:public QMainWindow |
29 | { | 29 | { |
30 | Q_OBJECT | 30 | Q_OBJECT |
31 | public: | 31 | public: |
32 | KCheckers(); | 32 | static QString appName() { return QString::fromLatin1("kcheckers"); } |
33 | KCheckers(QWidget *parent, const char* name, WFlags fl); | ||
33 | 34 | ||
34 | protected: | 35 | protected: |
35 | void closeEvent(QCloseEvent*); | 36 | void closeEvent(QCloseEvent*); |
36 | 37 | ||
37 | private slots: | 38 | private slots: |
38 | 39 | ||
diff --git a/noncore/games/kcheckers/kcheckers.pro b/noncore/games/kcheckers/kcheckers.pro index a23e83a..0d417bf 100644 --- a/noncore/games/kcheckers/kcheckers.pro +++ b/noncore/games/kcheckers/kcheckers.pro | |||
@@ -1,8 +1,7 @@ | |||
1 | TEMPLATE= app | 1 | CONFIG = qt warn_on release quick-app |
2 | CONFIG = qt warn_on release | ||
3 | HEADERS = checkers.h \ | 2 | HEADERS = checkers.h \ |
4 | echeckers.h \ | 3 | echeckers.h \ |
5 | field.h \ | 4 | field.h \ |
6 | kcheckers.h \ | 5 | kcheckers.h \ |
7 | rcheckers.h | 6 | rcheckers.h |
8 | SOURCES = checkers.cpp \ | 7 | SOURCES = checkers.cpp \ |
@@ -11,10 +10,10 @@ SOURCES = checkers.cpp \ | |||
11 | kcheckers.cpp \ | 10 | kcheckers.cpp \ |
12 | main.cpp \ | 11 | main.cpp \ |
13 | rcheckers.cpp | 12 | rcheckers.cpp |
14 | INTERFACES= | 13 | INTERFACES= |
15 | INCLUDEPATH+= $(OPIEDIR)/include | 14 | INCLUDEPATH+= $(OPIEDIR)/include |
16 | LIBS += -lqpe | 15 | LIBS += -lqpe |
17 | DESTDIR = $(OPIEDIR)/bin | ||
18 | TARGET = kcheckers | 16 | TARGET = kcheckers |
19 | 17 | ||
18 | |||
20 | include ( $(OPIEDIR)/include.pro ) | 19 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/games/kcheckers/main.cpp b/noncore/games/kcheckers/main.cpp index b8dd620..6ac570a 100644 --- a/noncore/games/kcheckers/main.cpp +++ b/noncore/games/kcheckers/main.cpp | |||
@@ -1,18 +1,10 @@ | |||
1 | 1 | ||
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <qfont.h> | 3 | #include <qfont.h> |
4 | 4 | ||
5 | #include "kcheckers.h" | 5 | #include "kcheckers.h" |
6 | #include <opie/oapplicationfactory.h> | ||
6 | 7 | ||
8 | OPIE_EXPORT_APP( OApplicationFactory<KCheckers> ) | ||
7 | 9 | ||
8 | int main(int argc, char *argv[]) | ||
9 | { | ||
10 | QPEApplication app(argc,argv); | ||
11 | |||
12 | KCheckers kcheckers; | ||
13 | app.setMainWidget(&kcheckers); | ||
14 | kcheckers.showMaximized(); | ||
15 | |||
16 | return app.exec(); | ||
17 | } | ||
18 | 10 | ||
diff --git a/noncore/games/kcheckers/opie-kcheckers.control b/noncore/games/kcheckers/opie-kcheckers.control index e228209..71f83af 100644 --- a/noncore/games/kcheckers/opie-kcheckers.control +++ b/noncore/games/kcheckers/opie-kcheckers.control | |||
@@ -1,8 +1,8 @@ | |||
1 | Package: opie-kcheckers | 1 | Package: opie-kcheckers |
2 | Files: bin/kcheckers apps/Games/kcheckers.desktop pics/kcheckers | 2 | Files: plugins/application/libkcheckers.so* bin/kcheckers apps/Games/kcheckers.desktop pics/kcheckers |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: opie/games | 4 | Section: opie/games |
5 | Maintainer: leseb <prudhomme@laposte.net> | 5 | Maintainer: leseb <prudhomme@laposte.net> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 0.3-$SUB_VERSION | 7 | Version: 0.3-$SUB_VERSION |
8 | Depends: task-opie-minimal | 8 | Depends: task-opie-minimal |