1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QMotifStyle Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QMotifStyle Class Reference</h1><br clear="all">
<p>
Motif Look and Feel
<a href="#details">More...</a>
<p>
<code>#include <<a href="qmotifstyle-h.html">qmotifstyle.h</a>></code>
<p>
Inherits <a href="qcommonstyle.html">QCommonStyle</a>.
<p>Inherited by <a href="qcdestyle.html">QCDEStyle</a>, <a href="qinterlacestyle.html">QInterlaceStyle</a>, <a href="qmotifplusstyle.html">QMotifPlusStyle</a> and <a href="qsgistyle.html">QSGIStyle</a>.
<p><a href="qmotifstyle-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#a59c9a"><b>QMotifStyle</b></a>(booluseHighlightCols=FALSE)</div>
<li><div class="fn">virtual<a href="#b5f0d1"><b>~QMotifStyle</b></a>()</div>
<li><div class="fn">void<a href="#1a60e9"><b>setUseHighlightColors</b></a>(bool)</div>
<li><div class="fn">bool<a href="#b498c5"><b>useHighlightColors</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#f7b459"><b>drawButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#accf58"><b>drawExclusiveIndicatorMask</b></a>(QPainter*p, intx, inty, int, int, bool)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Motif Look and Feel
<p>
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.
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="a59c9a"></a>QMotifStyle::QMotifStyle(booluseHighlightCols=FALSE)</h3>
<p>Constructs a QMotifStyle.
<p>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.
<h3 class="fn"><a name="b5f0d1"></a>QMotifStyle::~QMotifStyle() <code>[virtual]</code></h3>
<p>Destructs the style.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="60f462"></a>QMotifStyle::comboButtonFocusRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#6bc9bd">QStyle.</a>
<h3 class="fn"><a href="qrect.html">QRect</a><a name="d63df0"></a>QMotifStyle::comboButtonRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#71383f">QStyle.</a>
<h3 class="fn">void<a name="f51f20"></a>QMotifStyle::drawArrow(<a href="qpainter.html">QPainter</a>*p, ArrowTypetype, booldown, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolenabled, const<a href="qbrush.html">QBrush</a>*=0)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="bd0508"></a>QMotifStyle::drawBevelButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#77c5c0">QStyle.</a>
<h3 class="fn">void<a name="f7b459"></a>QMotifStyle::drawButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a press-sensitive shape.
<p>Reimplemented from <a href="qstyle.html#20fd59">QStyle.</a>
<h3 class="fn">void<a name="46fa56"></a>QMotifStyle::drawCheckMark(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolact, booldis) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#7df57d">QStyle.</a>
<h3 class="fn">void<a name="ef6042"></a>QMotifStyle::drawComboButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, bool=FALSE, booleditable=FALSE, bool=TRUE, const<a href="qbrush.html">QBrush</a>*fb=0) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#42f8ae">QStyle.</a>
<h3 class="fn">void<a name="3cdd16"></a>QMotifStyle::drawExclusiveIndicator(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolon, booldown=FALSE, bool=TRUE) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#7efc7e">QStyle.</a>
<h3 class="fn">void<a name="accf58"></a>QMotifStyle::drawExclusiveIndicatorMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, bool) <code>[virtual]</code></h3>
<p>Draws the mask of a mark indicating the state of an exclusive choice.
<p>Reimplemented from <a href="qstyle.html#a0db5b">QStyle.</a>
<h3 class="fn">void<a name="4ad9ac"></a>QMotifStyle::drawFocusRect(<a href="qpainter.html">QPainter</a>*p, const<a href="qrect.html">QRect</a>&r, const<a href="qcolorgroup.html">QColorGroup</a>&g, const<a href="qcolor.html">QColor</a>*bg=0, boolatBorder=FALSE) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#2cbe51">QStyle.</a>
<h3 class="fn">void<a name="5b78ba"></a>QMotifStyle::drawIndicator(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, ints, booldown=FALSE, bool=TRUE) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#6010f7">QStyle.</a>
<h3 class="fn">void<a name="dd9548"></a>QMotifStyle::drawPopupMenuItem(<a href="qpainter.html">QPainter</a>*p, boolcheckable, intmaxpmw, inttab, QMenuItem*mi, const<a href="qpalette.html">QPalette</a>&pal, boolact, boolenabled, intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#c5672c">QStyle.</a>
<h3 class="fn">void<a name="14f77c"></a>QMotifStyle::drawPushButton(<a href="qpushbutton.html">QPushButton</a>*btn, <a href="qpainter.html">QPainter</a>*p) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#e6ad17">QStyle.</a>
<h3 class="fn">void<a name="a64e97"></a>QMotifStyle::drawScrollBarControls(<a href="qpainter.html">QPainter</a>*p, const<a href="qscrollbar.html">QScrollBar</a>*sb, intsliderStart, uintcontrols, uintactiveControl) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#e3d23d">QStyle.</a>
<h3 class="fn">void<a name="f452a7"></a>QMotifStyle::drawSlider(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, <a href="qt.html#Orientation">Orientation</a>orient, bool, bool) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#11145c">QStyle.</a>
<h3 class="fn">void<a name="1326cb"></a>QMotifStyle::drawSliderGroove(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, QCOORD, <a href="qt.html#Orientation">Orientation</a>) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#c3fcb9">QStyle.</a>
<h3 class="fn">void<a name="f915c3"></a>QMotifStyle::drawSplitter(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, <a href="qt.html#Orientation">Orientation</a>orient) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#acbd66">QStyle.</a>
<h3 class="fn">void<a name="594942"></a>QMotifStyle::drawTab(<a href="qpainter.html">QPainter</a>*p, const<a href="qtabbar.html">QTabBar</a>*tb, <a href="qtab.html">QTab</a>*t, boolselected)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="4d4fe6"></a>QMotifStyle::drawTabMask(<a href="qpainter.html">QPainter</a>*p, const<a href="qtabbar.html">QTabBar</a>*tb, <a href="qtab.html">QTab</a>*t, boolselected)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn"><a href="qsize.html">QSize</a><a name="802388"></a>QMotifStyle::exclusiveIndicatorSize()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#d71caa">QStyle.</a>
<h3 class="fn">int<a name="181253"></a>QMotifStyle::extraPopupMenuItemWidth(boolcheckable, intmaxpmw, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#92de44">QStyle.</a>
<h3 class="fn"><a href="qsize.html">QSize</a><a name="a8c659"></a>QMotifStyle::indicatorSize()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#cf9356">QStyle.</a>
<h3 class="fn">void<a name="bbb916"></a>QMotifStyle::polish(<a href="qapplication.html">QApplication</a>*a)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="4fd856"></a>QMotifStyle::polish(<a href="qpalette.html">QPalette</a>&pal)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="205f05"></a>QMotifStyle::polish(<a href="qwidget.html">QWidget</a>*w) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#6bd45e">QStyle.</a>
<h3 class="fn">void<a name="4265a0"></a>QMotifStyle::polishPopupMenu(<a href="qpopupmenu.html">QPopupMenu</a>*p) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#763b69">QStyle.</a>
<h3 class="fn">int<a name="232ef1"></a>QMotifStyle::popupMenuItemHeight(bool, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&fm) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#cf0842">QStyle.</a>
<h3 class="fn">void<a name="f36cca"></a>QMotifStyle::scrollBarMetrics(const<a href="qscrollbar.html">QScrollBar</a>*sb, int&sliderMin, int&sliderMax, int&sliderLength, int&buttonDim) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#b1809e">QStyle.</a>
<h3 class="fn">void<a name="1a60e9"></a>QMotifStyle::setUseHighlightColors(boolarg)</h3>
<p>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.
<p>The effect will show up the next time a application palette is set
via <a href="qapplication.html#63c60d">QApplication::setPalette</a>(). The current color palette of the
application remains unchanged.
<p>See also <a href="qstyle.html#07b10b">QStyle::polish</a>(, <a href="qpalette.html">QPalette</a>& and ).
<h3 class="fn">int<a name="718777"></a>QMotifStyle::sliderLength()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#4f5f44">QStyle.</a>
<h3 class="fn">int<a name="4cda25"></a>QMotifStyle::splitterWidth()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#e7d3e3">QStyle.</a>
<h3 class="fn">void<a name="375328"></a>QMotifStyle::tabbarMetrics(const<a href="qtabbar.html">QTabBar</a>*t, int&hframe, int&vframe, int&overlap)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">bool<a name="b498c5"></a>QMotifStyle::useHighlightColors()const</h3>
<p>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.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright 2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|