Class SBGWidgetFileSelector#
ClassList > SBGWidgetFileSelector
#include <SBGWidgetFileSelector.hpp>
Inherits the following classes: QWidget
Public Slots#
Type | Name |
---|---|
slot void | onBrowse |
Public Signals#
Type | Name |
---|---|
signal void | pathChanged |
Public Functions#
Type | Name |
---|---|
SBGWidgetFileSelector (QWidget * parent=nullptr) Constructs a path selector widget. |
|
QString | getFilePath () Returns the path. |
QString | getLabel () const Returns the label shown in the selector. |
void | setFilePath (const QString & path) Sets the path. |
void | setLabel (const QString & label) Sets the label shown in the selector. |
virtual | ~SBGWidgetFileSelector () Destructs the path selector widget. |
Public Static Functions#
Type | Name |
---|---|
bool | checkFile (const QString & path, bool askUser) Check whether the file exists. |
Detailed Description#
The SBGWidgetFileSelector class is a convenience widget for specifying a file path - it contains a label, a line edit and a push button to browse for a file.
Short name: SBFileSelector
Public Slots Documentation#
slot onBrowse#
Public Signals Documentation#
signal pathChanged#
Public Functions Documentation#
function SBGWidgetFileSelector#
Constructs a path selector widget.
function getFilePath#
Returns the path.
function getLabel#
Returns the label shown in the selector.
function setFilePath#
Sets the path.
function setLabel#
Sets the label shown in the selector.
function ~SBGWidgetFileSelector#
Destructs the path selector widget.
Public Static Functions Documentation#
function checkFile#
Check whether the file exists.