00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __URLDIALOG_H
00010 #define __URLDIALOG_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 CURLDialog : public QDialog
00031 {
00032 Q_OBJECT
00033 QCheckBox *m_localfile, *m_globalfile, *m_clipboard;
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 CURLDialog(const QString&, bool fs = true, QWidget* parent = 0, const char* name = 0);
00055 ~CURLDialog() {}
00056 bool clipboard() { return m_clipboard->isChecked(); }
00057 bool localfile() { return m_localfile->isChecked(); }
00058 bool globalfile() { return m_globalfile->isChecked(); }
00059 void clipboard(bool _b) { m_clipboard->setChecked(_b); }
00060 void localfile(bool _b) { m_localfile->setChecked(_b); }
00061 void globalfile(bool _b) { m_globalfile->setChecked(_b); }
00062
00063 };
00064 #endif // CPREFS_H