![]() |
VR-Forces 4.0.4 Class Documentation
|

Signals | |
| void | filesChanged (const QStringList &) |
Public Member Functions | |
| DtFileListDialog (QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtFileListDialog () |
| virtual void | init (const QStringList &=QStringList()) |
| virtual void | setFiles (const QStringList &files) |
| Sets the files to appear in this widget. Clears out list box. | |
| void | setFilter (const QString &) |
| Sets filter to be used when selecting file. | |
| const QString & | filter () const |
| void | setStartingDirectory (const QString &) |
| Sets starting directory to be used when selecting file, if the file is an <empty file>=""> | |
| const QString & | startingDirectory () const |
| virtual QStringList | files () const |
| Files that are in the list box. | |
| virtual QString | mergedFiles (const QChar &separator= ';') const |
| virtual void | setDirectoryMode (bool) |
| Sets the mode where only directories are allowed to be selected. | |
| bool | directoryMode () const |
| virtual void | setPathsRelativeToApplication (bool) |
| Make all directories relative to applicatio. | |
| bool | pathsRelativeToApplication () const |
| QListWidget * | fileList () const |
| virtual QString | makeRelativeTo (QString origFile) const |
| virtual QString | makeRelativeTo (QString filename, QString path) const |
| If the name given contains the directory, adds ../ to that path, removing everything before it. | |
| virtual QString | relativePath () const |
| Returns the folder that paths should be made relative to. | |
| virtual QString | dataFolder () const |
| Returns the data folder of this application. | |
| virtual QString | cleanPath (const QString &path) const |
Protected Slots | |
| virtual void | itemSelectionChanged () |
| virtual void | addItem () |
| virtual void | removeItem () |
| virtual void | fileChanged () |
| virtual void | selectFile () |
Protected Member Functions | |
| virtual void | createAcceptButtons () |
| virtual QLayout * | createAddRemoveButtons (QHBoxLayout *fileLayout) |
| virtual QLayout * | createAddRemoveButtonLayout () |
| virtual QString | relativeFilename (const QString &file) const |
| virtual bool | eventFilter (QObject *p, QEvent *e) |
Protected Attributes | |
| QListWidget * | myFileList |
| QPushButton * | myRemove |
| QPushButton * | myFileSelect |
| QLineEdit * | myFileEdit |
| QWidget * | myFilePanel |
| QString | myFilter |
| QString | myStartingDirectory |
| bool | myDirectoryMode |
| bool | myPathsRelativeToApplication |
| makVrf::DtFileListDialog::DtFileListDialog | ( | QWidget * | parent, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
| virtual makVrf::DtFileListDialog::~DtFileListDialog | ( | ) | [virtual] |
| virtual void makVrf::DtFileListDialog::init | ( | const QStringList & | = QStringList() | ) | [virtual] |
Reimplemented in makVrf::DtFileListWidget.
| virtual void makVrf::DtFileListDialog::setFiles | ( | const QStringList & | files | ) | [virtual] |
Sets the files to appear in this widget. Clears out list box.
| void makVrf::DtFileListDialog::setFilter | ( | const QString & | f | ) | [inline] |
Sets filter to be used when selecting file.
References myFilter.
| const QString & makVrf::DtFileListDialog::filter | ( | ) | const [inline] |
References myFilter.
| void makVrf::DtFileListDialog::setStartingDirectory | ( | const QString & | f | ) | [inline] |
Sets starting directory to be used when selecting file, if the file is an <empty file>="">
References myStartingDirectory.
| const QString & makVrf::DtFileListDialog::startingDirectory | ( | ) | const [inline] |
References myStartingDirectory.
| virtual QStringList makVrf::DtFileListDialog::files | ( | ) | const [virtual] |
Files that are in the list box.
| virtual QString makVrf::DtFileListDialog::mergedFiles | ( | const QChar & | separator = ';' | ) | const [virtual] |
| virtual void makVrf::DtFileListDialog::setDirectoryMode | ( | bool | ) | [virtual] |
Sets the mode where only directories are allowed to be selected.
| bool makVrf::DtFileListDialog::directoryMode | ( | ) | const [inline] |
References myDirectoryMode.
| virtual void makVrf::DtFileListDialog::setPathsRelativeToApplication | ( | bool | ) | [virtual] |
Make all directories relative to applicatio.
| bool makVrf::DtFileListDialog::pathsRelativeToApplication | ( | ) | const [inline] |
References myPathsRelativeToApplication.
| QListWidget * makVrf::DtFileListDialog::fileList | ( | ) | const [inline] |
References myFileList.
| virtual QString makVrf::DtFileListDialog::makeRelativeTo | ( | QString | origFile | ) | const [virtual] |
| virtual QString makVrf::DtFileListDialog::makeRelativeTo | ( | QString | filename, |
| QString | path | ||
| ) | const [virtual] |
If the name given contains the directory, adds ../ to that path, removing everything before it.
| virtual QString makVrf::DtFileListDialog::relativePath | ( | ) | const [virtual] |
Returns the folder that paths should be made relative to.
| virtual QString makVrf::DtFileListDialog::dataFolder | ( | ) | const [virtual] |
Returns the data folder of this application.
Defaults to ../data
| virtual QString makVrf::DtFileListDialog::cleanPath | ( | const QString & | path | ) | const [virtual] |
| virtual void makVrf::DtFileListDialog::createAcceptButtons | ( | ) | [protected, virtual] |
Reimplemented in makVrf::DtFileListWidget.
| virtual QLayout* makVrf::DtFileListDialog::createAddRemoveButtons | ( | QHBoxLayout * | fileLayout | ) | [protected, virtual] |
Reimplemented in makVrf::DtFileListWidget.
| virtual QLayout* makVrf::DtFileListDialog::createAddRemoveButtonLayout | ( | ) | [protected, virtual] |
Reimplemented in makVrf::DtFileListWidget.
| virtual QString makVrf::DtFileListDialog::relativeFilename | ( | const QString & | file | ) | const [protected, virtual] |
| virtual bool makVrf::DtFileListDialog::eventFilter | ( | QObject * | p, |
| QEvent * | e | ||
| ) | [protected, virtual] |
| void makVrf::DtFileListDialog::filesChanged | ( | const QStringList & | ) | [signal] |
| virtual void makVrf::DtFileListDialog::itemSelectionChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtFileListDialog::addItem | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtFileListDialog::removeItem | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtFileListDialog::fileChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtFileListDialog::selectFile | ( | ) | [protected, virtual, slot] |
QListWidget* makVrf::DtFileListDialog::myFileList [protected] |
Referenced by fileList().
QPushButton* makVrf::DtFileListDialog::myRemove [protected] |
QPushButton* makVrf::DtFileListDialog::myFileSelect [protected] |
QLineEdit* makVrf::DtFileListDialog::myFileEdit [protected] |
QWidget* makVrf::DtFileListDialog::myFilePanel [protected] |
QString makVrf::DtFileListDialog::myFilter [protected] |
Referenced by filter(), and setFilter().
QString makVrf::DtFileListDialog::myStartingDirectory [protected] |
Referenced by setStartingDirectory(), and startingDirectory().
bool makVrf::DtFileListDialog::myDirectoryMode [protected] |
Referenced by directoryMode().
Referenced by pathsRelativeToApplication().