Qt Toolkit - QSGIStyle Class

| Classes - Annotated - Tree - Functions - Home - Structure

# 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 * )
- void polish ( QApplication * )
- 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 *, QPainter * )
- 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 state, 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 * fill = 0 )
- virtual void drawScrollBarControls ( QPainter * p, const QScrollBar *, 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

- virtual bool eventFilter ( QObject *, QEvent * )

## 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.

## 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.

### QRect QSGIStyle::comboButtonFocusRect ( int x, int y, int w, int h ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### QRect QSGIStyle::comboButtonRect ( int x, int y, int w, int h ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### int QSGIStyle::defaultFrameWidth () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::drawArrow ( QPainter * p, ArrowType type, bool, 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 QStyle.

### 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 QStyle.

### void QSGIStyle::drawCheckMark ( QPainter * p, int x, int y, int, int, const QColorGroup & g, bool act, bool dis ) `[virtual]`

Draws a fancy red checkmark indicating the state of choice in checkboxes or checkable menu items.

Reimplemented from QStyle.

### void QSGIStyle::drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool = FALSE, bool editable = FALSE, bool = TRUE, const QBrush * fb = 0 ) `[virtual]`

Draws a raised shape used as a combobox.

Reimplemented from QStyle.

### 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 QStyle.

### void QSGIStyle::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 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().

Reimplemented from QStyle.

### 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::drawMenuBarItem ( QPainter * p, int x, int y, int w, int h, QMenuItem * mi, QColorGroup & g, bool enabled, bool active )

Reimplemented for internal reasons; the API is not affected.

### 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::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]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int lineWidth = 2, const QBrush * fill = 0 ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::drawPushButton ( QPushButton * btn, QPainter * p ) `[virtual]`

Reimplemented ot be SGI-like.

Reimplemented from QStyle.

### void QSGIStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) `[virtual]`

Draws scrollbar controls in SGI-like style.

Reimplemented from QStyle.

### void QSGIStyle::drawSeparator ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken = TRUE, int = 1, int = 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, bool ) `[virtual]`

Draws the sliding element of a slider-widget.

Reimplemented from QStyle.

### void QSGIStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD, Orientation ) `[virtual]`

Draws the groove of a slider widget.

Reimplemented from QStyle.

### void QSGIStyle::drawSliderGrooveMask ( QPainter * p, int x, int y, int w, int h, QCOORD c, Orientation orient ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::drawSliderMask ( QPainter * p, int x, int y, int w, int h, Orientation orient, bool tickAbove, bool tickBelow ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::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 QSGIStyle::drawTab ( QPainter * p, const QTabBar * tb, QTab * t, bool selected )

Reimplemented for internal reasons; the API is not affected.

### void QSGIStyle::drawTabMask ( QPainter * p, const QTabBar * tb, QTab * t, bool selected )

Reimplemented for internal reasons; the API is not affected.

### bool QSGIStyle::eventFilter ( QObject * o, QEvent * e ) `[virtual protected]`

Reimplemented to enable the SGI-like effect of "glowing" widgets.

Reimplemented from QObject.

### QSize QSGIStyle::exclusiveIndicatorSize () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### QSize QSGIStyle::indicatorSize () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::polish ( QApplication * app )

Changes some application-wide settings to be SGI like, e.g. sets bold/italic font for the menu-system.

### void QSGIStyle::polish ( QPalette & pal )

Reimplemented for internal reasons; the API is not affected.

### void QSGIStyle::polish ( QWidget * w ) `[virtual]`

Installs eventfilters for several widgets to enable the SGI-effect of glowing buttons.

Reimplemented from QStyle.

### int QSGIStyle::popupMenuItemHeight ( bool, QMenuItem * mi, const QFontMetrics & fm ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::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.

### int QSGIStyle::splitterWidth () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QSGIStyle::unPolish ( QApplication * )

Reimplemented for internal reasons; the API is not affected.

### void QSGIStyle::unPolish ( QWidget * w ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):

This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.