Diffstat (limited to 'noncore/games/kcheckers/kcheckers.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kcheckers/kcheckers.cpp | 5 |
1 files changed, 3 insertions, 2 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 | |||
@@ -33,27 +33,28 @@ | |||
33 | #include "pics/king_black.xpm" | 33 | #include "pics/king_black.xpm" |
34 | #include "pics/king_white.xpm" | 34 | #include "pics/king_white.xpm" |
35 | #include "pics/contexthelp.xpm" | 35 | #include "pics/contexthelp.xpm" |
36 | 36 | ||
37 | 37 | ||
38 | QString KCheckers::enNumeration="1 2 3 4 5 6 7 8 9 1011121314151617181920212223242526272829303132"; | 38 | QString KCheckers::enNumeration="1 2 3 4 5 6 7 8 9 1011121314151617181920212223242526272829303132"; |
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 | ||
54 | gameMenu=new QPopupMenu; | 55 | gameMenu=new QPopupMenu; |
55 | CHECK_PTR(gameMenu); | 56 | CHECK_PTR(gameMenu); |
56 | 57 | ||
57 | gameMenu->insertItem(QPixmap(logo_xpm),tr("&New"),this,SLOT(newGame()),CTRL+Key_N); | 58 | gameMenu->insertItem(QPixmap(logo_xpm),tr("&New"),this,SLOT(newGame()),CTRL+Key_N); |
58 | gameMenu->insertSeparator(); | 59 | gameMenu->insertSeparator(); |
59 | undoID=gameMenu->insertItem(QPixmap(undo_xpm),tr("&Undo Move"),this,SLOT(undoMove()),CTRL+Key_Z); | 60 | undoID=gameMenu->insertItem(QPixmap(undo_xpm),tr("&Undo Move"),this,SLOT(undoMove()),CTRL+Key_Z); |