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

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

Inheritance diagram for uiIOSelect:
[legend]

Classes

class  Setup
 

Public Member Functions

 uiIOSelect (uiParent *, const Setup &, const CallBack &)
 
 ~uiIOSelect ()
 
void addExtSelBut (uiButton *)
 
bool isEmpty () const
 
const char * getInput () const
 
const char * getKey () const
 
void setInput (const char *key)
 Will fetch user name using userNameFromKey. More...
 
void setInputText (const char *)
 As if user typed it manually. More...
 
void setEntries (const BufferStringSet &keys, const BufferStringSet &names)
 
int nrItems () const
 
int getCurrentItem () const
 
void setCurrentItem (int)
 
const char * getItem (int) const
 
bool isChecked () const
 only useful when optional_ More...
 
void setChecked (bool yn)
 does something when optional_ More...
 
virtual void updateHistory (IOPar &) const
 
virtual void getHistory (const IOPar &)
 
void addToHistory (const char *)
 
void addToHistory (const BufferStringSet &)
 
virtual void setEmpty ()
 
virtual void processInput ()
 
void setReadOnly (bool readonly=true)
 
void doSel (CallBacker *)
 
const uiStringlabelText () const
 
void setLabelText (const uiString &)
 
void setLabelSelectable (bool yn=true)
 
void setHSzPol (uiObject::SzPolicy)
 
uiComboBoxinpBox ()
 
virtual uiObjectendObj (bool left)
 
- Public Member Functions inherited from uiGroup
 uiGroup (uiParent *, const char *nm="uiGroup", bool manage=true)
 
virtual ~uiGroup ()
 
 operator const uiGroupObj * () const
 
 operator uiGroupObj * ()
 
 operator const uiObject & () const
 
 operator uiObject & ()
 
uiObjectattachObj ()
 
const uiObjectattachObj () const
 
uiParentparent ()
 
const uiParentparent () const
 
void setHSpacing (int)
 
void setVSpacing (int)
 
void setSpacing (int s=0)
 
void setBorder (int)
 
void setFrame (bool yn=true)
 
void setNoBackGround ()
 
uiObjecthAlignObj ()
 
void setHAlignObj (uiObject *o)
 
void setHAlignObj (uiGroup *o)
 
uiObjecthCenterObj ()
 
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 uiMainWinmainwin ()
 
void setChildrenSensitive (bool)
 
virtual Notifier< uiBaseObject > & preFinalise ()
 
virtual Notifier< uiBaseObject > & postFinalise ()
 
virtual void setSize (const uiSize &)
 
- Public Member Functions inherited from uiParent
 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
 
uiObjectmainObject ()
 
const uiObjectmainObject () const
 
uiParentBodypbody ()
 
const uiParentBodypbody () 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 uiFontfont () 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 ()
 

Public Attributes

Notifier< uiIOSelectselectionDone
 
Notifier< uiIOSelectoptionalChecked
 

Protected Member Functions

void optCheck (CallBacker *)
 
void selDone (CallBacker *)
 
virtual const char * userNameFromKey (const char *s) const
 
int nrSpec () const
 
void checkState () const
 
void updateFromEntries ()
 
bool haveEntry (const char *) const
 
virtual void objSel ()
 notification when user selects from combo More...
 
void doFinalise (CallBacker *)
 
- Protected Member Functions inherited from uiGroup
virtual uiObjectmainobject ()
 
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

BufferStringSet entries_
 
bool haveempty_
 
bool selok_
 
bool keepmytxt_
 
CallBack doselcb_
 
uiComboBoxinp_
 
uiButton * selbut_
 
ObjectSet< uiButton > extselbuts_
 
uiLabellbl_
 
uiCheckBoxoptbox_
 
- Protected Attributes inherited from uiGroup
uiGroupObjgrpobj_
 
uiGroupParentBodybody_
 

Private Member Functions

 mODTextTranslationClass (uiIOSelect)
 

Additional Inherited Members

- Static Public Member Functions inherited from uiGroup
static uiGroupgtDynamicCastToGrp (mQtclass(QWidget *))
 

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::addExtSelBut ( uiButton *  )
void uiIOSelect::addToHistory ( const char *  )
void uiIOSelect::addToHistory ( const BufferStringSet )
void uiIOSelect::checkState ( ) const
protected
void uiIOSelect::doFinalise ( CallBacker )
protected
void uiIOSelect::doSel ( CallBacker )

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

virtual uiObject* uiIOSelect::endObj ( bool  left)
virtual

Reimplemented in uiIOObjSel.

int uiIOSelect::getCurrentItem ( ) const
virtual void uiIOSelect::getHistory ( const IOPar )
virtual

Reimplemented in uiAttrSel.

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 uiString& uiIOSelect::labelText ( ) const
uiIOSelect::mODTextTranslationClass ( uiIOSelect  )
private
int uiIOSelect::nrItems ( ) const
int uiIOSelect::nrSpec ( ) const
protected
virtual void uiIOSelect::objSel ( )
inlineprotectedvirtual

notification when user selects from combo

Reimplemented in uiIOObjSel.

void uiIOSelect::optCheck ( CallBacker )
protected
virtual void uiIOSelect::processInput ( )
inlinevirtual

Reimplemented in uiAttrSel, uiIOObjSel, and uiSeisSel.

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  )
virtual void uiIOSelect::setEmpty ( )
virtual

Reimplemented in uiIOObjSel.

void uiIOSelect::setEntries ( const BufferStringSet keys,
const BufferStringSet names 
)
void uiIOSelect::setHSzPol ( uiObject::SzPolicy  )
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 uiString )
void uiIOSelect::setReadOnly ( bool  readonly = true)
void uiIOSelect::updateFromEntries ( )
protected
virtual void uiIOSelect::updateHistory ( IOPar ) const
virtual
virtual const char* uiIOSelect::userNameFromKey ( const char *  s) const
inlineprotectedvirtual

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

Reimplemented in uiAttrSel, uiIOObjSel, and uiSeisSel.

Member Data Documentation

CallBack uiIOSelect::doselcb_
protected
BufferStringSet uiIOSelect::entries_
protected
ObjectSet<uiButton> uiIOSelect::extselbuts_
protected
bool uiIOSelect::haveempty_
protected
uiComboBox* uiIOSelect::inp_
protected
bool uiIOSelect::keepmytxt_
protected
uiLabel* uiIOSelect::lbl_
protected
uiCheckBox* uiIOSelect::optbox_
protected
Notifier<uiIOSelect> uiIOSelect::optionalChecked
uiButton* uiIOSelect::selbut_
protected
Notifier<uiIOSelect> uiIOSelect::selectionDone
bool uiIOSelect::selok_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019