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

MetalStyle Class Reference

#include <metal.h>

List of all members.

Public Methods

 MetalStyle ()
void polish (QApplication *)
void unPolish (QApplication *)
void polish (QWidget *)
void unPolish (QWidget *)
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 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
int pixelMetric (PixelMetric, const QWidget *) const

Private Methods

void drawMetalFrame (QPainter *p, int x, int y, int w, int h) const
void drawMetalGradient (QPainter *p, int x, int y, int w, int h, bool sunken, bool horz, bool flat=FALSE) const
void drawMetalButton (QPainter *p, int x, int y, int w, int h, bool sunken, bool horz, bool flat=FALSE) const

Private Attributes

QPalette oldPalette


Constructor & Destructor Documentation

MetalStyle::MetalStyle  
 

Definition at line 55 of file metal.cpp.


Member Function Documentation

void MetalStyle::polish QApplication *    app
 

Reimplementation from QStyle

Definition at line 60 of file metal.cpp.

References oldPalette.

void MetalStyle::unPolish QApplication *    app
 

Reimplementation from QStyle

Definition at line 120 of file metal.cpp.

References oldPalette.

void MetalStyle::polish QWidget *    w
 

Reimplementation from QStyle

Definition at line 129 of file metal.cpp.

void MetalStyle::unPolish QWidget *   
 

Definition at line 147 of file metal.cpp.

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

Definition at line 165 of file metal.cpp.

References drawMetalButton(), drawMetalFrame(), and p.

Referenced by drawComplexControl(), and drawControl().

void MetalStyle::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 209 of file metal.cpp.

References drawPrimitive(), and p.

void MetalStyle::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 312 of file metal.cpp.

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

int MetalStyle::pixelMetric PixelMetric   ,
const QWidget *   
const
 

Definition at line 492 of file metal.cpp.

void MetalStyle::drawMetalFrame QPainter *    p,
int    x,
int    y,
int    w,
int    h
const [private]
 

Definition at line 379 of file metal.cpp.

References p.

Referenced by drawMetalButton(), and drawPrimitive().

void MetalStyle::drawMetalGradient QPainter *    p,
int    x,
int    y,
int    w,
int    h,
bool    sunken,
bool    horz,
bool    flat = FALSE
const [private]
 

Definition at line 411 of file metal.cpp.

References i, and p.

Referenced by drawMetalButton().

void MetalStyle::drawMetalButton QPainter *    p,
int    x,
int    y,
int    w,
int    h,
bool    sunken,
bool    horz,
bool    flat = FALSE
const [private]
 

Draw a metallic button, sunken if sunken is TRUE, horizontal if /a horz is TRUE.

Definition at line 368 of file metal.cpp.

References drawMetalFrame(), drawMetalGradient(), and p.

Referenced by drawComplexControl(), and drawPrimitive().


Member Data Documentation

QPalette MetalStyle::oldPalette [private]
 

Definition at line 80 of file metal.h.

Referenced by polish(), and unPolish().


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