File indexing completed on 2024-04-14 03:59:44
0001 /*************************************************************************** 0002 * Copyright (C) 2005 by Albert Astals Cid <aacid@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify * 0005 * it under the terms of the GNU General Public License as published by * 0006 * the Free Software Foundation; either version 2 of the License, or * 0007 * (at your option) any later version. * 0008 ***************************************************************************/ 0009 0010 #ifndef KIRIKI_H 0011 #define KIRIKI_H 0012 0013 #include <KXmlGuiWindow> 0014 0015 class QModelIndex; 0016 class QStyledItemDelegate; 0017 class QTreeView; 0018 0019 class QAction; 0020 class KToggleAction; 0021 0022 class lateralWidget; 0023 class scores; 0024 class itemDelegate; 0025 0026 class kiriki : public KXmlGuiWindow 0027 { 0028 Q_OBJECT 0029 public: 0030 kiriki(); 0031 0032 Q_SIGNALS: 0033 void demoStarted(bool t = true); 0034 0035 private Q_SLOTS: 0036 void newGame(); 0037 void demo(); 0038 void pressed(const QModelIndex &index); 0039 void showHighScores(); 0040 void showPreferences(); 0041 void print(); 0042 void playComputer(); 0043 void showHint(); 0044 void settingsChanged(); 0045 0046 private: 0047 void endGame(); 0048 void play(const QModelIndex &index); 0049 void play(int scoreRow); 0050 void nextTurn(); 0051 0052 QTreeView *m_scoresWidget; 0053 scores *m_scores; 0054 lateralWidget *m_lateral; 0055 KToggleAction *m_demoAction; 0056 QStyledItemDelegate *m_delegateHighlighted; 0057 int m_highlightedRowIndex; 0058 bool m_hintGiven; 0059 QAction * m_hintAction; 0060 int m_fontSize; 0061 itemDelegate *m_itemDelegate; 0062 int m_rowHeight; 0063 }; 0064 0065 #endif