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

A widget consist of a QLineEdit and a QPushButton. More...

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

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 setText (const DtUnicode &text)
 Sets the text of the file name;. More...
 
virtual DtUnicode text ()
 Gets the text of the label;. More...
 
virtual void clear ()
 

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 consist of a QLineEdit and a QPushButton.

the QLineEdit is used to display the file name, and the button will browse the folder for a single 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.
dtThe 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

Sets the text of the file name;.

virtual DtUnicode makVrv::DtFileBrowseWidget::text ( )
virtual

Gets the text of the label;.

virtual void makVrv::DtFileBrowseWidget::clear ( )
virtual
virtual void makVrv::DtFileBrowseWidget::onBrowseUrlButtonReleased ( )
protectedvirtualslot

Slot when user clicks the browse file button.

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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)