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/kernel/qiconset.cpp:850 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QIconFactory 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>QIconFactory Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QIconFactory class is used to create pixmaps for a QIconSet.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qiconset-h.html">qiconset.h</a>></tt>
|
---|
37 | <p><a href="qiconfactory-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn><a href="#QIconFactory"><b>QIconFactory</b></a> ()</li>
|
---|
41 | <li class=fn>virtual <a href="#~QIconFactory"><b>~QIconFactory</b></a> ()</li>
|
---|
42 | <li class=fn>virtual QPixmap * <a href="#createPixmap"><b>createPixmap</b></a> ( const QIconSet & iconSet, QIconSet::Size size, QIconSet::Mode mode, QIconSet::State state )</li>
|
---|
43 | <li class=fn>void <a href="#setAutoDelete"><b>setAutoDelete</b></a> ( bool autoDelete )</li>
|
---|
44 | <li class=fn>bool <a href="#autoDelete"><b>autoDelete</b></a> () const</li>
|
---|
45 | </ul>
|
---|
46 | <h2>Static Public Members</h2>
|
---|
47 | <ul>
|
---|
48 | <li class=fn>QIconFactory * <a href="#defaultFactory"><b>defaultFactory</b></a> ()</li>
|
---|
49 | <li class=fn>void <a href="#installDefaultFactory"><b>installDefaultFactory</b></a> ( QIconFactory * factory )</li>
|
---|
50 | </ul>
|
---|
51 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
52 |
|
---|
53 |
|
---|
54 | The QIconFactory class is used to create pixmaps for a <a href="qiconset.html">QIconSet</a>.
|
---|
55 | <p> By reimplementing <a href="#createPixmap">createPixmap</a>(), you can override QIconSet's
|
---|
56 | default algorithm for computing pixmaps not supplied by the user.
|
---|
57 | <p> Call <a href="#setAutoDelete">setAutoDelete</a>(TRUE) if you want the factory to automatically
|
---|
58 | delete itself when it is no longer needed by QIconSet.
|
---|
59 | <p> <p>See also <a href="qiconset.html">QIconSet</a> and <a href="advanced.html">Advanced Widgets</a>.
|
---|
60 |
|
---|
61 | <hr><h2>Member Function Documentation</h2>
|
---|
62 | <h3 class=fn><a name="QIconFactory"></a>QIconFactory::QIconFactory ()
|
---|
63 | </h3>
|
---|
64 | Constructs an icon factory.
|
---|
65 |
|
---|
66 | <h3 class=fn><a name="~QIconFactory"></a>QIconFactory::~QIconFactory ()<tt> [virtual]</tt>
|
---|
67 | </h3>
|
---|
68 | Destroys the object and frees any allocated resources.
|
---|
69 |
|
---|
70 | <h3 class=fn>bool <a name="autoDelete"></a>QIconFactory::autoDelete () const
|
---|
71 | </h3>
|
---|
72 |
|
---|
73 | <p> Returns TRUE if auto-deletion is enabled; otherwise returns FALSE.
|
---|
74 | <p> <p>See also <a href="#setAutoDelete">setAutoDelete</a>().
|
---|
75 |
|
---|
76 | <h3 class=fn><a href="qpixmap.html">QPixmap</a> * <a name="createPixmap"></a>QIconFactory::createPixmap ( const <a href="qiconset.html">QIconSet</a> & iconSet, <a href="qiconset.html#Size-enum">QIconSet::Size</a> size, <a href="qiconset.html#Mode-enum">QIconSet::Mode</a> mode, <a href="qiconset.html#State-enum">QIconSet::State</a> state )<tt> [virtual]</tt>
|
---|
77 | </h3>
|
---|
78 | Ceates a pixmap for <em>iconSet</em> with a certain <em>size</em>, <em>mode</em>, and
|
---|
79 | <em>state</em>. Returns 0 if the default <a href="qiconset.html">QIconSet</a> algorithm should be
|
---|
80 | used to create a pixmap that wasn't supplied by the user.
|
---|
81 | <p> It is the caller's responsibility to delete the returned pixmap.
|
---|
82 | <p> The default implementation always returns 0.
|
---|
83 |
|
---|
84 | <h3 class=fn><a href="qiconfactory.html">QIconFactory</a> * <a name="defaultFactory"></a>QIconFactory::defaultFactory ()<tt> [static]</tt>
|
---|
85 | </h3>
|
---|
86 | Returns the default icon factory.
|
---|
87 | <p> <p>See also <a href="#installDefaultFactory">installDefaultFactory</a>().
|
---|
88 |
|
---|
89 | <h3 class=fn>void <a name="installDefaultFactory"></a>QIconFactory::installDefaultFactory ( <a href="qiconfactory.html">QIconFactory</a> * factory )<tt> [static]</tt>
|
---|
90 | </h3>
|
---|
91 | Replaces the default icon factory with <em>factory</em>.
|
---|
92 |
|
---|
93 | <h3 class=fn>void <a name="setAutoDelete"></a>QIconFactory::setAutoDelete ( bool autoDelete )
|
---|
94 | </h3>
|
---|
95 |
|
---|
96 | <p> If <em>autoDelete</em> is TRUE, sets the icon factory to automatically
|
---|
97 | delete itself when it is no longer referenced by any <a href="qiconset.html">QIconSet</a> and
|
---|
98 | isn't the default factory. If <em>autoDelete</em> is FALSE (the default)
|
---|
99 | auto-deletion is disabled.
|
---|
100 | <p> <p>See also <a href="#autoDelete">autoDelete</a>() and <a href="#defaultFactory">defaultFactory</a>().
|
---|
101 |
|
---|
102 | <!-- eof -->
|
---|
103 | <hr><p>
|
---|
104 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
105 | Copyright © 1995-2007
|
---|
106 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
107 | <table width=100% cellspacing=0 border=0><tr>
|
---|
108 | <td>Copyright © 2007
|
---|
109 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
110 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
111 | </table></div></address></body>
|
---|
112 | </html>
|
---|