Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

QLookAndFeel Class Reference

Defines Look and Feel. Colors, Textures, default Font size and so on. More...

#include <QLookAndFeel.h>

Collaboration diagram for QLookAndFeel:

Collaboration graph
[legend]

Public Methods

void drawBevel (float x, float y, float w, float h, QBevelState state)
 draws bevel from x,y-x+w,y+h. State : up,down,disabled

void drawRect (float x, float y, float w, float h)
 draws bevel from x,y-x+w,y+h. State : up,down,disabled

void drawTexture (unsigned int texID, int width, int height)
 draws given texture with given size

void drawCheckBox (bool checked)
 draws checkbox texture

void drawRadioButton (bool checked)
 draws radio button texture

void drawCloseButton (bool down, int width, int height)
 draws close button texture

void drawMaximizeButton (bool down, int width, int height)
 draws maximize button texture

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

QColorgetBackGroundColor ()
 getter method for BackGroundColor

QColorgetDisabledColor ()
 getter method for DisabledColor

QColorgetBevelRaisedColor ()
 getter method for BevelRaisedColor

QColorgetBevelLoweredColor ()
 getter method for BevelLoweredColor

QColorgetBevelDisabledColor ()
 getter method for BevelDisabledColor

QColorgetHighlightColor ()
 getter method for HighlightColor

QFontgetFont ()
 getter method for Font

void print ()
 prints itself to the cout

 QLookAndFeel ()
 Constructor.

virtual ~QLookAndFeel ()
 Destructor.

void drawBevel (float x, float y, float w, float h, QBevelState state)
 draws bevel from x,y-x+w,y+h. State : up,down,disabled

void drawRect (float x, float y, float w, float h)
 draws bevel from x,y-x+w,y+h. State : up,down,disabled

void drawTexture (unsigned int texID, int width, int height)
 draws given texture with given size

void drawCheckBox (bool checked)
 draws checkbox texture

void drawRadioButton (bool checked)
 draws radio button texture

void drawCloseButton (bool down, int width, int height)
 draws close button texture

void drawMaximizeButton (bool down, int width, int height)
 draws maximize button texture

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

QColorgetBackGroundColor ()
 getter method for BackGroundColor

QColorgetDisabledColor ()
 getter method for DisabledColor

QColorgetBevelRaisedColor ()
 getter method for BevelRaisedColor

QColorgetBevelLoweredColor ()
 getter method for BevelLoweredColor

QColorgetBevelDisabledColor ()
 getter method for BevelDisabledColor

QColorgetHighlightColor ()
 getter method for HighlightColor

QFontgetFont ()
 getter method for Font

void print ()
 prints itself to the cout

 QLookAndFeel ()
 Constructor.

virtual ~QLookAndFeel ()
 Destructor.


Protected Attributes

QColorBackGroundColor
 back ground color

QColorDisabledColor
 color of control if it is disabled

QColorBevelRaisedColor
 color of the raised side of a bevel

QColorBevelLoweredColor
 color of the lowered side of a bevel

QColorBevelDisabledColor
 color of the side of a disabled bevel

QColorHighlightColor
 highlighted color

QFontFont
 reference font

QColorBackGroundColor
 back ground color

QColorDisabledColor
 color of control if it is disabled

QColorBevelRaisedColor
 color of the raised side of a bevel

QColorBevelLoweredColor
 color of the lowered side of a bevel

QColorBevelDisabledColor
 color of the side of a disabled bevel

QColorHighlightColor
 highlighted color

QFontFont
 reference font


Private Attributes

unsigned int CheckBoxTexID
 id for checkbox texture

unsigned int CheckBoxCheckedTexID
 id for checkbox texture

unsigned int RadioButtonCheckedTexID
 id for radio button checked texture

unsigned int RadioButtonTexID
 id for radio button texture

unsigned int CloseButtonTexID
 id for close button texture

unsigned int CloseButtonDownTexID
 id for close button down texture

unsigned int MaximizeButtonTexID
 id for maximize button texture

unsigned int MaximizeButtonDownTexID
 id for maximize button down texture

unsigned int RestoreButtonTexID
 id for restore button texture

unsigned int RestoreButtonDownTexID
 id for restore button down texture

unsigned int MinimizeButtonTexID
 id for miniimize button texture

unsigned int MinimizeButtonDownTexID
 id for minimize button down texture


Detailed Description

Defines Look and Feel. Colors, Textures, default Font size and so on.

Definition at line 20 of file QLookAndFeel.h.


Constructor & Destructor Documentation

QLookAndFeel::QLookAndFeel  
 

Constructor.

Definition at line 215 of file QLookAndFeel.cpp.

QLookAndFeel::~QLookAndFeel   [virtual]
 

Destructor.

Definition at line 242 of file QLookAndFeel.cpp.

QLookAndFeel::QLookAndFeel  
 

Constructor.

virtual QLookAndFeel::~QLookAndFeel   [virtual]
 

Destructor.


Member Function Documentation

virtual void QLookAndFeel::CleanUp   [virtual]
 

clean up code

void QLookAndFeel::CleanUp   [virtual]
 

clean up code

Definition at line 149 of file QLookAndFeel.cpp.

References CheckBoxCheckedTexID, CheckBoxTexID, CloseButtonDownTexID, CloseButtonTexID, MaximizeButtonDownTexID, MaximizeButtonTexID, RadioButtonCheckedTexID, and RadioButtonTexID.

void QLookAndFeel::drawBevel float    x,
float    y,
float    w,
float    h,
QBevelState    state
 

draws bevel from x,y-x+w,y+h. State : up,down,disabled

void QLookAndFeel::drawBevel float    x,
float    y,
float    w,
float    h,
QBevelState    state
 

draws bevel from x,y-x+w,y+h. State : up,down,disabled

Definition at line 16 of file QLookAndFeel.cpp.

References BevelDisabledColor, BevelLoweredColor, BevelRaisedColor, and QColor::setAsCurrent().

Referenced by QToolBar::draw(), QTextEdit::draw(), QCaptionButton::draw(), and QWindow::drawFrame().

void QLookAndFeel::drawCheckBox bool    checked
 

draws checkbox texture

void QLookAndFeel::drawCheckBox bool    checked
 

draws checkbox texture

Definition at line 84 of file QLookAndFeel.cpp.

References BackGroundColor, CheckBoxCheckedTexID, CheckBoxTexID, drawTexture(), and QColor::setAsCurrent().

Referenced by QCheckBox::draw().

void QLookAndFeel::drawCloseButton bool    down,
int    width,
int    height
 

draws close button texture

void QLookAndFeel::drawCloseButton bool    down,
int    width,
int    height
 

draws close button texture

Definition at line 108 of file QLookAndFeel.cpp.

References CloseButtonDownTexID, CloseButtonTexID, and drawTexture().

Referenced by QWindow::drawCloseButton().

void QLookAndFeel::drawMaximizeButton bool    down,
int    width,
int    height
 

draws maximize button texture

void QLookAndFeel::drawMaximizeButton bool    down,
int    width,
int    height
 

draws maximize button texture

Definition at line 117 of file QLookAndFeel.cpp.

References drawTexture(), MaximizeButtonDownTexID, and MaximizeButtonTexID.

Referenced by QWindow::drawMaximizeButton().

void QLookAndFeel::drawRadioButton bool    checked
 

draws radio button texture

void QLookAndFeel::drawRadioButton bool    checked
 

draws radio button texture

Definition at line 94 of file QLookAndFeel.cpp.

References BackGroundColor, drawTexture(), RadioButtonCheckedTexID, RadioButtonTexID, and QColor::setAsCurrent().

Referenced by QRadioButton::draw().

void QLookAndFeel::drawRect float    x,
float    y,
float    w,
float    h
 

draws bevel from x,y-x+w,y+h. State : up,down,disabled

void QLookAndFeel::drawRect float    x,
float    y,
float    w,
float    h
 

draws bevel from x,y-x+w,y+h. State : up,down,disabled

Definition at line 56 of file QLookAndFeel.cpp.

Referenced by QToolBar::draw(), QTextEdit::draw(), QScreen::draw(), QCaptionButton::draw(), QWindow::drawCoordInfos(), and QWindow::drawFrame().

void QLookAndFeel::drawTexture unsigned int    texID,
int    width,
int    height
 

draws given texture with given size

void QLookAndFeel::drawTexture unsigned int    texID,
int    width,
int    height
 

draws given texture with given size

Definition at line 65 of file QLookAndFeel.cpp.

Referenced by drawCheckBox(), drawCloseButton(), drawMaximizeButton(), and drawRadioButton().

QColor* QLookAndFeel::getBackGroundColor  
 

getter method for BackGroundColor

QColor * QLookAndFeel::getBackGroundColor  
 

getter method for BackGroundColor

Definition at line 163 of file QLookAndFeel.cpp.

References BackGroundColor.

Referenced by QToolBar::draw(), QTextEdit::draw(), QCaptionButton::draw(), and QWindow::drawFrame().

QColor* QLookAndFeel::getBevelDisabledColor  
 

getter method for BevelDisabledColor

QColor * QLookAndFeel::getBevelDisabledColor  
 

getter method for BevelDisabledColor

Definition at line 187 of file QLookAndFeel.cpp.

References BevelDisabledColor.

QColor* QLookAndFeel::getBevelLoweredColor  
 

getter method for BevelLoweredColor

QColor * QLookAndFeel::getBevelLoweredColor  
 

getter method for BevelLoweredColor

Definition at line 181 of file QLookAndFeel.cpp.

References BevelLoweredColor.

QColor* QLookAndFeel::getBevelRaisedColor  
 

getter method for BevelRaisedColor

QColor * QLookAndFeel::getBevelRaisedColor  
 

getter method for BevelRaisedColor

Definition at line 175 of file QLookAndFeel.cpp.

References BevelRaisedColor.

QColor* QLookAndFeel::getDisabledColor  
 

getter method for DisabledColor

QColor * QLookAndFeel::getDisabledColor  
 

getter method for DisabledColor

Definition at line 169 of file QLookAndFeel.cpp.

References DisabledColor.

QFont* QLookAndFeel::getFont  
 

getter method for Font

QFont * QLookAndFeel::getFont  
 

getter method for Font

Definition at line 199 of file QLookAndFeel.cpp.

References Font.

Referenced by QTextEdit::Init(), QCheckBox::Init(), and QCaptionButton::Init().

QColor* QLookAndFeel::getHighlightColor  
 

getter method for HighlightColor

QColor * QLookAndFeel::getHighlightColor  
 

getter method for HighlightColor

Definition at line 193 of file QLookAndFeel.cpp.

References HighlightColor.

Referenced by QTextEdit::draw(), and QCaptionButton::draw().

virtual void QLookAndFeel::Init   [virtual]
 

initialization code

void QLookAndFeel::Init   [virtual]
 

initialization code

Definition at line 126 of file QLookAndFeel.cpp.

References BackGroundColor, BevelDisabledColor, BevelLoweredColor, BevelRaisedColor, CheckBoxCheckedTexID, CheckBoxTexID, CloseButtonDownTexID, CloseButtonTexID, createTexture(), DisabledColor, Font, QFont::getColor(), HighlightColor, MaximizeButtonDownTexID, MaximizeButtonTexID, RadioButtonCheckedTexID, RadioButtonTexID, QColor::set(), and QFont::setSize().

void QLookAndFeel::print  
 

prints itself to the cout

void QLookAndFeel::print  
 

prints itself to the cout

Definition at line 207 of file QLookAndFeel.cpp.


Field Documentation

QColor* QLookAndFeel::BackGroundColor [protected]
 

back ground color

Definition at line 62 of file QLookAndFeel.h.

QColor* QLookAndFeel::BackGroundColor [protected]
 

back ground color

Definition at line 61 of file QLookAndFeel.h.

Referenced by drawCheckBox(), drawRadioButton(), getBackGroundColor(), and Init().

QColor* QLookAndFeel::BevelDisabledColor [protected]
 

color of the side of a disabled bevel

Definition at line 74 of file QLookAndFeel.h.

QColor* QLookAndFeel::BevelDisabledColor [protected]
 

color of the side of a disabled bevel

Definition at line 73 of file QLookAndFeel.h.

Referenced by drawBevel(), getBevelDisabledColor(), and Init().

QColor* QLookAndFeel::BevelLoweredColor [protected]
 

color of the lowered side of a bevel

Definition at line 71 of file QLookAndFeel.h.

QColor* QLookAndFeel::BevelLoweredColor [protected]
 

color of the lowered side of a bevel

Definition at line 70 of file QLookAndFeel.h.

Referenced by drawBevel(), getBevelLoweredColor(), and Init().

QColor* QLookAndFeel::BevelRaisedColor [protected]
 

color of the raised side of a bevel

Definition at line 68 of file QLookAndFeel.h.

QColor* QLookAndFeel::BevelRaisedColor [protected]
 

color of the raised side of a bevel

Definition at line 67 of file QLookAndFeel.h.

Referenced by drawBevel(), getBevelRaisedColor(), and Init().

unsigned int QLookAndFeel::CheckBoxCheckedTexID [private]
 

id for checkbox texture

Definition at line 28 of file QLookAndFeel.h.

Referenced by CleanUp(), drawCheckBox(), and Init().

unsigned int QLookAndFeel::CheckBoxTexID [private]
 

id for checkbox texture

Definition at line 25 of file QLookAndFeel.h.

Referenced by CleanUp(), drawCheckBox(), and Init().

unsigned int QLookAndFeel::CloseButtonDownTexID [private]
 

id for close button down texture

Definition at line 40 of file QLookAndFeel.h.

Referenced by CleanUp(), drawCloseButton(), and Init().

unsigned int QLookAndFeel::CloseButtonTexID [private]
 

id for close button texture

Definition at line 37 of file QLookAndFeel.h.

Referenced by CleanUp(), drawCloseButton(), and Init().

QColor* QLookAndFeel::DisabledColor [protected]
 

color of control if it is disabled

Definition at line 65 of file QLookAndFeel.h.

QColor* QLookAndFeel::DisabledColor [protected]
 

color of control if it is disabled

Definition at line 64 of file QLookAndFeel.h.

Referenced by getDisabledColor(), and Init().

QFont* QLookAndFeel::Font [protected]
 

reference font

Definition at line 80 of file QLookAndFeel.h.

QFont* QLookAndFeel::Font [protected]
 

reference font

Definition at line 79 of file QLookAndFeel.h.

Referenced by getFont(), and Init().

QColor* QLookAndFeel::HighlightColor [protected]
 

highlighted color

Definition at line 77 of file QLookAndFeel.h.

QColor* QLookAndFeel::HighlightColor [protected]
 

highlighted color

Definition at line 76 of file QLookAndFeel.h.

Referenced by getHighlightColor(), and Init().

unsigned int QLookAndFeel::MaximizeButtonDownTexID [private]
 

id for maximize button down texture

Definition at line 46 of file QLookAndFeel.h.

Referenced by CleanUp(), drawMaximizeButton(), and Init().

unsigned int QLookAndFeel::MaximizeButtonTexID [private]
 

id for maximize button texture

Definition at line 43 of file QLookAndFeel.h.

Referenced by CleanUp(), drawMaximizeButton(), and Init().

unsigned int QLookAndFeel::MinimizeButtonDownTexID [private]
 

id for minimize button down texture

Definition at line 58 of file QLookAndFeel.h.

unsigned int QLookAndFeel::MinimizeButtonTexID [private]
 

id for miniimize button texture

Definition at line 55 of file QLookAndFeel.h.

unsigned int QLookAndFeel::RadioButtonCheckedTexID [private]
 

id for radio button checked texture

Definition at line 31 of file QLookAndFeel.h.

Referenced by CleanUp(), drawRadioButton(), and Init().

unsigned int QLookAndFeel::RadioButtonTexID [private]
 

id for radio button texture

Definition at line 34 of file QLookAndFeel.h.

Referenced by CleanUp(), drawRadioButton(), and Init().

unsigned int QLookAndFeel::RestoreButtonDownTexID [private]
 

id for restore button down texture

Definition at line 52 of file QLookAndFeel.h.

unsigned int QLookAndFeel::RestoreButtonTexID [private]
 

id for restore button texture

Definition at line 49 of file QLookAndFeel.h.


The documentation for this class was generated from the following files:
Generated on Thu Mar 18 18:34:30 2004 for miniQT by doxygen1.2.18