![]() |
VR-Forces 4.7 Class Documentation
|
A singleton manager to provide allowable file extensions for use in file dialogs. More...

Classes | |
| struct | FileExtensionData |
| Associate a translatable description with a list of extensions. More... | |
Public Types | |
| typedef std::list< std::string > | ExtensionList |
| List of file extensions (gdb, medf, etc.) | |
| typedef std::list < FileExtensionData > | FileExtensionGroup |
| List of FileExtensionData records. | |
| typedef boost::unordered_map < std::string, FileExtensionGroup > | DialogTypeMap |
| Map of FileExtensionGroup indexed by DialogType ("AddTerrainPatch", "SaveScene") | |
Public Member Functions | |
| virtual | ~DtFileExtensionManager () |
| DTOR. | |
| virtual void | addFileExtensions (const std::string &dialogType, const DtUnicode &description, const ExtensionList &extensions) |
| Add a list of extensions (with description) to the specified dialog type's FileExtensionGroup. | |
| virtual void | addFileExtension (const std::string &dialogType, const DtUnicode &description, const std::string &extension) |
| Add a single extension (with description) to the specified dialog type's FileExtensionGroup. | |
| virtual void | removeFileExtensions (const std::string &dialogType, const ExtensionList &extensions) |
| Remove a list of extensions. | |
| virtual void | removeFileExtension (const std::string &dialogType, const std::string &extension) |
| Remove a file extension. | |
| virtual const FileExtensionGroup & | getFileExtensions (const std::string &dialogType) const |
| Get all the file extension lists associated with the specified dialog type. | |
| virtual bool | isMemberOfExtensionGroup (const std::string &dialogType, const DtUnicode &extensionGroup, const std::string &ext) |
| Check if a extension is a member of a specific extension group. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtFileExtensionManager & | instance (DtDe &de) |
| Lazily create singleton. | |
Protected Member Functions | |
| DtFileExtensionManager (DtDe &de) | |
| CTOR. | |
| virtual bool | extensionListsMatch (const ExtensionList &extensions1, const ExtensionList &extensions2) |
Protected Attributes | |
| DtDe & | myDe |
| DialogTypeMap | myFileExtensions |
A singleton manager to provide allowable file extensions for use in file dialogs.
| typedef std::list<std::string> makVrv::DtFileExtensionManager::ExtensionList |
List of file extensions (gdb, medf, etc.)
| typedef std::list<FileExtensionData> makVrv::DtFileExtensionManager::FileExtensionGroup |
List of FileExtensionData records.
Each dialog type has one FileExtensionGroip
| typedef boost::unordered_map<std::string, FileExtensionGroup> makVrv::DtFileExtensionManager::DialogTypeMap |
Map of FileExtensionGroup indexed by DialogType ("AddTerrainPatch", "SaveScene")
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Lazily create singleton.
|
virtual |
Add a list of extensions (with description) to the specified dialog type's FileExtensionGroup.
|
virtual |
Add a single extension (with description) to the specified dialog type's FileExtensionGroup.
|
virtual |
Remove a list of extensions.
The extension list must be an exact match to an existing extension list in the specified dialog type's FileExtensionGroup
|
virtual |
Remove a file extension.
The extension must be the only item in an existing extension list in the specified dialog type's FileExtensionGroup
|
virtual |
Get all the file extension lists associated with the specified dialog type.
|
virtual |
Check if a extension is a member of a specific extension group.
|
protectedvirtual |
|
protected |
|
protected |