author | groucho <groucho> | 2003-05-07 09:20:31 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:20:31 (UTC) |
commit | 6fc02cae4bd1fe3478e6e34575f481236ce5ede8 (patch) (side-by-side diff) | |
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 @@ +/**************************************************************************** +** Form interface generated from reading ui file 'Prefs.ui' +** +** Created: Tue Feb 11 23:53:32 2003 +** by: The User Interface Compiler (uic) +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ +#ifndef __CLOSEDIALOG_H +#define __CLOSEDIALOG_H + +#include "useqpe.h" +#include <qvariant.h> +#include <qwidget.h> +#include <qtabdialog.h> +#include <qtabwidget.h> +#include <qspinbox.h> +#include <qcheckbox.h> +#include <qcombobox.h> +#include <qlineedit.h> +//#include <qpe/menubutton.h> +#include <qvbuttongroup.h> + +class QVBoxLayout; +class QHBoxLayout; +class QGridLayout; +//class QCheckBox; +class QLabel; +//class QSpinBox; + +class CCloseDialog : public QDialog +{ +Q_OBJECT + QCheckBox *file, *marks, *config; +#ifndef USEQPE + void keyPressEvent(QKeyEvent* e) + { + switch (e->key()) + { + case Key_Escape: + e->accept(); + reject(); + break; + case Key_Space: + case Key_Return: + e->accept(); + accept(); + break; + default: + QWidget::keyPressEvent(e); + } + } +#endif + public: + CCloseDialog(const QString&, bool fs = true, QWidget* parent = 0, const char* name = 0); + ~CCloseDialog() {} + bool delFile() { return file->isChecked(); } + bool delMarks() { return marks->isChecked(); } + bool delConfig() { return config->isChecked(); } + +}; +#endif // CPREFS_H |