Logic class for the DtElementEditorWidget.
|
| void | selectVisualizerDefinition (int index) |
| |
| void | selectAttribute (int index, const std::string &attrName) |
| |
| void | deselectAttribute (int index, const std::string &attrName) |
| |
| void | refreshElementDefinitions () |
| |
| void | refreshVisualizerDefinitionView () |
| |
| void | clearElementSelection () |
| |
| void | setupModifiedEntitiesDialog () |
| |
| void | runThroughChildren (DtElementDefinitionNew *elem, std::map< std::string, std::string > &names) |
| |
| virtual void | addVisualizerDefinition () |
| |
| virtual void | removeVisualizerDefinition (int index) |
| |
| virtual void | deselectVisualizerDefinition (int index) |
| |
| virtual void | addElement (const DtUnicode &name) |
| |
| virtual void | removeElement () |
| |
| virtual void | renameElement (const DtUnicode &oldName, const DtUnicode &newName) |
| |
| virtual void | addAttributeRequested (int index) |
| |
| virtual void | removeAttribute (int index, const std::string &name) |
| |
| virtual void | removeLocalAttribute (int index, const std::string &name) |
| |
| virtual void | refreshAttribute (const DtUnicode &origin, int index, const std::string &name) |
| |
| virtual void | refreshModelSets () |
| |
| virtual void | refreshFileSaveTo () |
| |
| void | changeFileLocation () |
| |
| void | updateAttributeEditorInterface (int index, const std::string &name, DtVisualizerAttributeEditorInterface *iface) |
| |
| void | changeModelSet (int index) |
| |
| void | changeFileSaveTo (int index) |
| |
| void | changeFileFilter () |
| |
| virtual void | on_import () |
| |
| virtual void | on_restoreFactory () |
| |
| virtual void | on_restoreStartup () |
| |
| virtual void | on_export () |
| |
| virtual void | on_exportHier () |
| |
| virtual void | on_exportAll () |
| |
| virtual void | on_exportLeaves () |
| |
| virtual void | on_exportSelectedLeaves () |
| |
| 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_mergeFilePathChosen (const std::string &filePath) |
| |
| virtual void | on_reloadLeafFiles (const std::string &filePath) |
| |
| virtual void | on_exportSelectedFilePathChosen (const std::string &filePath) |
| |
| virtual void | on_exportHierFilePathChosen (const std::string &filePath) |
| |
| virtual void | on_exportLeafFilePathChosen (const std::string &filePath) |
| |
| virtual void | on_exportSelectedLeafFilePathChosen (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 () |
| |
| virtual makVrv::DtElementEditorLogic::~DtElementEditorLogic |
( |
| ) |
|
|
virtual |
| makVrv::DtElementEditorLogic::DtElementEditorLogic |
( |
| ) |
|
|
private |
Copy Constructor Not implemented.
Assignment Operator Not implemented.
| void makVrv::DtElementEditorLogic::selectElement |
( |
const DtUnicode & |
elementName, |
|
|
bool |
valid |
|
) |
| |
Populate the visualizer definitions for a element definition.
- Parameters
-
| elementName | The definition of the selected element. |
| valid | Whether 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::setupModifiedEntitiesDialog |
( |
| ) |
|
|
protected |
Create map of modified entities, and open a Message Box displaying the list of modified entities.
| void makVrv::DtElementEditorLogic::runThroughChildren |
( |
DtElementDefinitionNew * |
elem, |
|
|
std::map< std::string, std::string > & |
names |
|
) |
| |
|
protected |
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 |
| virtual void makVrv::DtElementEditorLogic::removeVisualizerDefinition |
( |
int |
index | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::deselectVisualizerDefinition |
( |
int |
index | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::addElement |
( |
const DtUnicode & |
name | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::removeElement |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::renameElement |
( |
const DtUnicode & |
oldName, |
|
|
const DtUnicode & |
newName |
|
) |
| |
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::addAttributeRequested |
( |
int |
index | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::removeAttribute |
( |
int |
index, |
|
|
const std::string & |
name |
|
) |
| |
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::removeLocalAttribute |
( |
int |
index, |
|
|
const std::string & |
name |
|
) |
| |
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::refreshAttribute |
( |
const DtUnicode & |
origin, |
|
|
int |
index, |
|
|
const std::string & |
name |
|
) |
| |
|
protectedvirtual |
| virtual void makVrv::DtElementEditorLogic::refreshModelSets |
( |
| ) |
|
|
protectedvirtual |
| 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.
| 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 |
| 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_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 |
| virtual void makVrv::DtElementEditorLogic::on_mergeFilePathChosen |
( |
const std::string & |
filePath | ) |
|
|
protectedvirtual |
Merges hierarchy from file.
| virtual void makVrv::DtElementEditorLogic::on_reloadLeafFiles |
( |
const std::string & |
filePath | ) |
|
|
protectedvirtual |
Reloads all hier and leaf files in editor.
| 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/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.
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.
Returns the element definition manager for the given manager type of this dialog.
| 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 |
| int makVrv::DtElementEditorLogic::myManagerType |
|
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 |
| 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: