Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

NorwegianWoodStyle Class Reference

#include <wood.h>

List of all members.

Public Methods

 NorwegianWoodStyle ()
void polish (QApplication *)
void polish (QWidget *)
void unPolish (QWidget *)
void unPolish (QApplication *)
void drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const
void drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, const QStyleOption &=QStyleOption::Default) const
void drawControlMask (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const
void drawComplexControl (ComplexControl cc, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, SCFlags sub=SC_All, SCFlags subActive=SC_None, const QStyleOption &=QStyleOption::Default) const
void drawComplexControlMask (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const
QRect querySubControlMetrics (ComplexControl control, const QWidget *widget, SubControl sc, const QStyleOption &=QStyleOption::Default) const
QRect subRect (SubRect r, const QWidget *widget) const

Private Methods

void drawSemicircleButton (QPainter *p, const QRect &r, int dir, bool sunken, const QColorGroup &g) const

Private Attributes

QPalette oldPalette
QPixmap * sunkenDark
QPixmap * sunkenLight


Constructor & Destructor Documentation

NorwegianWoodStyle::NorwegianWoodStyle  
 

Definition at line 781 of file wood.cpp.


Member Function Documentation

void NorwegianWoodStyle::polish QApplication *    app
 

Reimplementation from QStyle

Definition at line 788 of file wood.cpp.

References button_xpm, i, oldPalette, polish_xpm, sunkenDark, and sunkenLight.

void NorwegianWoodStyle::polish QWidget *    w
 

Reimplementation from QStyle

Definition at line 900 of file wood.cpp.

void NorwegianWoodStyle::unPolish QWidget *   
 

Definition at line 919 of file wood.cpp.

void NorwegianWoodStyle::unPolish QApplication *   
 

Definition at line 892 of file wood.cpp.

References oldPalette.

void NorwegianWoodStyle::drawPrimitive PrimitiveElement    pe,
QPainter *    p,
const QRect &    r,
const QColorGroup &    cg,
SFlags    flags = Style_Default,
const QStyleOption &    = QStyleOption::Default
const
 

Definition at line 936 of file wood.cpp.

References b, buttonthickness(), drawroundrect(), drawSemicircleButton(), p, PointDown, PointLeft, PointRight, PointUp, roundRectRegion(), sunkenDark, and sunkenLight.

Referenced by drawComplexControl(), and drawControl().

void NorwegianWoodStyle::drawControl ControlElement    element,
QPainter *    p,
const QWidget *    widget,
const QRect &    r,
const QColorGroup &    cg,
SFlags    how = Style_Default,
const QStyleOption &    = QStyleOption::Default
const
 

Definition at line 1005 of file wood.cpp.

References drawPrimitive(), drawroundrect(), and p.

void NorwegianWoodStyle::drawControlMask ControlElement    element,
QPainter *    p,
const QWidget *    widget,
const QRect &    r,
const QStyleOption &    = QStyleOption::Default
const
 

Definition at line 1116 of file wood.cpp.

References drawroundrect(), and p.

void NorwegianWoodStyle::drawComplexControl ComplexControl    cc,
QPainter *    p,
const QWidget *    widget,
const QRect &    r,
const QColorGroup &    cg,
SFlags    how = Style_Default,
SCFlags    sub = SC_All,
SCFlags    subActive = SC_None,
const QStyleOption &    = QStyleOption::Default
const
 

Definition at line 1137 of file wood.cpp.

References drawPrimitive(), get_combo_parameters(), p, querySubControlMetrics(), and subRect().

void NorwegianWoodStyle::drawComplexControlMask ComplexControl    control,
QPainter *    p,
const QWidget *    widget,
const QRect &    r,
const QStyleOption &    = QStyleOption::Default
const
 

Definition at line 1190 of file wood.cpp.

References drawroundrect(), and p.

QRect NorwegianWoodStyle::querySubControlMetrics ComplexControl    control,
const QWidget *    widget,
SubControl    sc,
const QStyleOption &    = QStyleOption::Default
const
 

Definition at line 1211 of file wood.cpp.

References b, get_combo_extra_width(), and subRect().

Referenced by drawComplexControl().

QRect NorwegianWoodStyle::subRect SubRect    r,
const QWidget *    widget
const
 

Definition at line 1270 of file wood.cpp.

References b, buttonthickness(), and get_combo_extra_width().

Referenced by drawComplexControl(), and querySubControlMetrics().

void NorwegianWoodStyle::drawSemicircleButton QPainter *    p,
const QRect &    r,
int    dir,
bool    sunken,
const QColorGroup &    g
const [private]
 

Definition at line 1377 of file wood.cpp.

References b, p, PointDown, PointLeft, PointRight, and PointUp.

Referenced by drawPrimitive().


Member Data Documentation

QPalette NorwegianWoodStyle::oldPalette [private]
 

Definition at line 95 of file wood.h.

Referenced by polish(), and unPolish().

QPixmap* NorwegianWoodStyle::sunkenDark [private]
 

Definition at line 96 of file wood.h.

Referenced by drawPrimitive(), and polish().

QPixmap* NorwegianWoodStyle::sunkenLight [private]
 

Definition at line 97 of file wood.h.

Referenced by drawPrimitive(), and polish().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:48 2005 for Go4-v2.10-5 by doxygen1.2.15