00001
00002
00003
00004
00005 #ifndef CONFIG_H
00006 #define CONFIG_H
00007
00008 #include <qcolor.h>
00009 #include <qpalette.h>
00010 #include "configui.h"
00011
00012 class Frame;
00013
00014 class Config : public configUI
00015 {
00016 Q_OBJECT
00017
00018 bool haveConfigData;
00019 bool readConfigData();
00020 void setDefaultData();
00021
00022 QColor titleActBase, titleInactBase;
00023 QColor leftActBase, leftInactBase;
00024 QColor rightActBase, rightInactBase;
00025 QColor bottomActBase, bottomInactBase;
00026 QColor gripActBase, gripInactBase;
00027 QColor textActColor, textInactColor;
00028
00029 QPalette titleActPalette, titleInactPalette;
00030 QPalette leftActPalette, leftInactPalette;
00031 QPalette rightActPalette, rightInactPalette;
00032 QPalette bottomActPalette, bottomInactPalette;
00033 QPalette gripActPalette, gripInactPalette;
00034
00035 int titleHeight, leftWidth, rightWidth, bottomHeight, gripWidth;
00036
00037 QPalette makePalette( QColor );
00038 void drawWindows();
00039 public:
00040 Config( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00041 ~Config();
00042
00043 public slots:
00044 void save();
00045 void cancel();
00046 void topValueChanged( int );
00047 void leftValueChanged( int );
00048 void rightValueChanged( int );
00049 void bottomValueChanged( int );
00050 void gripWidthChanged( int );
00051 void titleActiveClicked();
00052 void leftActiveClicked();
00053 void rightActiveClicked();
00054 void bottomActiveClicked();
00055 void gripActiveClicked();
00056 void textActiveClicked();
00057 void titleInactiveClicked();
00058 void leftInactiveClicked();
00059 void rightInactiveClicked();
00060 void botttomInactiveClicked();
00061 void gripInactiveClicked();
00062 void textInactiveClicked();
00063 };
00064
00065 #endif // CONFIG_H