OpendTect-6_4
6.4
|
Allows save/restore of chosen items for a uiListBox. More...
Public Member Functions | |
uiListBoxChoiceIO (uiListBox &, const char *omftypekey) | |
~uiListBoxChoiceIO () | |
BufferStringSet & | keys () |
const BufferStringSet & | chosenNames () const |
const BufferStringSet & | chosenKeys () const |
void | setChosen (const BufferStringSet &names) |
Public Member Functions inherited from CallBacker | |
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... | |
Public Attributes | |
Notifier< uiListBoxChoiceIO > | storeRequested |
opportunity to set the keys More... | |
Notifier< uiListBoxChoiceIO > | readDone |
now use setChosen More... | |
Protected Member Functions | |
void | readReqCB (CallBacker *) |
void | storeReqCB (CallBacker *) |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
uiListBox & | lb_ |
CtxtIOObj & | ctio_ |
BufferStringSet | keys_ |
BufferStringSet | chosennames_ |
Private Member Functions | |
mODTextTranslationClass (uiListBoxChoiceIO) | |
Allows save/restore of chosen items for a uiListBox.
If you provide keys (one for each item), then these will be stored too.
If you have no keys, then you can simply do setChosen( chosenNames() ). Otherwise you need to construct the display names yourself and then use setChosen().
Note: this object needs to be deleted explicitly; it will not be deleted automatically like the uiListBox itself.
uiListBoxChoiceIO::uiListBoxChoiceIO | ( | uiListBox & | , |
const char * | omftypekey | ||
) |
uiListBoxChoiceIO::~uiListBoxChoiceIO | ( | ) |
|
inline |
|
inline |
|
inline |
|
private |
|
protected |
void uiListBoxChoiceIO::setChosen | ( | const BufferStringSet & | names | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Notifier<uiListBoxChoiceIO> uiListBoxChoiceIO::readDone |
now use setChosen
Notifier<uiListBoxChoiceIO> uiListBoxChoiceIO::storeRequested |
opportunity to set the keys
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019