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

OThemeStyle Class Reference

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

Inheritance diagram for OThemeStyle:

Inheritance graph
[legend]
Collaboration diagram for OThemeStyle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OThemeStyle (const QString &configFile=QString::null)
 ~OThemeStyle ()
virtual void polish (QWidget *)
virtual void unPolish (QWidget *)
virtual void polish (QApplication *app)
virtual void unPolish (QApplication *)
virtual void polish (QPalette &pal)
virtual bool eventFilter (QObject *obj, QEvent *ev)
virtual void drawBaseButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, bool rounded=FALSE, WidgetType type=Bevel, const QBrush *fill=0)
virtual void drawBaseMask (QPainter *p, int x, int y, int w, int h, bool rounded)
virtual void drawButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
virtual void drawBevelButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
virtual void drawToolButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=FALSE, const QBrush *fill=0)
virtual QRect buttonRect (int x, int y, int w, int h)
virtual 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)
virtual QSize exclusiveIndicatorSize () const
virtual void drawExclusiveIndicator (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool on, bool down=FALSE, bool enabled=TRUE)
virtual void drawExclusiveIndicatorMask (QPainter *p, int x, int y, int w, int h, bool on)
virtual void drawIndicatorMask (QPainter *p, int x, int y, int w, int h, int state)
virtual void drawButtonMask (QPainter *p, int x, int y, int w, int h)
virtual void drawComboButtonMask (QPainter *p, int x, int y, int w, int h)
virtual QSize indicatorSize () const
virtual void drawIndicator (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, int state, bool down=FALSE, bool enabled=TRUE)
virtual 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)
virtual void drawPushButton (QPushButton *btn, QPainter *p)
virtual void getButtonShift (int &x, int &y)
virtual int defaultFrameWidth () const
virtual void scrollBarMetrics (const QScrollBar *, int &, int &, int &, int &)
virtual void drawScrollBarControls (QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl)
virtual ScrollControl scrollBarPointOver (const QScrollBar *, int sliderStart, const QPoint &)
virtual int sliderLength () const
virtual 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)
virtual void drawSliderMask (QPainter *p, int x, int y, int w, int h, Orientation, bool tickAbove, bool tickBelow)
virtual void drawScrollBarGroove (QPainter *p, const QScrollBar *sb, bool horizontal, QRect r, QColorGroup g)
virtual void drawShade (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken, bool rounded, int hWidth, int bWidth, ShadeStyle style)
virtual void drawPushButtonLabel (QPushButton *btn, QPainter *p)
virtual void drawMenuBarItem (QPainter *p, int x, int y, int w, int h, QMenuItem *item, const QColorGroup &g, bool enabled, bool active)
virtual int splitterWidth () const
virtual void drawSplitter (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, Orientation)
virtual void drawCheckMark (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool act, bool dis)
virtual 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 popupMenuItemHeight (bool checkable, QMenuItem *mi, const QFontMetrics &fm)
void drawFocusRect (QPainter *p, const QRect &r, const QColorGroup &g, const QColor *c=0, bool atBorder=false)
virtual void drawProgressBar (QPainter *, int, int, int, int, const QColorGroup &, int)
virtual void tabbarMetrics (const QTabBar *, int &, int &, int &)
virtual void drawTab (QPainter *, const QTabBar *, QTab *, bool selected)
virtual void drawTabMask (QPainter *, const QTabBar *, QTab *, bool selected)

Protected Attributes

QPalette oldPalette
QPalette popupPalette
QPalette indiPalette
QPalette exIndiPalette
OThemeStylePrivate * d

Detailed Description

KDE themed styles.

It provides methods for drawing most widgets with user-specified borders, highlights, pixmaps, etc. It also handles various other settings such as scrollbar types, rounded buttons, and shading types. For a full list of parameters this class handles refer to the KDE theme configuration documentation.

Definition at line 43 of file othemestyle.h.


Constructor & Destructor Documentation

OThemeStyle::OThemeStyle const QString configFile = QString::null  ) 
 

Construct a new OThemeStyle object.

Parameters:
configFile A KConfig file to use as the theme configuration. Defaults to ~/.kderc.

Definition at line 93 of file othemestyle.cpp.

References OThemeBase::getSBExtent().

OThemeStyle::~OThemeStyle  ) 
 

Definition at line 100 of file othemestyle.cpp.


Member Function Documentation

QRect OThemeStyle::buttonRect int  x,
int  y,
int  w,
int  h
[virtual]
 

Return the space available in a pushbutton, taking configurable borders and highlights into account.

Definition at line 532 of file othemestyle.cpp.

References OThemeBase::decoWidth(), OThemeBase::PushButton, and OThemeBase::PushButtonDown.

int OThemeStyle::defaultFrameWidth  )  const [virtual]
 

Return the frame width.

Definition at line 933 of file othemestyle.cpp.

References OThemeBase::frameWidth().

void OThemeStyle::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
[virtual]
 

Draw an arrow in the style specified by the config file.

Definition at line 949 of file othemestyle.cpp.

References OThemeBase::ArrowDown, OThemeBase::ArrowLeft, OThemeBase::ArrowRight, OThemeBase::arrowType(), OThemeBase::ArrowUp, OThemeBase::colorGroup(), OThemeBase::DisArrowDown, OThemeBase::DisArrowLeft, OThemeBase::DisArrowRight, OThemeBase::DisArrowUp, Qt::DownArrow, height, OThemeBase::isPixmap(), Qt::LeftArrow, OThemeBase::MotifArrow, Qt::MotifStyle, OThemeBase::SmallArrow, OThemeBase::SunkenArrowDown, OThemeBase::SunkenArrowLeft, OThemeBase::SunkenArrowRight, OThemeBase::SunkenArrowUp, OThemeBase::uncached(), Qt::UpArrow, and width.

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

void OThemeStyle::drawBaseButton QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  sunken = FALSE,
bool  rounded = FALSE,
WidgetType  type = Bevel,
const QBrush *  fill = 0
[virtual]
 

This is a convenience method for drawing widgets with borders, highlights, pixmaps, colors, etc... You specify the widget type and it will draw it according to the config file settings.

Parameters:
p The QPainter to draw on.
g The color group to use.
rounded true if the widget is rounded, false if rectangular.
type The widget type to paint.
fill An optional fill brush. Currently ignored (the config file is used instead).

Definition at line 248 of file othemestyle.cpp.

References bitBlt(), OThemeBase::borderPixmap(), OThemeBase::borderWidth(), Qt::CopyROP, OThemeBase::decoWidth(), drawShade(), false, OThemeBase::gradientHint(), OThemeBase::GrReverseBevel, OThemeBase::highlightWidth(), i, OThemeBase::isPixmap(), OThemeBase::KDE, OThemeBase::scaleBorder(), OThemeBase::scalePixmap(), OThemeBase::shade(), and true.

Referenced by drawBevelButton(), drawButton(), drawComboButton(), drawMenuBarItem(), drawPopupMenuItem(), drawProgressBar(), drawPushButton(), drawScrollBarControls(), drawSliderGroove(), drawSplitter(), and drawToolButton().

void OThemeStyle::drawBaseMask QPainter *  p,
int  x,
int  y,
int  w,
int  h,
bool  rounded
[virtual]
 

Draw a mask with for widgets that may be rounded.

Currently used by pushbuttons and comboboxes.

Parameters:
p The QPainter to draw on.
rounded true if the widget is rounded, false if rectangular.

Definition at line 323 of file othemestyle.cpp.

References QCOORDARRLEN.

Referenced by drawButtonMask(), and drawComboButtonMask().

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

Draw a bevel button.

This calls drawBaseButton() with Bevel as the widget type.

Definition at line 388 of file othemestyle.cpp.

References OThemeBase::Bevel, OThemeBase::BevelDown, OThemeBase::colorGroup(), drawBaseButton(), and type.

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

Draw a pushbutton.

This calls drawBaseButton() with PushButton as the widget type.

Definition at line 304 of file othemestyle.cpp.

References drawBaseButton(), OThemeBase::PushButton, OThemeBase::PushButtonDown, and OThemeBase::roundButton().

void OThemeStyle::drawButtonMask QPainter *  p,
int  x,
int  y,
int  w,
int  h
[virtual]
 

Set the mask for pushbuttons.

Definition at line 378 of file othemestyle.cpp.

References drawBaseMask(), and OThemeBase::roundButton().

void OThemeStyle::drawCheckMark QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  act,
bool  dis
[virtual]
 

Draw a checkmark.

Definition at line 1219 of file othemestyle.cpp.

References OThemeBase::CheckMark, OThemeBase::colorGroup(), height, OThemeBase::isPixmap(), OThemeBase::uncached(), and width.

Referenced by drawPopupMenuItem().

void OThemeStyle::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
[virtual]
 

Draw a combobox.

Definition at line 539 of file othemestyle.cpp.

References OThemeBase::colorGroup(), OThemeBase::ComboBox, OThemeBase::ComboBoxDown, OThemeBase::ComboDeco, OThemeBase::ComboDecoDown, OThemeBase::decoWidth(), Qt::DownArrow, drawBaseButton(), height, OThemeBase::isPixmap(), Qt::MotifStyle, OThemeBase::roundComboBox(), OThemeBase::uncached(), and width.

void OThemeStyle::drawComboButtonMask QPainter *  p,
int  x,
int  y,
int  w,
int  h
[virtual]
 

Set the mask for combo boxes.

Definition at line 383 of file othemestyle.cpp.

References drawBaseMask(), and OThemeBase::roundComboBox().

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

Draw an exclusive indicator widget.

If a pixmap is specified in the config file that is used, otherwise the base style's widget is drawn.

Definition at line 826 of file othemestyle.cpp.

References OThemeBase::colorGroup(), OThemeBase::ExIndicatorOff, OThemeBase::ExIndicatorOn, OThemeBase::isPixmap(), and OThemeBase::uncached().

void OThemeStyle::drawExclusiveIndicatorMask QPainter *  p,
int  x,
int  y,
int  w,
int  h,
bool  on
[virtual]
 

Set the mask of an exclusive indicator widget.

If a pixmap is specified it is masked according to it's transparent pixels, otherwise the base style's mask is used.

Definition at line 858 of file othemestyle.cpp.

References OThemeBase::ExIndicatorOff, OThemeBase::ExIndicatorOn, OThemeBase::isPixmap(), and OThemeBase::uncached().

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

Draw the focus rectangle.

Definition at line 1413 of file othemestyle.cpp.

References OThemeBase::focusOffset(), i, and OThemeBase::is3DFocus().

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

Draw an indicator widget.

If a pixmap is specified in the config file that is used, otherwise the base style's widget is drawn.

Definition at line 842 of file othemestyle.cpp.

References OThemeBase::colorGroup(), OThemeBase::IndicatorOff, OThemeBase::IndicatorOn, OThemeBase::isPixmap(), Off, and OThemeBase::uncached().

void OThemeStyle::drawIndicatorMask QPainter *  p,
int  x,
int  y,
int  w,
int  h,
int  state
[virtual]
 

Set the mask of an indicator widget.

If a pixmap is specified it is masked according to it's transparent pixels, otherwise the base style's mask is used.

Definition at line 874 of file othemestyle.cpp.

References OThemeBase::IndicatorOff, OThemeBase::IndicatorOn, OThemeBase::isPixmap(), Off, and OThemeBase::uncached().

void OThemeStyle::drawMenuBarItem QPainter *  p,
int  x,
int  y,
int  w,
int  h,
QMenuItem *  item,
const QColorGroup &  g,
bool  enabled,
bool  active
[virtual]
 

Draw a menubar item.

Definition at line 1439 of file othemestyle.cpp.

References OThemeBase::colorGroup(), drawBaseButton(), OThemeBase::MenuBar, and OThemeBase::MenuBarItem.

Referenced by polish().

void OThemeStyle::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
[virtual]
 

Draw a menu item.

Note: This method manually handles applying inactive menu backgrounds to the entire widget.

Definition at line 1257 of file othemestyle.cpp.

References OThemeBase::borderWidth(), OThemeBase::colorGroup(), OThemeBase::decoWidth(), Disabled, drawArrow(), drawBaseButton(), drawCheckMark(), drawShade(), QString::find(), OThemeBase::highlightWidth(), QString::isNull(), OThemeBase::isPixmap(), OThemeBase::MenuItemDown, QString::mid(), motifArrowHMargin, motifItemFrame, motifItemHMargin, motifItemVMargin, Dasher::Opts::Normal, s, OThemeBase::scalePixmap(), OThemeBase::shade(), t, text, TRUE, and windowsRightBorder.

void OThemeStyle::drawProgressBar QPainter *  ,
int  ,
int  ,
int  ,
int  ,
const QColorGroup &  ,
int 
[virtual]
 

Draw a KProgess bar.

Definition at line 1463 of file othemestyle.cpp.

References OThemeBase::colorGroup(), drawBaseButton(), fillRect(), OThemeBase::isPixmap(), OThemeBase::ProgressBar, OThemeBase::ProgressBg, and OThemeBase::uncached().

void OThemeStyle::drawPushButton QPushButton *  btn,
QPainter *  p
[virtual]
 

Draw a pushbutton.

Definition at line 312 of file othemestyle.cpp.

References OThemeBase::colorGroup(), drawBaseButton(), NULL, OThemeBase::PushButton, OThemeBase::PushButtonDown, and OThemeBase::roundButton().

void OThemeStyle::drawPushButtonLabel QPushButton *  btn,
QPainter *  p
[virtual]
 

Draw the text for a pushbutton.

Definition at line 1141 of file othemestyle.cpp.

References OThemeBase::buttonXShift(), OThemeBase::buttonYShift(), OThemeBase::colorGroup(), OThemeBase::decoWidth(), Disabled, drawArrow(), FALSE, g, Dasher::Opts::Normal, OThemeBase::PushButton, and OThemeBase::PushButtonDown.

void OThemeStyle::drawScrollBarControls QPainter *  ,
const QScrollBar *  ,
int  sliderStart,
uint  controls,
uint  activeControl
[virtual]
 

Draw a themed scrollbar.

Definition at line 563 of file othemestyle.cpp.

References active, add, OThemeBase::colorGroup(), OThemeBase::decoWidth(), drawArrow(), drawBaseButton(), drawScrollBarGroove(), height, OThemeBase::HScrollBarSlider, OThemeBase::HScrollBarSliderDown, OThemeBase::HScrollDeco, OThemeBase::HScrollDecoDown, OThemeBase::HScrollGroove, OThemeBase::isPixmap(), len, OThemeBase::SBBottomLeft, OThemeBase::SBOpposite, OThemeBase::scrollBarLayout(), scrollBarMetrics(), OThemeBase::ScrollButton, OThemeBase::ScrollButtonDown, sliderLength(), OThemeBase::uncached(), OThemeBase::VScrollBarSlider, OThemeBase::VScrollBarSliderDown, OThemeBase::VScrollDeco, OThemeBase::VScrollDecoDown, OThemeBase::VScrollGroove, and width.

void OThemeStyle::drawScrollBarGroove QPainter *  p,
const QScrollBar *  sb,
bool  horizontal,
QRect  r,
QColorGroup  g
[virtual]
 

Convience method for drawing themed scrollbar grooves.

Since the grooves may be a scaled pixmap you cannot just bitblt the pixmap at any offset. This generates a cached pixmap at full size if needed and then copies the requested area.

Parameters:
p The painter to draw on.
sb The scrollbar (usually given by drawScrollBarControls).
horizontal Is the scrollBar horizontal?
r The rectangle to fill.
g The color group to use.

Definition at line 699 of file othemestyle.cpp.

References bitBlt(), OThemeBase::borderWidth(), OThemeBase::colorGroup(), Qt::CopyROP, drawShade(), OThemeBase::highlightWidth(), OThemeBase::HScrollGroove, OThemeBase::isPixmap(), OThemeBase::scalePixmap(), OThemeBase::shade(), and OThemeBase::VScrollGroove.

Referenced by drawScrollBarControls().

void OThemeStyle::drawShade QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
bool  sunken,
bool  rounded,
int  hWidth,
int  bWidth,
ShadeStyle  style
[virtual]
 

Draw a shaded rectangle using the given style.

Parameters:
p The painter to draw on.
g The color group to use.
rounded Draws a rounded shape if true. Requires bWidth to be at least 1.
hWidth The highlight width.
bWidth The border width.
style The shading style to use.

Definition at line 1022 of file othemestyle.cpp.

References Qt::black, i, OThemeBase::Motif, and OThemeBase::Windows.

Referenced by drawBaseButton(), drawPopupMenuItem(), and drawScrollBarGroove().

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

Draw a slider control.

Definition at line 902 of file othemestyle.cpp.

References OThemeBase::colorGroup(), height, Qt::Horizontal, OThemeBase::isPixmap(), OThemeBase::Slider, OThemeBase::uncached(), and width.

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

Draw a slider groove.

Definition at line 889 of file othemestyle.cpp.

References OThemeBase::colorGroup(), drawBaseButton(), OThemeBase::roundSlider(), and OThemeBase::SliderGroove.

void OThemeStyle::drawSliderMask QPainter *  p,
int  x,
int  y,
int  w,
int  h,
Orientation  ,
bool  tickAbove,
bool  tickBelow
[virtual]
 

Draw the mask for a slider (both the control and groove.

Definition at line 920 of file othemestyle.cpp.

References OThemeBase::isPixmap(), and OThemeBase::Slider.

void OThemeStyle::drawSplitter QPainter *  p,
int  x,
int  y,
int  w,
int  h,
const QColorGroup &  g,
Orientation 
[virtual]
 

Draw a splitter widget.

Definition at line 1212 of file othemestyle.cpp.

References OThemeBase::colorGroup(), drawBaseButton(), and OThemeBase::Splitter.

void OThemeStyle::drawTab QPainter *  ,
const QTabBar *  ,
QTab *  ,
bool  selected
[virtual]
 

Definition at line 1501 of file othemestyle.cpp.

References OThemeBase::ActiveTab, OThemeBase::activeTabLine(), OThemeBase::borderWidth(), OThemeBase::colorGroup(), OThemeBase::highlightWidth(), i, OThemeBase::InactiveTab, OThemeBase::inactiveTabLine(), OThemeBase::isPixmap(), and OThemeBase::scalePixmap().

void OThemeStyle::drawTabMask QPainter *  ,
const QTabBar *  ,
QTab *  ,
bool  selected
[virtual]
 

Definition at line 1628 of file othemestyle.cpp.

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

Draw a toolbar button.

Definition at line 396 of file othemestyle.cpp.

References OThemeBase::colorGroup(), drawBaseButton(), OThemeBase::ToolButtonDown, and type.

bool OThemeStyle::eventFilter QObject *  obj,
QEvent *  ev
[virtual]
 

Definition at line 236 of file othemestyle.cpp.

References type.

QSize OThemeStyle::exclusiveIndicatorSize  )  const [virtual]
 

Return the size of the exclusive indicator pixmap if one is specified in the config file, otherwise it uses the base style's size.

Definition at line 810 of file othemestyle.cpp.

References OThemeBase::ExIndicatorOn, OThemeBase::isPixmap(), size, and OThemeBase::uncached().

void OThemeStyle::getButtonShift int &  x,
int &  y
[virtual]
 

Return the amount of button content displacement specified by the config file.

Definition at line 938 of file othemestyle.cpp.

References OThemeBase::buttonXShift(), and OThemeBase::buttonYShift().

QSize OThemeStyle::indicatorSize  )  const [virtual]
 

Return the size of the indicator pixmap if one is specified in the config file, otherwise it uses the base style's size.

Definition at line 818 of file othemestyle.cpp.

References OThemeBase::IndicatorOn, OThemeBase::isPixmap(), size, and OThemeBase::uncached().

void OThemeStyle::polish QPalette &  pal  )  [virtual]
 

For internal use only.

Definition at line 109 of file othemestyle.cpp.

References active, background, OThemeBase::Background, OThemeBase::bgcolor, OThemeBase::colorGroup(), OThemeBase::fgcolor, OThemeBase::isColor(), OThemeBase::isPixmap(), Dasher::Opts::Normal, oldPalette, OThemeBase::selbgcolor, OThemeBase::selfgcolor, OThemeBase::uncached(), OThemeBase::winbgcolor, and OThemeBase::winfgcolor.

void OThemeStyle::polish QApplication *  app  )  [virtual]
 

By default this just sets the background brushes to the pixmapped background.

Definition at line 103 of file othemestyle.cpp.

References drawMenuBarItem(), and qt_set_draw_menu_bar_impl().

void OThemeStyle::polish QWidget *   )  [virtual]
 

Definition at line 148 of file othemestyle.cpp.

References OThemeBase::colorGroup(), OThemeBase::ExIndicatorOff, OThemeBase::ExIndicatorOn, OThemeBase::IndicatorOff, OThemeBase::IndicatorOn, OThemeBase::isColor(), OThemeBase::MenuItemDown, popupPalette, and TRUE.

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

Definition at line 1233 of file othemestyle.cpp.

References OThemeBase::CheckMark, OThemeBase::decoWidth(), OThemeBase::isPixmap(), OThemeBase::MenuItemDown, and OThemeBase::uncached().

void OThemeStyle::scrollBarMetrics const QScrollBar *  ,
int &  ,
int &  ,
int &  ,
int & 
[virtual]
 

Calculate the metrics of the scrollbar controls according to the layout specified by the config file.

Definition at line 724 of file othemestyle.cpp.

References OThemeBase::decoWidth(), OThemeBase::HScrollGroove, len, OThemeBase::SBBottomLeft, OThemeBase::SBBottomRight, OThemeBase::SBOpposite, OThemeBase::scrollBarLayout(), and OThemeBase::VScrollGroove.

Referenced by drawScrollBarControls(), and scrollBarPointOver().

QStyle::ScrollControl OThemeStyle::scrollBarPointOver const QScrollBar *  ,
int  sliderStart,
const QPoint & 
[virtual]
 

Return the control that the given point is over according to the layout in the config file.

Definition at line 764 of file othemestyle.cpp.

References pos, OThemeBase::SBBottomLeft, OThemeBase::SBOpposite, OThemeBase::scrollBarLayout(), scrollBarMetrics(), and sliderLength().

int OThemeStyle::sliderLength  )  const [virtual]
 

Return the configurable default slider length.

Definition at line 944 of file othemestyle.cpp.

References OThemeBase::sliderButtonLength().

Referenced by drawScrollBarControls(), and scrollBarPointOver().

int OThemeStyle::splitterWidth  )  const [virtual]
 

Return the width of the splitter as specified in the config file.

Definition at line 1207 of file othemestyle.cpp.

References OThemeBase::splitWidth().

void OThemeStyle::tabbarMetrics const QTabBar *  ,
int &  ,
int &  ,
int & 
[virtual]
 

Return the background for KProgress.

Definition at line 1496 of file othemestyle.cpp.

void OThemeStyle::unPolish QApplication *   )  [virtual]
 

Definition at line 142 of file othemestyle.cpp.

References oldPalette, and qt_set_draw_menu_bar_impl().

void OThemeStyle::unPolish QWidget *   )  [virtual]
 

Definition at line 210 of file othemestyle.cpp.

References FALSE.


Member Data Documentation

OThemeStylePrivate* OThemeStyle::d [protected]
 

Reimplemented from OThemeBase.

Definition at line 367 of file othemestyle.h.

QPalette OThemeStyle::exIndiPalette [protected]
 

Definition at line 365 of file othemestyle.h.

QPalette OThemeStyle::indiPalette [protected]
 

Definition at line 365 of file othemestyle.h.

QPalette OThemeStyle::oldPalette [protected]
 

Definition at line 365 of file othemestyle.h.

Referenced by polish(), and unPolish().

QPalette OThemeStyle::popupPalette [protected]
 

Definition at line 365 of file othemestyle.h.

Referenced by polish().


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