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

PhaseStyle Class Reference

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

List of all members.

Public Member Functions

 PhaseStyle ()
virtual ~PhaseStyle ()
virtual void polish (QWidget *)
virtual void polish (QPalette &)
virtual void polish (QApplication *a)
virtual void unPolish (QWidget *)
virtual void unPolish (QApplication *a)
void drawCheckMark (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool act, bool dis)
void drawArrow (QPainter *p, Qt::ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup &g, bool enabled=true, const QBrush *fill=0)
void drawPushButton (QPushButton *btn, QPainter *p)
void drawPushButtonLabel (QPushButton *btn, QPainter *p)
void drawPanel (QPainter *p, int, int, int, int, const QColorGroup &, bool sunken=false, int lineWidth=1, const QBrush *b=0l)
void drawButton (QPainter *, int x, int y, int w, int h, const QColorGroup &, bool sunken=false, const QBrush *fill=0)
void drawBevelButton (QPainter *, int, int, int, int, const QColorGroup &, bool sunken=false, const QBrush *fill=0)
void drawFocusRect (QPainter *p, const QRect &r, const QColorGroup &, const QColor *=0, bool atBorder=false)
void drawButtonMask (QPainter *p, int x, int y, int w, int h)
void drawSeperator (QPainter *p, int x, int y, int w, int h, const QColorGroup &group, bool sunken=true, int lineWidth=1, int midLineWidtth=0)
void drawMenuBarItem (QPainter *p, int x, int y, int w, int h, QMenuItem *mi, QColorGroup &g, bool enabled, bool act)
void drawIndicator (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, int state, bool down=FALSE, bool enabled=TRUE)
void drawExclusiveIndicator (QPainter *, int, int, int, int, const QColorGroup &, bool on, bool down=false, bool enabled=true)
void drawExclusiveIndicatorMask (QPainter *, int, int, int, int, bool)
int defaultFrameWidth () const
int popupMenuItemHeight (bool checkable, QMenuItem *mi, const QFontMetrics &fm)
int extraPopupMenuItemWidth (bool checkable, int maxpmw, QMenuItem *mi, const QFontMetrics &fm)
QSize indicatorSize () const
QSize exclusiveIndicatorSize () const
void getButtonShift (int &x, int &y)
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)
QRect comboButtonRect (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=FALSE, bool editable=FALSE, bool enabled=TRUE, const QBrush *fill=0)
void drawTab (QPainter *, const QTabBar *, QTab *, bool selected)
void drawTabMask (QPainter *, const QTabBar *, QTab *, bool)
void tabbarMetrics (const QTabBar *t, int &hframe, int &vframe, int &overlap)
void drawToolButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
void drawScrollBarControls (QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl)
void scrollBarMetrics (const QScrollBar *, int &, int &, int &, int &)
QStyle::ScrollControl scrollBarPointOver (const QScrollBar *, int sliderStart, const QPoint &)
void drawSlider (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, Orientation, bool tickAbove, bool tickBelow)
void drawSliderGroove (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QCOORD c, Orientation)

Private Member Functions

void drawPhaseGradient (QPainter *p, const QRect &rec, const QColor &col) const

Static Private Member Functions

static void scrollBarItemPositions (const QScrollBar *, const bool horizontal, int sliderStart, int sliderMax, int sliderLength, int buttomDim, QRect &sub, QRect &add, QRect &subPage, QRect &addPage, QRect &slider)


Constructor & Destructor Documentation

PhaseStyle::PhaseStyle  ) 
 

Definition at line 93 of file phasestyle.cpp.

References bcheck, bcheck_bits, bminus, bminus_bits, bplus, bplus_bits, darrow, darrow_bits, dexpand, dexpand_bits, doodad_light, doodad_light_bits, doodad_mid, doodad_mid_bits, larrow, larrow_bits, rarrow, rarrow_bits, rexpand, rexpand_bits, SCROLLBAR_EXTENT, uarrow, and uarrow_bits.

PhaseStyle::~PhaseStyle  )  [virtual]
 

Definition at line 127 of file phasestyle.cpp.


Member Function Documentation

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

Definition at line 741 of file phasestyle.cpp.

int PhaseStyle::defaultFrameWidth  )  const
 

Definition at line 552 of file phasestyle.cpp.

void PhaseStyle::drawArrow QPainter *  p,
Qt::ArrowType  type,
bool  down,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  enabled = true,
const QBrush *  fill = 0
 

Definition at line 138 of file phasestyle.cpp.

References darrow, larrow, rarrow, and uarrow.

Referenced by drawPopupMenuItem(), drawPushButtonLabel(), and drawScrollBarControls().

void PhaseStyle::drawBevelButton QPainter *  ,
int  ,
int  ,
int  ,
int  ,
const QColorGroup &  ,
bool  sunken = false,
const QBrush *  fill = 0
 

Definition at line 267 of file phasestyle.cpp.

References drawPhaseGradient().

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

void PhaseStyle::drawButton QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
bool  sunken = false,
const QBrush *  fill = 0
 

Definition at line 237 of file phasestyle.cpp.

References drawBevelButton().

Referenced by drawComboButton(), and drawPushButton().

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

Definition at line 259 of file phasestyle.cpp.

References Qt::color0, and Qt::color1.

void PhaseStyle::drawCheckMark QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  act,
bool  dis
 

Definition at line 131 of file phasestyle.cpp.

References bcheck.

Referenced by drawPopupMenuItem().

void PhaseStyle::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 745 of file phasestyle.cpp.

References doodad_light, doodad_mid, drawButton(), and kColorBitmaps().

void PhaseStyle::drawExclusiveIndicator QPainter *  ,
int  ,
int  ,
int  ,
int  ,
const QColorGroup &  ,
bool  on,
bool  down = false,
bool  enabled = true
 

Definition at line 491 of file phasestyle.cpp.

void PhaseStyle::drawExclusiveIndicatorMask QPainter *  ,
int  ,
int  ,
int  ,
int  ,
bool 
 

Definition at line 527 of file phasestyle.cpp.

References Qt::color1.

void PhaseStyle::drawFocusRect QPainter *  p,
const QRect &  r,
const QColorGroup &  ,
const QColor *  = 0,
bool  atBorder = false
 

Definition at line 433 of file phasestyle.cpp.

References contrast.

Referenced by drawPushButton(), and drawScrollBarControls().

void PhaseStyle::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 475 of file phasestyle.cpp.

References drawPanel().

void PhaseStyle::drawMenuBarItem QPainter *  p,
int  x,
int  y,
int  w,
int  h,
QMenuItem *  mi,
QColorGroup &  g,
bool  enabled,
bool  act
 

Definition at line 468 of file phasestyle.cpp.

Referenced by polish().

void PhaseStyle::drawPanel QPainter *  p,
int  ,
int  ,
int  ,
int  ,
const QColorGroup &  ,
bool  sunken = false,
int  lineWidth = 1,
const QBrush *  b = 0l
 

Definition at line 196 of file phasestyle.cpp.

Referenced by drawIndicator(), drawPushButton(), drawSliderGroove(), and drawToolButton().

void PhaseStyle::drawPhaseGradient QPainter *  p,
const QRect &  rec,
const QColor &  col
const [private]
 

Definition at line 299 of file phasestyle.cpp.

Referenced by drawBevelButton(), and drawTab().

void PhaseStyle::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 622 of file phasestyle.cpp.

References ARROWMARGIN, Disabled, drawArrow(), drawCheckMark(), QString::find(), g, QString::isNull(), ITEMFRAME, ITEMHMARGIN, ITEMVMARGIN, QString::left(), QString::mid(), Dasher::Opts::Normal, RIGHTBORDER, t, and text.

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

Definition at line 166 of file phasestyle.cpp.

References col, drawBevelButton(), drawButton(), drawFocusRect(), drawPanel(), Opie::MM::x, and Opie::MM::y.

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

Definition at line 350 of file phasestyle.cpp.

References active, Disabled, Qt::DownArrow, drawArrow(), Dasher::Opts::Normal, Opie::MM::x, and Opie::MM::y.

void PhaseStyle::drawScrollBarControls QPainter *  ,
const QScrollBar *  ,
int  sliderStart,
uint  controls,
uint  activeControl
 

Definition at line 969 of file phasestyle.cpp.

References add, doodad_light, doodad_mid, drawArrow(), drawBevelButton(), drawFocusRect(), g, Qt::Horizontal, kColorBitmaps(), scrollBarItemPositions(), scrollBarMetrics(), Opie::MM::x, and Opie::MM::y.

void PhaseStyle::drawSeperator QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  group,
bool  sunken = true,
int  lineWidth = 1,
int  midLineWidtth = 0
 

Definition at line 453 of file phasestyle.cpp.

References qWarning().

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

Definition at line 1208 of file phasestyle.cpp.

References drawBevelButton().

void PhaseStyle::drawSliderGroove QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
QCOORD  c,
Orientation 
 

Definition at line 1228 of file phasestyle.cpp.

References drawPanel().

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

Definition at line 780 of file phasestyle.cpp.

References contrast, drawPhaseGradient(), Qt::NoPen, Opie::MM::x, and Opie::MM::y.

void PhaseStyle::drawTabMask QPainter *  ,
const QTabBar *  ,
QTab *  ,
bool 
 

Definition at line 911 of file phasestyle.cpp.

References Qt::color1.

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

Definition at line 916 of file phasestyle.cpp.

References drawPanel().

QSize PhaseStyle::exclusiveIndicatorSize  )  const
 

Definition at line 613 of file phasestyle.cpp.

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

Definition at line 583 of file phasestyle.cpp.

References ARROWMARGIN, ITEMHMARGIN, and RIGHTBORDER.

void PhaseStyle::getButtonShift int &  x,
int &  y
 

Definition at line 617 of file phasestyle.cpp.

QSize PhaseStyle::indicatorSize  )  const
 

Definition at line 609 of file phasestyle.cpp.

void PhaseStyle::polish QApplication *  a  )  [virtual]
 

Definition at line 339 of file phasestyle.cpp.

References drawMenuBarItem(), and qt_set_draw_menu_bar_impl().

void PhaseStyle::polish QPalette &   )  [virtual]
 

Definition at line 326 of file phasestyle.cpp.

References contrast, and Disabled.

void PhaseStyle::polish QWidget *   )  [virtual]
 

Definition at line 305 of file phasestyle.cpp.

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

Definition at line 556 of file phasestyle.cpp.

References ITEMFRAME, ITEMVMARGIN, and MINICONSIZE.

void PhaseStyle::scrollBarItemPositions const QScrollBar *  ,
const bool  horizontal,
int  sliderStart,
int  sliderMax,
int  sliderLength,
int  buttomDim,
QRect &  sub,
QRect &  add,
QRect &  subPage,
QRect &  addPage,
QRect &  slider
[static, private]
 

Definition at line 1135 of file phasestyle.cpp.

References g, and len.

Referenced by drawScrollBarControls().

void PhaseStyle::scrollBarMetrics const QScrollBar *  ,
int &  ,
int &  ,
int &  ,
int & 
 

Definition at line 936 of file phasestyle.cpp.

References len, and SCROLLBAR_EXTENT.

Referenced by drawScrollBarControls(), and scrollBarPointOver().

QStyle::ScrollControl PhaseStyle::scrollBarPointOver const QScrollBar *  ,
int  sliderStart,
const QPoint & 
 

Definition at line 1091 of file phasestyle.cpp.

References scrollBarMetrics(), Opie::MM::x, and Opie::MM::y.

void PhaseStyle::tabbarMetrics const QTabBar *  t,
int &  hframe,
int &  vframe,
int &  overlap
 

Definition at line 773 of file phasestyle.cpp.

void PhaseStyle::unPolish QApplication *  a  )  [virtual]
 

Definition at line 345 of file phasestyle.cpp.

References qt_set_draw_menu_bar_impl().

void PhaseStyle::unPolish QWidget *   )  [virtual]
 

Definition at line 321 of file phasestyle.cpp.


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