source: trunk/doc/html/qiconfactory.html@ 208

Last change on this file since 208 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.6 KB
Line 
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"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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 &lt;<a href="qiconset-h.html">qiconset.h</a>&gt;</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&nbsp;QIconSet&nbsp;&amp;&nbsp;iconSet, QIconSet::Size&nbsp;size, QIconSet::Mode&nbsp;mode, QIconSet::State&nbsp;state )</li>
43<li class=fn>void <a href="#setAutoDelete"><b>setAutoDelete</b></a> ( bool&nbsp;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&nbsp;*&nbsp;factory )</li>
50</ul>
51<hr><a name="details"></a><h2>Detailed Description</h2>
52
53
54The 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
56default 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
58delete 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>
64Constructs an icon factory.
65
66<h3 class=fn><a name="~QIconFactory"></a>QIconFactory::~QIconFactory ()<tt> [virtual]</tt>
67</h3>
68Destroys 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>&nbsp;* <a name="createPixmap"></a>QIconFactory::createPixmap ( const&nbsp;<a href="qiconset.html">QIconSet</a>&nbsp;&amp;&nbsp;iconSet, <a href="qiconset.html#Size-enum">QIconSet::Size</a>&nbsp;size, <a href="qiconset.html#Mode-enum">QIconSet::Mode</a>&nbsp;mode, <a href="qiconset.html#State-enum">QIconSet::State</a>&nbsp;state )<tt> [virtual]</tt>
77</h3>
78Ceates 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
80used 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>&nbsp;* <a name="defaultFactory"></a>QIconFactory::defaultFactory ()<tt> [static]</tt>
85</h3>
86Returns 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>&nbsp;*&nbsp;factory )<tt> [static]</tt>
90</h3>
91Replaces the default icon factory with <em>factory</em>.
92
93<h3 class=fn>void <a name="setAutoDelete"></a>QIconFactory::setAutoDelete ( bool&nbsp;autoDelete )
94</h3>
95
96<p> If <em>autoDelete</em> is TRUE, sets the icon factory to automatically
97delete itself when it is no longer referenced by any <a href="qiconset.html">QIconSet</a> and
98isn't the default factory. If <em>autoDelete</em> is FALSE (the default)
99auto-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>
104This file is part of the <a href="index.html">Qt toolkit</a>.
105Copyright &copy; 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 &copy; 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>
Note: See TracBrowser for help on using the repository browser.