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 )
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 )
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
drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, 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 * 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
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 ) [virtual]
Draws a button with a stronger separation from
the user interface.
Reimplemented from QMotifStyle.
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 check mark indicating the state of choice
in check boxes or checkable menu items.
Reimplemented from QMotifStyle.
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.
Reimplemented from QMotifStyle.
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.
Reimplemented from QMotifStyle.
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 an interface element showing the state of choice
used by a check box.
See also drawCheckMark().
Reimplemented from QMotifStyle.
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 an SGI-like panel with somewhat rounded edges.
Reimplemented from QStyle.
void QSGIStyle::drawPushButton ( QPushButton * btn, QPainter * p ) [virtual]
Reimplemented to be SGI-like.
Reimplemented from QMotifStyle.
void QSGIStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) [virtual]
Draws scroll bar controls in SGI-like style.
Reimplemented from QMotifStyle.
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.
Reimplemented from QMotifStyle.
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.
Reimplemented from QMotifStyle.
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-beta1-beta1
|