-rw-r--r-- | core/pim/notes/editwindow.h | 2 | ||||
-rw-r--r-- | inputmethods/multikey/configdlg.h | 2 | ||||
-rw-r--r-- | noncore/games/minesweep/minefield.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/notes/editwindow.h b/core/pim/notes/editwindow.h index 57c5241..30c44d6 100644 --- a/core/pim/notes/editwindow.h +++ b/core/pim/notes/editwindow.h | |||
@@ -1,22 +1,22 @@ | |||
1 | #include <qdialog.h> | 1 | #include <qdialog.h> |
2 | #include <qlayout.h> | 2 | #include <qlayout.h> |
3 | #include <qmultilineedit.h> | 3 | #include <qmultilineedit.h> |
4 | #include <qmessagebox.h> | 4 | #include <qmessagebox.h> |
5 | #include <qtextstream.h> | 5 | #include <qtextstream.h> |
6 | #include <qfile.h> | 6 | #include <qfile.h> |
7 | #include <qfileinfo.h> | 7 | #include <qfileinfo.h> |
8 | 8 | ||
9 | class editWindowWidget : public QDialog | 9 | class editWindowWidget : public QDialog |
10 | { | 10 | { |
11 | Q_OBJECT | 11 | Q_OBJECT |
12 | 12 | ||
13 | public: | 13 | public: |
14 | editWindowWidget::editWindowWidget(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0); | 14 | editWindowWidget(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0); |
15 | ~editWindowWidget(); | 15 | ~editWindowWidget(); |
16 | void loadFile(QString fileName); | 16 | void loadFile(QString fileName); |
17 | void saveFile(QString fileName); | 17 | void saveFile(QString fileName); |
18 | 18 | ||
19 | private: | 19 | private: |
20 | QMultiLineEdit *editArea; | 20 | QMultiLineEdit *editArea; |
21 | 21 | ||
22 | }; | 22 | }; |
diff --git a/inputmethods/multikey/configdlg.h b/inputmethods/multikey/configdlg.h index 91ae429..8e96e9b 100644 --- a/inputmethods/multikey/configdlg.h +++ b/inputmethods/multikey/configdlg.h | |||
@@ -1,48 +1,48 @@ | |||
1 | #include <qpe/qpeapplication.h> | 1 | #include <qpe/qpeapplication.h> |
2 | #include <qdialog.h> | 2 | #include <qdialog.h> |
3 | #include <qcheckbox.h> | 3 | #include <qcheckbox.h> |
4 | #include <qlistbox.h> | 4 | #include <qlistbox.h> |
5 | #include <qpushbutton.h> | 5 | #include <qpushbutton.h> |
6 | 6 | ||
7 | #ifndef CONFIGDLG_H | 7 | #ifndef CONFIGDLG_H |
8 | #define CONFIGDLG_H | 8 | #define CONFIGDLG_H |
9 | 9 | ||
10 | class ConfigDlg : public QDialog | 10 | class ConfigDlg : public QDialog |
11 | { | 11 | { |
12 | Q_OBJECT | 12 | Q_OBJECT |
13 | 13 | ||
14 | public: | 14 | public: |
15 | ConfigDlg (); | 15 | ConfigDlg (); |
16 | static QStringList ConfigDlg::loadSw(); | 16 | static QStringList loadSw(); |
17 | 17 | ||
18 | signals: | 18 | signals: |
19 | void pickboardToggled(bool on_off); | 19 | void pickboardToggled(bool on_off); |
20 | void repeatToggled(bool on_off); | 20 | void repeatToggled(bool on_off); |
21 | void setMapToDefault(); | 21 | void setMapToDefault(); |
22 | void setMapToFile(QString map); | 22 | void setMapToFile(QString map); |
23 | void reloadKeyboard(); | 23 | void reloadKeyboard(); |
24 | void configDlgClosed(); | 24 | void configDlgClosed(); |
25 | void reloadSw(); | 25 | void reloadSw(); |
26 | 26 | ||
27 | protected: | 27 | protected: |
28 | virtual void accept(); | 28 | virtual void accept(); |
29 | 29 | ||
30 | protected slots: | 30 | protected slots: |
31 | void moveSelectedUp(); | 31 | void moveSelectedUp(); |
32 | void moveSelectedDown(); | 32 | void moveSelectedDown(); |
33 | 33 | ||
34 | private slots: | 34 | private slots: |
35 | void setMap(int index); | 35 | void setMap(int index); |
36 | void addMap(); | 36 | void addMap(); |
37 | void removeMap(); | 37 | void removeMap(); |
38 | virtual void closeEvent ( QCloseEvent * ); | 38 | virtual void closeEvent ( QCloseEvent * ); |
39 | 39 | ||
40 | // all those required slots for the color push buttons | 40 | // all those required slots for the color push buttons |
41 | void keyColorClicked(); | 41 | void keyColorClicked(); |
42 | void keyColorPressedClicked(); | 42 | void keyColorPressedClicked(); |
43 | void keyColorLinesClicked(); | 43 | void keyColorLinesClicked(); |
44 | void textColorClicked(); | 44 | void textColorClicked(); |
45 | 45 | ||
46 | private: | 46 | private: |
47 | QCheckBox *pick_button; | 47 | QCheckBox *pick_button; |
48 | QCheckBox *repeat_button; | 48 | QCheckBox *repeat_button; |
diff --git a/noncore/games/minesweep/minefield.h b/noncore/games/minesweep/minefield.h index e243d77..8d0f754 100644 --- a/noncore/games/minesweep/minefield.h +++ b/noncore/games/minesweep/minefield.h | |||
@@ -53,52 +53,52 @@ public slots: | |||
53 | signals: | 53 | signals: |
54 | void gameOver( bool won ); | 54 | void gameOver( bool won ); |
55 | void gameStarted(); | 55 | void gameStarted(); |
56 | void mineCount( int ); | 56 | void mineCount( int ); |
57 | 57 | ||
58 | protected: | 58 | protected: |
59 | 59 | ||
60 | void contentsMousePressEvent( QMouseEvent* ); | 60 | void contentsMousePressEvent( QMouseEvent* ); |
61 | void contentsMouseReleaseEvent( QMouseEvent* ); | 61 | void contentsMouseReleaseEvent( QMouseEvent* ); |
62 | void keyPressEvent( QKeyEvent* ); | 62 | void keyPressEvent( QKeyEvent* ); |
63 | void keyReleaseEvent( QKeyEvent* ); | 63 | void keyReleaseEvent( QKeyEvent* ); |
64 | void drawContents( QPainter * p, int clipx, int clipy, int clipw, int cliph ); | 64 | void drawContents( QPainter * p, int clipx, int clipy, int clipw, int cliph ); |
65 | 65 | ||
66 | int getHint( int row, int col ); | 66 | int getHint( int row, int col ); |
67 | void setHint( int r, int c ); | 67 | void setHint( int r, int c ); |
68 | void updateMine( int row, int col ); | 68 | void updateMine( int row, int col ); |
69 | void paletteChange( const QPalette & ); | 69 | void paletteChange( const QPalette & ); |
70 | void updateCell( int r, int c ); | 70 | void updateCell( int r, int c ); |
71 | bool onBoard( int r, int c ) const { return r >= 0 && r < numRows && c >= 0 && c < numCols; } | 71 | bool onBoard( int r, int c ) const { return r >= 0 && r < numRows && c >= 0 && c < numCols; } |
72 | Mine *mine( int row, int col ) { return onBoard(row, col ) ? mines[row+numCols*col] : 0; } | 72 | Mine *mine( int row, int col ) { return onBoard(row, col ) ? mines[row+numCols*col] : 0; } |
73 | const Mine *mine( int row, int col ) const { return onBoard(row, col ) ? mines[row+numCols*col] : 0; } | 73 | const Mine *mine( int row, int col ) const { return onBoard(row, col ) ? mines[row+numCols*col] : 0; } |
74 | 74 | ||
75 | protected slots: | 75 | protected slots: |
76 | void cellPressed( int row, int col ); | 76 | void cellPressed( int row, int col ); |
77 | void cellClicked( int row, int col ); | 77 | void cellClicked( int row, int col ); |
78 | void held(); | 78 | void held(); |
79 | 79 | ||
80 | private: | 80 | private: |
81 | int findCellSize(); | 81 | int findCellSize(); |
82 | void setCellSize( int ); | 82 | void setCellSize( int ); |
83 | 83 | ||
84 | State stat; | 84 | State stat; |
85 | void MineField::setState( State st ); | 85 | void setState( State st ); |
86 | void MineField::placeMines(); | 86 | void placeMines(); |
87 | enum FlagAction { NoAction, FlagOn, FlagNext }; | 87 | enum FlagAction { NoAction, FlagOn, FlagNext }; |
88 | FlagAction flagAction; | 88 | FlagAction flagAction; |
89 | bool ignoreClick; | 89 | bool ignoreClick; |
90 | int currRow; | 90 | int currRow; |
91 | int currCol; | 91 | int currCol; |
92 | int numRows, numCols; | 92 | int numRows, numCols; |
93 | 93 | ||
94 | int minecount; | 94 | int minecount; |
95 | int mineguess; | 95 | int mineguess; |
96 | int nonminecount; | 96 | int nonminecount; |
97 | int lev; | 97 | int lev; |
98 | QRect availableRect; | 98 | QRect availableRect; |
99 | int cellSize; | 99 | int cellSize; |
100 | QTimer *holdTimer; | 100 | QTimer *holdTimer; |
101 | Mine **mines; | 101 | Mine **mines; |
102 | }; | 102 | }; |
103 | 103 | ||
104 | #endif // MINEFIELD_H | 104 | #endif // MINEFIELD_H |