![]() |
VR-Forces Developer's Guide
|
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.

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="") | |
| virtual | ~DtFileBrowseWidget () |
| virtual void | clear () |
| virtual void | setEnabled (bool) |
| virtual void | setText (const DtUnicode &text) |
| virtual DtUnicode | text () const |
Protected Slots | |
| virtual void | onBrowseUrlButtonReleased () |
Protected Attributes | |
| DtDe & | myDe |
| std::string | myBrowseDirectory |
| QHBoxLayout * | myMainLayout |
| QLineEdit * | myTextLineEdit |
| QPushButton * | myBrowseUrlButton |
| const std::string | myFilter |
| makVrv::DtFileBrowseWidget::DtFileBrowseWidget | ( | QWidget * | parent, |
| DtDe & | de, | ||
| const DtUnicode & | buttonText, | ||
| const std::string & | browseDirectory, | ||
| const std::string & | filter = "" |
||
| ) |
Constructor.
| parent | The parent of this widget, can be Null. |
| de | The DtDe. |
| buttonText | The text of the button. |
| browseDirectory | The directory to browse for file. |
| filter | Filter of the file format, see DtStaticFileDialog::getOpenFileName. |
|
virtual |
virtual DTOR
|
virtual |
Set/Get the text of the QLineEdit that has the file name.
|
virtual |
Set/Get the text of the QLineEdit that has the file name.
|
virtual |
Clear the QLineEdit widget that has the filename.
|
virtual |
Set whether or not the child widgets are enabled.
|
signal |
|
protectedvirtualslot |
Slot when user clicks the browse file button. Emits onFilePathValueChanged with the new path of the selected file.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |