VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Slots | Protected Attributes
makVrv::DtFileBrowseWidget Class Reference

A widget that is (horizontally) composed of a QLineEdit and a QPushButton. More...

Inheritance diagram for makVrv::DtFileBrowseWidget:
Inheritance graph
[legend]

Signals

void onFilePathValueChanged (const std::string &)
 

Public Member Functions

 DtFileBrowseWidget (QWidget *parent, DtDe &de, const DtUnicode &buttonText, const std::string &browseDirectory, const std::string &filter="")
 Constructor. More...
 
virtual ~DtFileBrowseWidget ()
 virtual DTOR More...
 
virtual void clear ()
 Clear the QLineEdit widget that has the filename. More...
 
virtual void setEnabled (bool)
 Set whether or not the child widgets are enabled. More...
 
virtual void setText (const DtUnicode &text)
 Set/Get the text of the QLineEdit that has the file name. More...
 
virtual DtUnicode text () const
 

Protected Slots

virtual void onBrowseUrlButtonReleased ()
 Slot when user clicks the browse file button. More...
 

Protected Attributes

DtDemyDe
 
std::string myBrowseDirectory
 
QHBoxLayout * myMainLayout
 
QLineEditmyTextLineEdit
 
QPushButtonmyBrowseUrlButton
 
const std::string myFilter
 

Detailed Description

A widget that is (horizontally) composed of a QLineEdit and a QPushButton.

The QLineEdit is used to display the file path to some selected file. The QPushButton will bring up a browse dialog, when pressed, to allow the user to update the selected file.

Constructor & Destructor Documentation

makVrv::DtFileBrowseWidget::DtFileBrowseWidget ( QWidget *  parent,
DtDe de,
const DtUnicode buttonText,
const std::string &  browseDirectory,
const std::string &  filter = "" 
)

Constructor.

Parameters
parentThe parent of this widget, can be Null.
deThe DtDe.
buttonTextThe text of the button.
browseDirectoryThe directory to browse for file.
filterFilter of the file format, see DtStaticFileDialog::getOpenFileName.
virtual makVrv::DtFileBrowseWidget::~DtFileBrowseWidget ( )
virtual

virtual DTOR

Member Function Documentation

virtual void makVrv::DtFileBrowseWidget::setText ( const DtUnicode text)
virtual

Set/Get the text of the QLineEdit that has the file name.

virtual DtUnicode makVrv::DtFileBrowseWidget::text ( ) const
virtual
virtual void makVrv::DtFileBrowseWidget::clear ( )
virtual

Clear the QLineEdit widget that has the filename.

virtual void makVrv::DtFileBrowseWidget::setEnabled ( bool  )
virtual

Set whether or not the child widgets are enabled.

void makVrv::DtFileBrowseWidget::onFilePathValueChanged ( const std::string &  )
signal
virtual void makVrv::DtFileBrowseWidget::onBrowseUrlButtonReleased ( )
protectedvirtualslot

Slot when user clicks the browse file button.

Emits onFilePathValueChanged with the new path of the selected file.

Member Data Documentation

DtDe& makVrv::DtFileBrowseWidget::myDe
protected
std::string makVrv::DtFileBrowseWidget::myBrowseDirectory
protected
QHBoxLayout* makVrv::DtFileBrowseWidget::myMainLayout
protected
QLineEdit* makVrv::DtFileBrowseWidget::myTextLineEdit
protected
QPushButton* makVrv::DtFileBrowseWidget::myBrowseUrlButton
protected
const std::string makVrv::DtFileBrowseWidget::myFilter
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)