Avogadro::QtGui::FileBrowseWidget#
-
class FileBrowseWidget : public QWidget#
-
Public Functions
-
explicit FileBrowseWidget(QWidget *theParent = nullptr)#
-
~FileBrowseWidget() override#
-
QString fileName() const#
-
inline bool validFileName() const#
-
QPushButton *browseButton() const#
-
QLineEdit *lineEdit() const#
Public Slots
-
void setFileName(const QString &fname)#
Signals
-
void fileNameChanged(const QString &filename)#
Public Static Functions
-
static QString searchSystemPathForFile(const QString &exec)#
Search the environment variable PATH for a file with the specified name.
- Parameters:
exec – The name of the file.
- Returns:
The absolute path to the file on the system, or a null QString if not found.
-
static QStringList searchSystemPathForFiles(const QStringList &execs)#
Search the environment variable PATH for files with the specified names.
- Parameters:
execs – The names of the files.
- Returns:
The absolute paths to the files on the system, or an empty list if not found.
-
explicit FileBrowseWidget(QWidget *theParent = nullptr)#