input widget for files
More...
#include <pqFileChooserWidget.h>
Inherits QWidget.
|
static QStringList | splitFilenames (const QString &filesString) |
| Converts between a list of file names and delimited string of filenames (which is shown in the line edit box). More...
|
|
static QString | joinFilenames (const QStringList &filesList) |
|
input widget for files
pqFileChooserWidget which consists of a tool button and a line edit hitting the tool button will bring up a file dialog, and the chosen file will be put in the line edit
Definition at line 26 of file pqFileChooserWidget.h.
◆ pqFileChooserWidget()
pqFileChooserWidget::pqFileChooserWidget |
( |
QWidget * |
p = nullptr | ) |
|
◆ ~pqFileChooserWidget()
pqFileChooserWidget::~pqFileChooserWidget |
( |
| ) |
|
|
override |
◆ filenames()
QStringList pqFileChooserWidget::filenames |
( |
| ) |
const |
◆ setFilenames()
void pqFileChooserWidget::setFilenames |
( |
const QStringList & |
| ) |
|
◆ singleFilename()
QString pqFileChooserWidget::singleFilename |
( |
| ) |
const |
Convenience functions for when using only a single file (see forceSingleFile property).
◆ setSingleFilename()
void pqFileChooserWidget::setSingleFilename |
( |
const QString & |
| ) |
|
Convenience functions for when using only a single file (see forceSingleFile property).
◆ extension()
QString pqFileChooserWidget::extension |
( |
| ) |
|
get the file extension for the file dialog
◆ setExtension()
void pqFileChooserWidget::setExtension |
( |
const QString & |
| ) |
|
set the file extension for the file dialog
◆ forceSingleFile()
bool pqFileChooserWidget::forceSingleFile |
( |
| ) |
|
|
inline |
flag specifying whether this widget should accept multiple files
Definition at line 79 of file pqFileChooserWidget.h.
◆ setForceSingleFile()
void pqFileChooserWidget::setForceSingleFile |
( |
bool |
flag | ) |
|
|
inline |
◆ useDirectoryMode()
bool pqFileChooserWidget::useDirectoryMode |
( |
| ) |
|
|
inline |
◆ setUseDirectoryMode()
void pqFileChooserWidget::setUseDirectoryMode |
( |
bool |
flag | ) |
|
|
inline |
◆ acceptAnyFile()
bool pqFileChooserWidget::acceptAnyFile |
( |
| ) |
|
|
inline |
◆ setAcceptAnyFile()
void pqFileChooserWidget::setAcceptAnyFile |
( |
bool |
flag | ) |
|
|
inline |
◆ setTitle()
void pqFileChooserWidget::setTitle |
( |
const QString & |
ttle | ) |
|
|
inline |
Get/set the title to use.
If an empty string is specified, a default one is created.
Definition at line 111 of file pqFileChooserWidget.h.
◆ title()
const QString& pqFileChooserWidget::title |
( |
| ) |
const |
|
inline |
Get/set the title to use.
If an empty string is specified, a default one is created.
Definition at line 112 of file pqFileChooserWidget.h.
◆ setServer()
void pqFileChooserWidget::setServer |
( |
pqServer * |
server | ) |
|
set server to work on.
If server is nullptr, a local file dialog is used
◆ server()
pqServer* pqFileChooserWidget::server |
( |
| ) |
|
◆ splitFilenames()
static QStringList pqFileChooserWidget::splitFilenames |
( |
const QString & |
filesString | ) |
|
|
inlinestatic |
Converts between a list of file names and delimited string of filenames (which is shown in the line edit box).
Definition at line 126 of file pqFileChooserWidget.h.
◆ joinFilenames()
static QString pqFileChooserWidget::joinFilenames |
( |
const QStringList & |
filesList | ) |
|
|
inlinestatic |
◆ filenamesChanged
void pqFileChooserWidget::filenamesChanged |
( |
const QStringList & |
| ) |
|
|
signal |
Signal emitted when the filename changes.
The single string version is a convenience for when you are only grabbing the first file anyway.
◆ filenameChanged
void pqFileChooserWidget::filenameChanged |
( |
const QString & |
| ) |
|
|
signal |
◆ chooseFile
void pqFileChooserWidget::chooseFile |
( |
| ) |
|
|
protectedslot |
Called when the user hits the choose file button.
◆ handleFileLineEditChanged
void pqFileChooserWidget::handleFileLineEditChanged |
( |
const QString & |
fileString | ) |
|
|
protectedslot |
Respond to changes with the filename in the line edit box.
◆ emitFilenamesChanged()
void pqFileChooserWidget::emitFilenamesChanged |
( |
const QStringList & |
fileList | ) |
|
|
protected |
Takes a string with delimited files and emits the filenamesChanged and filenameChanged signals.
◆ Extension
QString pqFileChooserWidget::Extension |
|
protected |
◆ LineEdit
QLineEdit* pqFileChooserWidget::LineEdit |
|
protected |
◆ Server
◆ ForceSingleFile
bool pqFileChooserWidget::ForceSingleFile |
|
protected |
◆ UseDirectoryMode
bool pqFileChooserWidget::UseDirectoryMode |
|
protected |
◆ AcceptAnyFile
bool pqFileChooserWidget::AcceptAnyFile |
|
protected |
◆ FilenameList
QStringList pqFileChooserWidget::FilenameList |
|
protected |
◆ UseFilenameList
bool pqFileChooserWidget::UseFilenameList |
|
protected |
◆ Title
QString pqFileChooserWidget::Title |
|
protected |
◆ filenames
QStringList pqFileChooserWidget::filenames |
|
readwrite |
◆ singleFilename
QString pqFileChooserWidget::singleFilename |
|
readwrite |
◆ extension
QString pqFileChooserWidget::extension |
|
readwrite |
◆ useDirectoryMode
bool pqFileChooserWidget::useDirectoryMode |
|
readwrite |
◆ forceSingleFile
bool pqFileChooserWidget::forceSingleFile |
|
readwrite |
◆ acceptAnyFile
bool pqFileChooserWidget::acceptAnyFile |
|
readwrite |
The documentation for this class was generated from the following file: