VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtSchemaEditorLogic Class Reference

Logic class for editing definition schema.

Public Member Functions

 DtSchemaEditorLogic (DtDe &de, DtInstanceEditorInterface *instanceEditor, DtMapEditorInterface *mapEditor, DtPersistenceControlsInterface *toolbar)
 
virtual ~DtSchemaEditorLogic ()
 

Protected Member Functions

virtual void createSchema (const std::string &schemaName)
 
virtual void copySchema (const std::string &oldName, const std::string &newName)
 
virtual void deleteSchema (const std::vector< std::string > &schemaName)
 
virtual void setSelectedSchema (const std::string &schemaName)
 
virtual void setupSchemas ()
 
virtual void renameParameter (const std::string &oldName, const std::string &newName)
 
virtual void renameSchema (const std::string &oldName, const std::string &newName)
 
virtual void modifyValue (const std::string &key, const std::string &val, int index)
 
virtual void deleteValue (const std::string &key)
 
virtual void schemaRestored (const DtSettingsBackup *)
 
void setupInstances ()
 
void setupMap ()
 
virtual void onExport ()
 
virtual void onExportSelected ()
 
virtual void onExportFilenameChosen (const std::string &)
 
virtual void onExportSelectedChosen (const std::string &)
 
virtual void onImport ()
 
virtual void onImportFilenameChosen (const std::string &)
 
virtual void onMerge ()
 
virtual void onMergeFilenameChosen (const std::string &)
 

Static Protected Member Functions

static std::string parameterTypeToString (unsigned int type)
 
static unsigned int parameterTypeFromString (const std::string &str)
 
static std::string requiredToString (bool required)
 
static bool requiredFromString (const std::string &str)
 

Protected Attributes

DtDemyDe
 
DtInstanceEditorInterfacemyInstanceInterface
 
DtMapEditorInterfacemyMapInterface
 
DtPersistenceControlsInterfacemyToolbarInterface
 
DtSignalConnectionManager mySignals
 

Constructor & Destructor Documentation

makVrv::DtSchemaEditorLogic::DtSchemaEditorLogic ( DtDe de,
DtInstanceEditorInterface instanceEditor,
DtMapEditorInterface mapEditor,
DtPersistenceControlsInterface toolbar 
)

CTOR.

virtual makVrv::DtSchemaEditorLogic::~DtSchemaEditorLogic ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtSchemaEditorLogic::createSchema ( const std::string &  schemaName)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::copySchema ( const std::string &  oldName,
const std::string &  newName 
)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::deleteSchema ( const std::vector< std::string > &  schemaName)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::setSelectedSchema ( const std::string &  schemaName)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::setupSchemas ( )
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::renameParameter ( const std::string &  oldName,
const std::string &  newName 
)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::renameSchema ( const std::string &  oldName,
const std::string &  newName 
)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::modifyValue ( const std::string &  key,
const std::string &  val,
int  index 
)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::deleteValue ( const std::string &  key)
protectedvirtual
virtual void makVrv::DtSchemaEditorLogic::schemaRestored ( const DtSettingsBackup )
protectedvirtual

Called when a schema is restored, reset gui if the restored schema is the one being displayed.

void makVrv::DtSchemaEditorLogic::setupInstances ( )
protected

setup the instances.

void makVrv::DtSchemaEditorLogic::setupMap ( )
protected
static std::string makVrv::DtSchemaEditorLogic::parameterTypeToString ( unsigned int  type)
staticprotected
static unsigned int makVrv::DtSchemaEditorLogic::parameterTypeFromString ( const std::string &  str)
staticprotected
static std::string makVrv::DtSchemaEditorLogic::requiredToString ( bool  required)
staticprotected
static bool makVrv::DtSchemaEditorLogic::requiredFromString ( const std::string &  str)
staticprotected
virtual void makVrv::DtSchemaEditorLogic::onExport ( )
protectedvirtual

Called when user wants to export contents of selected schema to a file.

virtual void makVrv::DtSchemaEditorLogic::onExportSelected ( )
protectedvirtual

Called when a user wants to export selected items of the current schema to a file.

virtual void makVrv::DtSchemaEditorLogic::onExportFilenameChosen ( const std::string &  )
protectedvirtual

Called when the export filename has been chosen. Will export contents of schema to given file.

virtual void makVrv::DtSchemaEditorLogic::onExportSelectedChosen ( const std::string &  )
protectedvirtual

Called when the export filename has been chosen. Will export selected items to the given file.

virtual void makVrv::DtSchemaEditorLogic::onImport ( )
protectedvirtual

Called when a user wants to import (replace) selected schema with contents of selected file.

virtual void makVrv::DtSchemaEditorLogic::onImportFilenameChosen ( const std::string &  )
protectedvirtual

Called when the import filename has been chose. Will import contents of file to selected schema.

virtual void makVrv::DtSchemaEditorLogic::onMerge ( )
protectedvirtual

Called when a user wants to merge selected file into currently selected schema. Merge will replace or add, not delete items.

virtual void makVrv::DtSchemaEditorLogic::onMergeFilenameChosen ( const std::string &  )
protectedvirtual

Called when the merge filename has been chose. Will merge contents of file to selected schema.

Member Data Documentation

DtDe& makVrv::DtSchemaEditorLogic::myDe
protected
DtInstanceEditorInterface* makVrv::DtSchemaEditorLogic::myInstanceInterface
protected
DtMapEditorInterface* makVrv::DtSchemaEditorLogic::myMapInterface
protected
DtPersistenceControlsInterface* makVrv::DtSchemaEditorLogic::myToolbarInterface
protected
DtSignalConnectionManager makVrv::DtSchemaEditorLogic::mySignals
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)