OpendTect-6_4
6.4
|
Combo box. More...
Public Member Functions | |
uiComboBox (uiParent *, const char *nm) | |
uiComboBox (uiParent *, const BufferStringSet &, const char *nm) | |
uiComboBox (uiParent *, const uiStringSet &, const char *nm) | |
uiComboBox (uiParent *, const char **, const char *nm) | |
uiComboBox (uiParent *, const uiString *, const char *nm) | |
uiComboBox (uiParent *, const EnumDef &, const char *nm) | |
virtual | ~uiComboBox () |
virtual void | setReadOnly (bool yn=true) |
virtual bool | isReadOnly () const |
void | setEditable (bool yn) |
bool | isEditable () const |
int | size () const |
bool | isEmpty () const |
void | setEmpty () |
bool | isPresent (const char *) const |
int | indexOf (const char *) const |
const char * | text () const |
void | setText (const char *) |
int | currentItem () const |
void | setCurrentItem (int) |
void | setCurrentItem (const char *) |
First match. More... | |
void | setCurrentItem (const FixedString &fs) |
virtual void | addItem (const uiString &) |
void | addItem (const uiString &, int id) |
void | addItems (const BufferStringSet &) |
void | addItems (const uiStringSet &) |
void | addSeparator () |
void | insertItem (const uiString &, int index=-1, int id=-1) |
void | insertItem (const uiPixmap &, const uiString &, int index=-1, int id=-1) |
const char * | textOfItem (int) const |
void | getItems (BufferStringSet &) const |
void | setItemText (int, const uiString &) |
void | setPixmap (int index, const uiPixmap &) |
void | setIcon (int index, const char *icon_identifier) |
void | setItemID (int index, int id) |
int | currentItemID () const |
int | getItemID (int index) const |
int | getItemIndex (int id) const |
void | setToolTip (const uiString &tt) |
virtual bool | update_ (const DataInpSpec &spec) |
void | getItemSize (int, int &h, int &w) const |
void | notifyHandler (bool selectionchanged) |
bool | handleLongTabletPress () |
void | popupVirtualKeyboard (int globalx=-1, int globaly=-1) |
Public Member Functions inherited from uiObject | |
uiObject (uiParent *, const char *nm) | |
uiObject (uiParent *, const char *nm, uiObjectBody &) | |
~uiObject () | |
void | setHSzPol (SzPolicy) |
void | setVSzPol (SzPolicy) |
SzPolicy | szPol (bool hor=true) const |
virtual int | width () const |
Actual size in pixels. More... | |
virtual int | height () const |
Actual size in pixels. More... | |
virtual void | setName (const char *) |
void | setToolTip (const uiString &) |
const uiString & | toolTip () const |
void | translateText () |
void | display (bool yn, bool shrink=false, bool maximized=false) |
void | setFocus () |
bool | hasFocus () const |
void | disabFocus () |
virtual void | setCursor (const MouseCursor &) |
bool | isCursorInside () const |
virtual void | setStyleSheet (const char *) |
virtual Color | backgroundColor () const |
Color | roBackgroundColor () const |
virtual void | setBackgroundColor (const Color &) |
virtual void | setBackgroundPixmap (const uiPixmap &) |
virtual void | setTextColor (const Color &) |
void | setSensitive (bool yn=true) |
bool | sensitive () const |
bool | visible () const |
bool | isDisplayed () const |
int | prefHNrPics () const |
virtual void | setPrefWidth (int) |
void | setPrefWidthInChar (int) |
void | setPrefWidthInChar (float) |
void | setMinimumWidth (int) |
void | setMaximumWidth (int) |
int | prefVNrPics () const |
virtual void | setPrefHeight (int) |
void | setPrefHeightInChar (int) |
void | setPrefHeightInChar (float) |
void | setMinimumHeight (int) |
void | setMaximumHeight (int) |
void | setStretch (int hor, int ver) |
Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up. More... | |
void | attach (constraintType, int margin=-1) |
attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators. More... | |
void | attach (constraintType, uiObject *, int margin=-1, bool reciprocal=true) |
void | attach (constraintType, uiParent *, int margin=-1, bool reciprocal=true) |
void | setFont (const uiFont &) |
const uiFont * | font () const |
void | setCaption (const uiString &) |
void | shallowRedraw (CallBacker *=0) |
void | deepRedraw (CallBacker *=0) |
void | reDraw (bool deep) |
uiSize | actualsize (bool include_border=true) const |
uiParent * | parent () |
const uiParent * | parent () const |
void | reParent (uiParent *) |
uiMainWin * | mainwin () |
mQtclass (QWidget *) getWidget() | |
mQtclass (QWidget *) qwidget() | |
const | mQtclass (QWidget *) qwidget() const |
virtual const ObjectSet< uiBaseObject > * | childList () const |
void | close () |
Public Member Functions inherited from UserInputObjImpl< int > | |
virtual int | getIntValue () const |
virtual double | getDValue () const |
virtual float | getFValue () const |
virtual bool | getBoolValue () const |
virtual void | setValue (const char *s) |
virtual void | setValue (int i) |
virtual void | setValue (double d) |
virtual void | setValue (float f) |
virtual void | setValue (bool b) |
void | setEmpty () |
Public Member Functions inherited from UserInputObj | |
UserInputObj () | |
virtual | ~UserInputObj () |
bool | notifyValueChanging (const CallBack &cb) |
intermediate value available More... | |
bool | notifyValueChanged (const CallBack &cb) |
value change complete cq. commited More... | |
bool | notifyUpdateRequested (const CallBack &cb) |
bool | update (const DataInpSpec &s) |
return false if not updated for whatever reason. More... | |
double | getdValue () const |
float | getfValue () const |
Public Attributes | |
Notifier< uiComboBox > | editTextChanged |
Notifier< uiComboBox > | selectionChanged |
Public Attributes inherited from uiObject | |
Notifier< uiObject > | closed |
Triggered when object closes. More... | |
CNotifier< uiObject, uiRect & > | setGeometry |
triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget. More... | |
Protected Member Functions | |
virtual void | setvalue_ (int i) |
virtual int | getvalue_ () const |
virtual bool | notifyUpdateRequested_ (const CallBack &) |
virtual bool | notifyValueChanging_ (const CallBack &) |
return false if not available More... | |
virtual bool | notifyValueChanged_ (const CallBack &cb) |
return false if not available More... | |
void | translateText () |
Protected Member Functions inherited from uiObject | |
virtual bool | closeOK () |
hook. Accepts/denies closing of window. More... | |
void | triggerSetGeometry (const i_LayoutItem *, uiRect &) |
setGeometry should be triggered by this's layoutItem More... | |
void | updateToolTip (CallBacker *=0) |
Protected Member Functions inherited from UserInputObjImpl< int > | |
virtual bool | setEmpty_ () |
Private Member Functions | |
uiComboBoxBody & | mkbody (uiParent *, const char *) |
void | adjustWidth (const uiString &) |
Private Attributes | |
int | oldnritems_ |
int | oldcuritem_ |
TypeSet< int > | itemids_ |
uiStringSet | itemstrings_ |
BufferString | rettxt_ |
uiComboBoxBody * | body_ |
int | curwidth_ |
const EnumDef * | enumdef_ |
Additional Inherited Members | |
Public Types inherited from uiObject | |
enum | SzPolicy { Undef, Small, Medium, Wide, SmallVar, MedVar, WideVar, SmallMax, MedMax, WideMax } |
How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 ) More... | |
Static Public Member Functions inherited from uiObject | |
static void | updateToolTips () |
static void | setTabOrder (uiObject *first, uiObject *second) |
static int | baseFldSize () |
static int | iconSize () |
Protected Attributes inherited from uiObject | |
uiString | tooltip_ |
uiObjEventFilter * | uiobjeventfilter_ |
Combo box.
The user can select an item from a drop-down list. Sometimes, you can allow the user entering a new string there, use setReadOnly(false). In that case the result of text() can be different from textOfItem(currentItem()). Also, setText will do something is if the given string is not in the list.
uiComboBox::uiComboBox | ( | uiParent * | , |
const char * | nm | ||
) |
uiComboBox::uiComboBox | ( | uiParent * | , |
const BufferStringSet & | , | ||
const char * | nm | ||
) |
uiComboBox::uiComboBox | ( | uiParent * | , |
const uiStringSet & | , | ||
const char * | nm | ||
) |
uiComboBox::uiComboBox | ( | uiParent * | , |
const char ** | , | ||
const char * | nm | ||
) |
Similar to const char** Adds strings until an empty string is found.
EnumDef is assumed to remain in mem
|
virtual |
|
virtual |
Reimplemented from UserInputObj.
void uiComboBox::addItem | ( | const uiString & | , |
int | id | ||
) |
void uiComboBox::addItems | ( | const BufferStringSet & | ) |
void uiComboBox::addItems | ( | const uiStringSet & | ) |
void uiComboBox::addSeparator | ( | ) |
|
private |
int uiComboBox::currentItem | ( | ) | const |
int uiComboBox::currentItemID | ( | ) | const |
int uiComboBox::getItemID | ( | int | index | ) | const |
int uiComboBox::getItemIndex | ( | int | id | ) | const |
void uiComboBox::getItems | ( | BufferStringSet & | ) | const |
void uiComboBox::getItemSize | ( | int | , |
int & | h, | ||
int & | w | ||
) | const |
|
inlineprotectedvirtual |
Implements UserInputObjImpl< int >.
|
virtual |
Reimplemented from uiObject.
int uiComboBox::indexOf | ( | const char * | ) | const |
void uiComboBox::insertItem | ( | const uiString & | , |
int | index = -1 , |
||
int | id = -1 |
||
) |
bool uiComboBox::isEditable | ( | ) | const |
|
inline |
bool uiComboBox::isPresent | ( | const char * | ) | const |
|
virtual |
Implements UserInputObj.
|
private |
void uiComboBox::notifyHandler | ( | bool | selectionchanged | ) |
|
inlineprotectedvirtual |
Implements UserInputObj.
|
inlineprotectedvirtual |
return false if not available
Implements UserInputObj.
|
inlineprotectedvirtual |
return false if not available
Implements UserInputObj.
void uiComboBox::popupVirtualKeyboard | ( | int | globalx = -1 , |
int | globaly = -1 |
||
) |
void uiComboBox::setCurrentItem | ( | int | ) |
void uiComboBox::setCurrentItem | ( | const char * | ) |
First match.
|
inline |
void uiComboBox::setEditable | ( | bool | yn | ) |
|
virtual |
Implements UserInputObj.
void uiComboBox::setIcon | ( | int | index, |
const char * | icon_identifier | ||
) |
void uiComboBox::setItemID | ( | int | index, |
int | id | ||
) |
void uiComboBox::setItemText | ( | int | , |
const uiString & | |||
) |
void uiComboBox::setPixmap | ( | int | index, |
const uiPixmap & | |||
) |
|
virtual |
Implements UserInputObj.
|
virtual |
Reimplemented from UserInputObjImpl< int >.
|
inlinevirtual |
Implements UserInputObj.
|
inlineprotectedvirtual |
Implements UserInputObjImpl< int >.
int uiComboBox::size | ( | ) | const |
|
virtual |
Reimplemented from UserInputObjImpl< int >.
const char* uiComboBox::textOfItem | ( | int | ) | const |
|
protected |
|
virtual |
Implements UserInputObj.
|
private |
|
private |
Notifier<uiComboBox> uiComboBox::editTextChanged |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
Notifier<uiComboBox> uiComboBox::selectionChanged |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019