VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtSimulationObjectEditorSystemsHandler Class Reference
Inheritance diagram for DtSimulationObjectEditorSystemsHandler:
Inheritance graph
[legend]

Public Member Functions

 DtSimulationObjectEditorSystemsHandler (makVrv::DtDe &)
 
virtual ~DtSimulationObjectEditorSystemsHandler ()
 
virtual bool replaceSystems (const QStringList &systems)
 
virtual bool replaceSystem (const DtFilename &)
 
virtual void sharedSystems (const DtFilename &systemFile, std::vector< DtModelSetEntry * > &systems)
 
virtual void replaceSystem (DtModelSetEntry *entry, const DtFilename &system)
 
virtual void deleteSystems (const QStringList &systems)
 
virtual bool deleteSystem (const DtFilename &)
 
virtual void deleteSystem (DtModelSetEntry *, const DtFilename &system)
 
virtual void addSystems (const QStringList &)
 
virtual void processCommand (const QString &command, const QStringList &systemFiles)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static QString absolutePathFromWorkingDirectory (const DtFilename &dirFile)
 
static
DtSimulationObjectEditorSystemsHandler
instance (makVrv::DtDe &)
 
static void registerInstance (makVrv::DtDe &, DtSimulationObjectEditorSystemsHandler *)
 

Protected Member Functions

virtual bool warnUser (const QStringList &systems)
 

Protected Attributes

makVrv::DtDemyDe
 

Constructor & Destructor Documentation

DtSimulationObjectEditorSystemsHandler::DtSimulationObjectEditorSystemsHandler ( makVrv::DtDe )

Default Constructor.

virtual DtSimulationObjectEditorSystemsHandler::~DtSimulationObjectEditorSystemsHandler ( )
virtual

Destructor.

Member Function Documentation

virtual bool DtSimulationObjectEditorSystemsHandler::replaceSystems ( const QStringList &  systems)
virtual

Given the list of systems (absolute paths to system files), go through the entire parameter database to see which systems share these files. Calls replaceSystem to do the replacement.

virtual bool DtSimulationObjectEditorSystemsHandler::replaceSystem ( const DtFilename &  )
virtual

Looks through all parameter entries to see if this system is used by it. If it is, removes the system and reloads the new system. This will not automatically save out the system, but, rather it will mark the opd entries as modified, letting the user know the ope file(s) have to be saved.

virtual void DtSimulationObjectEditorSystemsHandler::sharedSystems ( const DtFilename &  systemFile,
std::vector< DtModelSetEntry * > &  systems 
)
virtual

Returns all parameter entries that share the supplied system.

virtual void DtSimulationObjectEditorSystemsHandler::replaceSystem ( DtModelSetEntry entry,
const DtFilename &  system 
)
virtual

Given the parameter entry, replace the system in that entry with the system of the same name and location. This code will create the actual UI page and use the page to do the removal and add.

static QString DtSimulationObjectEditorSystemsHandler::absolutePathFromWorkingDirectory ( const DtFilename &  dirFile)
static
virtual void DtSimulationObjectEditorSystemsHandler::deleteSystems ( const QStringList &  systems)
virtual
virtual bool DtSimulationObjectEditorSystemsHandler::deleteSystem ( const DtFilename &  )
virtual

Calls down to DtUiSystemElement to delete the system from all parameters that contain it.

virtual void DtSimulationObjectEditorSystemsHandler::deleteSystem ( DtModelSetEntry ,
const DtFilename &  system 
)
virtual
virtual void DtSimulationObjectEditorSystemsHandler::addSystems ( const QStringList &  )
virtual

Adds new systems to the system database and reselect the existing entity to reseed with new systems.

virtual void DtSimulationObjectEditorSystemsHandler::processCommand ( const QString &  command,
const QStringList &  systemFiles 
)
virtual

Process command as applied to system files. Current commands are: <systemfileschanged> - calls replaceSystems <deletedsystem> - calls deletedSystems <addsystem> - calls addSystems.

virtual bool DtSimulationObjectEditorSystemsHandler::warnUser ( const QStringList &  systems)
protectedvirtual

Given the fact that some items might need to be saved that have not been saved yet, warn the user of that fact.

static DtSimulationObjectEditorSystemsHandler& DtSimulationObjectEditorSystemsHandler::instance ( makVrv::DtDe )
static

Static creator.

static void DtSimulationObjectEditorSystemsHandler::registerInstance ( makVrv::DtDe ,
DtSimulationObjectEditorSystemsHandler  
)
static

Member Data Documentation

makVrv::DtDe& DtSimulationObjectEditorSystemsHandler::myDe
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)