-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,64 +1,64 @@ | |||
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; |
49 | QListBox *keymaps; | 49 | QListBox *keymaps; |
50 | QPushButton *add_button; | 50 | QPushButton *add_button; |
51 | QPushButton *remove_button; | 51 | QPushButton *remove_button; |
52 | 52 | ||
53 | QStringList default_maps; // the maps in your share/multikey/ dir | 53 | QStringList default_maps; // the maps in your share/multikey/ dir |
54 | QStringList custom_maps; // maps you added with the 'add' button | 54 | QStringList custom_maps; // maps you added with the 'add' button |
55 | QStringList sw_maps; // maps, which used in keyboard switch rotation ring | 55 | QStringList sw_maps; // maps, which used in keyboard switch rotation ring |
56 | 56 | ||
57 | /* color buttons */ | 57 | /* color buttons */ |
58 | QPushButton *keycolor_button; | 58 | QPushButton *keycolor_button; |
59 | QPushButton *keycolor_pressed_button; | 59 | QPushButton *keycolor_pressed_button; |
60 | QPushButton *keycolor_lines_button; | 60 | QPushButton *keycolor_lines_button; |
61 | QPushButton *textcolor_button; | 61 | QPushButton *textcolor_button; |
62 | 62 | ||
63 | }; | 63 | }; |
64 | 64 | ||
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 | |||
@@ -37,68 +37,68 @@ public: | |||
37 | State state() const { return stat; } | 37 | State state() const { return stat; } |
38 | 38 | ||
39 | void readConfig(Config&); | 39 | void readConfig(Config&); |
40 | void writeConfig(Config&) const; | 40 | void writeConfig(Config&) const; |
41 | 41 | ||
42 | int level() const { return lev; } | 42 | int level() const { return lev; } |
43 | 43 | ||
44 | void setAvailableRect( const QRect & ); | 44 | void setAvailableRect( const QRect & ); |
45 | 45 | ||
46 | QSize sizeHint() const; | 46 | QSize sizeHint() const; |
47 | 47 | ||
48 | public slots: | 48 | public slots: |
49 | void setup( int level ); | 49 | void setup( int level ); |
50 | 50 | ||
51 | void showMines(); | 51 | void showMines(); |
52 | 52 | ||
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 |