UI element for selection of data objects. More...
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) |
| uiComboBox * | inpBox () |
Public Attributes | |
| Notifier< uiIOSelect > | selectionDone |
| Notifier< uiIOSelect > | optionalChecked |
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_ |
| IOPar & | specialitems |
| bool | selok_ |
| bool | keepmytxt_ |
| uiComboBox * | inp_ |
| uiPushButton * | selbut_ |
| uiLabel * | lbl_ |
| uiCheckBox * | optbox_ |
UI element for selection of data objects.
| uiIOSelect::~uiIOSelect | ( | ) |
| 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_.
CallBack uiIOSelect::doselcb_ [protected] |
BufferStringSet uiIOSelect::entries_ [protected] |
uiComboBox* uiIOSelect::inp_ [protected] |
bool uiIOSelect::keepmytxt_ [protected] |
uiLabel* uiIOSelect::lbl_ [protected] |
uiCheckBox* uiIOSelect::optbox_ [protected] |
uiPushButton* uiIOSelect::selbut_ [protected] |
bool uiIOSelect::selok_ [protected] |
IOPar& uiIOSelect::specialitems [protected] |
1.7.1