~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kcontrol/screensaver/advanceddialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ADVANCEDDIALOG_H
 
2
#define ADVANCEDDIALOG_H
 
3
 
 
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>
 
14
 
 
15
#include "ui_advanceddialogimpl.h"
 
16
 
 
17
class AdvancedDialogImpl : public QWidget, public Ui::AdvancedDialogImpl
 
18
{
 
19
public:
 
20
  AdvancedDialogImpl( QWidget *parent ) : QWidget( parent ) {
 
21
    setupUi( this );
 
22
  }
 
23
};
 
24
 
 
25
class AdvancedDialog : public AdvancedDialogImpl
 
26
{
 
27
public:
 
28
        AdvancedDialog(QWidget *parent = 0);
 
29
        ~AdvancedDialog();
 
30
        void setMode(QComboBox *box, int i);
 
31
        int mode(QComboBox *box);
 
32
};
 
33
 
 
34
/* =================================================================================================== */
 
35
 
 
36
class KScreenSaverAdvancedDialog : public KDialog
 
37
{
 
38
    Q_OBJECT
 
39
public:
 
40
    KScreenSaverAdvancedDialog(QWidget *parent);
 
41
      
 
42
public Q_SLOTS:
 
43
    virtual void accept();
 
44
         
 
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);
 
51
                        
 
52
private:
 
53
    void readSettings();
 
54
                     
 
55
    QCheckBox *m_topLeftCorner;
 
56
    QCheckBox *m_bottomLeftCorner;
 
57
    QCheckBox *m_topRightCorner;
 
58
    QCheckBox *m_bottomRightCorner;
 
59
    QSlider   *mPrioritySlider;
 
60
                                          
 
61
    bool mChanged;
 
62
    int  mPriority;
 
63
    AdvancedDialog *dialog;
 
64
 
 
65
};
 
66
 
 
67
 
 
68
#endif
 
69