00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KSG_STYLESETTINGS_H
00025 #define KSG_STYLESETTINGS_H
00026
00027 #include <kdialogbase.h>
00028
00029 #include <tqcolor.h>
00030
00031 class KColorButton;
00032
00033 class TQListBoxItem;
00034 class TQPushButton;
00035
00036 class StyleSettings : public KDialogBase
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 StyleSettings( TQWidget *parent = 0, const char *name = 0 );
00042 ~StyleSettings();
00043
00044 void setFirstForegroundColor( const TQColor &color );
00045 TQColor firstForegroundColor() const;
00046
00047 void setSecondForegroundColor( const TQColor &color );
00048 TQColor secondForegroundColor() const;
00049
00050 void setAlarmColor( const TQColor &color );
00051 TQColor alarmColor() const;
00052
00053 void setBackgroundColor( const TQColor &color );
00054 TQColor backgroundColor() const;
00055
00056 void setFontSize( uint size );
00057 uint fontSize() const;
00058
00059 void setSensorColors( const TQValueList<TQColor> &list );
00060 TQValueList<TQColor> sensorColors();
00061
00062 private slots:
00063 void editSensorColor();
00064 void selectionChanged( TQListBoxItem* );
00065
00066 private:
00067 KColorButton *mFirstForegroundColor;
00068 KColorButton *mSecondForegroundColor;
00069 KColorButton *mAlarmColor;
00070 KColorButton *mBackgroundColor;
00071
00072 TQSpinBox *mFontSize;
00073
00074 TQListBox *mColorListBox;
00075 TQPushButton *mEditColorButton;
00076 };
00077
00078 #endif