OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
uiListBoxChoiceIO Class Reference

Allows save/restore of chosen items for a uiListBox. More...

Inheritance diagram for uiListBoxChoiceIO:
[legend]

Public Member Functions

 uiListBoxChoiceIO (uiListBox &, const char *omftypekey)
 
 ~uiListBoxChoiceIO ()
 
BufferStringSetkeys ()
 
const BufferStringSetchosenNames () const
 
const BufferStringSetchosenKeys () 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< uiListBoxChoiceIOstoreRequested
 opportunity to set the keys More...
 
Notifier< uiListBoxChoiceIOreadDone
 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

uiListBoxlb_
 
CtxtIOObjctio_
 
BufferStringSet keys_
 
BufferStringSet chosennames_
 

Private Member Functions

 mODTextTranslationClass (uiListBoxChoiceIO)
 

Detailed Description

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.

Constructor & Destructor Documentation

uiListBoxChoiceIO::uiListBoxChoiceIO ( uiListBox ,
const char *  omftypekey 
)
uiListBoxChoiceIO::~uiListBoxChoiceIO ( )

Member Function Documentation

const BufferStringSet& uiListBoxChoiceIO::chosenKeys ( ) const
inline
const BufferStringSet& uiListBoxChoiceIO::chosenNames ( ) const
inline
BufferStringSet& uiListBoxChoiceIO::keys ( )
inline
uiListBoxChoiceIO::mODTextTranslationClass ( uiListBoxChoiceIO  )
private
void uiListBoxChoiceIO::readReqCB ( CallBacker )
protected
void uiListBoxChoiceIO::setChosen ( const BufferStringSet names)
void uiListBoxChoiceIO::storeReqCB ( CallBacker )
protected

Member Data Documentation

BufferStringSet uiListBoxChoiceIO::chosennames_
protected
CtxtIOObj& uiListBoxChoiceIO::ctio_
protected
BufferStringSet uiListBoxChoiceIO::keys_
protected
uiListBox& uiListBoxChoiceIO::lb_
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