00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __CLOSEDIALOG_H
00010 #define __CLOSEDIALOG_H
00011
00012 #include <qvariant.h>
00013 #include <qwidget.h>
00014 #include <qtabdialog.h>
00015 #include <qtabwidget.h>
00016 #include <qspinbox.h>
00017 #include <qcheckbox.h>
00018 #include <qcombobox.h>
00019 #include <qlineedit.h>
00020
00021 #include <qvbuttongroup.h>
00022
00023 class QVBoxLayout;
00024 class QHBoxLayout;
00025 class QGridLayout;
00026
00027 class QLabel;
00028
00029
00030 class CCloseDialog : public QDialog
00031 {
00032 Q_OBJECT
00033 QCheckBox *file, *marks, *config;
00034 #ifndef USEQPE
00035 void keyPressEvent(QKeyEvent* e)
00036 {
00037 switch (e->key())
00038 {
00039 case Key_Escape:
00040 e->accept();
00041 reject();
00042 break;
00043 case Key_Space:
00044 case Key_Return:
00045 e->accept();
00046 accept();
00047 break;
00048 default:
00049 QWidget::keyPressEvent(e);
00050 }
00051 }
00052 #endif
00053 public:
00054 CCloseDialog(const QString&, bool fs = true, QWidget* parent = 0, const char* name = 0);
00055 ~CCloseDialog() {}
00056 bool delFile() { return file->isChecked(); }
00057 bool delMarks() { return marks->isChecked(); }
00058 bool delConfig() { return config->isChecked(); }
00059
00060 };
00061 #endif // CPREFS_H