2 kmahjongg, the classic mahjongg game for KDE project
4 Copyright (C) 1997 Mathias Mueller <in5y158@public.uni-hamburg.de>
5 Copyright (C) 2006-2007 Mauricio Piacentini <mauricio@tabuleiro.com>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #include <kxmlguiwindow.h>
29 #include "kmahjonggtileset.h"
30 #include "kmahjonggbackground.h"
31 #include "BoardLayout.h"
32 #include "boardwidget.h"
40 @short Class Description
44 class KMahjongg
: public KXmlGuiWindow
50 * Constructor @param parent */
51 explicit KMahjongg( QWidget
* parent
= 0 );
53 * Default Destructor */
58 * Slot Description @param num */
59 void startNewGame( int num
= -1 );
65 void showStatusText ( const QString
&msg
, long board
);
72 void showTileNumber( int iMaximum
, int iCurrent
, int iLeft
);
74 * Slot Description @param bActive */
75 void demoModeChanged( bool bActive
);
81 void gameOver( unsigned short removed
, unsigned short cheats
);
83 * Load BoardLayout from file @param file*/
84 // void loadBoardLayout(const QString &file);
87 void setDisplayedWidth();
98 void startNewNumeric();
106 void displayTime(const QString
& timestring
);
107 void showHighscores();
108 //void slotBoardEditor();
112 * Method Description */
115 * Method Description */
116 void setupStatusBar();
119 // number of seconds since the start of the game
120 unsigned long gameElapsedTime
;
123 QLabel
*gameNumLabel
;
124 QLabel
*tilesLeftLabel
;
126 QLabel
*gameTimerLabel
;
128 KGameClock
*gameTimer
;
130 bool bDemoModeActive
;
132 KToggleAction
*pauseAction
, *demoAction
;
133 QAction
*undoAction
, *redoAction
;