VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfVrvVisualModelEditor.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
14 
17 {
18 public:
20  DtVrfDefinitionPersistenceWidget(makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
21 
22 protected:
23  virtual int activateRememberToExport(bool& dontShowAagin) override;
24 };
25 
27 {
28 public:
30 
31  virtual makVrv::DtDefinitionPersistenceWidget* create(QWidget* parent = nullptr, Qt::WindowFlags f = 0) override;
32 };
33 
35 {
36 public:
37 
41  makVrv::DtPage* page = 0);
42 
44  virtual ~DtVrfElementEditorLogic() override;
45 
46 protected:
47  virtual void addVisualizerDefinition() override;
48  virtual void removeVisualizerDefinition(const std::string& uuidString) override;
49 
50  virtual void addElement(const makVrv::DtUnicode& name) override;
51  virtual void removeElement() override;
52  virtual void renameElement(const makVrv::DtUnicode& oldName, const makVrv::DtUnicode& newName) override;
53 
54  virtual void addAttributeRequested(int index, const std::string& uuidString) override;
55  virtual void removeAttribute(const std::string& uuidString, const std::string& name) override;
56  virtual void removeLocalAttribute(const std::string& uuidString, const std::string& name) override;
57  virtual void changeAttribute(const makVrv::DtUnicode& origin, int index, const std::string& uuidString, const std::string& name) override;
58  virtual void visualsModified();
59 };
60 
62 {
63 public:
66 
69  makVrv::DtPage* page = 0) override;
70 };
71 
Definition: DtElementEditorInterface.h:22
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
The DtElementEditorLogicCreator class presents a factory creator for the DtElementEditorLogic. To create a subclass of the DtElementEditorLogic, register an instance of the DtElementEditorLogicCreator and return your subclass in the create method.
Definition: DtElementEditorLogic.h:284
virtual void removeLocalAttribute(const std::string &uuidString, const std::string &name)
Slot called by elementEditorWidget to remove an attribute from the specified visualizer definition (v...
voidpf uLong int origin
Definition: ioapi.h:42
This subclass will specifically allow an item to be removed via right click.
Definition: vrfVrvVisualModelEditor.h:16
The DtDefinitionPersistenceWidgetCreator class presents a factory creator for the DtDefinitionPersist...
Definition: DtDefinitionPersistenceWidget.h:117
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
unsigned int ElementDefinitionType
Identifier for a type of element definition.
Definition: DtElementDefinitionManager.h:567
virtual void addVisualizerDefinition()
Slot called by elementEditorWidget to add a visualizer definition.
Definition: vrfVrvVisualModelEditor.h:34
virtual void removeAttribute(const std::string &uuidString, const std::string &name)
Slot called by elementEditorWidget to remove an attribute from the specified visualizer definition (v...
virtual void renameElement(const DtUnicode &oldName, const DtUnicode &newName)
virtual void changeAttribute(const DtUnicode &origin, int index, const std::string &uuidString, const std::string &name)
Slot called by elementEditorWidget to change an attribute value.
A widget that displays a persistence GUI for element definitions Operations presented are restore fro...
Logic class for the DtElementEditorWidget.
Definition: DtElementEditorLogic.h:34
This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the D...
Definition: DtDefinitionPersistenceWidget.h:26
virtual void addElement(const DtUnicode &name)
Slot called by elementEditorWidget to add an element.
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:51
Definition: vrfVrvVisualModelEditor.h:26
virtual DtDefinitionPersistenceWidget * create(QWidget *parent=nullptr, Qt::WindowFlags f=0)
Definition: vrfVrvVisualModelEditor.h:61
virtual void removeVisualizerDefinition(const std::string &uuidString)
Slot called by elementEditorWidget to remove a visualizer definition.
virtual void addAttributeRequested(int index, const std::string &uuidString)
Slot called by elementEditorWidget to add an attribute.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
virtual void removeElement()
Slot called by elementEditorWidget to remove an element.
virtual int activateRememberToExport(bool &dontShowAagin)
Remind user to export (usually prompting on page exit) with a checkbox allow user to not show it agai...
virtual DtElementEditorLogic * create(DtElementDefinitionTypeManager::ElementDefinitionType type, DtElementEditorInterface *iface, DtPersistenceControlsInterface *persistenceControls, DtPage *page=0)
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)