File: qsgistyle.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (201 lines) | stat: -rw-r--r-- 18,633 bytes parent folder | download
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!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 - QSGIStyle 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>QSGIStyle Class Reference</h1><br clear="all">
<p>
SGI Look and Feel
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qsgistyle-h.html">qsgistyle.h</a>&gt;</code>
<p>
Inherits <a href="qmotifstyle.html">QMotifStyle</a>.
<p><a href="qsgistyle-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#aeb708"><b>QSGIStyle</b></a>(booluseHighlightCols=FALSE)</div>
<li><div class="fn">virtual<a href="#f864ca"><b>~QSGIStyle</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#572c78"><b>polish</b></a>(QWidget*)</div>
<li><div class="fn">void<a href="#309394"><b>polish</b></a>(QApplication*)</div>
<li><div class="fn">virtualvoid<a href="#d1d52e"><b>drawPanel</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolsunken=FALSE, intlineWidth=1, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#28a824"><b>drawSeparator</b></a>(QPainter*p, intx1, inty1, intx2, inty2, constQColorGroup&amp;g, boolsunken=TRUE, intlineWidth=1, intmidLineWidth=0)</div>
<li><div class="fn">virtualvoid<a href="#cd7432"><b>drawButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#d7f948"><b>drawBevelButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#56a70a"><b>drawPushButton</b></a>(QPushButton*, QPainter*)</div>
<li><div class="fn">void<a href="#762932"><b>drawArrow</b></a>(QPainter*p, ArrowTypetype, booldown, intx, inty, intw, inth, constQColorGroup&amp;g, boolenabled, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#0322ed"><b>drawIndicator</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, intstate, booldown=FALSE, boolenabled=TRUE)</div>
<li><div class="fn">virtualvoid<a href="#82fd36"><b>drawCheckMark</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolact, booldis)</div>
<li><div class="fn">virtualvoid<a href="#c4ed6f"><b>drawIndicatorMask</b></a>(QPainter*p, intx, inty, intw, inth, ints)</div>
<li><div class="fn">virtualvoid<a href="#25b878"><b>drawExclusiveIndicator</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolon, booldown=FALSE, boolenabled=TRUE)</div>
<li><div class="fn">virtualvoid<a href="#b7a62f"><b>drawExclusiveIndicatorMask</b></a>(QPainter*p, intx, inty, intw, inth, boolon)</div>
<li><div class="fn">virtualvoid<a href="#5b1f90"><b>drawComboButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolsunken=FALSE, booleditable=FALSE, boolenabled=TRUE, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#961016"><b>drawScrollBarControls</b></a>(QPainter*p, constQScrollBar*, intsliderStart, uintcontrols, uintactiveControl)</div>
<li><div class="fn">virtualvoid<a href="#bb3ec7"><b>drawSlider</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, Orientationorient, booltickAbove, booltickBelow)</div>
<li><div class="fn">virtualvoid<a href="#cfc4ba"><b>drawSliderGroove</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, QCOORDc, Orientationorient)</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">virtualbool<a href="#feb905"><b>eventFilter</b></a>(QObject*, QEvent*)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
SGI Look and Feel
<p>
This class implements the SGI look and feel. It tries to
resemble a SGI-like GUI style with the <a href="qstyle.html">QStyle</a> system.

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="aeb708"></a>QSGIStyle::QSGIStyle(booluseHighlightCols=FALSE)</h3>
<p>Constructs a QSGIStyle
<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.
<p>See also  <a href="qmotifstyle.html#b498c5">QMotifStyle::useHighlightColors</a>().
<h3 class="fn"><a name="f864ca"></a>QSGIStyle::~QSGIStyle() <code>[virtual]</code></h3>
<p>Destructs the style.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="8cb48f"></a>QSGIStyle::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="1325df"></a>QSGIStyle::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">int<a name="355aa3"></a>QSGIStyle::defaultFrameWidth()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#5fd38b">QStyle.</a>
<h3 class="fn">void<a name="762932"></a>QSGIStyle::drawArrow(<a href="qpainter.html">QPainter</a>*p, ArrowTypetype, bool, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolenabled, const<a href="qbrush.html">QBrush</a>*fill=0)</h3>
<p>Reimplemented to be SGI-like.
<h3 class="fn">void<a name="d7f948"></a>QSGIStyle::drawBevelButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a button with a stronger separation from
the user interface.
<p>Reimplemented from <a href="qstyle.html#77c5c0">QStyle.</a>
<h3 class="fn">void<a name="cd7432"></a>QSGIStyle::drawButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a press-senstive interface element.
<p>Reimplemented from <a href="qstyle.html#20fd59">QStyle.</a>
<h3 class="fn">void<a name="82fd36"></a>QSGIStyle::drawCheckMark(<a href="qpainter.html">QPainter</a>*p, intx, inty, int, int, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolact, booldis) <code>[virtual]</code></h3>
<p>Draws a fancy red checkmark indicating the state of choice
in checkboxes or checkable menu items.
<p>Reimplemented from <a href="qstyle.html#7df57d">QStyle.</a>
<h3 class="fn">void<a name="5b1f90"></a>QSGIStyle::drawComboButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, bool=FALSE, booleditable=FALSE, bool=TRUE, const<a href="qbrush.html">QBrush</a>*fb=0) <code>[virtual]</code></h3>
<p>Draws a raised shape used as a combobox.
<p>Reimplemented from <a href="qstyle.html#42f8ae">QStyle.</a>
<h3 class="fn">void<a name="25b878"></a>QSGIStyle::drawExclusiveIndicator(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolon, booldown=FALSE, boolenabled=TRUE) <code>[virtual]</code></h3>
<p>Draws an interface element used to show the state
of an exclusive choice as used in a radio button.
<p>Reimplemented from <a href="qstyle.html#7efc7e">QStyle.</a>
<h3 class="fn">void<a name="b7a62f"></a>QSGIStyle::drawExclusiveIndicatorMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, int, int, 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="0322ed"></a>QSGIStyle::drawIndicator(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, ints, booldown=FALSE, boolenabled=TRUE) <code>[virtual]</code></h3>
<p>Draws a interface element showing the state of choice,
used by a checkbox.
<p>See also  <a href="#82fd36">drawCheckMark</a>().
<p>Reimplemented from <a href="qstyle.html#6010f7">QStyle.</a>
<h3 class="fn">void<a name="c4ed6f"></a>QSGIStyle::drawIndicatorMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, ints) <code>[virtual]</code></h3>
<p>Draws a mask for an indicator in state /e s.
<p>See also  <a href="#0322ed">drawIndicator</a>().
<p>Reimplemented from <a href="qstyle.html#5f3080">QStyle.</a>
<h3 class="fn">void<a name="ddfd4e"></a>QSGIStyle::drawMenuBarItem(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, QMenuItem*mi, <a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolenabled, boolactive)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="d1d52e"></a>QSGIStyle::drawPanel(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, intlineWidth=1, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a SGI-like panel with somewhat rounded edges.
<p>Reimplemented from <a href="qstyle.html#414a7e">QStyle.</a>
<h3 class="fn">void<a name="883ae2"></a>QSGIStyle::drawPopupMenuItem(<a href="qpainter.html">QPainter</a>*p, boolcheckable, intmaxpmw, inttab, QMenuItem*mi, const<a href="qpalette.html">QPalette</a>&amp;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="573d64"></a>QSGIStyle::drawPopupPanel(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, intlineWidth=2, 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#377284">QStyle.</a>
<h3 class="fn">void<a name="56a70a"></a>QSGIStyle::drawPushButton(<a href="qpushbutton.html">QPushButton</a>*btn, <a href="qpainter.html">QPainter</a>*p) <code>[virtual]</code></h3>
<p>Reimplemented ot be SGI-like.
<p>Reimplemented from <a href="qstyle.html#e6ad17">QStyle.</a>
<h3 class="fn">void<a name="961016"></a>QSGIStyle::drawScrollBarControls(<a href="qpainter.html">QPainter</a>*p, const<a href="qscrollbar.html">QScrollBar</a>*sb, intsliderStart, uintcontrols, uintactiveControl) <code>[virtual]</code></h3>
<p>Draws scrollbar controls in SGI-like style.
<p>Reimplemented from <a href="qstyle.html#e3d23d">QStyle.</a>
<h3 class="fn">void<a name="28a824"></a>QSGIStyle::drawSeparator(<a href="qpainter.html">QPainter</a>*p, intx1, inty1, intx2, inty2, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=TRUE, int=1, int=0) <code>[virtual]</code></h3>
<p>Draws a line to separate parts of the visual interface.
<p>Reimplemented from <a href="qstyle.html#cf53b2">QStyle.</a>
<h3 class="fn">void<a name="bb3ec7"></a>QSGIStyle::drawSlider(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, <a href="qt.html#Orientation">Orientation</a>orient, bool, bool) <code>[virtual]</code></h3>
<p>Draws the sliding element of a slider-widget.
<p>Reimplemented from <a href="qstyle.html#11145c">QStyle.</a>
<h3 class="fn">void<a name="cfc4ba"></a>QSGIStyle::drawSliderGroove(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, QCOORD, <a href="qt.html#Orientation">Orientation</a>) <code>[virtual]</code></h3>
<p>Draws the groove of a slider widget.
<p>Reimplemented from <a href="qstyle.html#c3fcb9">QStyle.</a>
<h3 class="fn">void<a name="bad987"></a>QSGIStyle::drawSliderGrooveMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, QCOORDc, <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#dc005d">QStyle.</a>
<h3 class="fn">void<a name="29d4b1"></a>QSGIStyle::drawSliderMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, <a href="qt.html#Orientation">Orientation</a>orient, booltickAbove, booltickBelow) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#ee7ad4">QStyle.</a>
<h3 class="fn">void<a name="2a08db"></a>QSGIStyle::drawSplitter(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;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="f6f7ad"></a>QSGIStyle::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="6fa231"></a>QSGIStyle::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">bool<a name="feb905"></a>QSGIStyle::eventFilter(<a href="qobject.html">QObject</a>*o, <a href="qevent.html">QEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented to enable the SGI-like effect of "glowing" widgets.
<p>Reimplemented from <a href="qobject.html#bd20fe">QObject.</a>
<h3 class="fn"><a href="qsize.html">QSize</a><a name="21cc43"></a>QSGIStyle::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"><a href="qsize.html">QSize</a><a name="79e872"></a>QSGIStyle::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="309394"></a>QSGIStyle::polish(<a href="qapplication.html">QApplication</a>*app)</h3>
<p>Changes some application-wide settings to be
SGI like, e.g. sets bold/italic font for
the menu-system.
<h3 class="fn">void<a name="a89090"></a>QSGIStyle::polish(<a href="qpalette.html">QPalette</a>&amp;pal)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="572c78"></a>QSGIStyle::polish(<a href="qwidget.html">QWidget</a>*w) <code>[virtual]</code></h3>
<p>Installs eventfilters for several widgets to enable
the SGI-effect of glowing buttons.
<p>Reimplemented from <a href="qstyle.html#6bd45e">QStyle.</a>
<h3 class="fn">int<a name="24c549"></a>QSGIStyle::popupMenuItemHeight(bool, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&amp;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="f6af3f"></a>QSGIStyle::scrollBarMetrics(const<a href="qscrollbar.html">QScrollBar</a>*sb, int&amp;sliderMin, int&amp;sliderMax, int&amp;sliderLength, int&amp;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">int<a name="04da27"></a>QSGIStyle::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="3d030b"></a>QSGIStyle::unPolish(<a href="qapplication.html">QApplication</a>*)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="f23090"></a>QSGIStyle::unPolish(<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#3e54cc">QStyle.</a>
<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 &copy; 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>