QSGIStyle Class Reference
The QSGIStyle class provides SGI/Irix look and feel.
More...
#include <qsgistyle.h>
Inherits QMotifStyle.
List of all member functions.
Public Members
virtual void
polish ( QWidget * w )
virtual void
polish ( QApplication * app )
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 )
void
drawSeparator ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken = TRUE, int lineWidth = 1, int midLineWidth = 0 )
void
drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 )
void
drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 )
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 )
void
drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool enabled = TRUE )
void
drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis )
void
drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool enabled = TRUE )
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 )
void
drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl )
void
drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool tickAbove, bool tickBelow )
void
drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation orient )
Protected Members
Detailed Description
The QSGIStyle class provides SGI/Irix look and feel.
This class implements the SGI look and feel. It resembles the
SGI/Irix Motif GUI style as closely as QStyle allows.
Member Function Documentation
QSGIStyle::QSGIStyle ( bool useHighlightCols = FALSE )
Constructs a QSGIStyle.
If useHighlightCols is FALSE (default value), 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]
Destroys 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 )
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 )
Draws a press-senstive interface element.
void QSGIStyle::drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis )
Draws a fancy red check mark indicating the state of choice
in check boxes 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 )
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 )
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 )
Draws the mask of a mark indicating the state of an exclusive choice
void QSGIStyle::drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool enabled = TRUE )
Draws an interface element showing the state of choice
used by a check box.
See also drawCheckMark().
void QSGIStyle::drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int s )
Draws a mask for an indicator in state /e s.
See also drawIndicator().
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 )
Draws an SGI-like panel with somewhat rounded edges.
void QSGIStyle::drawPushButton ( QPushButton * btn, QPainter * p )
Reimplemented to be SGI-like.
void QSGIStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl )
Draws scroll bar 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 )
Draws a line to separate parts of the visual interface.
void QSGIStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool tickAbove, bool tickBelow )
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 )
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 event filters for several widgets to enable
the SGI-effect of glowing buttons.
Reimplemented from QMotifStyle.
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.
Reimplemented from QMotifStyle.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta2
|