VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtElementEditorLogic Class Reference

Logic class for the DtElementEditorWidget. More...

Inheritance diagram for makVrv::DtElementEditorLogic:
Inheritance graph
[legend]

Public Member Functions

 DtElementEditorLogic (DtElementDefinitionTypeManager::ElementDefinitionType type, DtDe &de, DtElementEditorInterface *iface, DtPersistenceControlsInterface *persistenceControls, DtPage *page=0)
 CTOR. More...
 
virtual ~DtElementEditorLogic ()
 DTOR. More...
 
void selectElement (const DtUnicode &elementName, bool valid)
 Populate the visualizer definitions for a element definition. More...
 
virtual void setElementRemoveAllowed (const DtUnicode &elementName)
 Check if this element entity definition is being used by other systems (i.e. More...
 
virtual void checkIfModified ()
 check if the element definitions have changed since the start up More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Protected Member Functions

void selectVisualizerDefinition (int index)
 
void selectAttribute (int index, const std::string &attrName)
 
void deselectAttribute (int index, const std::string &attrName)
 
void refreshElementDefinitions ()
 Populate the element definitions. More...
 
void refreshVisualizerDefinitionView ()
 
void clearElementSelection ()
 Called to clear the element. More...
 
void addVisualizerDefinition ()
 
void removeVisualizerDefinition (int index)
 
void deselectVisualizerDefinition (int index)
 
void addElement (const DtUnicode &name)
 
void removeElement ()
 
void renameElement (const DtUnicode &oldName, const DtUnicode &newName)
 
void addAttributeRequested (int index)
 
void removeAttribute (int index, const std::string &name)
 
void removeLocalAttribute (int index, const std::string &name)
 
void refreshAttribute (const DtUnicode &origin, int index, const std::string &name)
 
void refreshModelSets ()
 
void refreshFileSaveTo ()
 Fill the file location dropdown bar with all file name in directory. More...
 
void changeFileLocation ()
 Changes the file location of the currently selected element to the file location currently displayed on the dropdown box. More...
 
void updateAttributeEditorInterface (int index, const std::string &name, DtVisualizerAttributeEditorInterface *iface)
 
void changeModelSet (int index)
 
void changeFileSaveTo (int index)
 Update file location dropdown box when new definition is selected. More...
 
void changeFileFilter ()
 Filters out all definitions whose file names don't match the file name in the dropdown box. More...
 
virtual void on_import ()
 imports settings More...
 
virtual void on_restoreFactory ()
 restores factory settings More...
 
virtual void on_restoreStartup ()
 restores startup settings More...
 
virtual void on_export ()
 Starts export procedure by allowing user to select export file. More...
 
virtual void on_exportHier ()
 Starts export element definition hierarchy procedure by allowing user to select export file. More...
 
virtual void on_exportAll ()
 exports both hier and all leaf files More...
 
virtual void on_exportLeaves ()
 Starts export element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements) More...
 
virtual void on_exportSelectedLeaves ()
 Starts export selected element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements) More...
 
virtual void on_merge ()
 Starts merge procedure by allowing user to select merge file. More...
 
virtual void on_exportSelected ()
 Starts export preselected items procedure by allowing user to select export file. More...
 
virtual void on_importFilePathChosen (const std::string &filePath)
 Replaces hierarchy with contents of file. More...
 
virtual void on_exportFilePathChosen (const std::string &filePath)
 Saves hierarchy to file. More...
 
virtual void on_mergeFilePathChosen (const std::string &filePath)
 Merges hierarchy from file. More...
 
virtual void on_exportSelectedFilePathChosen (const std::string &filePath)
 Saves selected hierarchy to file. More...
 
virtual void on_exportHierFilePathChosen (const std::string &filePath)
 Saves hierarchy (but not leaf elements) to file. More...
 
virtual void on_exportLeafFilePathChosen (const std::string &filePath)
 Saves leaf element (but not hierarchy) to file. More...
 
virtual void on_exportSelectedLeafFilePathChosen (const std::string &filePath)
 Saves Selected leaf element (but not hierarchy) to file. More...
 
virtual void on_saveDefaults ()
 Save the hierarchy and leaves to default location (usually appData/definitions/EntityElementDefinitions) More...
 
virtual void on_copyVisualizerDefinition ()
 Copies the currently selected visualizer def. More...
 
virtual void on_pasteVisualizerDefinition ()
 Pastes the currently saved visualizer def to the currently selected element. More...
 
virtual void on_clearVisualizerDefinitions ()
 Clears vector of all Visualizer Definitions currently stored. More...
 
virtual bool shouldDisableSave ()
 Should we disable the save button. More...
 
virtual void mapTypeToDirectoryPath (DtElementDefinitionTypeManager::ElementDefinitionType type)
 map the ElementDefinitionType type to the correct folder path More...
 
virtual void slot_managerAboutToBeDeleted ()
 Called when the element definition manager this class represents is deleted. More...
 
virtual
DtElementDefinitionManager
elementDefinitionManager ()
 Returns the element definition manager for the given manager type of this dialog. More...
 

Protected Attributes

DtUnicode mySelectedElement
 
unsigned int mySelectedModelSet
 
unsigned int mySelectedFileSaveTo
 
DtPagemyPage
 
DtDemyDe
 
DtSignalConnectionManager myConnections
 
DtSignalConnectionManager myManagerConnections
 
DtElementDefinitionManagermyManager
 
int myManagerType
 
DtElementEditorInterfacemyInterface
 
DtPersistenceControlsInterfacemyPersistenceControls
 
std::string myDirectoryPath
 
std::string pathofSelectedModel
 
std::vector< std::string > myNewList
 
std::vector< std::string > myVisualList
 
DtVisualizerDefinitionmyCopiedVisualizerDefinition
 
std::vector
< DtVisualizerDefinition * > 
myCopiedVisDefs
 
std::vector< std::string > myListOfCopiedVisDefs
 
bool myAdjustDropDown
 
int myVisualizerIndex
 

Private Member Functions

 DtElementEditorLogic ()
 Default Constructor. More...
 
 DtElementEditorLogic (const DtElementEditorLogic &copy)
 Copy Constructor Not implemented. More...
 
DtElementEditorLogicoperator= (const DtElementEditorLogic &)
 Assignment Operator Not implemented. More...
 

Detailed Description

Logic class for the DtElementEditorWidget.

Constructor & Destructor Documentation

makVrv::DtElementEditorLogic::DtElementEditorLogic ( DtElementDefinitionTypeManager::ElementDefinitionType  type,
DtDe de,
DtElementEditorInterface iface,
DtPersistenceControlsInterface persistenceControls,
DtPage page = 0 
)

CTOR.

virtual makVrv::DtElementEditorLogic::~DtElementEditorLogic ( )
virtual

DTOR.

makVrv::DtElementEditorLogic::DtElementEditorLogic ( )
private

Default Constructor.

makVrv::DtElementEditorLogic::DtElementEditorLogic ( const DtElementEditorLogic copy)
private

Copy Constructor Not implemented.

Member Function Documentation

DtElementEditorLogic& makVrv::DtElementEditorLogic::operator= ( const DtElementEditorLogic )
private

Assignment Operator Not implemented.

void makVrv::DtElementEditorLogic::selectElement ( const DtUnicode elementName,
bool  valid 
)

Populate the visualizer definitions for a element definition.

Parameters
elementNameThe definition of the selected element.
validWhether the element is valid.
virtual void makVrv::DtElementEditorLogic::setElementRemoveAllowed ( const DtUnicode elementName)
virtual

Check if this element entity definition is being used by other systems (i.e.

entity type maps)

virtual void makVrv::DtElementEditorLogic::checkIfModified ( )
virtual

check if the element definitions have changed since the start up

void makVrv::DtElementEditorLogic::selectVisualizerDefinition ( int  index)
protected
void makVrv::DtElementEditorLogic::selectAttribute ( int  index,
const std::string &  attrName 
)
protected
void makVrv::DtElementEditorLogic::deselectAttribute ( int  index,
const std::string &  attrName 
)
protected
void makVrv::DtElementEditorLogic::refreshElementDefinitions ( )
protected

Populate the element definitions.

void makVrv::DtElementEditorLogic::refreshVisualizerDefinitionView ( )
protected
void makVrv::DtElementEditorLogic::clearElementSelection ( )
protected

Called to clear the element.

void makVrv::DtElementEditorLogic::addVisualizerDefinition ( )
protected
void makVrv::DtElementEditorLogic::removeVisualizerDefinition ( int  index)
protected
void makVrv::DtElementEditorLogic::deselectVisualizerDefinition ( int  index)
protected
void makVrv::DtElementEditorLogic::addElement ( const DtUnicode name)
protected
void makVrv::DtElementEditorLogic::removeElement ( )
protected
void makVrv::DtElementEditorLogic::renameElement ( const DtUnicode oldName,
const DtUnicode newName 
)
protected
void makVrv::DtElementEditorLogic::addAttributeRequested ( int  index)
protected
void makVrv::DtElementEditorLogic::removeAttribute ( int  index,
const std::string &  name 
)
protected
void makVrv::DtElementEditorLogic::removeLocalAttribute ( int  index,
const std::string &  name 
)
protected
void makVrv::DtElementEditorLogic::refreshAttribute ( const DtUnicode origin,
int  index,
const std::string &  name 
)
protected
void makVrv::DtElementEditorLogic::refreshModelSets ( )
protected
void makVrv::DtElementEditorLogic::refreshFileSaveTo ( )
protected

Fill the file location dropdown bar with all file name in directory.

void makVrv::DtElementEditorLogic::changeFileLocation ( )
protected

Changes the file location of the currently selected element to the file location currently displayed on the dropdown box.

void makVrv::DtElementEditorLogic::updateAttributeEditorInterface ( int  index,
const std::string &  name,
DtVisualizerAttributeEditorInterface iface 
)
protected
void makVrv::DtElementEditorLogic::changeModelSet ( int  index)
protected
void makVrv::DtElementEditorLogic::changeFileSaveTo ( int  index)
protected

Update file location dropdown box when new definition is selected.

void makVrv::DtElementEditorLogic::changeFileFilter ( )
protected

Filters out all definitions whose file names don't match the file name in the dropdown box.

virtual void makVrv::DtElementEditorLogic::on_import ( )
protectedvirtual

imports settings

virtual void makVrv::DtElementEditorLogic::on_restoreFactory ( )
protectedvirtual

restores factory settings

virtual void makVrv::DtElementEditorLogic::on_restoreStartup ( )
protectedvirtual

restores startup settings

virtual void makVrv::DtElementEditorLogic::on_export ( )
protectedvirtual

Starts export procedure by allowing user to select export file.

virtual void makVrv::DtElementEditorLogic::on_exportHier ( )
protectedvirtual

Starts export element definition hierarchy procedure by allowing user to select export file.

virtual void makVrv::DtElementEditorLogic::on_exportAll ( )
protectedvirtual

exports both hier and all leaf files

virtual void makVrv::DtElementEditorLogic::on_exportLeaves ( )
protectedvirtual

Starts export element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements)

virtual void makVrv::DtElementEditorLogic::on_exportSelectedLeaves ( )
protectedvirtual

Starts export selected element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements)

virtual void makVrv::DtElementEditorLogic::on_merge ( )
protectedvirtual

Starts merge procedure by allowing user to select merge file.

virtual void makVrv::DtElementEditorLogic::on_exportSelected ( )
protectedvirtual

Starts export preselected items procedure by allowing user to select export file.

virtual void makVrv::DtElementEditorLogic::on_importFilePathChosen ( const std::string &  filePath)
protectedvirtual

Replaces hierarchy with contents of file.

virtual void makVrv::DtElementEditorLogic::on_exportFilePathChosen ( const std::string &  filePath)
protectedvirtual

Saves hierarchy to file.

virtual void makVrv::DtElementEditorLogic::on_mergeFilePathChosen ( const std::string &  filePath)
protectedvirtual

Merges hierarchy from file.

virtual void makVrv::DtElementEditorLogic::on_exportSelectedFilePathChosen ( const std::string &  filePath)
protectedvirtual

Saves selected hierarchy to file.

virtual void makVrv::DtElementEditorLogic::on_exportHierFilePathChosen ( const std::string &  filePath)
protectedvirtual

Saves hierarchy (but not leaf elements) to file.

virtual void makVrv::DtElementEditorLogic::on_exportLeafFilePathChosen ( const std::string &  filePath)
protectedvirtual

Saves leaf element (but not hierarchy) to file.

virtual void makVrv::DtElementEditorLogic::on_exportSelectedLeafFilePathChosen ( const std::string &  filePath)
protectedvirtual

Saves Selected leaf element (but not hierarchy) to file.

virtual void makVrv::DtElementEditorLogic::on_saveDefaults ( )
protectedvirtual

Save the hierarchy and leaves to default location (usually appData/definitions/EntityElementDefinitions)

virtual void makVrv::DtElementEditorLogic::on_copyVisualizerDefinition ( )
protectedvirtual

Copies the currently selected visualizer def.

virtual void makVrv::DtElementEditorLogic::on_pasteVisualizerDefinition ( )
protectedvirtual

Pastes the currently saved visualizer def to the currently selected element.

virtual void makVrv::DtElementEditorLogic::on_clearVisualizerDefinitions ( )
protectedvirtual

Clears vector of all Visualizer Definitions currently stored.

virtual bool makVrv::DtElementEditorLogic::shouldDisableSave ( )
protectedvirtual

Should we disable the save button.

virtual void makVrv::DtElementEditorLogic::mapTypeToDirectoryPath ( DtElementDefinitionTypeManager::ElementDefinitionType  type)
protectedvirtual

map the ElementDefinitionType type to the correct folder path

virtual void makVrv::DtElementEditorLogic::slot_managerAboutToBeDeleted ( )
protectedvirtual

Called when the element definition manager this class represents is deleted.

This will set the backup in the persistent controls to NULL as the backup is deleted when the manager is deleted

virtual DtElementDefinitionManager& makVrv::DtElementEditorLogic::elementDefinitionManager ( )
protectedvirtual

Returns the element definition manager for the given manager type of this dialog.

Member Data Documentation

DtUnicode makVrv::DtElementEditorLogic::mySelectedElement
protected
unsigned int makVrv::DtElementEditorLogic::mySelectedModelSet
protected
unsigned int makVrv::DtElementEditorLogic::mySelectedFileSaveTo
protected
DtPage* makVrv::DtElementEditorLogic::myPage
protected
DtDe& makVrv::DtElementEditorLogic::myDe
protected
DtSignalConnectionManager makVrv::DtElementEditorLogic::myConnections
protected
DtSignalConnectionManager makVrv::DtElementEditorLogic::myManagerConnections
protected
DtElementDefinitionManager* makVrv::DtElementEditorLogic::myManager
protected
int makVrv::DtElementEditorLogic::myManagerType
protected
DtElementEditorInterface* makVrv::DtElementEditorLogic::myInterface
protected
DtPersistenceControlsInterface* makVrv::DtElementEditorLogic::myPersistenceControls
protected
std::string makVrv::DtElementEditorLogic::myDirectoryPath
protected
std::string makVrv::DtElementEditorLogic::pathofSelectedModel
protected
std::vector<std::string> makVrv::DtElementEditorLogic::myNewList
protected
std::vector<std::string> makVrv::DtElementEditorLogic::myVisualList
protected
DtVisualizerDefinition* makVrv::DtElementEditorLogic::myCopiedVisualizerDefinition
protected
std::vector<DtVisualizerDefinition*> makVrv::DtElementEditorLogic::myCopiedVisDefs
protected
std::vector<std::string> makVrv::DtElementEditorLogic::myListOfCopiedVisDefs
protected
bool makVrv::DtElementEditorLogic::myAdjustDropDown
protected
int makVrv::DtElementEditorLogic::myVisualizerIndex
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)