summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/notes/editwindow.h2
-rw-r--r--inputmethods/multikey/configdlg.h2
-rw-r--r--noncore/games/minesweep/minefield.h4
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
9class editWindowWidget : public QDialog 9class 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,65 +1,65 @@
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
10class ConfigDlg : public QDialog 10class ConfigDlg : public QDialog
11{ 11{
12 Q_OBJECT 12 Q_OBJECT
13 13
14public: 14public:
15 ConfigDlg (); 15 ConfigDlg ();
16 static QStringList ConfigDlg::loadSw(); 16 static QStringList loadSw();
17 17
18signals: 18signals:
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
27protected: 27protected:
28 virtual void accept(); 28 virtual void accept();
29 29
30protected slots: 30protected slots:
31 void moveSelectedUp(); 31 void moveSelectedUp();
32 void moveSelectedDown(); 32 void moveSelectedDown();
33 33
34private slots: 34private 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
46private: 46private:
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
65#endif 65#endif
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
@@ -1,104 +1,104 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef MINEFIELD_H 20#ifndef MINEFIELD_H
21#define MINEFIELD_H 21#define MINEFIELD_H
22 22
23#include <qscrollview.h> 23#include <qscrollview.h>
24 24
25class Mine; 25class Mine;
26class Config; 26class Config;
27 27
28class MineField : public QScrollView 28class MineField : public QScrollView
29{ 29{
30 Q_OBJECT 30 Q_OBJECT
31public: 31public:
32 MineField( QWidget* parent = 0, const char* name = 0 ); 32 MineField( QWidget* parent = 0, const char* name = 0 );
33 ~MineField(); 33 ~MineField();
34 34
35 enum State { Waiting, Playing, GameOver }; 35 enum State { Waiting, Playing, GameOver };
36 36
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
48public slots: 48public slots:
49 void setup( int level ); 49 void setup( int level );
50 50
51 void showMines(); 51 void showMines();
52 52
53signals: 53signals:
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
58protected: 58protected:
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
75protected slots: 75protected 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
80private: 80private:
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