Class SBGWidgetFolderSelector#
ClassList > SBGWidgetFolderSelector
#include <SBGWidgetFolderSelector.hpp>
Inherits the following classes: QWidget
Public Slots#
Type | Name |
---|---|
slot void | onBrowse |
Public Signals#
Type | Name |
---|---|
signal void | pathChanged |
Public Functions#
Type | Name |
---|---|
SBGWidgetFolderSelector (QWidget * parent=nullptr) Constructs a path selector widget. |
|
QString | getFolderPath () Returns the path. |
QString | getLabel () const Returns the label shown in the selector. |
void | setFolderPath (const QString & path) Sets the path. |
void | setLabel (const QString & label) Sets the label shown in the selector. |
virtual | ~SBGWidgetFolderSelector () Destructs the path selector widget. |
Public Static Functions#
Type | Name |
---|---|
bool | checkFolder (const QString & path, bool askUser) Check whether the directory is correct. |
bool | createChildFolder (QString & childPath, const QString & path, const QString & suffix, bool withTimeStamp) Create a child directory. |
Detailed Description#
The SBGWidgetFolderSelector class is a convenience widget for specifying a folder path - it contains a label, a line edit and a push button to browse for a folder.
Short name: SBFolderSelector
Public Slots Documentation#
slot onBrowse#
Public Signals Documentation#
signal pathChanged#
Public Functions Documentation#
function SBGWidgetFolderSelector#
Constructs a path selector widget.
function getFolderPath#
Returns the path.
function getLabel#
Returns the label shown in the selector.
function setFolderPath#
Sets the path.
function setLabel#
Sets the label shown in the selector.
function ~SBGWidgetFolderSelector#
Destructs the path selector widget.
Public Static Functions Documentation#
function checkFolder#
Check whether the directory is correct.
function createChildFolder#
Create a child directory.
static bool SBGWidgetFolderSelector::createChildFolder (
QString & childPath,
const QString & path,
const QString & suffix,
bool withTimeStamp
)