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

FreshStyle Class Reference

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

List of all members.

Public Member Functions

 FreshStyle ()
virtual ~FreshStyle ()
virtual void polish (QPalette &p)
virtual void polish (QWidget *w)
virtual void unPolish (QWidget *w)
int defaultFrameWidth () const
void drawPanel (QPainter *p, int x, int y, int w, int h, const QColorGroup &, bool sunken=FALSE, int lineWidth=1, const QBrush *fill=0)
void drawButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken, const QBrush *fill)
void drawButtonMask (QPainter *p, int x, int y, int w, int h)
void drawBevelButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
QRect comboButtonRect (int x, int y, int w, int h)
QRect comboButtonFocusRect (int x, int y, int w, int h)
void drawComboButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken, bool, bool enabled, const QBrush *fill)
void drawExclusiveIndicator (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool on, bool down=FALSE, bool enabled=TRUE)
void drawIndicator (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, int state, bool down=FALSE, bool enabled=TRUE)
void scrollBarMetrics (const QScrollBar *, int &, int &, int &, int &)
void drawScrollBarControls (QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl)
ScrollControl scrollBarPointOver (const QScrollBar *sb, int sliderStart, const QPoint &p)
void drawRiffles (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool horizontal)
int sliderLength () const
void drawSlider (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, Orientation, bool tickAbove, bool tickBelow)
void drawSliderMask (QPainter *p, int x, int y, int w, int h, Orientation, bool tickAbove, bool tickBelow)
void drawSliderGrooveMask (QPainter *p, int x, int y, int w, int h, const QColorGroup &, QCOORD c, Orientation orient)
void drawTab (QPainter *, const QTabBar *, QTab *, bool selected)
int extraPopupMenuItemWidth (bool checkable, int maxpmw, QMenuItem *, const QFontMetrics &)
int popupMenuItemHeight (bool checkable, QMenuItem *, const QFontMetrics &)
void drawPopupMenuItem (QPainter *p, bool checkable, int maxpmw, int tab, QMenuItem *mi, const QPalette &pal, bool act, bool enabled, int x, int y, int w, int h)
int buttonMargin () const
QSize scrollBarExtent () const


Constructor & Destructor Documentation

FreshStyle::FreshStyle  ) 
 

Definition at line 38 of file fresh.cpp.

FreshStyle::~FreshStyle  )  [virtual]
 

Definition at line 44 of file fresh.cpp.


Member Function Documentation

int FreshStyle::buttonMargin  )  const
 

Definition at line 48 of file fresh.cpp.

QRect FreshStyle::comboButtonFocusRect int  x,
int  y,
int  w,
int  h
 

Definition at line 152 of file fresh.cpp.

QRect FreshStyle::comboButtonRect int  x,
int  y,
int  w,
int  h
 

Definition at line 146 of file fresh.cpp.

int FreshStyle::defaultFrameWidth  )  const
 

Definition at line 86 of file fresh.cpp.

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

Definition at line 140 of file fresh.cpp.

References drawButton().

Referenced by drawComboButton(), drawScrollBarControls(), and drawSlider().

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

Definition at line 97 of file fresh.cpp.

References off.

Referenced by drawBevelButton(), and drawIndicator().

void FreshStyle::drawButtonMask QPainter *  p,
int  x,
int  y,
int  w,
int  h
 

Definition at line 135 of file fresh.cpp.

void FreshStyle::drawComboButton QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  sunken,
bool  ,
bool  enabled,
const QBrush *  fill
 

Definition at line 157 of file fresh.cpp.

References drawBevelButton(), and FALSE.

void FreshStyle::drawExclusiveIndicator QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  on,
bool  down = FALSE,
bool  enabled = TRUE
 

Definition at line 172 of file fresh.cpp.

References QCOORDARRLEN.

void FreshStyle::drawIndicator QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
int  state,
bool  down = FALSE,
bool  enabled = TRUE
 

Definition at line 206 of file fresh.cpp.

References drawButton(), i, Off, and TRUE.

void FreshStyle::drawPanel QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
bool  sunken = FALSE,
int  lineWidth = 1,
const QBrush *  fill = 0
 

Definition at line 91 of file fresh.cpp.

void FreshStyle::drawPopupMenuItem QPainter *  p,
bool  checkable,
int  maxpmw,
int  tab,
QMenuItem *  mi,
const QPalette &  pal,
bool  act,
bool  enabled,
int  x,
int  y,
int  w,
int  h
 

Definition at line 659 of file fresh.cpp.

References Disabled, FALSE, QString::find(), g, QString::isNull(), QString::mid(), motifArrowHMargin, motifItemFrame, motifItemHMargin, motifItemVMargin, Dasher::Opts::Normal, s, t, TRUE, and windowsRightBorder.

void FreshStyle::drawRiffles QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  horizontal
 

Definition at line 412 of file fresh.cpp.

References i.

Referenced by drawScrollBarControls().

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

Definition at line 307 of file fresh.cpp.

References ADD_LINE_ACTIVE, drawBevelButton(), drawRiffles(), FALSE, g, HORIZONTAL, scrollBarMetrics(), sliderLength(), SUB_LINE_ACTIVE, and VERTICAL.

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

Definition at line 463 of file fresh.cpp.

References drawBevelButton(), and FALSE.

void FreshStyle::drawSliderGrooveMask QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
QCOORD  c,
Orientation  orient
 

Definition at line 493 of file fresh.cpp.

void FreshStyle::drawSliderMask QPainter *  p,
int  x,
int  y,
int  w,
int  h,
Orientation  ,
bool  tickAbove,
bool  tickBelow
 

Definition at line 480 of file fresh.cpp.

void FreshStyle::drawTab QPainter *  ,
const QTabBar *  ,
QTab *  ,
bool  selected
 

Definition at line 504 of file fresh.cpp.

References i, and Opie::MM::y.

int FreshStyle::extraPopupMenuItemWidth bool  checkable,
int  maxpmw,
QMenuItem *  mi,
const QFontMetrics & 
 

Definition at line 604 of file fresh.cpp.

References motifCheckMarkHMargin, motifItemFrame, motifItemHMargin, motifTabSpacing, windowsCheckMarkWidth, and windowsRightBorder.

void FreshStyle::polish QWidget *  w  )  [virtual]
 

Definition at line 62 of file fresh.cpp.

References f.

void FreshStyle::polish QPalette &  p  )  [virtual]
 

Definition at line 58 of file fresh.cpp.

int FreshStyle::popupMenuItemHeight bool  checkable,
QMenuItem *  mi,
const QFontMetrics &  fm
 

Definition at line 639 of file fresh.cpp.

References motifItemFrame, motifItemVMargin, and motifSepHeight.

QSize FreshStyle::scrollBarExtent  )  const
 

Definition at line 53 of file fresh.cpp.

void FreshStyle::scrollBarMetrics const QScrollBar *  sb,
int &  sliderMin,
int &  sliderMax,
int &  sliderLength,
int &  buttonDim
 

Definition at line 251 of file fresh.cpp.

References HORIZONTAL, range, and SLIDER_MIN.

Referenced by drawScrollBarControls(), and scrollBarPointOver().

QStyle::ScrollControl FreshStyle::scrollBarPointOver const QScrollBar *  sb,
int  sliderStart,
const QPoint &  p
 

Definition at line 282 of file fresh.cpp.

References pos, scrollBarMetrics(), and sliderLength().

int FreshStyle::sliderLength  )  const
 

Definition at line 458 of file fresh.cpp.

Referenced by drawScrollBarControls(), and scrollBarPointOver().

void FreshStyle::unPolish QWidget *  w  )  [virtual]
 

Definition at line 74 of file fresh.cpp.

References f.


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