OpendTect
7.0
|
Allows save/restore of chosen items for a uiListBox. More...
Public Member Functions | |
uiListBoxChoiceIO (uiListBox &, const char *omftypekey) | |
~uiListBoxChoiceIO () | |
const TypeSet< MultiID > & | chosenKeys () const |
const BufferStringSet & | chosenNames () const |
TypeSet< MultiID > & | keys () |
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 | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Public Attributes | |
Notifier< uiListBoxChoiceIO > | readDone |
now use setChosen More... | |
Notifier< uiListBoxChoiceIO > | storeRequested |
opportunity to set the keys More... | |
Protected Member Functions | |
void | readReqCB (CallBacker *) |
void | storeReqCB (CallBacker *) |
Protected Attributes | |
BufferStringSet | chosennames_ |
CtxtIOObj & | ctio_ |
TypeSet< MultiID > | keys_ |
uiListBox & | lb_ |
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 |
|
protected |
void uiListBoxChoiceIO::setChosen | ( | const BufferStringSet & | names | ) |
|
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. 1995-2024