VR-Forces 4.1 Class Documentation
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. More...

Public Member Functions

 DtSchemaEditorLogic (DtDe &de, DtInstanceEditorInterface *instanceEditor, DtMapEditorInterface *mapEditor, DtPersistenceControlsInterface *toolbar)
 CTOR.
 ~DtSchemaEditorLogic ()
 DTOR.

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::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 *)
 Called when a schema is restored, reset gui if the restored schema is the one being displayed.
void setupInstances ()
 setup the instances.
void setupMap ()
virtual void onExport ()
 Called when user wants to export contents of selected schema to a file.
virtual void onExportSelected ()
 Called when a user wants to export selected items of the current schema to a file.
virtual void onExportFilenameChosen (const std::string &)
 Called when the export filename has been chosen.
virtual void onExportSelectedChosen (const std::string &)
 Called when the export filename has been chosen.
virtual void onImport ()
 Called when a user wants to import (replace) selected schema with contents of selected file.
virtual void onImportFilenameChosen (const std::string &)
 Called when the import filename has been chose.
virtual void onMerge ()
 Called when a user wants to merge selected file into currently selected schema.
virtual void onMergeFilenameChosen (const std::string &)
 Called when the merge filename has been chose.

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

Detailed Description

Logic class for editing definition schema.

Constructor & Destructor Documentation

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

CTOR.

makVrv::DtSchemaEditorLogic::~DtSchemaEditorLogic ( )

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::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 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)