![]() |
VR-Forces 4.0.4 Class Documentation
|
A Wrapper around the File Dialog functions which allow for proper rendering to continue. More...
Public Types | |
| enum | Option { ShowDirsOnly = 0x01, DontResolveSymlinks = 0x02, DontConfirmOverwrite = 0x04, DontUseSheet = 0x08, DontUseNativeDialog = 0x10 } |
| typedef std::map< QString, QString > | ExtentionDescriptionMap |
| Map from file extension to description of that extension. | |
Static Public Member Functions | |
| static QString | getExistingDirectory (DtDe &de, QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), Options options=ShowDirsOnly) |
| static QString | getOpenFileName (DtDe &de, QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0) |
| static QStringList | getOpenFileNames (DtDe &de, QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0) |
| static QString | getSaveFileName (DtDe &de, QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0) |
| static QString | getSaveFileNameWithExtension (DtDe &de, QWidget *parent, const QString &caption, const QString &dir, const QString &description, const QString &extension, bool addAllFilesFilter=true) |
| Convenience function to get a save file name (using getSaveFileName with default options) and give it the correct extension according to the following policy: | |
| static QString | getSaveFileNameWithMultipleExtensions (DtDe &de, QWidget *parent, const QString &caption, const QString &dir, const ExtentionDescriptionMap &extDescMap, bool addAllFilesFilter=true) |
| Convenience function to get a save file name (using getSaveFileName with default options) and give it the correct extension according to the following policy: | |
Static Public Attributes | |
| static QString | AllFilesFilter |
A Wrapper around the File Dialog functions which allow for proper rendering to continue.
The problem is that when the normal WIN32 File Dialog is active the application is no longer ticked. Using these functions start a low level timer which will tick the application while the dialog is visible.
| typedef std::map<QString, QString> makVrv::DtStaticFileDialog::ExtentionDescriptionMap |
Map from file extension to description of that extension.
| static QString makVrv::DtStaticFileDialog::getExistingDirectory | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| const QString & | caption = QString(), |
||
| const QString & | dir = QString(), |
||
| Options | options = ShowDirsOnly |
||
| ) | [static] |
| static QString makVrv::DtStaticFileDialog::getOpenFileName | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| const QString & | caption = QString(), |
||
| const QString & | dir = QString(), |
||
| const QString & | filter = QString(), |
||
| QString * | selectedFilter = 0, |
||
| Options | options = 0 |
||
| ) | [static] |
| static QStringList makVrv::DtStaticFileDialog::getOpenFileNames | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| const QString & | caption = QString(), |
||
| const QString & | dir = QString(), |
||
| const QString & | filter = QString(), |
||
| QString * | selectedFilter = 0, |
||
| Options | options = 0 |
||
| ) | [static] |
| static QString makVrv::DtStaticFileDialog::getSaveFileName | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| const QString & | caption = QString(), |
||
| const QString & | dir = QString(), |
||
| const QString & | filter = QString(), |
||
| QString * | selectedFilter = 0, |
||
| Options | options = 0 |
||
| ) | [static] |
| static QString makVrv::DtStaticFileDialog::getSaveFileNameWithExtension | ( | DtDe & | de, |
| QWidget * | parent, | ||
| const QString & | caption, | ||
| const QString & | dir, | ||
| const QString & | description, | ||
| const QString & | extension, | ||
| bool | addAllFilesFilter = true |
||
| ) | [static] |
Convenience function to get a save file name (using getSaveFileName with default options) and give it the correct extension according to the following policy:
| description | Description of file format to use in file filter |
| extension | Extension to use in file filter |
| addAllFilesFilter | adds All Files (*.*) to the filter options |
| static QString makVrv::DtStaticFileDialog::getSaveFileNameWithMultipleExtensions | ( | DtDe & | de, |
| QWidget * | parent, | ||
| const QString & | caption, | ||
| const QString & | dir, | ||
| const ExtentionDescriptionMap & | extDescMap, | ||
| bool | addAllFilesFilter = true |
||
| ) | [static] |
Convenience function to get a save file name (using getSaveFileName with default options) and give it the correct extension according to the following policy:
| extDescMap | Map from file extension to description of the extension used to build the file filter |
| extension | Extension to use in file filter |
| addAllFilesFilter | adds All Files (*.*) to the filter options |
QString makVrv::DtStaticFileDialog::AllFilesFilter [static] |