Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

uiIOSelect Class Reference

UI element for selection of data objects. More...

Inheritance diagram for uiIOSelect:
uiGroup uiParent uiBaseObject NamedObject CallBacker uiIOFileSelect

List of all members.

Classes

class  Setup

Public Member Functions

 uiIOSelect (uiParent *, const Setup &, const CallBack &)
 ~uiIOSelect ()
bool isEmpty () const
const char * getInput () const
const char * getKey () const
void setInput (const char *key)
 Will fetch user name using userNameFromKey.
void setInputText (const char *)
 As if user typed it manually.
int nrItems () const
int getCurrentItem () const
void setCurrentItem (int)
const char * getItem (int) const
bool isChecked () const
 only useful when optional_
void setChecked (bool yn)
 does something when optional_
void addSpecialItem (const char *key, const char *value=0)
 If value is null, add value same as key.
virtual void updateHistory (IOPar &) const
virtual void getHistory (const IOPar &)
void clear ()
void setEmpty (bool withclear=false)
virtual void processInput ()
void setReadOnly (bool readonly=true)
void doSel (CallBacker *)
const char * labelText () const
void setLabelText (const char *)
void setLabelSelectable (bool yn=true)
void stretchHor (bool)
uiComboBoxinpBox ()

Public Attributes

Notifier< uiIOSelectselectionDone
Notifier< uiIOSelectoptionalChecked

Protected Member Functions

void optCheck (CallBacker *)
void selDone (CallBacker *)
virtual const char * userNameFromKey (const char *s) const
void checkState () const
void updateFromEntries ()
bool haveEntry (const char *) const
virtual void objSel ()
 notification when user selects from combo
void doFinalise (CallBacker *)

Protected Attributes

CallBack doselcb_
BufferStringSet entries_
IOParspecialitems
bool selok_
bool keepmytxt_
uiComboBoxinp_
uiPushButtonselbut_
uiLabellbl_
uiCheckBoxoptbox_

Detailed Description

UI element for selection of data objects.


Constructor & Destructor Documentation

uiIOSelect::uiIOSelect ( uiParent ,
const Setup ,
const CallBack  
)
uiIOSelect::~uiIOSelect (  ) 

Member Function Documentation

void uiIOSelect::addSpecialItem ( const char *  key,
const char *  value = 0 
)

If value is null, add value same as key.

void uiIOSelect::checkState (  )  const [protected]
void uiIOSelect::clear (  )  [inline]

Reimplemented from uiBaseObject.

void uiIOSelect::doFinalise ( CallBacker  )  [protected]
void uiIOSelect::doSel ( CallBacker  ) 

Called by Select button push. Make sure selok_ is true if that is the case!

int uiIOSelect::getCurrentItem (  )  const
virtual void uiIOSelect::getHistory ( const IOPar  )  [virtual]
const char* uiIOSelect::getInput (  )  const
const char* uiIOSelect::getItem ( int   )  const
const char* uiIOSelect::getKey (  )  const
bool uiIOSelect::haveEntry ( const char *   )  const [protected]
uiComboBox* uiIOSelect::inpBox (  )  [inline]
bool uiIOSelect::isChecked (  )  const

only useful when optional_

bool uiIOSelect::isEmpty (  )  const
const char* uiIOSelect::labelText (  )  const
int uiIOSelect::nrItems (  )  const
virtual void uiIOSelect::objSel (  )  [inline, protected, virtual]

notification when user selects from combo

void uiIOSelect::optCheck ( CallBacker  )  [protected]
virtual void uiIOSelect::processInput (  )  [inline, virtual]
void uiIOSelect::selDone ( CallBacker  )  [protected]

Subclass must call it - base class can't determine whether a selection was successful.

void uiIOSelect::setChecked ( bool  yn  ) 

does something when optional_

void uiIOSelect::setCurrentItem ( int   ) 
void uiIOSelect::setEmpty ( bool  withclear = false  ) 
void uiIOSelect::setInput ( const char *  key  ) 

Will fetch user name using userNameFromKey.

void uiIOSelect::setInputText ( const char *   ) 

As if user typed it manually.

void uiIOSelect::setLabelSelectable ( bool  yn = true  ) 
void uiIOSelect::setLabelText ( const char *   ) 
void uiIOSelect::setReadOnly ( bool  readonly = true  ) 
void uiIOSelect::stretchHor ( bool   ) 
void uiIOSelect::updateFromEntries (  )  [protected]
virtual void uiIOSelect::updateHistory ( IOPar  )  const [virtual]
virtual const char* uiIOSelect::userNameFromKey ( const char *  s  )  const [inline, protected, virtual]

If 0 returned, then if possible, that entry is not entered in the entries_.


Member Data Documentation

bool uiIOSelect::keepmytxt_ [protected]
uiLabel* uiIOSelect::lbl_ [protected]
bool uiIOSelect::selok_ [protected]