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

WebStyle Class Reference

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

List of all members.

Public Member Functions

 WebStyle ()
 ~WebStyle ()
void polish (QApplication *)
void unPolish (QWidget *)
void polish (QWidget *)
void polish (QPalette &)
void unPolish (QApplication *)
void drawButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)
QRect buttonRect (int x, int y, int w, int h)
void drawBevelButton (QPainter *, int x, int y, int w, int h, const QColorGroup &, bool sunken=false, const QBrush *fill=0)
void drawPushButton (QPushButton *, QPainter *)
virtual void drawPushButtonLabel (QPushButton *, QPainter *)
void drawScrollBarControls (QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl)
QStyle::ScrollControl scrollBarPointOver (const QScrollBar *, int sliderStart, const QPoint &)
void scrollBarMetrics (const QScrollBar *, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim)
QSize indicatorSize () const
void drawIndicator (QPainter *, int x, int y, int w, int h, const QColorGroup &, int state, bool down=false, bool enabled=true)
QSize exclusiveIndicatorSize () const
void drawExclusiveIndicator (QPainter *, int x, int y, int w, int h, const QColorGroup &, bool on, bool down=false, bool enabled=true)
void drawIndicatorMask (QPainter *, int x, int y, int w, int h, int state)
void drawExclusiveIndicatorMask (QPainter *, int x, int y, int w, int h, bool on)
void drawComboButton (QPainter *, int x, int y, int w, int h, const QColorGroup &, bool sunken=false, bool editable=false, bool enabled=true, const QBrush *fill=0)
QRect comboButtonRect (int x, int y, int w, int h)
QRect comboButtonFocusRect (int x, int y, int w, int h)
int sliderLength () const
void drawSliderGroove (QPainter *, int x, int y, int w, int h, const QColorGroup &, QCOORD, Orientation)
void drawArrow (QPainter *, Qt::ArrowType, bool down, int x, int y, int w, int h, const QColorGroup &, bool enabled=true, const QBrush *fill=0)
void drawSlider (QPainter *, int x, int y, int w, int h, const QColorGroup &, Orientation, bool tickAbove, bool tickBelow)
void drawPopupMenuItem (QPainter *, bool checkable, int maxpmw, int tabwidth, QMenuItem *, const QPalette &, bool act, bool enabled, int x, int y, int w, int h)
void drawFocusRect (QPainter *, const QRect &, const QColorGroup &, const QColor *pen, bool atBorder)
void drawPanel (QPainter *, int x, int y, int w, int h, const QColorGroup &, bool sunken, int lineWidth=1, const QBrush *=0)
void drawPopupPanel (QPainter *, int x, int y, int w, int h, const QColorGroup &, int lineWidth=2, const QBrush *=0)
void drawSeparator (QPainter *, int x, int y, int w, int h, const QColorGroup &, bool sunken=true, int lineWidth=1, int midLineWidth=0)
void drawTab (QPainter *p, const QTabBar *tabBar, QTab *tab, bool selected)
void drawTabMask (QPainter *p, const QTabBar *, QTab *tab, bool)
int popupMenuItemHeight (bool, QMenuItem *, const QFontMetrics &)
GUIStyle guiStyle () const
bool eventFilter (QObject *, QEvent *)


Constructor & Destructor Documentation

WebStyle::WebStyle  ) 
 

Definition at line 223 of file webstyle.cpp.

References _scrollBarExtent.

WebStyle::~WebStyle  ) 
 

Definition at line 232 of file webstyle.cpp.


Member Function Documentation

QRect WebStyle::buttonRect int  x,
int  y,
int  w,
int  h
 

Definition at line 350 of file webstyle.cpp.

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

Definition at line 889 of file webstyle.cpp.

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

Definition at line 883 of file webstyle.cpp.

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

Definition at line 928 of file webstyle.cpp.

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

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

Definition at line 357 of file webstyle.cpp.

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

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

Definition at line 324 of file webstyle.cpp.

References contrastingForeground(), drawFunkyRect(), g, p, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawComboButton QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
bool  sunken = false,
bool  editable = false,
bool  enabled = true,
const QBrush *  fill = 0
 

Definition at line 823 of file webstyle.cpp.

References contrastingForeground(), drawFunkyRect(), g, p, Qt::red, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawExclusiveIndicator QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
bool  on,
bool  down = false,
bool  enabled = true
 

Definition at line 738 of file webstyle.cpp.

References contrastingForeground(), g, on, p, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawExclusiveIndicatorMask QPainter *  ,
int  x,
int  y,
int  w,
int  h,
bool  on
 

Definition at line 801 of file webstyle.cpp.

References Qt::color1, p, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawFocusRect QPainter *  ,
const QRect &  ,
const QColorGroup &  ,
const QColor *  pen,
bool  atBorder
 

Definition at line 1109 of file webstyle.cpp.

References g, and p.

void WebStyle::drawIndicator QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
int  state,
bool  down = false,
bool  enabled = true
 

Definition at line 690 of file webstyle.cpp.

References contrastingForeground(), g, Off, p, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawIndicatorMask QPainter *  ,
int  x,
int  y,
int  w,
int  h,
int  state
 

Definition at line 787 of file webstyle.cpp.

References Qt::color1, p, Opie::MM::x, and Opie::MM::y.

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

Definition at line 1137 of file webstyle.cpp.

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

void WebStyle::drawPopupMenuItem QPainter *  ,
bool  checkable,
int  maxpmw,
int  tabwidth,
QMenuItem *  ,
const QPalette &  ,
bool  act,
bool  enabled,
int  x,
int  y,
int  w,
int  h
 

Definition at line 977 of file webstyle.cpp.

References ARROWMARGIN, Disabled, QString::find(), g, QString::isNull(), ITEMFRAME, ITEMHMARGIN, ITEMVMARGIN, QString::left(), QString::mid(), Dasher::Opts::Normal, p, RIGHTBORDER, t, text, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawPopupPanel QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
int  lineWidth = 2,
const QBrush *  = 0
 

Definition at line 1162 of file webstyle.cpp.

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

void WebStyle::drawPushButton QPushButton *  ,
QPainter * 
 

Definition at line 372 of file webstyle.cpp.

References _highlightedButton, contrastingForeground(), and drawFunkyRect().

void WebStyle::drawPushButtonLabel QPushButton *  ,
QPainter * 
[virtual]
 

Definition at line 427 of file webstyle.cpp.

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

Definition at line 436 of file webstyle.cpp.

References _scrollBarExtent, active, Qt::DownArrow, g, Qt::LeftArrow, p, Qt::RightArrow, scrollBarControlsMetrics(), t, and Qt::UpArrow.

void WebStyle::drawSeparator QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
bool  sunken = true,
int  lineWidth = 1,
int  midLineWidth = 0
 

Definition at line 1186 of file webstyle.cpp.

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

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

Definition at line 946 of file webstyle.cpp.

References g, Qt::Horizontal, o, p, Qt::Vertical, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawSliderGroove QPainter *  ,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  ,
QCOORD  ,
Orientation 
 

Definition at line 902 of file webstyle.cpp.

References Qt::DotLine, g, Qt::Horizontal, o, p, Qt::Vertical, Opie::MM::x, and Opie::MM::y.

void WebStyle::drawTab QPainter *  p,
const QTabBar *  tabBar,
QTab *  tab,
bool  selected
 

Definition at line 1216 of file webstyle.cpp.

References g, and p.

void WebStyle::drawTabMask QPainter *  p,
const QTabBar *  ,
QTab *  tab,
bool 
 

Definition at line 1263 of file webstyle.cpp.

References Qt::color1, and p.

bool WebStyle::eventFilter QObject *  ,
QEvent * 
 

Definition at line 304 of file webstyle.cpp.

References _highlightedButton.

QSize WebStyle::exclusiveIndicatorSize  )  const
 

Definition at line 731 of file webstyle.cpp.

References _indicatorSize.

GUIStyle WebStyle::guiStyle  )  const [inline]
 

Definition at line 294 of file webstyle.h.

References Qt::MotifStyle.

QSize WebStyle::indicatorSize  )  const
 

Definition at line 683 of file webstyle.cpp.

References _indicatorSize.

void WebStyle::polish QPalette &   ) 
 

Definition at line 244 of file webstyle.cpp.

void WebStyle::polish QWidget *   ) 
 

Definition at line 256 of file webstyle.cpp.

References _currentFrame, _savedFrameLineWidth, _savedFrameMidLineWidth, _savedFrameStyle, and f.

void WebStyle::polish QApplication *   ) 
 

Definition at line 238 of file webstyle.cpp.

int WebStyle::popupMenuItemHeight bool  ,
QMenuItem *  ,
const QFontMetrics & 
 

Definition at line 1275 of file webstyle.cpp.

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

Definition at line 638 of file webstyle.cpp.

References _scrollBarExtent, and len.

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

Definition at line 585 of file webstyle.cpp.

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

int WebStyle::sliderLength  )  const
 

Definition at line 895 of file webstyle.cpp.

void WebStyle::unPolish QApplication *   ) 
 

Definition at line 250 of file webstyle.cpp.

void WebStyle::unPolish QWidget *   ) 
 

Definition at line 288 of file webstyle.cpp.

References _currentFrame, _savedFrameLineWidth, _savedFrameMidLineWidth, _savedFrameStyle, and f.


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