[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/styles/qmacstyle_mac.cpp:324 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>QMacStyle Class</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMacStyle Class Reference</h1>
|
---|
| 33 |
|
---|
| 34 | <p>The QMacStyle class implements an Appearance Manager style.
|
---|
| 35 | <a href="#details">More...</a>
|
---|
| 36 | <p><tt>#include <<a href="qmacstyle_mac-h.html">qmacstyle_mac.h</a>></tt>
|
---|
| 37 | <p>Inherits <a href="qwindowsstyle.html">QWindowsStyle</a>.
|
---|
| 38 | <p><a href="qmacstyle-members.html">List of all member functions.</a>
|
---|
| 39 | <h2>Public Members</h2>
|
---|
| 40 | <ul>
|
---|
| 41 | <li class=fn><a href="#QMacStyle"><b>QMacStyle</b></a> ()</li>
|
---|
| 42 | <li class=fn>virtual <a href="#~QMacStyle"><b>~QMacStyle</b></a> ()</li>
|
---|
| 43 | <li class=fn>enum <a href="#FocusRectPolicy-enum"><b>FocusRectPolicy</b></a> { FocusEnabled, FocusDisabled, FocusDefault }</li>
|
---|
| 44 | <li class=fn>enum <a href="#WidgetSizePolicy-enum"><b>WidgetSizePolicy</b></a> { SizeSmall, SizeLarge, SizeNone, SizeDefault }</li>
|
---|
| 45 | </ul>
|
---|
| 46 | <h2>Static Public Members</h2>
|
---|
| 47 | <ul>
|
---|
| 48 | <li class=fn>void <a href="#setFocusRectPolicy"><b>setFocusRectPolicy</b></a> ( QWidget * w, FocusRectPolicy policy )</li>
|
---|
| 49 | <li class=fn>FocusRectPolicy <a href="#focusRectPolicy"><b>focusRectPolicy</b></a> ( QWidget * w )</li>
|
---|
| 50 | <li class=fn>void <a href="#setWidgetSizePolicy"><b>setWidgetSizePolicy</b></a> ( QWidget * w, WidgetSizePolicy policy )</li>
|
---|
| 51 | <li class=fn>WidgetSizePolicy <a href="#widgetSizePolicy"><b>widgetSizePolicy</b></a> ( QWidget * w )</li>
|
---|
| 52 | </ul>
|
---|
| 53 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | The QMacStyle class implements an Appearance Manager style.
|
---|
| 57 | <p>
|
---|
| 58 | <p> This class is implemented as a wrapper to the Apple Appearance
|
---|
| 59 | Manager. This allows your application to be styled by whatever
|
---|
| 60 | theme your Macintosh is using. This is done by having primitives
|
---|
| 61 | in <a href="qstyle.html">QStyle</a> implemented in terms of what the Macintosh would
|
---|
| 62 | normally theme (i.e. the Finder).
|
---|
| 63 | <p> There are additional issues that should be taken
|
---|
| 64 | into consideration to make an application compatible with the
|
---|
| 65 | <a href="http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/index.html">Aqua Style Guidelines</a>. Some of these issues are outlined
|
---|
| 66 | below.
|
---|
| 67 | <p> <ul>
|
---|
| 68 | <p> <li> Layout - The restrictions on window layout are such that some
|
---|
| 69 | aspects of layout that are style-dependent cannot be achieved
|
---|
| 70 | using <a href="qlayout.html">QLayout</a>. Changes are being considered (and feedback would be
|
---|
| 71 | appreciated) to make layouts QStyle-able. Some of the restrictions
|
---|
| 72 | involve horizontal and vertical widget alignment and widget size
|
---|
| 73 | (covered below).
|
---|
| 74 | <p> <li> Widget size - Aqua allows widgets to have specific fixed sizes. Qt
|
---|
| 75 | does not fully implement this behaviour so as to maintain multiplatform
|
---|
| 76 | compatibility. As a result some widgets sizes may be inappropriate (and
|
---|
| 77 | subsequently not rendered correctly by the Appearance Manager).The
|
---|
| 78 | <a href="qwidget.html#sizeHint">QWidget::sizeHint</a>() will return the appropriate size for many
|
---|
| 79 | managed widgets (widgets enumerated in <a href="qstyle.html#ContentsType-enum">QStyle::ContentsType</a>).
|
---|
| 80 | <p> <li> Effects - QMacStyle (in contrast to QAquaStyle) is not emulating
|
---|
| 81 | (except where Appearance Manager does not provide certain
|
---|
| 82 | capabilities), for example <a href="qpushbutton.html">QPushButton</a> pulsing effects. In this case a
|
---|
| 83 | near matching emulation has been implemented, but naturally this will
|
---|
| 84 | not be identical to the similar functionality built into the Appearance
|
---|
| 85 | Manager. Please report any issues you see in effects or non-standard
|
---|
| 86 | widgets.
|
---|
| 87 | <p> </ul>
|
---|
| 88 | <p> There are other issues that need to be considered in the feel of
|
---|
| 89 | your application (including the general color scheme to match the
|
---|
| 90 | Aqua colors). The Guidelines mentioned above will remain current
|
---|
| 91 | with new advances and design suggestions for Mac OS X.
|
---|
| 92 | <p> Note that the functions provided by QMacStyle are
|
---|
| 93 | reimplementations of <a href="qstyle.html">QStyle</a> functions; see QStyle for their
|
---|
| 94 | documentation.
|
---|
| 95 | <p>See also <a href="appearance.html">Widget Appearance and Style</a>.
|
---|
| 96 |
|
---|
| 97 | <hr><h2>Member Type Documentation</h2>
|
---|
| 98 | <h3 class=fn><a name="FocusRectPolicy-enum"></a>QMacStyle::FocusRectPolicy</h3>
|
---|
| 99 |
|
---|
| 100 | <p> This type is used to signify a widget's focus rectangle policy.
|
---|
| 101 | <ul>
|
---|
| 102 | <li><tt>QMacStyle::FocusEnabled</tt> - show a focus rectangle when the widget has focus.
|
---|
| 103 | <li><tt>QMacStyle::FocusDisabled</tt> - never show a focus rectangle for the widget.
|
---|
| 104 | <li><tt>QMacStyle::FocusDefault</tt> - show a focus rectangle when the widget has
|
---|
| 105 | focus and the widget is a QSpinWidget, <a href="qdatetimeedit.html">QDateTimeEdit</a>, <a href="qlineedit.html">QLineEdit</a>,
|
---|
| 106 | <a href="qlistbox.html">QListBox</a>, <a href="qlistview.html">QListView</a>, editable <a href="qtextedit.html">QTextEdit</a>, or one of their
|
---|
| 107 | subclasses.
|
---|
| 108 | </ul>
|
---|
| 109 | <h3 class=fn><a name="WidgetSizePolicy-enum"></a>QMacStyle::WidgetSizePolicy</h3>
|
---|
| 110 |
|
---|
| 111 | <ul>
|
---|
| 112 | <li><tt>QMacStyle::SizeSmall</tt>
|
---|
| 113 | <li><tt>QMacStyle::SizeLarge</tt>
|
---|
| 114 | <li><tt>QMacStyle::SizeNone</tt>
|
---|
| 115 | <li><tt>QMacStyle::SizeDefault</tt>
|
---|
| 116 | </ul>
|
---|
| 117 | <hr><h2>Member Function Documentation</h2>
|
---|
| 118 | <h3 class=fn><a name="QMacStyle"></a>QMacStyle::QMacStyle ()
|
---|
| 119 | </h3>
|
---|
| 120 | Constructs a QMacStyle object.
|
---|
| 121 |
|
---|
| 122 | <h3 class=fn><a name="~QMacStyle"></a>QMacStyle::~QMacStyle ()<tt> [virtual]</tt>
|
---|
| 123 | </h3>
|
---|
| 124 | Destructs a QMacStyle object.
|
---|
| 125 |
|
---|
| 126 | <h3 class=fn><a href="qmacstyle.html#FocusRectPolicy-enum">FocusRectPolicy</a> <a name="focusRectPolicy"></a>QMacStyle::focusRectPolicy ( <a href="qwidget.html">QWidget</a> * w )<tt> [static]</tt>
|
---|
| 127 | </h3>
|
---|
| 128 | Returns the focus rectangle policy for the widget <em>w</em>.
|
---|
| 129 | <p> The focus rectangle policy can be one of <a href="#FocusRectPolicy-enum">QMacStyle::FocusRectPolicy</a>.
|
---|
| 130 | <p> <p>See also <a href="#setFocusRectPolicy">setFocusRectPolicy</a>().
|
---|
| 131 |
|
---|
| 132 | <h3 class=fn>void <a name="setFocusRectPolicy"></a>QMacStyle::setFocusRectPolicy ( <a href="qwidget.html">QWidget</a> * w, <a href="qmacstyle.html#FocusRectPolicy-enum">FocusRectPolicy</a> policy )<tt> [static]</tt>
|
---|
| 133 | </h3>
|
---|
| 134 | Sets the focus rectangle policy of <em>w</em>. The <em>policy</em> can be one of
|
---|
| 135 | <a href="#FocusRectPolicy-enum">QMacStyle::FocusRectPolicy</a>.
|
---|
| 136 | <p> <p>See also <a href="#focusRectPolicy">focusRectPolicy</a>().
|
---|
| 137 |
|
---|
| 138 | <h3 class=fn>void <a name="setWidgetSizePolicy"></a>QMacStyle::setWidgetSizePolicy ( <a href="qwidget.html">QWidget</a> * w, <a href="qmacstyle.html#WidgetSizePolicy-enum">WidgetSizePolicy</a> policy )<tt> [static]</tt>
|
---|
| 139 | </h3>
|
---|
| 140 | Sets the widget size policy of <em>w</em>. The <em>policy</em> can be one of
|
---|
| 141 | <a href="#WidgetSizePolicy-enum">QMacStyle::WidgetSizePolicy</a>.
|
---|
| 142 | <p> <p>See also <a href="#widgetSizePolicy">widgetSizePolicy</a>().
|
---|
| 143 |
|
---|
| 144 | <h3 class=fn><a href="qmacstyle.html#WidgetSizePolicy-enum">WidgetSizePolicy</a> <a name="widgetSizePolicy"></a>QMacStyle::widgetSizePolicy ( <a href="qwidget.html">QWidget</a> * w )<tt> [static]</tt>
|
---|
| 145 | </h3>
|
---|
| 146 | Returns the widget size policy for the widget <em>w</em>.
|
---|
| 147 | <p> The widget size policy can be one of <a href="#WidgetSizePolicy-enum">QMacStyle::WidgetSizePolicy</a>.
|
---|
| 148 | <p> <p>See also <a href="#setWidgetSizePolicy">setWidgetSizePolicy</a>().
|
---|
| 149 |
|
---|
| 150 | <!-- eof -->
|
---|
| 151 | <hr><p>
|
---|
| 152 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
| 153 | Copyright © 1995-2007
|
---|
| 154 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
| 155 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 156 | <td>Copyright © 2007
|
---|
| 157 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 158 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 159 | </table></div></address></body>
|
---|
| 160 | </html>
|
---|