![]() |
OpendTect
6.3
|
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 (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| virtual bool | isCapsule () const |
| void | stopReceivingNotifications () const |
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 () const |
| Call from the destructor of your inherited object. More... | |
Protected Attributes | |
| uiListBox & | lb_ |
| CtxtIOObj & | ctio_ |
| BufferStringSet | keys_ |
| BufferStringSet | chosennames_ |
Private Member Functions | |
| mODTextTranslationClass (uiListBoxChoiceIO) | |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
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. 2017