Diffstat (limited to 'noncore/apps/opie-sheet/numberdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/numberdlg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/numberdlg.h b/noncore/apps/opie-sheet/numberdlg.h index 46af1d0..81e3326 100644 --- a/noncore/apps/opie-sheet/numberdlg.h +++ b/noncore/apps/opie-sheet/numberdlg.h | |||
@@ -1,24 +1,38 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | |||
10 | /* | ||
11 | * Opie Sheet (formerly Sheet/Qt) | ||
12 | * by Serdar Ozler <sozler@sitebest.com> | ||
13 | */ | ||
14 | |||
1 | #ifndef NUMBERDLG_H | 15 | #ifndef NUMBERDLG_H |
2 | #define NUMBERDLG_H | 16 | #define NUMBERDLG_H |
3 | 17 | ||
4 | #include <qdialog.h> | 18 | #include <qdialog.h> |
5 | #include <qlabel.h> | 19 | #include <qlabel.h> |
6 | #include <qspinbox.h> | 20 | #include <qspinbox.h> |
7 | 21 | ||
8 | class NumberDialog: public QDialog | 22 | class NumberDialog: public QDialog |
9 | { | 23 | { |
10 | Q_OBJECT | 24 | Q_OBJECT |
11 | 25 | ||
12 | // QT objects | 26 | // QT objects |
13 | QLabel *label; | 27 | QLabel *label; |
14 | QSpinBox *edit; | 28 | QSpinBox *edit; |
15 | 29 | ||
16 | public: | 30 | public: |
17 | NumberDialog(QWidget *parent=0); | 31 | NumberDialog(QWidget *parent=0); |
18 | ~NumberDialog(); | 32 | ~NumberDialog(); |
19 | 33 | ||
20 | int exec(const QString &caption, const QString &text, int value=1, int min=1, int max=99, int step=1); | 34 | int exec(const QString &caption, const QString &text, int value=1, int min=1, int max=99, int step=1); |
21 | int getValue(); | 35 | int getValue(); |
22 | }; | 36 | }; |
23 | 37 | ||
24 | #endif | 38 | #endif |