summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/backgammon.h
authorwaspe <waspe>2003-05-16 16:34:55 (UTC)
committer waspe <waspe>2003-05-16 16:34:55 (UTC)
commit11b6ce5ac500dce757ccdd0a5f5b5ecd7fb866c8 (patch) (unidiff)
tree3013dbafcb4e1f919e104204d1288f0309da5641 /noncore/games/backgammon/backgammon.h
parent75f1e9815410e75a6f9ae76d8db716c0c315ea45 (diff)
downloadopie-11b6ce5ac500dce757ccdd0a5f5b5ecd7fb866c8.zip
opie-11b6ce5ac500dce757ccdd0a5f5b5ecd7fb866c8.tar.gz
opie-11b6ce5ac500dce757ccdd0a5f5b5ecd7fb866c8.tar.bz2
*** empty log message ***
Diffstat (limited to 'noncore/games/backgammon/backgammon.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/backgammon/backgammon.h32
1 files changed, 9 insertions, 23 deletions
diff --git a/noncore/games/backgammon/backgammon.h b/noncore/games/backgammon/backgammon.h
index 40dbaba..e3276f1 100644
--- a/noncore/games/backgammon/backgammon.h
+++ b/noncore/games/backgammon/backgammon.h
@@ -3,4 +3,4 @@
3 3
4#include "backgammonview.h"
4#include "canvasimageitem.h" 5#include "canvasimageitem.h"
5#include "definition.h"
6//#include "rulesdialog.h" 6//#include "rulesdialog.h"
@@ -8,21 +8,11 @@
8 8
9#include <qcanvas.h> 9
10#include <qlabel.h> 10#include <qlabel.h>
11#include <qlineedit.h> 11#include <qmainwindow.h>
12#include <qwidget.h> 12//#include <qwidget.h>
13 13
14 14
15class BackGammonView : public QCanvasView
16{
17 Q_OBJECT
18public:
19 BackGammonView(QCanvas* canvas,QWidget* parent);
20 ~BackGammonView();
21signals:
22 void mouse(int,int);
23private:
24 void contentsMousePressEvent(QMouseEvent* e);
25};
26 15
27class BackGammon : public QWidget 16
17class BackGammon : public QMainWindow
28{ 18{
@@ -31,7 +21,4 @@ private:
31 //GUI 21 //GUI
32 //is the style not qte ?
33 bool non_qte;
34 int offset;
35 //the "status" bar 22 //the "status" bar
36 QLineEdit* inputfield; 23 QLabel* message;
37 //the main drawing area 24 //the main drawing area
@@ -52,6 +39,6 @@ private:
52 CanvasImageItem* nomove_marker; 39 CanvasImageItem* nomove_marker;
53 40
54 QCanvasRectangle* marker_current; 41 QCanvasRectangle* marker_current;
55 QCanvasRectangle* marker_next[4]; 42 QCanvasRectangle* marker_next[4];
56 QLabel* message; 43
57 //ENGINE 44 //ENGINE
@@ -115,3 +102,2 @@ private slots:
115 void setrules(); 102 void setrules();
116 void displaySettings();
117 void mouse(int x,int y); 103 void mouse(int x,int y);