FX::FXIconDict Class Reference

#include <FXIconDict.h>

Inheritance diagram for FX::FXIconDict:

FX::FXDict FX::FXObject List of all members.

Detailed Description

The Icon Dictionary manages a collection of icons. The icons are referenced by their file name. When first encountering a new file name, the icon is located by searching the icon search path for the icon file. If found, the services of the icon source object are used to load the icon from the file. A custom icon source may be installed to furnish support for additonal image file formats. Once the icon is loaded, an association between the icon name and the icon is entered into the icon dictionary. Subsequent searches for an icon with this name will be satisfied from the cached value. The lifetype of the icons is managed by the icon dictionary, and thus all icons will be deleted when the dictionary is deleted.

Definition at line 50 of file FXIconDict.h.

Public Member Functions

 FXIconDict (FXApp *app, const FXString &p=defaultIconPath)
void setIconSource (FXIconSource *src)
FXIconSourcegetIconSource () const
void setIconPath (const FXString &p)
const FXStringgetIconPath () const
FXIconinsert (const FXchar *name)
FXIconremove (const FXchar *name)
FXIconfind (const FXchar *name)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXIconDict ()
void size (FXint m)
FXint size () const
FXint no () const
void * insert (const FXchar *ky, const void *ptr, bool mrk=false)
void * replace (const FXchar *ky, const void *ptr, bool mrk=false)
void * find (const FXchar *ky) const
bool empty (FXint pos) const
const FXcharkey (FXuint pos) const
void * data (FXuint pos) const
bool mark (FXuint pos) const
FXint first () const
FXint last () const
FXint next (FXint pos) const
FXint prev (FXint pos) const
void clear ()
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchargetClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Static Public Attributes

static const FXchar defaultIconPath []

Protected Member Functions

 FXIconDict ()
virtual void * createData (const void *)
virtual void deleteData (void *)

Static Protected Member Functions

static FXint hash (const FXchar *str)

Protected Attributes

FXDictEntry * dict
FXint total
FXint number


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:34:22 2009 for TnFOX by doxygen v1.4.7