krita
KisGenericRegistry< _T > Class Template Reference
#include <kis_generic_registry.h>
Detailed Description
template<typename _T>
class KisGenericRegistry< _T >
Base class for registry objects in Krita.
Krita registries contain resources such as filters, tools or colorspaces.
Items are mapped by KisID. A KisID is the combination of a non-localized string that can be used in files and a user-visible, translated string that can be used in the user interface.
Definition at line 39 of file kis_generic_registry.h.
Public Member Functions | |
KisGenericRegistry () | |
virtual | ~KisGenericRegistry () |
void | add (_T item) |
void | add (KisID id, _T item) |
_T | remove (const KisID &name) |
_T | remove (const QString &id) |
_T | get (const KisID &name) const |
_T | get (const QString &id) const |
bool | exists (const KisID &id) const |
bool | exists (const QString &id) const |
bool | search (const QString &t, KisID &result) const |
KisIDList | listKeys () const |
Protected Types | |
typedef std::map< KisID, _T > | storageMap |
Protected Member Functions | |
KisGenericRegistry (const KisGenericRegistry &) | |
KisGenericRegistry | operator= (const KisGenericRegistry &) |
Protected Attributes | |
storageMap | m_storage |
Member Function Documentation
|
add an object to the registry
Definition at line 60 of file kis_generic_registry.h. |
|
add an object to the registry
Definition at line 51 of file kis_generic_registry.h. |
|
Definition at line 115 of file kis_generic_registry.h. |
|
Get a single entry based on the identifying part of KisID, not the the descriptive part.
Definition at line 106 of file kis_generic_registry.h. |
|
This function allow to get an object from its KisID.
Definition at line 92 of file kis_generic_registry.h. |
|
This function return a list of all the keys.
Definition at line 147 of file kis_generic_registry.h. |
|
This function remove an item from the registry.
Definition at line 83 of file kis_generic_registry.h. |
|
This function remove an item from the registry.
Definition at line 68 of file kis_generic_registry.h. |
|
This function allow to search a KisID from the name.
Definition at line 131 of file kis_generic_registry.h. |
The documentation for this class was generated from the following file: