2001-06-19 15:26:48 +00:00
|
|
|
#ifndef __KDE_MODSYSTEMCONFIG_H
|
|
|
|
#define __KDE_MODSYSTEMCONFIG_H
|
|
|
|
|
2006-05-11 08:04:23 +00:00
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QLayout>
|
2005-09-18 14:52:14 +00:00
|
|
|
|
2006-05-13 16:33:18 +00:00
|
|
|
#include <QSlider>
|
2006-05-11 08:04:23 +00:00
|
|
|
#include <QLabel>
|
2005-07-28 14:59:42 +00:00
|
|
|
//Added by qt3to4:
|
|
|
|
#include <QVBoxLayout>
|
2005-09-18 14:52:14 +00:00
|
|
|
#include <kvbox.h>
|
2001-06-19 15:26:48 +00:00
|
|
|
|
|
|
|
class ModernSysConfig : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2001-10-10 10:50:07 +00:00
|
|
|
ModernSysConfig(KConfig* conf, QWidget* parent);
|
2001-06-19 15:26:48 +00:00
|
|
|
~ModernSysConfig();
|
|
|
|
|
|
|
|
// These public signals/slots work similar to KCM modules
|
|
|
|
signals:
|
2001-10-10 10:50:07 +00:00
|
|
|
void changed();
|
2001-06-19 15:26:48 +00:00
|
|
|
|
|
|
|
public slots:
|
2001-10-10 10:50:07 +00:00
|
|
|
void load(KConfig* conf);
|
|
|
|
void save(KConfig* conf);
|
|
|
|
void defaults();
|
2001-06-19 15:26:48 +00:00
|
|
|
|
|
|
|
protected slots:
|
2001-10-10 10:50:07 +00:00
|
|
|
void slotSelectionChanged(); // Internal use
|
2001-06-19 15:26:48 +00:00
|
|
|
|
|
|
|
private:
|
2001-10-10 10:50:07 +00:00
|
|
|
KConfig *clientrc;
|
|
|
|
QWidget *mainw;
|
|
|
|
QVBoxLayout *vbox;
|
2003-06-30 08:16:28 +00:00
|
|
|
QWidget *handleBox;
|
2001-10-10 10:50:07 +00:00
|
|
|
QCheckBox *cbShowHandle;
|
2005-09-18 14:52:14 +00:00
|
|
|
KVBox *sliderBox;
|
2001-10-10 10:50:07 +00:00
|
|
|
QSlider *handleSizeSlider;
|
2005-09-18 14:52:14 +00:00
|
|
|
KHBox *hbox;
|
2001-10-10 10:50:07 +00:00
|
|
|
QLabel *label1;
|
|
|
|
QLabel *label2;
|
|
|
|
QLabel *label3;
|
|
|
|
|
|
|
|
unsigned handleWidth;
|
|
|
|
unsigned handleSize;
|
|
|
|
|
2001-06-19 15:26:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|