![]() |
VR-Forces Development_Version Class Documentation
|
A custom delegate for the sound file field to allow editing with the use of a file browser. More...

Public Member Functions | |
| DtSoundFileWidgetDelegate (DtDe &de, QObject *parent=NULL) | |
| Default CTOR. | |
| virtual | ~DtSoundFileWidgetDelegate () |
| Virtual DTOR. | |
Public Member Functions inherited from makVrv::DtFileWidgetDelegate | |
| DtFileWidgetDelegate (DtDe &de, QObject *parent=NULL) | |
| Default CTOR. | |
| virtual | ~DtFileWidgetDelegate () |
| Virtual DTOR. | |
| void | setCaption (const QString &cap=QString("")) |
| Set the caption for the file browser. | |
| void | addFileTypeFilter (const QString &name, const QString &ext) |
| Add a file-type filter. | |
| QString | fileTypeFilterString () const |
| Get the full file-type filter string. | |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtFileWidgetDelegate | |
| static QString | generateFileFilterItem (const QString &name, const QString &ext) |
| Helper function to create a single filter item to be included in a file-type filter string. | |
| static std::string | rootDirectory () |
| Get the root directory (where the application runs from). | |
| static std::string | lastDirectory (const std::string &ext="") |
| Get the last directory visited. | |
| static void | setDataDirectory (const std::string &ext, const std::string &dir) |
| Register a data keyed from an extension. | |
Protected Types inherited from makVrv::DtFileWidgetDelegate | |
| typedef std::map< std::string, std::string > | ExtDirMap |
| Map of absolute data directories keyed off of extensions. | |
Protected Member Functions inherited from makVrv::DtFileWidgetDelegate | |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Create the editor for this delegate. | |
| virtual QString | displayText (const QVariant &value, const QLocale &locale) const |
| Display an empty string as "<none>" meaning no file selected. | |
Protected Attributes inherited from makVrv::DtFileWidgetDelegate | |
| DtDe & | myDe |
| The display engine. | |
| QString | myCaption |
| The caption for the browser dialog. | |
| QMap< QString, QString > | myFilters |
| The map of file filter strings keyed off the file-type name. | |
Static Protected Attributes inherited from makVrv::DtFileWidgetDelegate | |
| static std::string | RootPath |
| The absolute root (were the application was run from). | |
| static std::string | LastDirectory |
| The absolute data directory (were the data files are stored). | |
| static ExtDirMap | LastDirectories |
A custom delegate for the sound file field to allow editing with the use of a file browser.
Default CTOR.
| [in] | de | is the display engine. |
| [in] | parent | is the owner of this delegate. |
|
virtual |
Virtual DTOR.