QMotifStyle Class Reference
Motif Look and Feel
More...
#include <qmotifstyle.h>
Inherits QCommonStyle.
Inherited by QCDEStyle.
List of all member functions.
Public Members
- QMotifStyle ( bool useHighlightCols = FALSE )
- void setUseHighlightColors ( bool )
- bool useHighlightColors () const
- void polish ( QPalette & )
- void polish ( QWidget * )
- virtual void polish ( QApplication * )
- 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 drawFocusRect ( QPainter *, const QRect &, const QColorGroup &, const QColor * =0, bool = FALSE )
- virtual void drawPushButton ( QPushButton * btn, QPainter * p )
- void drawArrow ( QPainter * p, ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool enabled, const QBrush * fill = 0 )
- 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 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, int, bool )
- 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 )
- virtual void scrollBarMetrics ( const QScrollBar *, int &, int &, int &, int & )
- virtual void drawScrollBarControls ( QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl )
- 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 )
- virtual void drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation )
- virtual int splitterWidth () const
- virtual void drawSplitter ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation )
- void drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis )
- void polishPopupMenu ( QPopupMenu * )
- virtual int extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & fm )
- int popupMenuItemHeight ( bool checkable, QMenuItem * mi, const QFontMetrics & fm )
- 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 )
Detailed Description
Motif Look and Feel
This class implements the Motif look and feel. It almost completely
resembles the original Motif look as defined by the Open Group, but
also contains minor improvements. The Motif style is Qt's default
GUI style on UNIX plattforms.
Member Function Documentation
QMotifStyle::QMotifStyle ( bool useHighlightCols = FALSE )
Constructs a QMotifStyle.
If useHighlightCols is FALSE (default value), then the style will
polish the application's color palette to emulate the Motif way of
highlighting, which is a simple inversion between the base and the
text color.
void QMotifStyle::drawArrow ( QPainter * p, ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool, const QBrush * = 0 )
Reimplemented for internal reasons; the API is not affected.
void QMotifStyle::drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]
Draws a press-sensitive shape.
Reimplemented from QStyle.
void QMotifStyle::drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis )
Reimplemented for internal reasons; the API is not affected.
void QMotifStyle::drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool = TRUE ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int, int, bool ) [virtual]
Draws the mask of a mark indicating the state of an exclusive choice.
Reimplemented from QStyle.
void QMotifStyle::drawFocusRect ( QPainter * p, const QRect & r, const QColorGroup & g, const QColor * bg =0, bool atBorder = FALSE ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool = TRUE ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawPushButton ( QPushButton * btn, QPainter * p ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool, bool ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD, Orientation ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawSplitter ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawTab ( QPainter * p, const QTabBar * tb, QTab * t, bool selected ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::drawTabMask ( QPainter * p, const QTabBar * tb, QTab * t, bool selected ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
QSize QMotifStyle::exclusiveIndicatorSize () const [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
QSize QMotifStyle::indicatorSize () const [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::polish ( QApplication * a ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::polish ( QPalette & pal )
Reimplemented for internal reasons; the API is not affected.
void QMotifStyle::polish ( QWidget * w )
Reimplemented for internal reasons; the API is not affected.
void QMotifStyle::polishPopupMenu ( QPopupMenu * p )
Reimplemented for internal reasons; the API is not affected.
void QMotifStyle::scrollBarMetrics ( const QScrollBar * sb, int & sliderMin, int & sliderMax, int & sliderLength, int & buttonDim ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::setUseHighlightColors ( bool arg )
If the argument is FALSE, then the style will polish the
application's color palette to emulate the
Motif way of highlighting, which is a simple inversion between the
base and the text color.
The effect will show up the next time a application palette is set
via QApplication::setPalette(). The current color palette of the
application remains unchanged.
See also: QStyle::polish(, QPalette&, ) and selectionOnlyInverse().
int QMotifStyle::sliderLength () const [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
int QMotifStyle::splitterWidth () const [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QMotifStyle::tabbarMetrics ( const QTabBar * t, int & hframe, int & vframe, int & overlap ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
bool QMotifStyle::useHighlightColors () const
Returns whether the style treats the highlight colors of the palette
Motif-like, which is a simple inversion between the base and the
text color. The default is FALSE.
See also: setSelectionOnlyInverse().
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit,
copyright © 1995-99
Troll Tech, all rights reserved.
Copyright İ 1999 Troll Tech | Trademarks
| Qt version 2.0.2
|