org.kde.koala
public class KIconLoader extends Object implements QtSupport
UNKNOWN: Iconloader for KDE.
Constructor Summary | |
---|---|
protected | KIconLoader(Class dummy) |
KIconLoader(String appname, KStandardDirs dirs)
Constructs an iconloader. | |
KIconLoader(String appname) | |
KIconLoader() |
Method Summary | |
---|---|
void | addAppDir(String appname)
Adds appname to the list of application specific directories. |
void | addExtraDesktopThemes()
Adds all the default themes from other desktops at the end of
the list of icon themes. |
int | currentSize(int group)
Returns the current size of the group. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
void | enableDelayedIconSetLoading(boolean enable)
Enables on-demand icon loading for QIconSets using QIconFactory.
|
boolean | extraDesktopThemesAdded()
Returns if the default icon themes of other desktops have been added
to the list of icon themes where icons are searched. |
protected void | finalize() Deletes the wrapped C++ instance |
KIconEffect | iconEffect()
Returns a pointer to the KIconEffect object used by the icon loader. |
String | iconPath(String name, int group_or_size, boolean canReturnNull)
Returns the path of an icon. |
String | iconPath(String name, int group_or_size) |
boolean | isDelayedIconSetLoadingEnabled()
Checks whether delayed loading for QIconSet is enabled. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
ArrayList | loadAnimated(String name, int group, int size)
Loads an animated icon as a series of still frames. |
ArrayList | loadAnimated(String name, int group) |
QPixmap | loadIcon(String name, int group, int size, int state, StringBuffer path_store, boolean canReturnNull)
Loads an icon. |
QPixmap | loadIcon(String name, int group, int size, int state, StringBuffer path_store) |
QPixmap | loadIcon(String name, int group, int size, int state) |
QPixmap | loadIcon(String name, int group, int size) |
QPixmap | loadIcon(String name, int group) |
QIconSet | loadIconSet(String name, int group, int size, boolean canReturnNull, boolean immediateExistenceCheck)
Creates an icon set, that will do on-demand loading of the icon.
|
QIconSet | loadIconSet(String name, int group, int size, boolean canReturnNull)
Creates an icon set, that will do on-demand loading of the icon.
|
QIconSet | loadIconSet(String name, int group, int size)
Creates an icon set, that will do on-demand loading of the icon.
|
QIconSet | loadIconSet(String name, int group) |
QMovie | loadMovie(String name, int group, int size)
Loads an animated icon. |
QMovie | loadMovie(String name, int group) |
String | moviePath(String name, int group, int size)
Returns the path to an animated icon. |
String | moviePath(String name, int group) |
ArrayList | queryIcons(int group_or_size, int context)
Queries all available icons for a specific group, having a specific
context. |
ArrayList | queryIcons(int group_or_size) |
ArrayList | queryIconsByContext(int group_or_size, int context)
Queries all available icons for a specific context. |
ArrayList | queryIconsByContext(int group_or_size) |
ArrayList | queryIconsByDir(String iconsDir)
Returns a list of all icons (.png or .xpm extension) in the
given directory. |
void | reconfigure(String _appname, KStandardDirs _dirs)
Called by KInstance.newIconLoader to reconfigure the icon loader. |
static QPixmap | unknown()
Returns the unknown icon. |
Parameters: appname Add the data directories of this application to the icon search path for the "User" group. The default argument adds the directories of the current application. dirs the KStandardDirs object to use. If null the global one is used Usually, you use the default iconloader, which can be accessed via KGlobal.iconLoader(), so you hardly ever have to create an iconloader object yourself. That one is the current KInstance's (typically KApplication's) iconloader.
UNKNOWN: Constructs an iconloader.
appname
to the list of application specific directories.Parameters: appname The application name.
UNKNOWN: Adds appname
to the list of application specific directories.
UNKNOWN: Adds all the default themes from other desktops at the end of the list of icon themes.
Parameters: group the group to check.
Returns: the current size for an icon group.
UNKNOWN: Returns the current size of the group.
Parameters: enable true to enable delayed icon loading, false to disable
See Also: KIconLoader org.kde.qt.QIconFactory
UNKNOWN: Enables on-demand icon loading for QIconSets using QIconFactory.
UNKNOWN: Returns if the default icon themes of other desktops have been added to the list of icon themes where icons are searched.
Returns: the KIconEffect.
UNKNOWN: Returns a pointer to the KIconEffect object used by the icon loader.
Parameters: name The name of the icon, without extension. If an absolute
path is supplied for this parameter, iconPath will return it
directly. group_or_size If positive, search icons whose size is
specified by the icon group group_or_size.
If negative, search
icons whose size is - group_or_size.
See KIcon.Group and KIcon.StdSizes canReturnNull Can return a null string? If not, a path to the
"unknown" icon will be returned.
Returns: the path of an icon, can be null or the "unknown" icon when
not found, depending on canReturnNull.
UNKNOWN: Returns the path of an icon.
Returns: whether icons for QIconSets will be loaded on demand.
See Also: KIconLoader org.kde.qt.QIconFactory
UNKNOWN: Checks whether delayed loading for QIconSet is enabled.
Parameters: name The name of the icon. group The icon group. See loadIcon(). size Override the default size for group.
See KIcon.StdSizes.
Returns: An ArrayList containing the absolute path of all the frames making up the animation.
UNKNOWN: Loads an animated icon as a series of still frames.
canReturnNull
parameter.Parameters: name The name of the icon, without extension. group The icon group. This will specify the size of and effects to
be applied to the icon. size If nonzero, this overrides the size specified by group.
See KIcon.StdSizes. state The icon state: DefaultState
, ActiveState
or
DisabledState.
Depending on the user's preferences, the iconloader
may apply a visual effect to hint about its state. path_store If not null, the path of the icon is stored here. canReturnNull Can return a null pixmap? If false, the
"unknown" pixmap is returned when no appropriate icon has been found.
Returns: the QPixmap. Can be null when not found, depending on
canReturnNull.
UNKNOWN: Loads an icon.
Parameters: name The name of the icon, without extension. group The icon group. This will specify the size of and effects to
be applied to the icon. size If nonzero, this overrides the size specified by group.
See KIcon.StdSizes. canReturnNull Can return a null iconset? If false, iconset
containing the "unknown" pixmap is returned when no appropriate icon has
been found. immediateExistenceCheck If true on-demand icon loading will be
disabled for canReturnNull and a null iconset may be returned immediately
Returns: the icon set. Can be null when not found, depending on
canReturnNull.
UNKNOWN: Creates an icon set, that will do on-demand loading of the icon.
Parameters: name The name of the icon, without extension. group The icon group. This will specify the size of and effects to
be applied to the icon. size If nonzero, this overrides the size specified by group.
See KIcon.StdSizes. canReturnNull Can return a null iconset? If false, iconset
containing the "unknown" pixmap is returned when no appropriate icon has
been found.
Returns: the icon set. Can be null when not found, depending on
canReturnNull.
UNKNOWN: Creates an icon set, that will do on-demand loading of the icon.
Parameters: name The name of the icon, without extension. group The icon group. This will specify the size of and effects to
be applied to the icon. size If nonzero, this overrides the size specified by group.
See KIcon.StdSizes.
Returns: the icon set. Can be null when not found
UNKNOWN: Creates an icon set, that will do on-demand loading of the icon.
Parameters: name The name of the icon. group The icon group. See loadIcon(). size Override the default size for group.
See KIcon.StdSizes.
Returns: A QMovie object. Can be null if not found.
UNKNOWN: Loads an animated icon.
Parameters: name The name of the icon. group The icon group. See loadIcon(). size Override the default size for group.
See KIcon.StdSizes.
Returns: the full path to the movie, ready to be passed to QMovie's constructor. Empty string if not found.
UNKNOWN: Returns the path to an animated icon.
Parameters: group_or_size If positive, search icons whose size is
specified by the icon group group_or_size.
If negative, search
icons whose size is - group_or_size.
See KIcon.Group and KIcon.StdSizes context The icon context.
Returns: a list of all icons
UNKNOWN: Queries all available icons for a specific group, having a specific context.
Parameters: group_or_size The icon preferred group or size. If available at this group or size, those icons will be returned, in other case, icons of undefined size will be returned. Positive numbers are groups, negative numbers are negated sizes. See KIcon.Group and KIcon.StdSizes context The icon context.
Returns: An ArrayList containing the icon names available for that context
UNKNOWN: Queries all available icons for a specific context.
Parameters: iconsDir the directory to search in
Returns: An ArrayList containing the icon paths
UNKNOWN: Returns a list of all icons ( .
Parameters: _appname the new application name _dirs the new standard directories. If 0, the directories from KGlobal will be taken.
UNKNOWN: Called by KInstance.newIconLoader to reconfigure the icon loader.
Returns: the unknown pixmap
UNKNOWN: Returns the unknown icon.