file chooser widget 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
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) |
|
|
void | emitFilenamesChanged (const QStringList &fileList) |
| Takes a string with delimited files and emits the filenamesChanged and filenameChanged signals. More...
|
|
file chooser widget 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 47 of file pqFileChooserWidget.h.
§ pqFileChooserWidget()
pqFileChooserWidget::pqFileChooserWidget |
( |
QWidget * |
p = NULL | ) |
|
§ ~pqFileChooserWidget()
pqFileChooserWidget::~pqFileChooserWidget |
( |
| ) |
|
§ filenames()
QStringList pqFileChooserWidget::filenames |
( |
| ) |
const |
§ setFilenames()
void pqFileChooserWidget::setFilenames |
( |
const QStringList & |
| ) |
|
§ singleFilename()
QString pqFileChooserWidget::singleFilename |
( |
| ) |
const |
convienince functions for when using only a single file (see forceSingleFile property).
§ setSingleFilename()
void pqFileChooserWidget::setSingleFilename |
( |
const QString & |
| ) |
|
§ 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 86 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 |
§ setServer()
void pqFileChooserWidget::setServer |
( |
pqServer * |
server | ) |
|
set server to work on.
If server is NULL, 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 113 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 |
§ 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: