VR-Forces 4.7 Class Documentation
 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 &)
 Default Constructor.
virtual ~DtSimulationObjectEditorSystemsHandler ()
 Destructor.
virtual bool replaceSystems (const QStringList &systems)
 Given the list of systems (absolute paths to system files), go through the entire parameter database to see which systems share these files.
virtual bool replaceSystem (const DtFilename &)
 Looks through all parameter entries to see if this system is used by it.
virtual void sharedSystems (const DtFilename &systemFile, std::vector< DtModelSetEntry * > &systems)
 Returns all parameter entries that share the supplied system.
virtual void replaceSystem (DtModelSetEntry *entry, const DtFilename &system)
 Given the parameter entry, replace the system in that entry with the system of the same name and location.
virtual void deleteSystems (const QStringList &systems)
virtual bool deleteSystem (const DtFilename &)
 Calls down to DtUiSystemElement to delete the system from all parameters that contain it.
virtual void deleteSystem (DtModelSetEntry *, const DtFilename &system)
virtual void addSystems (const QStringList &)
 Adds new systems to the system database and reselect the existing entity to reseed with new systems.
virtual void processCommand (const QString &command, const QStringList &systemFiles)
 Process command as applied to system files.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

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

Protected Member Functions

virtual bool warnUser (const QStringList &systems)
 Given the fact that some items might need to be saved that have not been saved yet, warn the user of that fact.

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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)