ad483c520d
first tab of the kcm it became wildly obvious how much TLC they needed. svn path=/trunk/kdebase/kwin/; revision=234652
51 lines
910 B
C++
51 lines
910 B
C++
// $Id$
|
|
#ifndef __KDE_MODSYSTEMCONFIG_H
|
|
#define __KDE_MODSYSTEMCONFIG_H
|
|
|
|
#include <qcheckbox.h>
|
|
#include <qgroupbox.h>
|
|
#include <qlayout.h>
|
|
#include <qvbox.h>
|
|
#include <qslider.h>
|
|
#include <qlabel.h>
|
|
|
|
class ModernSysConfig : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ModernSysConfig(KConfig* conf, QWidget* parent);
|
|
~ModernSysConfig();
|
|
|
|
// These public signals/slots work similar to KCM modules
|
|
signals:
|
|
void changed();
|
|
|
|
public slots:
|
|
void load(KConfig* conf);
|
|
void save(KConfig* conf);
|
|
void defaults();
|
|
|
|
protected slots:
|
|
void slotSelectionChanged(); // Internal use
|
|
|
|
private:
|
|
KConfig *clientrc;
|
|
QWidget *mainw;
|
|
QVBoxLayout *vbox;
|
|
QWidget *handleBox;
|
|
QCheckBox *cbShowHandle;
|
|
QVBox *sliderBox;
|
|
QSlider *handleSizeSlider;
|
|
QHBox *hbox;
|
|
QLabel *label1;
|
|
QLabel *label2;
|
|
QLabel *label3;
|
|
|
|
unsigned handleWidth;
|
|
unsigned handleSize;
|
|
|
|
};
|
|
|
|
|
|
#endif
|