00001
00019 #ifndef __desktop_h__
00020 #define __desktop_h__
00021
00022 #include <kcmodule.h>
00023
00024 class TQSpinBox;
00025 class TQLabel;
00026 class TQCheckBox;
00027 class KLineEdit;
00028 class KIntNumInput;
00029
00030
00031 static const int maxDesktops = 20;
00032
00033 class KDesktopConfig : public KCModule
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 KDesktopConfig(TQWidget *parent = 0L, const char *name = 0L);
00039
00040 void load();
00041 void load( bool useDefaults );
00042 void save();
00043 void defaults();
00044
00045 protected slots:
00046 void slotValueChanged(int);
00047
00048 private:
00049 KIntNumInput *_numInput;
00050 TQLabel *_nameLabel[maxDesktops];
00051 KLineEdit *_nameInput[maxDesktops];
00052 TQCheckBox *_wheelOption;
00053 bool _wheelOptionImmutable;
00054 bool _labelImmutable[maxDesktops];
00055 };
00056
00057 #endif