Diffstat (limited to 'noncore/apps/opie-sheet/textdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/textdlg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/textdlg.h b/noncore/apps/opie-sheet/textdlg.h index f948228..78ef580 100644 --- a/noncore/apps/opie-sheet/textdlg.h +++ b/noncore/apps/opie-sheet/textdlg.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 TEXTDLG_H | 15 | #ifndef TEXTDLG_H |
2 | #define TEXTDLG_H | 16 | #define TEXTDLG_H |
3 | 17 | ||
4 | #include <qdialog.h> | 18 | #include <qdialog.h> |
5 | #include <qlabel.h> | 19 | #include <qlabel.h> |
6 | #include <qlineedit.h> | 20 | #include <qlineedit.h> |
7 | 21 | ||
8 | class TextDialog: public QDialog | 22 | class TextDialog: 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 | QLineEdit *edit; | 28 | QLineEdit *edit; |
15 | 29 | ||
16 | public: | 30 | public: |
17 | TextDialog(QWidget *parent=0); | 31 | TextDialog(QWidget *parent=0); |
18 | ~TextDialog(); | 32 | ~TextDialog(); |
19 | 33 | ||
20 | int exec(const QString &caption, const QString &text, const QString &value=""); | 34 | int exec(const QString &caption, const QString &text, const QString &value=""); |
21 | QString getValue(); | 35 | QString getValue(); |
22 | }; | 36 | }; |
23 | 37 | ||
24 | #endif | 38 | #endif |