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

A file-name input. More...

Inheritance diagram for uiFileInput:
[legend]

Classes

class  Setup
 

Public Member Functions

 uiFileInput (uiParent *, const uiString &seltxt, const char *fnm=0)
 
 uiFileInput (uiParent *, const uiString &seltxt, const Setup &)
 
 ~uiFileInput ()
 
void setFileName (const char *)
 
void setDefaultSelectionDir (const char *)
 
const char * defaultSelectionDir () const
 
void setFilter (const char *fltr)
 
const char * selectedFilter () const
 
void setSelectedFilter (const char *f)
 
void setObjType (const uiString &s)
 
void setExamine (const CallBack &cb)
 Overrules the simple stand-alone file browser. More...
 
const char * fileName () const
 
const char * pathOnly () const
 
const char * baseName () const
 
void getFileNames (BufferStringSet &) const
 
uiFileDialog::Mode selectMode () const
 
void setSelectMode (uiFileDialog::Mode m)
 
void setSensitive (bool yn)
 
void enableExamine (bool)
 only if examinebut present More...
 
void setDefaultExtension (const char *ext)
 
void selectFile (CallBacker *cb)
 
- Public Member Functions inherited from uiGenInput
double getdValue (int nr=0, double uv=mUdf(double)) const
 
double getdValue (float undefval) const
 
float getfValue (int nr=0, float udfval=mUdf(float)) const
 
float getfValue (float undefval) const
 
bool isChecked ()
 
bool isCheckable ()
 
- 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 ()
 

Protected Member Functions

virtual void doSelect (CallBacker *)
 Select is pressed. Called by doSelect_. More...
 
void inputChg (CallBacker *)
 
void examineFile (CallBacker *)
 
void isFinalised (CallBacker *)
 
void fnmEntered (CallBacker *)
 
- Protected Member Functions inherited from uiGenInput
void doSelect_ (CallBacker *)
 Select is pressed. Calls virtual doSelect. More...
 
void doClear (CallBacker *)
 
void checkBoxSel (CallBacker *)
 
uiGenInputInputFldcreateInpFld (const DataInpSpec &)
 DataInpField factory. More...
 
void doFinalise (CallBacker *)
 
DataInpSpecspec (int nr)
 
- 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

bool forread_
 
BufferString filter_
 
BufferString defseldir_
 
bool displaylocalpath_
 
BufferString selfltr_
 
bool addallexts_
 
File::ViewStyle examstyle_
 
bool exameditable_
 
bool confirmoverwrite_
 
CallBack excb_
 
BufferString defaultext_
 
uiString objtype_
 
bool selmodset_
 
uiFileDialog::Mode selmode_
 
uiFileDialog::Type filedlgtype_
 
uiButton * examinebut_
 
- Protected Attributes inherited from uiGenInput
ObjectSet< uiGenInputInputFldflds_
 
TypeSet< uiGenInputFieldIdx > & idxes_
 
bool finalised_
 
uiString selText_
 
bool withchk_
 
bool isrequired_
 
uiLabellabl_
 
uiString titletext_
 
uiCheckBoxcbox_
 
uiButton * selbut_
 
- Protected Attributes inherited from uiGroup
uiGroupObjgrpobj_
 
uiGroupParentBodybody_
 

Private Member Functions

 mODTextTranslationClass (uiFileInput)
 

Additional Inherited Members

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

Detailed Description

A file-name input.

Displays a uiLineEdit field showing the current selected file. The user can edit the filename by hand, or pop up a file selector trough the included "Select..." push button. Optional is an Examine button for browsing the file.

The filter you specify will automatically get an 'All files' added unless you specify otherwise in the setup.

Constructor & Destructor Documentation

uiFileInput::uiFileInput ( uiParent ,
const uiString seltxt,
const char *  fnm = 0 
)
uiFileInput::uiFileInput ( uiParent ,
const uiString seltxt,
const Setup  
)
uiFileInput::~uiFileInput ( )

Member Function Documentation

const char* uiFileInput::baseName ( ) const
const char* uiFileInput::defaultSelectionDir ( ) const
inline
virtual void uiFileInput::doSelect ( CallBacker )
protectedvirtual

Select is pressed. Called by doSelect_.

Reimplemented from uiGenInput.

void uiFileInput::enableExamine ( bool  )

only if examinebut present

void uiFileInput::examineFile ( CallBacker )
protected
const char* uiFileInput::fileName ( ) const
void uiFileInput::fnmEntered ( CallBacker )
protected
void uiFileInput::getFileNames ( BufferStringSet ) const
void uiFileInput::inputChg ( CallBacker )
protected
void uiFileInput::isFinalised ( CallBacker )
protected
uiFileInput::mODTextTranslationClass ( uiFileInput  )
private
const char* uiFileInput::pathOnly ( ) const
const char* uiFileInput::selectedFilter ( ) const
inline
void uiFileInput::selectFile ( CallBacker cb)
inline
uiFileDialog::Mode uiFileInput::selectMode ( ) const
inline
void uiFileInput::setDefaultExtension ( const char *  ext)
void uiFileInput::setDefaultSelectionDir ( const char *  )
void uiFileInput::setExamine ( const CallBack cb)
inline

Overrules the simple stand-alone file browser.

void uiFileInput::setFileName ( const char *  )
void uiFileInput::setFilter ( const char *  fltr)
inline
void uiFileInput::setObjType ( const uiString s)
inline
void uiFileInput::setSelectedFilter ( const char *  f)
inline
void uiFileInput::setSelectMode ( uiFileDialog::Mode  m)
inline
void uiFileInput::setSensitive ( bool  yn)
inline

Member Data Documentation

bool uiFileInput::addallexts_
protected
bool uiFileInput::confirmoverwrite_
protected
BufferString uiFileInput::defaultext_
protected
BufferString uiFileInput::defseldir_
protected
bool uiFileInput::displaylocalpath_
protected
bool uiFileInput::exameditable_
protected
uiButton* uiFileInput::examinebut_
protected
File::ViewStyle uiFileInput::examstyle_
protected
CallBack uiFileInput::excb_
protected
uiFileDialog::Type uiFileInput::filedlgtype_
protected
BufferString uiFileInput::filter_
protected
bool uiFileInput::forread_
protected
uiString uiFileInput::objtype_
protected
BufferString uiFileInput::selfltr_
protected
uiFileDialog::Mode uiFileInput::selmode_
protected
bool uiFileInput::selmodset_
protected

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