1 //-----------------------------------------------------------------------------
3 // KDE Display screen saver setup module
5 // Copyright (c) Martin R. Jones 1996
6 // Copyright (C) Chris Howells 2004
10 #define __SCRNSAVE_H__
14 #include <QMouseEvent>
16 #include <QResizeEvent>
20 #include "kssmonitor.h"
21 #include "saverconfig.h"
23 #include "advanceddialog.h"
24 #include "saverlist.h"
35 //===========================================================================
36 class KScreenSaver
: public KCModule
40 KScreenSaver(QWidget
*parent
, const QVariantList
&);
45 virtual void defaults();
51 void slotEnable( bool );
52 void slotScreenSaver( Q3ListViewItem
* );
57 void slotTimeoutChanged( int );
58 void slotLockTimeoutChanged( int );
59 void slotLock( bool );
60 void slotSetupDone(K3Process
*);
61 // when selecting a new screensaver, the old preview will
62 // be killed. -- This callback is responsible for restarting the
64 void slotPreviewExited(K3Process
*);
66 void slotEnablePlasma(bool enable
);
67 void slotPlasmaSetup();
74 void resizeEvent( QResizeEvent
* );
75 void mousePressEvent(QMouseEvent
*);
76 void keyPressEvent(QKeyEvent
*);
81 K3Process
*mSetupProc
;
82 K3Process
*mPreviewProc
;
84 QPushButton
*mSetupBt
;
86 QPushButton
*mPlasmaSetup
;
87 Q3ListView
*mSaverListView
;
89 QSpinBox
*mWaitLockEdit
;
90 QCheckBox
*mLockCheckBox
;
91 QCheckBox
*mStarsCheckBox
;
92 QCheckBox
*mEnabledCheckBox
;
93 QCheckBox
*mPlasmaCheckBox
;
94 QLabel
*mMonitorLabel
;
97 KService::List mSaverServices
;
100 QGroupBox
*mSaverGroup
;
101 QGroupBox
*mSettingsGroup
;