Diffstat (limited to 'noncore/apps/opie-reader/URLDialog.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/URLDialog.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/URLDialog.h b/noncore/apps/opie-reader/URLDialog.h new file mode 100644 index 0000000..1bcc4bd --- a/dev/null +++ b/noncore/apps/opie-reader/URLDialog.h | |||
@@ -0,0 +1,65 @@ | |||
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 __URLDIALOG_H | ||
10 | #define __URLDIALOG_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 CURLDialog : public QDialog | ||
32 | { | ||
33 | Q_OBJECT | ||
34 | QCheckBox *m_localfile, *m_globalfile, *m_clipboard; | ||
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 | CURLDialog(const QString&, bool fs = true, QWidget* parent = 0, const char* name = 0); | ||
56 | ~CURLDialog() {} | ||
57 | bool clipboard() { return m_clipboard->isChecked(); } | ||
58 | bool localfile() { return m_localfile->isChecked(); } | ||
59 | bool globalfile() { return m_globalfile->isChecked(); } | ||
60 | void clipboard(bool _b) { m_clipboard->setChecked(_b); } | ||
61 | void localfile(bool _b) { m_localfile->setChecked(_b); } | ||
62 | void globalfile(bool _b) { m_globalfile->setChecked(_b); } | ||
63 | |||
64 | }; | ||
65 | #endif // CPREFS_H | ||