Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MetalStyle Class Reference

#include </home/clem/local/src/opie/noncore/styles/metal/metal.h>

List of all members.

Public Member Functions

 MetalStyle ()
void polish (QApplication *)
void unPolish (QApplication *)
void polish (QWidget *)
void unPolish (QWidget *)
void drawMetalButton (QPainter *p, int x, int y, int w, int h, bool sunken=FALSE, bool horz=TRUE)
void drawButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
void drawBevelButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
void drawPushButton (QPushButton *btn, QPainter *p)
void drawPushButtonLabel (QPushButton *btn, QPainter *p)
void drawPanel (QPainter *p, int x, int y, int w, int h, const QColorGroup &, bool sunken, int lineWidth, const QBrush *fill)
void drawSlider (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, Orientation orient, bool tickAbove, bool tickBelow)
void drawScrollBarControls (QPainter *p, const QScrollBar *sb, int sliderStart, uint controls, uint activeControl)
void drawComboButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, bool editable=FALSE, bool enabled=TRUE, const QBrush *fill=0)

Private Attributes

QPalette oldPalette


Constructor & Destructor Documentation

MetalStyle::MetalStyle  ) 
 

Definition at line 25 of file metal.cpp.


Member Function Documentation

void MetalStyle::drawBevelButton QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  sunken = FALSE,
const QBrush *  fill = 0
 

Reimplementation from QStyle

Definition at line 311 of file metal.cpp.

References drawMetalButton(), and TRUE.

void MetalStyle::drawButton QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  sunken = FALSE,
const QBrush *  fill = 0
 

Reimplementation from QStyle

Definition at line 301 of file metal.cpp.

References drawMetalButton(), and TRUE.

void MetalStyle::drawComboButton QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  sunken = FALSE,
bool  editable = FALSE,
bool  enabled = TRUE,
const QBrush *  fill = 0
 

Definition at line 487 of file metal.cpp.

References drawMetalButton(), and TRUE.

void MetalStyle::drawMetalButton QPainter *  p,
int  x,
int  y,
int  w,
int  h,
bool  sunken = FALSE,
bool  horz = TRUE
 

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

Definition at line 197 of file metal.cpp.

References DRAWLINE, and i.

Referenced by drawBevelButton(), drawButton(), drawComboButton(), drawPushButton(), drawScrollBarControls(), and drawSlider().

void MetalStyle::drawPanel QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
bool  sunken,
int  lineWidth,
const QBrush *  fill
 

Definition at line 403 of file metal.cpp.

void MetalStyle::drawPushButton QPushButton *  btn,
QPainter *  p
 

Reimplementation from QStyle

Definition at line 320 of file metal.cpp.

References Qt::black, drawMetalButton(), FALSE, g, and TRUE.

void MetalStyle::drawPushButtonLabel QPushButton *  btn,
QPainter *  p
 

Reimplementation from QStyle

Definition at line 371 of file metal.cpp.

References g, Opie::MM::x, and Opie::MM::y.

void MetalStyle::drawScrollBarControls QPainter *  p,
const QScrollBar *  sb,
int  sliderStart,
uint  controls,
uint  activeControl
 

Definition at line 426 of file metal.cpp.

References drawMetalButton(), FALSE, and g.

void MetalStyle::drawSlider QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
Orientation  orient,
bool  tickAbove,
bool  tickBelow
 

Reimplemented

Definition at line 418 of file metal.cpp.

References drawMetalButton(), and FALSE.

void MetalStyle::polish QWidget *  w  ) 
 

Reimplementation from QStyle

Definition at line 127 of file metal.cpp.

References TRUE.

void MetalStyle::polish QApplication *  app  ) 
 

Reimplementation from QStyle

Definition at line 30 of file metal.cpp.

References active, background, Qt::black, f, i, oldPalette, TRUE, and Qt::white.

void MetalStyle::unPolish QWidget *   ) 
 

Definition at line 159 of file metal.cpp.

References FALSE.

void MetalStyle::unPolish QApplication *  app  ) 
 

Reimplementation from QStyle

Definition at line 118 of file metal.cpp.

References oldPalette, and TRUE.


Member Data Documentation

QPalette MetalStyle::oldPalette [private]
 

Definition at line 66 of file metal.h.

Referenced by polish(), and unPolish().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:40:11 2005 for OPIE by  doxygen 1.4.2