Holds data pertinent to a certain enum. It does not know the enum values themselves, but treat them as integers.
More...
|
| | EnumDef () |
| |
| | EnumDef (const char *nm, const char *s[], short nrs=0) |
| |
| bool | isValidKey (const char *) const |
| |
| int | indexOf (const char *s) const |
| |
| int | indexOf (int enumval) const |
| |
| int | getEnumValForIndex (int) const |
| |
| const char * | getKeyForIndex (int i) const |
| |
| uiString | getUiStringForIndex (int i) const |
| |
| void | setUiStringForIndex (int, const uiString &) |
| |
| const BufferStringSet & | keys () const |
| |
| const uiStringSet & | strings () const |
| |
| const char * | getIconFileForIndex (int idx) const |
| |
| void | setIconFileForIndex (int idx, const char *) |
| |
| int | size () const |
| |
| void | remove (const char *key) |
| |
| void | add (const char *key, const uiString &, int enumval, const char *iconfile) |
| |
| bool | isValidName (const char *key) const |
| |
| const char * | convert (int idx) const |
| |
| int | convert (const char *txt) const |
| |
| | NamedObject (const char *nm=0) |
| |
| | NamedObject (const NamedObject *linkedto) |
| |
| | NamedObject (const NamedObject &) |
| |
| virtual | ~NamedObject () |
| |
| void | setLinkedTo (NamedObject *) |
| |
| bool | operator== (const NamedObject &oth) const |
| |
| virtual const OD::String & | name () const |
| |
| virtual const OD::String & | annotName () const |
| |
| virtual void | setName (const char *) |
| |
| void | setCleanName (const char *) |
| | cleans string first More...
|
| |
| void | deleteNotify (const CallBack &) |
| |
| | CallBacker () |
| |
| | CallBacker (const CallBacker &) |
| |
| virtual | ~CallBacker () |
| |
| bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
| |
| bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
| |
| void | detachCB (NotifierAccess &, const CallBack &) |
| |
| void | detachCB (NotifierAccess *notif, const CallBack &cb) |
| |
| bool | isNotifierAttached (NotifierAccess *) const |
| | Only for debugging purposes, don't use. More...
|
| |
Holds data pertinent to a certain enum. It does not know the enum values themselves, but treat them as integers.
In most cases, the inherited EnumDefImpl<ENUM> is used, but a stand-alone EnumDef can be used if one wants to use combinations of enums that are not available as EnumDefImpl.
A stand-alone EnumDef can be created as follows to create a combo box with all enums in Stats::Type without the average.