QMotifStyle - Motif Look and Feel

       #include <qmotifstyle.h>

       Inherits QCommonStyle.

       Inherited by QCDEStyle, QInterlaceStyle, QMotifPlusStyle
       and QSGIStyle.

   Public Members
       QMotifStyle ( bool useHighlightCols = FALSE )
       virtual ~QMotifStyle ()
       void setUseHighlightColors ( bool )
       bool useHighlightColors () const
       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 drawExclusiveIndicatorMask ( QPainter * p,
           int x, int y, int, int, bool )


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


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.


QMotifStyle::~QMotifStyle () [virtual]

       Destructs the style.


QRect QMotifStyle::comboButtonFocusRect ( int x, int y, int w,

       int h ) [virtual]
       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.


QRect QMotifStyle::comboButtonRect ( int x, int y, int w, int h )

       [virtual]
       Reimplemented for internal reasons; the API is not
       affected.



void QMotifStyle::drawArrow ( QPainter * p, ArrowType type, bool

       down, int x, int y, int w, int h, const QColorGroup & g,
       bool enabled, 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 )
       [virtual]
       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.


void QMotifStyle::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]
       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.


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.

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



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 )
       Reimplemented for internal reasons; the API is not
       affected.


void QMotifStyle::drawTabMask ( QPainter * p, const QTabBar * tb,

       QTab * t, bool selected )
       Reimplemented for internal reasons; the API is not
       affected.


QSize QMotifStyle::exclusiveIndicatorSize () const [virtual]

       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.


int QMotifStyle::extraPopupMenuItemWidth ( bool checkable, int

       maxpmw, QMenuItem * mi, const QFontMetrics & ) [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 )

       Reimplemented for internal reasons; the API is not
       affected.


void QMotifStyle::polish ( QPalette & pal )

       Reimplemented for internal reasons; the API is not
       affected.


void QMotifStyle::polish ( QWidget * w ) [virtual]

       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.

       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.


int QMotifStyle::popupMenuItemHeight ( bool, QMenuItem * mi,

       const QFontMetrics & fm ) [virtual]
       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QStyle.


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


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 )
       Reimplemented for internal reasons; the API is not
       affected.


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.

       http://doc.trolltech.com/qmotifstyle.html
       http://www.trolltech.com/faq/tech.html


COPYRIGHT

       Copyright 1992-2001 Trolltech AS,
       http://www.trolltech.com.  See the license file included
       in the distribution for a complete license statement.


AUTHOR

       Generated automatically from the source code.


BUGS

       If you find a bug in Qt, please report it as described in
       http://doc.trolltech.com/bughowto.html.  Good bug reports
       make our job much simpler. Thank you.

       In case of content or formattting problems with this
       manual page, please report them to qt-bugs@trolltech.com.
       Please include the name of the manual page
       (qmotifstyle.3qt) and the Qt version (2.3.1).


Man(1) output converted with man2html