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 | Protected Attributes
makVrv::DtElementEditorLogic Class Reference

Logic class for the DtElementEditorWidget.

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

Public Member Functions

 DtElementEditorLogic (DtElementDefinitionTypeManager::ElementDefinitionType type, DtDe &de, DtElementEditorInterface *iface, DtPersistenceControlsInterface *persistenceControls, DtPage *page=0)
 
virtual ~DtElementEditorLogic ()
 
 DtElementEditorLogic ()=delete
 
 DtElementEditorLogic (const DtElementEditorLogic &copy)=delete
 
DtElementEditorLogicoperator= (const DtElementEditorLogic &)=delete
 
virtual void selectElement (const DtUnicode &elementName, bool valid)
 
virtual void setElementRemoveAllowed (const DtUnicode &elementName)
 
virtual void checkIfModified ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Protected Member Functions

virtual void selectVisualizerDefinition (const std::string &uuidString)
 
virtual void selectAttribute (int index, const std::string &uuidString, const std::string &attrName)
 
virtual void deselectAttribute (int index, const std::string &attrName)
 
virtual void refreshElementDefinitions ()
 
virtual void refreshVisualizerDefinitionView ()
 
virtual void clearElementSelection ()
 
virtual void setupModifiedEntitiesDialog ()
 
virtual void runThroughChildren (DtElementDefinition *elem, std::map< std::string, std::string > &names)
 
virtual void addVisualizerDefinition ()
 
virtual void removeVisualizerDefinition (const std::string &uuidString)
 
virtual void deselectVisualizerDefinition ()
 
virtual void addElement (const DtUnicode &name)
 
virtual void removeElement ()
 
virtual void renameElement (const DtUnicode &oldName, const DtUnicode &newName)
 
virtual void addAttributeRequested (int index, const std::string &uuidString)
 
virtual void removeAttribute (const std::string &uuidString, const std::string &name)
 
virtual void removeLocalAttribute (const std::string &uuidString, const std::string &name)
 
virtual void changeAttribute (const DtUnicode &origin, int index, const std::string &uuidString, const std::string &name)
 
virtual void cancelAttributeChange (int defIndex, const std::string &name)
 
virtual bool visualizerDefinitionInherited (DtElementDefinition *, DtVisualizerDefinition *) const
 
virtual void refreshModelSets ()
 
virtual void refreshFileSaveTo ()
 
void changeFileLocation ()
 
virtual void reloadFile (const std::string &filePath)
 
virtual void updateAttributeEditorInterface (int index, const std::string &uuidString, const std::string &name, DtVisualizerAttributeEditorInterface *iface)
 
virtual void changeModelSet (int index)
 
virtual void changeFileSaveTo (int index)
 
virtual void changeFileFilter ()
 
virtual void on_import ()
 
virtual void on_restoreFactory ()
 
virtual void on_restoreStartup ()
 
virtual void on_saveAll ()
 
virtual void on_saveAllHier ()
 
virtual void on_saveAllLeaves ()
 
virtual void on_exportSelectedNode ()
 
virtual void on_reloadFiles ()
 
virtual void on_merge ()
 
virtual void on_exportSelected ()
 
virtual void on_importFilePathChosen (const std::string &filePath)
 
virtual void on_exportFilePathChosen (const std::string &filePath)
 
virtual void on_leafFilePathChosen (const std::string &filePath)
 
virtual void on_mergeFilePathChosen (const std::string &filePath)
 
virtual void on_exportSelectedFilePathChosen (const std::string &filePath)
 
virtual void on_exportSelectedNodeFilePathChosen (const std::string &filePath)
 
virtual void on_saveDefaults ()
 
virtual void on_copyVisualizerDefinition ()
 
virtual void on_pasteAndReplaceVisualizerDefinition ()
 
virtual void on_pasteAndAddVisualizerDefinition ()
 
virtual void on_clearVisualizerDefinitions ()
 
virtual bool shouldDisableSave ()
 
virtual void mapTypeToDirectoryPath (DtElementDefinitionTypeManager::ElementDefinitionType type)
 
virtual void slot_managerAboutToBeDeleted ()
 
virtual void slot_currentStyleSheetsPathAboutToBeChanged ()
 
virtual void slot_postCurrentStyleSheetsPathChanged ()
 
virtual
DtElementDefinitionManager
elementDefinitionManager ()
 

Protected Attributes

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

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 ( )
delete

Default Constructor.

makVrv::DtElementEditorLogic::DtElementEditorLogic ( const DtElementEditorLogic copy)
delete

Copy Constructor Not implemented.

Member Function Documentation

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

Assignment Operator Not implemented.

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

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

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

Populate the element definitions.

virtual void makVrv::DtElementEditorLogic::refreshVisualizerDefinitionView ( )
protectedvirtual
virtual void makVrv::DtElementEditorLogic::clearElementSelection ( )
protectedvirtual

Called to clear the element.

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

Create map of modified entities, and open a Message Box displaying the list of modified entities.

virtual void makVrv::DtElementEditorLogic::runThroughChildren ( DtElementDefinition elem,
std::map< std::string, std::string > &  names 
)
protectedvirtual

Runs recursively through incoming elem defs and checks if they have children If so, run again through each child. If not, add child to modified names map.

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

Slot called by elementEditorWidget to add a visualizer definition.

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::removeVisualizerDefinition ( const std::string &  uuidString)
protectedvirtual

Slot called by elementEditorWidget to remove a visualizer definition.

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::deselectVisualizerDefinition ( )
protectedvirtual
virtual void makVrv::DtElementEditorLogic::addElement ( const DtUnicode name)
protectedvirtual

Slot called by elementEditorWidget to add an element.

Reimplemented in DtVrfElementEditorLogic.

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

Slot called by elementEditorWidget to remove an element.

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::renameElement ( const DtUnicode oldName,
const DtUnicode newName 
)
protectedvirtual

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::addAttributeRequested ( int  index,
const std::string &  uuidString 
)
protectedvirtual

Slot called by elementEditorWidget to add an attribute.

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::removeAttribute ( const std::string &  uuidString,
const std::string &  name 
)
protectedvirtual

Slot called by elementEditorWidget to remove an attribute from the specified visualizer definition (via the uuidString) and all ancestors.

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::removeLocalAttribute ( const std::string &  uuidString,
const std::string &  name 
)
protectedvirtual

Slot called by elementEditorWidget to remove an attribute from the specified visualizer definition (via the uuidString)

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::changeAttribute ( const DtUnicode origin,
int  index,
const std::string &  uuidString,
const std::string &  name 
)
protectedvirtual

Slot called by elementEditorWidget to change an attribute value.

Reimplemented in DtVrfElementEditorLogic.

virtual void makVrv::DtElementEditorLogic::cancelAttributeChange ( int  defIndex,
const std::string &  name 
)
protectedvirtual

Slot called by elementEditorWidget when a user cancels out of the attribute editor.

virtual bool makVrv::DtElementEditorLogic::visualizerDefinitionInherited ( DtElementDefinition ,
DtVisualizerDefinition  
) const
protectedvirtual
virtual void makVrv::DtElementEditorLogic::refreshModelSets ( )
protectedvirtual

Update the widget definitions list when the user changes the model set in view.

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

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.

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

Reloads file from specified path.

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

Update file location dropdown box when new definition is selected.

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

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_saveAll ( )
protectedvirtual

Starts save of element definition hierarchy and leaf files to their current filenames Equivalent to calling on_saveAllHier and on_saveAllLeaves.

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

Starts save of element definition hierarchy files to their current filenames.

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

Starts save of element definition leaf files to their current filenames.

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

Starts export selected element definition leaf or hier node by allowing user to select export file.

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

Adjusts what and how many files will be reloaded.

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_leafFilePathChosen ( const std::string &  filePath)
protectedvirtual

Sets a new leaf element definition's filename. Called by signal from a queryPath dialog.

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

Exports a node to a .elem file.

virtual void makVrv::DtElementEditorLogic::on_exportSelectedNodeFilePathChosen ( 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/Entity/)

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

Copies the currently selected visualizer def.

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

Pastes the currently saved visualizer def to the currently selected element, replacing a matching vis def if one exists.

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

Pastes the currently saved visualizer def to the currently selected element, localizing its attributes.

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 void makVrv::DtElementEditorLogic::slot_currentStyleSheetsPathAboutToBeChanged ( )
protectedvirtual

Invoked when the application stylesheets are about to change. This function is used to invalidate text colors of the widget being managed by this logic class.

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

Invoked when the application stylesheets have been changed. This function is used refresh everything so that new text colors are used.

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
DtModelSetId 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::myPathofSelectedModel
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
std::string makVrv::DtElementEditorLogic::mySelectedVisualizerUuid
protected
DtVisualizerAttribute* makVrv::DtElementEditorLogic::myEditAttribute
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)