Diffstat (limited to 'noncore/apps/opie-sheet/finddlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/finddlg.h | 59 |
1 files changed, 40 insertions, 19 deletions
diff --git a/noncore/apps/opie-sheet/finddlg.h b/noncore/apps/opie-sheet/finddlg.h index 1af2da5..b456f21 100644 --- a/noncore/apps/opie-sheet/finddlg.h +++ b/noncore/apps/opie-sheet/finddlg.h | |||
@@ -1,49 +1,70 @@ | |||
1 | /*************************************************************************** | 1 | /* |
2 | * * | 2 | =. This file is part of the Opie Project |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> |
4 | * it under the terms of the GNU General Public License as published by * | 4 | .>+-= |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | _;:, .> :=|. This program is free software; you can |
6 | * (at your option) any later version. * | 6 | .> <`_, > . <= redistribute it and/or modify it under |
7 | * * | 7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
8 | ***************************************************************************/ | 8 | .="- .-=="i, .._ License as published by the Free Software |
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This program is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
9 | 28 | ||
10 | /* | 29 | /* |
11 | * Opie Sheet (formerly Sheet/Qt) | 30 | * Opie Sheet (formerly Sheet/Qt) |
12 | * by Serdar Ozler <sozler@sitebest.com> | 31 | * by Serdar Ozler <sozler@sitebest.com> |
13 | */ | 32 | */ |
14 | 33 | ||
15 | #ifndef FINDDLG_H | 34 | #ifndef FINDDLG_H |
16 | #define FINDDLG_H | 35 | #define FINDDLG_H |
17 | 36 | ||
37 | #include "sheet.h" | ||
38 | |||
39 | /* QT */ | ||
18 | #include <qdialog.h> | 40 | #include <qdialog.h> |
19 | #include <qtabwidget.h> | 41 | #include <qtabwidget.h> |
20 | #include <qlayout.h> | 42 | #include <qlayout.h> |
21 | #include <qlineedit.h> | 43 | #include <qlineedit.h> |
22 | #include <qcheckbox.h> | 44 | #include <qcheckbox.h> |
23 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
24 | #include <qvbuttongroup.h> | 46 | #include <qvbuttongroup.h> |
25 | #include "sheet.h" | ||
26 | 47 | ||
27 | class FindDialog: public QDialog | 48 | class FindDialog: public QDialog |
28 | { | 49 | { |
29 | Q_OBJECT | 50 | Q_OBJECT |
30 | 51 | ||
31 | // QT objects | 52 | // QT objects |
32 | QBoxLayout *box; | 53 | QBoxLayout *box; |
33 | QTabWidget *tabs; | 54 | QTabWidget *tabs; |
34 | QWidget *widgetFind, *widgetOptions; | 55 | QWidget *widgetFind, *widgetOptions; |
35 | QCheckBox *checkCase, *checkSelection, *checkEntire; | 56 | QCheckBox *checkCase, *checkSelection, *checkEntire; |
36 | QLineEdit *editFind, *editReplace; | 57 | QLineEdit *editFind, *editReplace; |
37 | QVButtonGroup *groupType; | 58 | QVButtonGroup *groupType; |
38 | 59 | ||
39 | private slots: | 60 | private slots: |
40 | void typeChanged(int id); | 61 | void typeChanged(int id); |
41 | 62 | ||
42 | public: | 63 | public: |
43 | FindDialog(QWidget *parent=0); | 64 | FindDialog(QWidget *parent=0); |
44 | ~FindDialog(); | 65 | ~FindDialog(); |
45 | 66 | ||
46 | int exec(Sheet *s); | 67 | int exec(Sheet *s); |
47 | }; | 68 | }; |
48 | 69 | ||
49 | #endif | 70 | #endif |