Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

PlastikStyle Class Reference

#include <plastik.h>

Inheritance diagram for PlastikStyle:

KStyle List of all members.

Public Member Functions

 PlastikStyle ()
virtual ~PlastikStyle ()
bool inheritsKHTML (const QWidget *widget) const
void polish (QApplication *app)
void polish (QWidget *widget)
void unPolish (QWidget *widget)
void drawKStylePrimitive (KStylePrimitive kpe, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const
void drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &opt=QStyleOption::Default) const
void drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const
void drawControlMask (ControlElement, QPainter *, const QWidget *, const QRect &, const QStyleOption &) const
void drawComplexControl (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, SCFlags controls=SC_All, SCFlags active=SC_None, const QStyleOption &=QStyleOption::Default) const
int pixelMetric (PixelMetric m, const QWidget *widget=0) const
QRect subRect (SubRect r, const QWidget *widget) const
QRect querySubControlMetrics (ComplexControl control, const QWidget *widget, SubControl subcontrol, const QStyleOption &opt=QStyleOption::Default) const
void drawComplexControlMask (QStyle::ComplexControl c, QPainter *p, const QWidget *w, const QRect &r, const QStyleOption &o=QStyleOption::Default) const
QSize sizeFromContents (QStyle::ContentsType t, const QWidget *w, const QSize &s, const QStyleOption &o) const

Protected Types

enum  TabPosition { First = 0, Middle, Last, Single }
enum  ColorType {
  ButtonContour, ButtonSurface, PanelContour, PanelLight,
  PanelLight2, PanelDark, PanelDark2
}
enum  SurfaceFlags {
  Draw_Left = 0x00000001, Draw_Right = 0x00000002, Draw_Top = 0x00000004, Draw_Bottom = 0x00000008,
  Highlight_Left = 0x00000010, Highlight_Right = 0x00000020, Highlight_Top = 0x00000040, Highlight_Bottom = 0x00000080,
  Is_Sunken = 0x00000100, Is_Horizontal = 0x00000200, Is_Highlight = 0x00000400, Is_Default = 0x00000800,
  Is_Disabled = 0x00001000, Round_UpperLeft = 0x00002000, Round_UpperRight = 0x00004000, Round_BottomLeft = 0x00008000,
  Round_BottomRight = 0x00010000
}

Protected Slots

QColor getColor (const QColorGroup &cg, const ColorType t, const bool enabled=true) const

Protected Member Functions

void renderContour (QPainter *p, const QRect &r, const QColor &backgroundColor, const QColor &contourColor, const uint flags=Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const
void renderMask (QPainter *p, const QRect &r, const QColor &color, const uint flags=Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const
void renderSurface (QPainter *p, const QRect &r, const QColor &backgroundColor, const QColor &buttonColor, const QColor &highlightColor, int intensity=5, const uint flags=Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const
void renderButton (QPainter *p, const QRect &r, const QColorGroup &g, bool sunken=false, bool mouseOver=false, bool horizontal=true, bool enabled=true) const
void renderHeader (QPainter *p, const QRect &r, const QColorGroup &g, bool sunken=false, bool mouseOver=false, bool horizontal=true, bool enabled=true) const
void renderPanel (QPainter *p, const QRect &r, const QColorGroup &g, const bool pseudo3d=true, const bool sunken=true, const bool thick=false) const
void renderSliderHandle (QPainter *p, const QRect &r, const QColorGroup &g, const bool mouseOver, const bool horizontal=true, const bool enabled=true) const
void renderDot (QPainter *p, const QPoint &point, const QColor &baseColor, const bool thick=false, const bool sunken=false) const
void renderTab (QPainter *p, const QRect &r, const QColorGroup &g, bool mouseOver=false, const bool selected=false, const bool bottom=false, const TabPosition pos=Middle, const bool triangular=false) const
bool eventFilter (QObject *, QEvent *)

Protected Attributes

QWidget * hoverWidget

Private Member Functions

 PlastikStyle (const PlastikStyle &)
PlastikStyleoperator= (const PlastikStyle &)

Private Attributes

QSettings * settings
bool kickerMode
bool kornMode
bool reverseLayout
int _contrast
bool _scrollBarLines
QValueList< QWidget * > m_widgets

Member Enumeration Documentation

enum PlastikStyle::ColorType [protected]
 

Enumeration values:
ButtonContour 
ButtonSurface 
PanelContour 
PanelLight 
PanelLight2 
PanelDark 
PanelDark2 

enum PlastikStyle::SurfaceFlags [protected]
 

Enumeration values:
Draw_Left 
Draw_Right 
Draw_Top 
Draw_Bottom 
Highlight_Left 
Highlight_Right 
Highlight_Top 
Highlight_Bottom 
Is_Sunken 
Is_Horizontal 
Is_Highlight 
Is_Default 
Is_Disabled 
Round_UpperLeft 
Round_UpperRight 
Round_BottomLeft 
Round_BottomRight 

enum PlastikStyle::TabPosition [protected]
 

Enumeration values:
First 
Middle 
Last 
Single 


Constructor & Destructor Documentation

PlastikStyle::PlastikStyle  ) 
 

PlastikStyle::~PlastikStyle  )  [virtual]
 

PlastikStyle::PlastikStyle const PlastikStyle  )  [private]
 


Member Function Documentation

void PlastikStyle::drawComplexControl ComplexControl  control,
QPainter *  p,
const QWidget *  widget,
const QRect &  r,
const QColorGroup &  cg,
SFlags  flags = Style_Default,
SCFlags  controls = SC_All,
SCFlags  active = SC_None,
const QStyleOption &  = QStyleOption::Default
const
 

Reimplemented from KStyle.

void PlastikStyle::drawComplexControlMask QStyle::ComplexControl  c,
QPainter *  p,
const QWidget *  w,
const QRect &  r,
const QStyleOption &  o = QStyleOption::Default
const
 

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

active &&

Reimplemented from KStyle.

void PlastikStyle::drawControlMask ControlElement  ,
QPainter *  ,
const QWidget *  ,
const QRect &  ,
const QStyleOption & 
const
 

void PlastikStyle::drawKStylePrimitive KStylePrimitive  kpe,
QPainter *  p,
const QWidget *  widget,
const QRect &  r,
const QColorGroup &  cg,
SFlags  flags = Style_Default,
const QStyleOption &  = QStyleOption::Default
const [virtual]
 

Reimplemented from KStyle.

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

Reimplemented from KStyle.

bool PlastikStyle::eventFilter QObject *  ,
QEvent * 
[protected]
 

Reimplemented from KStyle.

QColor PlastikStyle::getColor const QColorGroup &  cg,
const ColorType  t,
const bool  enabled = true
const [protected, slot]
 

bool PlastikStyle::inheritsKHTML const QWidget *  widget  )  const
 

PlastikStyle& PlastikStyle::operator= const PlastikStyle  )  [private]
 

int PlastikStyle::pixelMetric PixelMetric  m,
const QWidget *  widget = 0
const
 

Reimplemented from KStyle.

void PlastikStyle::polish QWidget *  widget  ) 
 

Reimplemented from KStyle.

void PlastikStyle::polish QApplication *  app  ) 
 

QRect PlastikStyle::querySubControlMetrics ComplexControl  control,
const QWidget *  widget,
SubControl  subcontrol,
const QStyleOption &  opt = QStyleOption::Default
const
 

Reimplemented from KStyle.

void PlastikStyle::renderButton QPainter *  p,
const QRect &  r,
const QColorGroup &  g,
bool  sunken = false,
bool  mouseOver = false,
bool  horizontal = true,
bool  enabled = true
const [protected]
 

void PlastikStyle::renderContour QPainter *  p,
const QRect &  r,
const QColor &  backgroundColor,
const QColor &  contourColor,
const uint  flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight
const [protected]
 

void PlastikStyle::renderDot QPainter *  p,
const QPoint &  point,
const QColor &  baseColor,
const bool  thick = false,
const bool  sunken = false
const [protected]
 

void PlastikStyle::renderHeader QPainter *  p,
const QRect &  r,
const QColorGroup &  g,
bool  sunken = false,
bool  mouseOver = false,
bool  horizontal = true,
bool  enabled = true
const [protected]
 

void PlastikStyle::renderMask QPainter *  p,
const QRect &  r,
const QColor &  color,
const uint  flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight
const [protected]
 

void PlastikStyle::renderPanel QPainter *  p,
const QRect &  r,
const QColorGroup &  g,
const bool  pseudo3d = true,
const bool  sunken = true,
const bool  thick = false
const [protected]
 

void PlastikStyle::renderSliderHandle QPainter *  p,
const QRect &  r,
const QColorGroup &  g,
const bool  mouseOver,
const bool  horizontal = true,
const bool  enabled = true
const [protected]
 

void PlastikStyle::renderSurface QPainter *  p,
const QRect &  r,
const QColor &  backgroundColor,
const QColor &  buttonColor,
const QColor &  highlightColor,
int  intensity = 5,
const uint  flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal
const [protected]
 

void PlastikStyle::renderTab QPainter *  p,
const QRect &  r,
const QColorGroup &  g,
bool  mouseOver = false,
const bool  selected = false,
const bool  bottom = false,
const TabPosition  pos = Middle,
const bool  triangular = false
const [protected]
 

QSize PlastikStyle::sizeFromContents QStyle::ContentsType  t,
const QWidget *  w,
const QSize &  s,
const QStyleOption &  o
const
 

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

Reimplemented from KStyle.

void PlastikStyle::unPolish QWidget *  widget  ) 
 

Reimplemented from KStyle.


Member Data Documentation

int PlastikStyle::_contrast [private]
 

bool PlastikStyle::_scrollBarLines [private]
 

QWidget* PlastikStyle::hoverWidget [protected]
 

bool PlastikStyle::kickerMode [private]
 

bool PlastikStyle::kornMode [private]
 

QValueList<QWidget*> PlastikStyle::m_widgets [private]
 

bool PlastikStyle::reverseLayout [private]
 

QSettings* PlastikStyle::settings [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 27 12:01:41 2004 for Glitch by doxygen 1.3.2