not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcontrol / screensaver / advanceddialog.h
blob3a317a0d51f35dcc865a16d350afecfad7bee843
1 #ifndef ADVANCEDDIALOG_H
2 #define ADVANCEDDIALOG_H
4 #include <kdialog.h>
5 #include <QWidget>
6 #include <kconfig.h>
7 #include <QLabel>
8 #include <QLayout>
9 #include <QWhatsThis>
10 #include <QGroupBox>
11 #include <QObject>
12 #include <QCheckBox>
13 #include <QSlider>
15 #include "ui_advanceddialogimpl.h"
17 class AdvancedDialogImpl : public QWidget, public Ui::AdvancedDialogImpl
19 public:
20 AdvancedDialogImpl( QWidget *parent ) : QWidget( parent ) {
21 setupUi( this );
25 class AdvancedDialog : public AdvancedDialogImpl
27 public:
28 AdvancedDialog(QWidget *parent = 0);
29 ~AdvancedDialog();
30 void setMode(QComboBox *box, int i);
31 int mode(QComboBox *box);
34 /* =================================================================================================== */
36 class KScreenSaverAdvancedDialog : public KDialog
38 Q_OBJECT
39 public:
40 KScreenSaverAdvancedDialog(QWidget *parent);
42 public Q_SLOTS:
43 virtual void accept();
45 protected Q_SLOTS:
46 void slotPriorityChanged(int val);
47 void slotChangeBottomRightCorner(int);
48 void slotChangeBottomLeftCorner(int);
49 void slotChangeTopRightCorner(int);
50 void slotChangeTopLeftCorner(int);
52 private:
53 void readSettings();
55 QCheckBox *m_topLeftCorner;
56 QCheckBox *m_bottomLeftCorner;
57 QCheckBox *m_topRightCorner;
58 QCheckBox *m_bottomRightCorner;
59 QSlider *mPrioritySlider;
61 bool mChanged;
62 int mPriority;
63 AdvancedDialog *dialog;
68 #endif