00001
00002
00003
00004
00005 #ifndef QLookAndFeel_h
00006 #define QLookAndFeel_h
00007
00008
00009
00010 class QLookAndFeel;
00011
00012
00013
00014 enum QBevelState {bsUp, bsDown, bsDisabled };
00015
00016 #include "QColor.h"
00017 #include "QFont.h"
00018
00019
00020 class QLookAndFeel
00021 {
00022 private:
00023
00024 unsigned int CheckBoxTexID;
00025
00026
00027 unsigned int CheckBoxCheckedTexID;
00028
00029
00030 unsigned int RadioButtonCheckedTexID;
00031
00032
00033 unsigned int RadioButtonTexID;
00034
00035
00036 unsigned int CloseButtonTexID;
00037
00038
00039 unsigned int CloseButtonDownTexID;
00040
00041
00042 unsigned int MaximizeButtonTexID;
00043
00044
00045 unsigned int MaximizeButtonDownTexID;
00046
00047
00048 unsigned int RestoreButtonTexID;
00049
00050
00051 unsigned int RestoreButtonDownTexID;
00052
00053
00054 unsigned int MinimizeButtonTexID;
00055
00056
00057 unsigned int MinimizeButtonDownTexID;
00058
00059 protected:
00060
00061 QColor* BackGroundColor;
00062
00063
00064 QColor* DisabledColor;
00065
00066
00067 QColor* BevelRaisedColor;
00068
00069
00070 QColor* BevelLoweredColor;
00071
00072
00073 QColor* BevelDisabledColor;
00074
00075
00076 QColor* HighlightColor;
00077
00078
00079 QFont* Font;
00080
00081 public:
00082
00083 void drawBevel( float x , float y , float w , float h , QBevelState state );
00084
00085
00086 void drawRect( float x , float y , float w , float h );
00087
00088
00089 void drawTexture( unsigned int texID , int width , int height );
00090
00091
00092 void drawCheckBox( bool checked );
00093
00094
00095 void drawRadioButton( bool checked );
00096
00097
00098 void drawCloseButton( bool down , int width , int height );
00099
00100
00101 void drawMaximizeButton( bool down , int width , int height );
00102
00103
00104 virtual void Init();
00105
00106
00107 virtual void CleanUp();
00108
00109
00110 QColor* getBackGroundColor();
00111
00112
00113 QColor* getDisabledColor();
00114
00115
00116 QColor* getBevelRaisedColor();
00117
00118
00119 QColor* getBevelLoweredColor();
00120
00121
00122 QColor* getBevelDisabledColor();
00123
00124
00125 QColor* getHighlightColor();
00126
00127
00128 QFont* getFont();
00129
00130
00131 void print();
00132
00133
00134 QLookAndFeel( );
00135
00136
00137 virtual ~QLookAndFeel();
00138
00139
00140 };
00141 #endif
00142