VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfModelSetManager Class Reference

The Master Scenario Settings Dialog. More...

Inheritance diagram for makVrf::DtVrfModelSetManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfModelSetManager (makVrv::DtDe &)
virtual ~DtVrfModelSetManager ()
virtual bool load (const std::string &, bool reset=true, bool signal=true)
 Loads model set file into myModelSet and then signals loaded if successful.
virtual DtModelSetEntrymodelSetEntry (const DtEntityMapperKey &key) const
virtual bool isFavorite (const DtEntityMapperKey &key, int force) const
 Returns true if the item/force combination is a favorite.
virtual DtModelSetEntryaddModelSetEntry (const DtString &label, const DtEntityMapperKey &, const DtRwNLengthStringVector &cats)
 Add a new model set entry.
virtual void removeModelSetEntry (const DtEntityMapperKey &e)
 Removes the model set entry.
virtual std::string nameFor (const DtEntityMapperKey &) const
 Returns the name of the item. Blank if none.
virtual std::string keywordsFor (const DtEntityMapperKey &) const
 Returns the keywords of the item. Blank if none.
virtual void setModelSet (DtModelSet *)
 Deletes current model set (if owned) and sets new model set.
virtual void setFavorite (const DtEntityMapperKey &key, bool b)
 Sets the model set entry that matches the mapper key to be a favorite.
virtual DtModelSetloadFavoritesFor (const std::string &)
 Loads the favorites file for the given model set file.
virtual void mergeFavoritesInto (DtModelSet *favorite, DtModelSet *modelSet)
 Merges the favorites selection into the given model set.
virtual DtModelSetEntryfavoriteFor (DtModelSetEntry *) const
 Returns the favorite that matched the model set entry.
const DtModelSetmodelSet () const
DtModelSetmodelSet ()
void setAutoSave (bool b)
bool autoSave () const
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtVrfModelSetManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager.

Public Attributes

boost::signal< void()> signal_modelSetChanged

Protected Types

typedef std::map< std::string,
DtModelSet * > 
Favorites

Protected Member Functions

virtual void clearModelSets ()
 Clears out all loaded model sets.

Protected Attributes

makVrv::DtDemyDe
DtModelSetmyModelSet
bool myOwnsModelSet
bool myAutoSave
Favorites myFavorites

Detailed Description

The Master Scenario Settings Dialog.

Member Typedef Documentation

typedef std::map<std::string, DtModelSet*> makVrf::DtVrfModelSetManager::Favorites
protected

Constructor & Destructor Documentation

makVrf::DtVrfModelSetManager::DtVrfModelSetManager ( makVrv::DtDe )
virtual makVrf::DtVrfModelSetManager::~DtVrfModelSetManager ( )
virtual

Member Function Documentation

static DtVrfModelSetManager& makVrf::DtVrfModelSetManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

virtual bool makVrf::DtVrfModelSetManager::load ( const std::string &  ,
bool  reset = true,
bool  signal = true 
)
virtual

Loads model set file into myModelSet and then signals loaded if successful.

virtual DtModelSetEntry* makVrf::DtVrfModelSetManager::modelSetEntry ( const DtEntityMapperKey key) const
virtual
virtual bool makVrf::DtVrfModelSetManager::isFavorite ( const DtEntityMapperKey key,
int  force 
) const
virtual

Returns true if the item/force combination is a favorite.

virtual DtModelSetEntry* makVrf::DtVrfModelSetManager::addModelSetEntry ( const DtString label,
const DtEntityMapperKey ,
const DtRwNLengthStringVector cats 
)
virtual

Add a new model set entry.

virtual void makVrf::DtVrfModelSetManager::removeModelSetEntry ( const DtEntityMapperKey e)
virtual

Removes the model set entry.

virtual std::string makVrf::DtVrfModelSetManager::nameFor ( const DtEntityMapperKey ) const
virtual

Returns the name of the item. Blank if none.

virtual std::string makVrf::DtVrfModelSetManager::keywordsFor ( const DtEntityMapperKey ) const
virtual

Returns the keywords of the item. Blank if none.

virtual void makVrf::DtVrfModelSetManager::setModelSet ( DtModelSet )
virtual

Deletes current model set (if owned) and sets new model set.

Does not take ownership

virtual void makVrf::DtVrfModelSetManager::setFavorite ( const DtEntityMapperKey key,
bool  b 
)
virtual

Sets the model set entry that matches the mapper key to be a favorite.

If auto-save is true also saves out the model set file

virtual DtModelSet* makVrf::DtVrfModelSetManager::loadFavoritesFor ( const std::string &  )
virtual

Loads the favorites file for the given model set file.

Assumes there is a file called favorites.mst in the ame directory referenced for the entity.mst file

virtual void makVrf::DtVrfModelSetManager::mergeFavoritesInto ( DtModelSet favorite,
DtModelSet modelSet 
)
virtual

Merges the favorites selection into the given model set.

If there are no matching types no merge will occur for that type

virtual DtModelSetEntry* makVrf::DtVrfModelSetManager::favoriteFor ( DtModelSetEntry ) const
virtual

Returns the favorite that matched the model set entry.

const DtModelSet* makVrf::DtVrfModelSetManager::modelSet ( ) const
inline
DtModelSet* makVrf::DtVrfModelSetManager::modelSet ( )
inline
void makVrf::DtVrfModelSetManager::setAutoSave ( bool  b)
inline
bool makVrf::DtVrfModelSetManager::autoSave ( ) const
inline
virtual void makVrf::DtVrfModelSetManager::clearModelSets ( )
protectedvirtual

Clears out all loaded model sets.

Member Data Documentation

boost::signal<void ()> makVrf::DtVrfModelSetManager::signal_modelSetChanged
makVrv::DtDe& makVrf::DtVrfModelSetManager::myDe
protected
DtModelSet* makVrf::DtVrfModelSetManager::myModelSet
protected
bool makVrf::DtVrfModelSetManager::myOwnsModelSet
protected
bool makVrf::DtVrfModelSetManager::myAutoSave
protected
Favorites makVrf::DtVrfModelSetManager::myFavorites
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)