QSGIStyle Class Reference
SGI Look and Feel.
More...
#include <qsgistyle.h>
Inherits QMotifStyle.
List of all member functions.
Public Members
- QSGIStyle ( bool useHighlightCols = FALSE )
- virtual ~QSGIStyle ()
- virtual void polish ( QWidget * w )
- virtual void polish ( QApplication * app )
- virtual void drawPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, int lineWidth = 1, const QBrush * fill = 0 )
- virtual void drawSeparator ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken = TRUE, int lineWidth = 1, int midLineWidth = 0 )
- 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 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 void drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool enabled = TRUE )
- virtual void drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis )
- virtual void drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int s )
- 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 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 * fb = 0 )
- virtual void drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl )
- virtual void drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool tickAbove, bool tickBelow )
- virtual void drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation orient )
Protected Members
Detailed Description
SGI Look and Feel
This class implements the SGI look and feel. It tries to
resemble a SGI-like GUI style with the QStyle system.
See also
Member Function Documentation
QSGIStyle::QSGIStyle ( bool useHighlightCols = FALSE )
Constructs a QSGIStyle
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.
See also QMotifStyle::useHighlightColors().
QSGIStyle::~QSGIStyle () [virtual]
Destructs the style
void QSGIStyle::drawArrow ( QPainter * p, ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool enabled, const QBrush * fill = 0 )
Reimplemented to be SGI-like.
void QSGIStyle::drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]
Draws a button with a stronger separation from
the user interface.
void QSGIStyle::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-senstive interface element.
Reimplemented from QMotifStyle.
void QSGIStyle::drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis ) [virtual]
Draws a fancy red checkmark indicating the state of choice
in checkboxes or checkable menu items.
void QSGIStyle::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 * fb = 0 ) [virtual]
Draws a raised shape used as a combobox.
void QSGIStyle::drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool enabled = TRUE ) [virtual]
Draws an interface element used to show the state
of an exclusive choice as used in a radio button.
void QSGIStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool on ) [virtual]
Draws the mask of a mark indicating the state of an exclusive choice
Reimplemented from QMotifStyle.
void QSGIStyle::drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool enabled = TRUE ) [virtual]
Draws a interface element showing the state of choice,
used by a checkbox.
See also drawCheckMark().
void QSGIStyle::drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int s ) [virtual]
Draws a mask for an indicator in state /e s.
See also drawIndicator().
Reimplemented from QStyle.
void QSGIStyle::drawPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, int lineWidth = 1, const QBrush * fill = 0 ) [virtual]
Draws a SGI-like panel with somewhat rounded edges.
Reimplemented from QStyle.
void QSGIStyle::drawPushButton ( QPushButton * btn, QPainter * p ) [virtual]
Reimplemented ot be SGI-like.
void QSGIStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) [virtual]
Draws scrollbar controls in SGI-like style.
void QSGIStyle::drawSeparator ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken = TRUE, int lineWidth = 1, int midLineWidth = 0 ) [virtual]
Draws a line to separate parts of the visual interface.
Reimplemented from QStyle.
void QSGIStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool tickAbove, bool tickBelow ) [virtual]
Draws the sliding element of a slider-widget.
void QSGIStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation orient ) [virtual]
Draws the groove of a slider widget.
bool QSGIStyle::eventFilter ( QObject * o, QEvent * e ) [virtual protected]
Reimplemented to enable the SGI-like effect of "glowing" widgets.
Reimplemented from QObject.
void QSGIStyle::polish ( QWidget * w ) [virtual]
Installs eventfilters for several widgets to enable
the SGI-effect of glowing buttons.
void QSGIStyle::polish ( QApplication * app ) [virtual]
Changes some application-wide settings to be
SGI like, e.g. sets bold/italic font for
the menu-system.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.2.0
|