krita

KisID Class Reference

#include <kis_id.h>

List of all members.


Detailed Description

Krita has a large number of extensible resources.

Think:

  • Brushes
  • Palettes
  • Patterns
  • Gradients
  • Color models
  • Filters
  • Composition operations
  • Paint operations
  • Tools
  • Docker tabs

and more...

Many of these resources are stored in KisGenericRegistry-based registries. If we store these resources with a descriptive string as a key use the same string in our UI, then our UI will not be localizable, because the identifications of particular resources will be stored in files, and those files need to be exchangeable.

So, instead we use and ID class that couples an identification string that will be the same across all languages, an i18n-able string that will be used in comboboxes and that has a fast equality operator to make it well suited for use as key in a registry map.

That last bit has not been solved yet.

Definition at line 57 of file kis_id.h.


Public Member Functions

 KisID (const QString &id, const QString &name=QString::null)
QString id () const
QString name () const

Friends

bool operator== (const KisID &, const KisID &)
bool operator!= (const KisID &, const KisID &)
bool operator< (const KisID &, const KisID &)
bool operator> (const KisID &, const KisID &)

The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys