author | groucho <groucho> | 2003-05-07 09:20:31 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:20:31 (UTC) |
commit | 6fc02cae4bd1fe3478e6e34575f481236ce5ede8 (patch) (unidiff) | |
tree | 1ef986f52464733a7ea7f58c03d25d7e3524f542 /noncore/apps/opie-reader/CloseDialog.h | |
parent | 118d03d815a7615b9c53363218a7ac45b3f4c514 (diff) | |
download | opie-6fc02cae4bd1fe3478e6e34575f481236ce5ede8.zip opie-6fc02cae4bd1fe3478e6e34575f481236ce5ede8.tar.gz opie-6fc02cae4bd1fe3478e6e34575f481236ce5ede8.tar.bz2 |
Hopefully, everything is in place now
Diffstat (limited to 'noncore/apps/opie-reader/CloseDialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/CloseDialog.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/CloseDialog.h b/noncore/apps/opie-reader/CloseDialog.h new file mode 100644 index 0000000..62e6423 --- a/dev/null +++ b/noncore/apps/opie-reader/CloseDialog.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form interface generated from reading ui file 'Prefs.ui' | ||
3 | ** | ||
4 | ** Created: Tue Feb 11 23:53:32 2003 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #ifndef __CLOSEDIALOG_H | ||
10 | #define __CLOSEDIALOG_H | ||
11 | |||
12 | #include "useqpe.h" | ||
13 | #include <qvariant.h> | ||
14 | #include <qwidget.h> | ||
15 | #include <qtabdialog.h> | ||
16 | #include <qtabwidget.h> | ||
17 | #include <qspinbox.h> | ||
18 | #include <qcheckbox.h> | ||
19 | #include <qcombobox.h> | ||
20 | #include <qlineedit.h> | ||
21 | //#include <qpe/menubutton.h> | ||
22 | #include <qvbuttongroup.h> | ||
23 | |||
24 | class QVBoxLayout; | ||
25 | class QHBoxLayout; | ||
26 | class QGridLayout; | ||
27 | //class QCheckBox; | ||
28 | class QLabel; | ||
29 | //class QSpinBox; | ||
30 | |||
31 | class CCloseDialog : public QDialog | ||
32 | { | ||
33 | Q_OBJECT | ||
34 | QCheckBox *file, *marks, *config; | ||
35 | #ifndef USEQPE | ||
36 | void keyPressEvent(QKeyEvent* e) | ||
37 | { | ||
38 | switch (e->key()) | ||
39 | { | ||
40 | case Key_Escape: | ||
41 | e->accept(); | ||
42 | reject(); | ||
43 | break; | ||
44 | case Key_Space: | ||
45 | case Key_Return: | ||
46 | e->accept(); | ||
47 | accept(); | ||
48 | break; | ||
49 | default: | ||
50 | QWidget::keyPressEvent(e); | ||
51 | } | ||
52 | } | ||
53 | #endif | ||
54 | public: | ||
55 | CCloseDialog(const QString&, bool fs = true, QWidget* parent = 0, const char* name = 0); | ||
56 | ~CCloseDialog() {} | ||
57 | bool delFile() { return file->isChecked(); } | ||
58 | bool delMarks() { return marks->isChecked(); } | ||
59 | bool delConfig() { return config->isChecked(); } | ||
60 | |||
61 | }; | ||
62 | #endif // CPREFS_H | ||