![]() |
OpendTect-6_4
6.4
|
Selector for UnitOfMeasure's. More...
Classes | |
class | Setup |
Public Member Functions | |
uiUnitSel (uiParent *, const Setup &) | |
uiUnitSel (uiParent *, PropertyRef::StdType) | |
uiUnitSel (uiParent *, const char *lbltxt=0) | |
For survey Z unit. More... | |
void | setUnit (const UnitOfMeasure *uom=0) |
void | setUnit (const char *) |
const UnitOfMeasure * | getUnit () const |
const char * | getUnitName () const |
float | getUserValue (float internalval) const |
double | getUserValue (double internalval) const |
float | getInternalValue (float uservalue) const |
double | getInternalValue (double uservalue) const |
PropertyRef::StdType | propType () const |
void | setPropType (PropertyRef::StdType) |
uiComboBox * | inpFld () const |
void | fillPar (IOPar &, const char *altkey=0) const |
bool | usePar (const IOPar &, const char *altkey=0) |
const char * | tblKey () const |
void | setFallbackKey (const char *) |
![]() | |
uiGroup (uiParent *, const char *nm="uiGroup", bool manage=true) | |
virtual | ~uiGroup () |
operator const uiGroupObj * () const | |
operator uiGroupObj * () | |
operator const uiObject & () const | |
operator uiObject & () | |
uiObject * | attachObj () |
const uiObject * | attachObj () const |
uiParent * | parent () |
const uiParent * | parent () const |
void | setHSpacing (int) |
void | setVSpacing (int) |
void | setSpacing (int s=0) |
void | setBorder (int) |
void | setFrame (bool yn=true) |
void | setNoBackGround () |
uiObject * | hAlignObj () |
void | setHAlignObj (uiObject *o) |
void | setHAlignObj (uiGroup *o) |
uiObject * | hCenterObj () |
void | setHCenterObj (uiObject *o) |
void | setHCenterObj (uiGroup *o) |
void | setIsMain (bool) |
internal use only. Tells the layout manager it's a toplevel mngr. More... | |
virtual uiMainWin * | mainwin () |
void | setChildrenSensitive (bool) |
virtual Notifier< uiBaseObject > & | preFinalise () |
virtual Notifier< uiBaseObject > & | postFinalise () |
virtual void | setSize (const uiSize &) |
![]() | |
uiParent (const char *nm, uiParentBody *) | |
void | addChild (uiBaseObject &) |
void | manageChld (uiBaseObject &, uiObjectBody &) |
void | attachChild (constraintType tp, uiObject *child, uiObject *other, int margin, bool reciprocal) |
const ObjectSet< uiBaseObject > * | childList () const |
uiObject * | mainObject () |
const uiObject * | mainObject () const |
uiParentBody * | pbody () |
const uiParentBody * | pbody () const |
void | attach (constraintType t, int margin=-1) |
void | attach (constraintType t, uiParent *oth, int margin=-1, bool reciprocal=true) |
void | attach (constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true) |
virtual void | display (bool yn, bool shrk=false, bool maximize=false) |
bool | isDisplayed () const |
void | setFocus () |
bool | hasFocus () const |
void | setSensitive (bool yn=true) |
bool | sensitive () const |
const uiFont * | font () const |
void | setFont (const uiFont &f) |
void | setCaption (const uiString &c) |
void | setCursor (const MouseCursor &c) |
uiSize | actualsize (bool include_border) const |
int | prefHNrPics () const |
int | prefVNrPics () const |
void | setPrefHeight (int h) |
void | setPrefWidth (int w) |
void | setPrefHeightInChar (int h) |
void | setPrefHeightInChar (float h) |
void | setPrefWidthInChar (float w) |
void | setPrefWidthInChar (int w) |
virtual void | reDraw (bool deep) |
void | shallowRedraw (CallBacker *=0) |
void | deepRedraw (CallBacker *=0) |
void | setStretch (int h, int v) |
Color | backgroundColor () const |
Color | roBackgroundColor () const |
void | setBackgroundColor (const Color &c) |
void | translateText () |
Static Public Member Functions | |
static IOPar & | lastUsed () |
== UnitOfMeasure::currentDefaults() More... | |
![]() | |
static uiGroup * | gtDynamicCastToGrp (mQtclass(QWidget *)) |
Public Attributes | |
Notifier< uiUnitSel > | selChange |
Notifier< uiUnitSel > | propSelChange |
Protected Member Functions | |
void | selChg (CallBacker *) |
void | propSelChg (CallBacker *) |
void | setPropFld (PropertyRef::StdType) |
void | setUnFld (const UnitOfMeasure *) |
void | update () |
uiString | getSelTxt (const UnitOfMeasure *) const |
const UnitOfMeasure * | gtUnit () const |
![]() | |
virtual uiObject * | mainobject () |
virtual void | attach_ (constraintType, uiObject *oth, int margin=-1, bool reciprocal=true) |
virtual void | reDraw_ (bool deep) |
void | setShrinkAllowed (bool) |
bool | shrinkAllowed () |
void | bodyDel (CallBacker *) |
void | uiobjDel (CallBacker *) |
void | setFrameStyle (int) |
void | reSizeChildren (const uiObject *, float, float) |
Protected Attributes | |
Setup | setup_ |
ObjectSet< const UnitOfMeasure > | units_ |
BufferString | tblkey_ |
uiComboBox * | inpfld_ |
uiComboBox * | propfld_ |
![]() | |
uiGroupObj * | grpobj_ |
uiGroupParentBody * | body_ |
Private Member Functions | |
void | init () |
Selector for UnitOfMeasure's.
Uses the UnitOfMeasure::currentDefaults() to get/set a table of 'last used' unit of measure values. This list provides the start-up seletion. Therefore, make sure the values you display are converted to user values after the uiUnitSel is constructed.
The currentDefaults() key is taken from the label text, if you want no label then you probably want to set a key. If none is known then the name of the Property Type will be used.
uiUnitSel::uiUnitSel | ( | uiParent * | , |
PropertyRef::StdType | |||
) |
uiUnitSel::uiUnitSel | ( | uiParent * | , |
const char * | lbltxt = 0 |
||
) |
For survey Z unit.
void uiUnitSel::fillPar | ( | IOPar & | , |
const char * | altkey = 0 |
||
) | const |
float uiUnitSel::getInternalValue | ( | float | uservalue | ) | const |
double uiUnitSel::getInternalValue | ( | double | uservalue | ) | const |
|
protected |
const UnitOfMeasure* uiUnitSel::getUnit | ( | ) | const |
const char* uiUnitSel::getUnitName | ( | ) | const |
float uiUnitSel::getUserValue | ( | float | internalval | ) | const |
double uiUnitSel::getUserValue | ( | double | internalval | ) | const |
|
protected |
|
private |
|
inline |
|
static |
|
protected |
|
inline |
|
inlineprotected |
void uiUnitSel::setFallbackKey | ( | const char * | ) |
|
protected |
void uiUnitSel::setPropType | ( | PropertyRef::StdType | ) |
|
protected |
void uiUnitSel::setUnit | ( | const UnitOfMeasure * | uom = 0 | ) |
void uiUnitSel::setUnit | ( | const char * | ) |
const char* uiUnitSel::tblKey | ( | ) | const |
For UnitOfMeasure::currentDefaults() default is prop std nm, else lbltxt
|
protected |
bool uiUnitSel::usePar | ( | const IOPar & | , |
const char * | altkey = 0 |
||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at 12/02/2019 10:57:19 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019