VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtSoundFileWidgetDelegate Class Reference

A custom delegate for the sound file field to allow editing with the use of a file browser. More...

Inheritance diagram for makVrv::DtSoundFileWidgetDelegate:
Inheritance graph
[legend]

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
DtDemyDe
 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

Detailed Description

A custom delegate for the sound file field to allow editing with the use of a file browser.

Note
Do not share instances of delegates between widgets.

Constructor & Destructor Documentation

makVrv::DtSoundFileWidgetDelegate::DtSoundFileWidgetDelegate ( DtDe de,
QObject parent = NULL 
)

Default CTOR.

Parameters
[in]deis the display engine.
[in]parentis the owner of this delegate.
virtual makVrv::DtSoundFileWidgetDelegate::~DtSoundFileWidgetDelegate ( )
virtual

Virtual DTOR.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)