Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Classes  ·  Annotées  ·  Hiérarchie  ·  Fonctions  ·  Structure  · 

QMotifStyle Class Reference


Motif Look and Feel More...

#include <qmotifstyle.h>

Inherits QCommonStyle.

Inherited by QCDEStyle, QInterlaceStyle, QMotifPlusStyle and QSGIStyle.

List of all member functions.

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 ) 

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

Reimplemented from QStyle.

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 w, int h, bool ) [virtual]

Draws the mask of a mark indicating the state of an exclusive choice.

Reimplemented from QStyle.

void QMotifStyle::drawFocusRect ( QPainter * p, const QRect & r, 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.

Reimplemented from QStyle.

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 ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QMotifStyle::polish ( QWidget * w )

Reimplemented for internal reasons; the API is not affected.

void QMotifStyle::polishPopupMenu ( QPopupMenu * p ) [virtual]

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.


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


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

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 2.3
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web