1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
<title>KIconLoader</title>
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
<meta http-equiv="Content-Style-Type" content="text/css" />
9
<link rel="stylesheet" type="text/css" href="../common/doxygen.css" />
10
<link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../common/kde.css" />
18
<img alt ="" src="../common/top-kde.jpg"/>
19
KDE 4.7 PyKDE API Reference
23
<div id="header_bottom">
26
<li>KDE's Python API</li>
32
<li><a href="../modules.html">Overview</a></li>
33
<li><a href="http://techbase.kde.org/Development/Languages/Python">PyKDE Home</a></li>
34
<li><a href="http://kde.org/family/">Sitemap</a></li>
35
<li><a href="http://kde.org/contact/">Contact Us</a></li>
41
<div id="body_wrapper">
46
<div class="clearer"> </div>
48
<h1>KIconLoader Class Reference</h1>
49
<code>from PyKDE4.kdeui import *</code>
51
Inherits: QObject<br />
54
<h2>Detailed Description</h2>
56
<p>Iconloader for KDE.
59
KIconLoader will load the current icon theme and all its base themes.
60
Icons will be searched in any of these themes. Additionally, it caches
61
icons and applies effects according to the user's preferences.
64
In KDE, it is encouraged to load icons by "Group". An icon group is a
65
location on the screen where icons are being used. Standard groups are:
66
Desktop, Toolbar, MainToolbar, Small and Panel. Each group has some
67
centrally configured properties bound to it, including the icon size
68
and effects. This makes it possible to offer a consistent icon look in
72
The standard groups are defined below.
75
<li> KIconLoader.Desktop: Icons in the iconview of konqueror, kdesktop and similar apps. </li>
76
<li> KIconLoader.Toolbar: Icons in toolbars. </li>
77
<li> KIconLoader.MainToolbar: Icons in the main toolbars. </li>
78
<li> KIconLoader.Small: Various small (typical 16x16) places: titlebars, listviews </li>
80
<li> KIconLoader.Panel: Icons in kicker's panel </li>
83
The icons are stored on disk in an icon theme or in a standalone
84
directory. The icon theme directories contain multiple sizes and/or
85
depths for the same icon. The iconloader will load the correct one based
86
on the icon group and the current theme. Icon themes are stored globally
87
in share/icons, or, application specific in share/apps/$appdir/icons.
90
The standalone directories contain just one version of an icon. The
91
directories that are searched are: $appdir/pics and $appdir/toolbar.
92
Icons in these directories can be loaded by using the special group
95
<table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Context">Context</a> </td><td class="memItemRight" valign="bottom">{ Any, Action, Application, Device, FileSystem, MimeType, Animation, Category, Emblem, Emote, International, Place, StatusIcon }</td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Group">Group</a> </td><td class="memItemRight" valign="bottom">{ NoGroup, Desktop, FirstGroup, Toolbar, MainToolbar, Small, Panel, Dialog, LastGroup, User }</td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#MatchType">MatchType</a> </td><td class="memItemRight" valign="bottom">{ MatchExact, MatchBest }</td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#States">States</a> </td><td class="memItemRight" valign="bottom">{ DefaultState, ActiveState, DisabledState, LastState }</td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#StdSizes">StdSizes</a> </td><td class="memItemRight" valign="bottom">{ SizeSmall, SizeSmallMedium, SizeMedium, SizeLarge, SizeHuge, SizeEnormous }</td></tr>
101
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Type">Type</a> </td><td class="memItemRight" valign="bottom">{ Fixed, Scalable, Threshold }</td></tr>
102
<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
103
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#iconLoaderSettingsChanged">iconLoaderSettingsChanged</a> ()</td></tr>
104
<tr><td colspan="2"><br><h2>Methods</h2></td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#KIconLoader">__init__</a> (self, QString appname=QString(), <a href="../kdecore/KStandardDirs.html">KStandardDirs</a> dirs=0, QObject parent=0)</td></tr>
106
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#KIconLoader">__init__</a> (self, <a href="../kdecore/KComponentData.html">KComponentData</a> componentData, QObject parent=0)</td></tr>
107
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#addAppDir">addAppDir</a> (self, QString appname)</td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#addExtraDesktopThemes">addExtraDesktopThemes</a> (self)</td></tr>
109
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#extraDesktopThemesAdded">extraDesktopThemesAdded</a> (self)</td></tr>
110
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kdeui/KIconEffect.html">KIconEffect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#iconEffect">iconEffect</a> (self)</td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="#iconPath">iconPath</a> (self, QString name, int group_or_size, bool canReturnNull=0)</td></tr>
112
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="#loadIcon">loadIcon</a> (self, QString name, <a href="../kdeui/KIconLoader.html#Group">KIconLoader.Group</a> group, int size=0, int state=KIconLoader.DefaultState, QStringList overlays=QStringList(), QString path_store=0, bool canReturnNull=0)</td></tr>
113
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="#loadMimeTypeIcon">loadMimeTypeIcon</a> (self, QString iconName, <a href="../kdeui/KIconLoader.html#Group">KIconLoader.Group</a> group, int size=0, int state=KIconLoader.DefaultState, QStringList overlays=QStringList(), QString path_store=0)</td></tr>
114
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#newIconLoader">newIconLoader</a> (self)</td></tr>
115
<tr><td class="memItemLeft" nowrap align="right" valign="top">QStringList </td><td class="memItemRight" valign="bottom"><a class="el" href="#queryIconsByDir">queryIconsByDir</a> (self, QString iconsDir)</td></tr>
116
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#reconfigure">reconfigure</a> (self, QString _appname, <a href="../kdecore/KStandardDirs.html">KStandardDirs</a> _dirs)</td></tr>
117
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kdeui/KIconTheme.html">KIconTheme</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#theme">theme</a> (self)</td></tr>
118
<tr><td colspan="2"><br><h2>Static Methods</h2></td></tr>
119
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kdeui/KIconLoader.html">KIconLoader</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#global">global_</a> ()</td></tr>
120
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="#unknown">unknown</a> ()</td></tr>
122
<hr><h2>Signal Documentation</h2><a class="anchor" name="iconLoaderSettingsChanged"></a>
123
<div class="memitem">
124
<div class="memproto">
125
<table class="memname"><tr>
126
<td class="memname"> iconLoaderSettingsChanged</td>
128
<td class="paramtype"> </td>
129
<td class="paramname">)</td>
130
<td width="100%"> </td>
134
<div class="memdoc"><p>Emitted by newIconLoader once the new settings have been loaded
135
</p><dl compact><dt><b>Signal syntax:</b></dt><dd><code>QObject.connect(source, SIGNAL("iconLoaderSettingsChanged()"), target_slot)</code></dd></dl></div></div><hr><h2>Method Documentation</h2><a class="anchor" name="KIconLoader"></a>
136
<div class="memitem">
137
<div class="memproto">
138
<table class="memname"><tr>
139
<td class="memname">__init__</td>
141
<td class="paramtype"> <em>self</em>, </td>
142
<td class="paramname"></td>
144
<td class="memname"></td>
146
<td class="paramtype">QString </td>
147
<td class="paramname"><em>appname=QString()</em>, </td>
150
<td class="memname"></td>
152
<td class="paramtype"><a href="../kdecore/KStandardDirs.html">KStandardDirs</a> </td>
153
<td class="paramname"><em>dirs=0</em>, </td>
156
<td class="memname"></td>
158
<td class="paramtype">QObject </td>
159
<td class="paramname"><em>parent=0</em></td>
166
<td width="100%"> </td>
169
<div class="memdoc"><p>Constructs an iconloader.
170
</p><dl compact><dt><b>Parameters:</b></dt><dd>
171
<table border="0" cellspacing="2" cellpadding="0">
172
<tr><td></td><td valign="top"><em>appname</em> </td><td> Add the data directories of this application to the
173
icon search path for the "User" group. The default argument adds the
174
directories of the current application.
176
<tr><td></td><td valign="top"><em>dirs</em> </td><td> the KStandardDirs object to use. If null the global one is used
179
<p> Usually, you use the default iconloader, which can be accessed via
180
KIconLoader.global(), so you hardly ever have to create an
181
iconloader object yourself. That one is the current KComponentData's
182
(typically KApplication's) iconloader.
183
</p></div></div><a class="anchor" name="KIconLoader"></a>
184
<div class="memitem">
185
<div class="memproto">
186
<table class="memname"><tr>
187
<td class="memname">__init__</td>
189
<td class="paramtype"> <em>self</em>, </td>
190
<td class="paramname"></td>
192
<td class="memname"></td>
194
<td class="paramtype"><a href="../kdecore/KComponentData.html">KComponentData</a> </td>
195
<td class="paramname"><em>componentData</em>, </td>
198
<td class="memname"></td>
200
<td class="paramtype">QObject </td>
201
<td class="paramname"><em>parent=0</em></td>
208
<td width="100%"> </td>
211
<div class="memdoc"><p>Constructs an iconloader.
212
</p><dl compact><dt><b>Parameters:</b></dt><dd>
213
<table border="0" cellspacing="2" cellpadding="0">
214
<tr><td></td><td valign="top"><em>componentData</em> </td><td> the KComponentData to use to create this icon loader.
217
<p> Usually, you use the default iconloader, which can be accessed via
218
KIconLoader.global(), so you hardly ever have to create an
219
iconloader object yourself. That one is the current KComponentData's
220
(typically KApplication's) iconloader.
221
</p></div></div><a class="anchor" name="addAppDir"></a>
222
<div class="memitem">
223
<div class="memproto">
224
<table class="memname"><tr>
225
<td class="memname"> addAppDir</td>
227
<td class="paramtype"> <em>self</em>, </td>
228
<td class="paramname"></td>
230
<td class="memname"></td>
232
<td class="paramtype">QString </td>
233
<td class="paramname"><em>appname</em></td>
240
<td width="100%"> </td>
243
<div class="memdoc"><p>Adds <b>appname</b> to the list of application specific directories.
244
</p><dl compact><dt><b>Parameters:</b></dt><dd>
245
<table border="0" cellspacing="2" cellpadding="0">
246
<tr><td></td><td valign="top"><em>appname</em> </td><td> The application name.
250
</p></div></div><a class="anchor" name="addExtraDesktopThemes"></a>
251
<div class="memitem">
252
<div class="memproto">
253
<table class="memname"><tr>
254
<td class="memname"> addExtraDesktopThemes</td>
256
<td class="paramtype"> </td>
257
<td class="paramname"><em>self</em> )</td>
258
<td width="100%"> </td>
262
<div class="memdoc"><p>Adds all the default themes from other desktops at the end of
263
the list of icon themes.
264
</p></div></div><a class="anchor" name="extraDesktopThemesAdded"></a>
265
<div class="memitem">
266
<div class="memproto">
267
<table class="memname"><tr>
268
<td class="memname">bool extraDesktopThemesAdded</td>
270
<td class="paramtype"> </td>
271
<td class="paramname"><em>self</em> )</td>
272
<td width="100%"> </td>
276
<div class="memdoc"><p>Returns if the default icon themes of other desktops have been added
277
to the list of icon themes where icons are searched.
278
</p></div></div><a class="anchor" name="iconEffect"></a>
279
<div class="memitem">
280
<div class="memproto">
281
<table class="memname"><tr>
282
<td class="memname"><a href="../kdeui/KIconEffect.html">KIconEffect</a> iconEffect</td>
284
<td class="paramtype"> </td>
285
<td class="paramname"><em>self</em> )</td>
286
<td width="100%"> </td>
290
<div class="memdoc"><p>Returns a pointer to the KIconEffect object used by the icon loader.
291
<dl class="return" compact><dt><b>Returns:</b></dt><dd> the KIconEffect.
293
</p></div></div><a class="anchor" name="iconPath"></a>
294
<div class="memitem">
295
<div class="memproto">
296
<table class="memname"><tr>
297
<td class="memname">QString iconPath</td>
299
<td class="paramtype"> <em>self</em>, </td>
300
<td class="paramname"></td>
302
<td class="memname"></td>
304
<td class="paramtype">QString </td>
305
<td class="paramname"><em>name</em>, </td>
308
<td class="memname"></td>
310
<td class="paramtype">int </td>
311
<td class="paramname"><em>group_or_size</em>, </td>
314
<td class="memname"></td>
316
<td class="paramtype">bool </td>
317
<td class="paramname"><em>canReturnNull=0</em></td>
324
<td width="100%"> </td>
327
<div class="memdoc"><p>Returns the path of an icon.
328
</p><dl compact><dt><b>Parameters:</b></dt><dd>
329
<table border="0" cellspacing="2" cellpadding="0">
330
<tr><td></td><td valign="top"><em>name</em> </td><td> The name of the icon, without extension. If an absolute
331
path is supplied for this parameter, iconPath will return it
334
<tr><td></td><td valign="top"><em>group_or_size</em> </td><td> If positive, search icons whose size is
335
specified by the icon group <b>group_or_size.</b> If negative, search
336
icons whose size is - <b>group_or_size.</b>
337
See KIconLoader.Group and KIconLoader.StdSizes
339
<tr><td></td><td valign="top"><em>canReturnNull</em> </td><td> Can return a null string? If not, a path to the
340
"unknown" icon will be returned.
341
</td></tr> </table></dl>
342
<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> the path of an icon, can be null or the "unknown" icon when
343
not found, depending on <b>canReturnNull.</b>
345
</p></div></div><a class="anchor" name="loadIcon"></a>
346
<div class="memitem">
347
<div class="memproto">
348
<table class="memname"><tr>
349
<td class="memname">QPixmap loadIcon</td>
351
<td class="paramtype"> <em>self</em>, </td>
352
<td class="paramname"></td>
354
<td class="memname"></td>
356
<td class="paramtype">QString </td>
357
<td class="paramname"><em>name</em>, </td>
360
<td class="memname"></td>
362
<td class="paramtype"><a href="../kdeui/KIconLoader.html#Group">KIconLoader.Group</a> </td>
363
<td class="paramname"><em>group</em>, </td>
366
<td class="memname"></td>
368
<td class="paramtype">int </td>
369
<td class="paramname"><em>size=0</em>, </td>
372
<td class="memname"></td>
374
<td class="paramtype">int </td>
375
<td class="paramname"><em>state=KIconLoader.DefaultState</em>, </td>
378
<td class="memname"></td>
380
<td class="paramtype">QStringList </td>
381
<td class="paramname"><em>overlays=QStringList()</em>, </td>
384
<td class="memname"></td>
386
<td class="paramtype">QString </td>
387
<td class="paramname"><em>path_store=0</em>, </td>
390
<td class="memname"></td>
392
<td class="paramtype">bool </td>
393
<td class="paramname"><em>canReturnNull=0</em></td>
400
<td width="100%"> </td>
403
<div class="memdoc"><p>Loads an icon. It will try very hard to find an icon which is
404
suitable. If no exact match is found, a close match is searched.
405
If neither an exact nor a close match is found, a null pixmap or
406
the "unknown" pixmap is returned, depending on the value of the
407
<b>canReturnNull</b> parameter.
410
</p><dl compact><dt><b>Parameters:</b></dt><dd>
411
<table border="0" cellspacing="2" cellpadding="0">
412
<tr><td></td><td valign="top"><em>name</em> </td><td> The name of the icon, without extension.
414
<tr><td></td><td valign="top"><em>group</em> </td><td> The icon group. This will specify the size of and effects to
415
be applied to the icon.
417
<tr><td></td><td valign="top"><em>size</em> </td><td> If nonzero, this overrides the size specified by <b>group.</b>
418
See KIconLoader.StdSizes.
420
<tr><td></td><td valign="top"><em>state</em> </td><td> The icon state: <b>DefaultState,</b> <b>ActiveState</b> or
421
<b>DisabledState.</b> Depending on the user's preferences, the iconloader
422
may apply a visual effect to hint about its state.
424
<tr><td></td><td valign="top"><em>overlays</em> </td><td> a list of emblem icons to overlay, by name. the emblem
425
prefix is applied automatically to each name, e.g.
426
"zip" becomes "emblem-zip"
428
<tr><td></td><td valign="top"><em>path_store</em> </td><td> If not null, the path of the icon is stored here,
429
if the icon was found. If the icon was not found <b>path_store</b>
430
is unaltered even if the "unknown" pixmap was returned.
432
<tr><td></td><td valign="top"><em>canReturnNull</em> </td><td> Can return a null pixmap? If false, the
433
"unknown" pixmap is returned when no appropriate icon has been
434
found. <em>Note:</em> a null pixmap can still be returned in the
435
event of invalid parameters, such as empty names, negative sizes,
437
</td></tr> </table></dl>
438
<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> the QPixmap. Can be null when not found, depending on
439
</dd></dl> <b>canReturnNull.</b>
440
</p></div></div><a class="anchor" name="loadMimeTypeIcon"></a>
441
<div class="memitem">
442
<div class="memproto">
443
<table class="memname"><tr>
444
<td class="memname">QPixmap loadMimeTypeIcon</td>
446
<td class="paramtype"> <em>self</em>, </td>
447
<td class="paramname"></td>
449
<td class="memname"></td>
451
<td class="paramtype">QString </td>
452
<td class="paramname"><em>iconName</em>, </td>
455
<td class="memname"></td>
457
<td class="paramtype"><a href="../kdeui/KIconLoader.html#Group">KIconLoader.Group</a> </td>
458
<td class="paramname"><em>group</em>, </td>
461
<td class="memname"></td>
463
<td class="paramtype">int </td>
464
<td class="paramname"><em>size=0</em>, </td>
467
<td class="memname"></td>
469
<td class="paramtype">int </td>
470
<td class="paramname"><em>state=KIconLoader.DefaultState</em>, </td>
473
<td class="memname"></td>
475
<td class="paramtype">QStringList </td>
476
<td class="paramname"><em>overlays=QStringList()</em>, </td>
479
<td class="memname"></td>
481
<td class="paramtype">QString </td>
482
<td class="paramname"><em>path_store=0</em></td>
489
<td width="100%"> </td>
492
<div class="memdoc"><p>Loads an icon for a mimetype.
493
This is basically like loadIcon except that extra desktop themes are loaded if necessary.
496
</p><dl compact><dt><b>Parameters:</b></dt><dd>
497
<table border="0" cellspacing="2" cellpadding="0">
498
<tr><td></td><td valign="top"><em>iconName</em> </td><td> The name of the icon, without extension, usually from KMimeType.
500
<tr><td></td><td valign="top"><em>group</em> </td><td> The icon group. This will specify the size of and effects to
501
be applied to the icon.
503
<tr><td></td><td valign="top"><em>size</em> </td><td> If nonzero, this overrides the size specified by <b>group.</b>
504
See KIconLoader.StdSizes.
506
<tr><td></td><td valign="top"><em>state</em> </td><td> The icon state: <b>DefaultState,</b> <b>ActiveState</b> or
507
<b>DisabledState.</b> Depending on the user's preferences, the iconloader
508
may apply a visual effect to hint about its state.
510
<tr><td></td><td valign="top"><em>path_store</em> </td><td> If not null, the path of the icon is stored here.
512
<tr><td></td><td valign="top"><em>overlays</em> </td><td> a list of emblem icons to overlay, by name. the emblem
513
prefix is applied automatically to each name, e.g.
514
"zip" becomes "emblem-zip"
515
</td></tr> </table></dl>
516
<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> the QPixmap. Can not be null, the
517
"unknown" pixmap is returned when no appropriate icon has been found.
519
</p></div></div><a class="anchor" name="newIconLoader"></a>
520
<div class="memitem">
521
<div class="memproto">
522
<table class="memname"><tr>
523
<td class="memname"> newIconLoader</td>
525
<td class="paramtype"> </td>
526
<td class="paramname"><em>self</em> )</td>
527
<td width="100%"> </td>
531
<div class="memdoc"><p>Re-initialize the global icon loader
532
</p></div></div><a class="anchor" name="queryIconsByDir"></a>
533
<div class="memitem">
534
<div class="memproto">
535
<table class="memname"><tr>
536
<td class="memname">QStringList queryIconsByDir</td>
538
<td class="paramtype"> <em>self</em>, </td>
539
<td class="paramname"></td>
541
<td class="memname"></td>
543
<td class="paramtype">QString </td>
544
<td class="paramname"><em>iconsDir</em></td>
551
<td width="100%"> </td>
554
<div class="memdoc"><p>Returns a list of all icons (*.png or *.xpm extension) in the
556
</p><dl compact><dt><b>Parameters:</b></dt><dd>
557
<table border="0" cellspacing="2" cellpadding="0">
558
<tr><td></td><td valign="top"><em>iconsDir</em> </td><td> the directory to search in
559
</td></tr> </table></dl>
560
<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> A QStringList containing the icon paths
562
</p></div></div><a class="anchor" name="reconfigure"></a>
563
<div class="memitem">
564
<div class="memproto">
565
<table class="memname"><tr>
566
<td class="memname"> reconfigure</td>
568
<td class="paramtype"> <em>self</em>, </td>
569
<td class="paramname"></td>
571
<td class="memname"></td>
573
<td class="paramtype">QString </td>
574
<td class="paramname"><em>_appname</em>, </td>
577
<td class="memname"></td>
579
<td class="paramtype"><a href="../kdecore/KStandardDirs.html">KStandardDirs</a> </td>
580
<td class="paramname"><em>_dirs</em></td>
587
<td width="100%"> </td>
590
<div class="memdoc"><p>Called by KComponentData.newIconLoader to reconfigure the icon loader.
591
</p><dl compact><dt><b>Parameters:</b></dt><dd>
592
<table border="0" cellspacing="2" cellpadding="0">
593
<tr><td></td><td valign="top"><em>_appname</em> </td><td> the new application name
595
<tr><td></td><td valign="top"><em>_dirs</em> </td><td> the new standard directories. If 0, the directories
596
from KGlobal will be taken.
600
</p></div></div><a class="anchor" name="theme"></a>
601
<div class="memitem">
602
<div class="memproto">
603
<table class="memname"><tr>
604
<td class="memname"><a href="../kdeui/KIconTheme.html">KIconTheme</a> theme</td>
606
<td class="paramtype"> </td>
607
<td class="paramname"><em>self</em> )</td>
608
<td width="100%"> </td>
612
<div class="memdoc"><p>Returns a pointer to the current theme. Can be used to query
613
available and default sizes for groups.
614
<dl class="note" compact><dt><b>Note:</b></dt><dd> The KIconTheme will change if reconfigure() is called and
615
therefore it's not recommended to store the pointer anywhere.
616
</dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd> a pointer to the current theme. 0 if no theme set.
618
</p></div></div><hr><h2>Static Method Documentation</h2><a class="anchor" name="global"></a>
619
<div class="memitem">
620
<div class="memproto">
621
<table class="memname"><tr>
622
<td class="memname"><a href="../kdeui/KIconLoader.html">KIconLoader</a> global_</td>
624
<td class="paramtype"> </td>
625
<td class="paramname">)</td>
626
<td width="100%"> </td>
630
<div class="memdoc"><p>Returns the global icon loader initialized with the global KComponentData.
631
<dl class="return" compact><dt><b>Returns:</b></dt><dd> global icon loader
633
</p></div></div><a class="anchor" name="unknown"></a>
634
<div class="memitem">
635
<div class="memproto">
636
<table class="memname"><tr>
637
<td class="memname">QPixmap unknown</td>
639
<td class="paramtype"> </td>
640
<td class="paramname">)</td>
641
<td width="100%"> </td>
645
<div class="memdoc"><p>Returns the unknown icon. An icon that is used when no other icon
647
<dl class="return" compact><dt><b>Returns:</b></dt><dd> the unknown pixmap
649
</p></div></div><hr><h2>Enumeration Documentation</h2><a class="anchor" name="Context"></a>
650
<div class="memitem">
651
<div class="memproto">
652
<table class="memname">
653
<tr><td class="memname">Context</td>
657
<div class="memdoc"><p>Defines the context of the icon.
658
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
659
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Any</em> </td><td><tr><td valign="top"><em>Action</em> </td><td><tr><td valign="top"><em>Application</em> </td><td><tr><td valign="top"><em>Device</em> </td><td><tr><td valign="top"><em>FileSystem</em> </td><td><tr><td valign="top"><em>MimeType</em> </td><td><tr><td valign="top"><em>Animation</em> </td><td><tr><td valign="top"><em>Category</em> </td><td><tr><td valign="top"><em>Emblem</em> </td><td><tr><td valign="top"><em>Emote</em> </td><td><tr><td valign="top"><em>International</em> </td><td><tr><td valign="top"><em>Place</em> </td><td><tr><td valign="top"><em>StatusIcon</em> </td><td></table>
661
</div></div><p><a class="anchor" name="Group"></a>
662
<div class="memitem">
663
<div class="memproto">
664
<table class="memname">
665
<tr><td class="memname">Group</td>
669
<div class="memdoc"><p>The group of the icon.
670
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
671
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>NoGroup</em> = -1</td><td><tr><td valign="top"><em>Desktop</em> = 0</td><td><tr><td valign="top"><em>FirstGroup</em> = 0</td><td><tr><td valign="top"><em>Toolbar</em> </td><td><tr><td valign="top"><em>MainToolbar</em> </td><td><tr><td valign="top"><em>Small</em> </td><td><tr><td valign="top"><em>Panel</em> </td><td><tr><td valign="top"><em>Dialog</em> </td><td><tr><td valign="top"><em>LastGroup</em> </td><td><tr><td valign="top"><em>User</em> </td><td></table>
673
</div></div><p><a class="anchor" name="MatchType"></a>
674
<div class="memitem">
675
<div class="memproto">
676
<table class="memname">
677
<tr><td class="memname">MatchType</td>
681
<div class="memdoc"><p>The type of a match.
682
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
683
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>MatchExact</em> </td><td><tr><td valign="top"><em>MatchBest</em> </td><td></table>
685
</div></div><p><a class="anchor" name="States"></a>
686
<div class="memitem">
687
<div class="memproto">
688
<table class="memname">
689
<tr><td class="memname">States</td>
693
<div class="memdoc"><p>Defines the possible states of an icon.
694
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
695
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>DefaultState</em> </td><td><tr><td valign="top"><em>ActiveState</em> </td><td><tr><td valign="top"><em>DisabledState</em> </td><td><tr><td valign="top"><em>LastState</em> </td><td></table>
697
</div></div><p><a class="anchor" name="StdSizes"></a>
698
<div class="memitem">
699
<div class="memproto">
700
<table class="memname">
701
<tr><td class="memname">StdSizes</td>
705
<div class="memdoc"><p>These are the standard sizes for icons.
706
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
707
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>SizeSmall</em> = 16</td><td><tr><td valign="top"><em>SizeSmallMedium</em> = 22</td><td><tr><td valign="top"><em>SizeMedium</em> = 32</td><td><tr><td valign="top"><em>SizeLarge</em> = 48</td><td><tr><td valign="top"><em>SizeHuge</em> = 64</td><td><tr><td valign="top"><em>SizeEnormous</em> = 128</td><td></table>
709
</div></div><p><a class="anchor" name="Type"></a>
710
<div class="memitem">
711
<div class="memproto">
712
<table class="memname">
713
<tr><td class="memname">Type</td>
717
<div class="memdoc"><p>The type of the icon.
718
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
719
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Fixed</em> </td><td><tr><td valign="top"><em>Scalable</em> </td><td><tr><td valign="top"><em>Threshold</em> </td><td></table>
728
<div class="menu_box">
729
<div class="nav_list">
731
<li><a href="../allclasses.html">Full Index</a></li>
735
<a name="cp-menu" /><div class="menutitle"><div>
736
<h2 id="cp-menu-project">Modules</h2>
738
<div class="nav_list">
739
<ul><li><a href="../akonadi/index.html">akonadi</a></li>
740
<li><a href="../dnssd/index.html">dnssd</a></li>
741
<li><a href="../kdecore/index.html">kdecore</a></li>
742
<li><a href="../kdeui/index.html">kdeui</a></li>
743
<li><a href="../khtml/index.html">khtml</a></li>
744
<li><a href="../kio/index.html">kio</a></li>
745
<li><a href="../knewstuff/index.html">knewstuff</a></li>
746
<li><a href="../kparts/index.html">kparts</a></li>
747
<li><a href="../kutils/index.html">kutils</a></li>
748
<li><a href="../nepomuk/index.html">nepomuk</a></li>
749
<li><a href="../phonon/index.html">phonon</a></li>
750
<li><a href="../plasma/index.html">plasma</a></li>
751
<li><a href="../polkitqt/index.html">polkitqt</a></li>
752
<li><a href="../solid/index.html">solid</a></li>
753
<li><a href="../soprano/index.html">soprano</a></li>
759
<div class="clearer"/>
762
<div id="end_body"></div>
764
<div id="footer"><div id="footer_text">
765
This documentation is maintained by <a href="mailto:simon@simonzone.com">Simon Edwards</a>.<br />
766
KDE<sup>®</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
767
<a href="http://www.kde.org/contact/impressum.php">Legal</a>