VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
behaviorUi.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
10 #if !defined(Q_MOC_RUN)
14 #include <readerWriter/rwList.h>
15 #include <vlutil/vlString.h>
17 #endif
18 
19 #include <QtCore/QString>
20 #include <QMap>
21 #include <QVariant>
22 #include <set>
23 
24 class DtUiForParameter;
25 class DtModelSetEntry;
26 class QWidget;
27 class DtUiElementEvent;
29 
31 {
32  Q_OBJECT
33 
34 public:
35 
38 
40  virtual ~DtBehaviorUi();
41 
43  virtual bool loadUiFilesFrom(const std::string&);
44 
46  virtual QWidget* createControlsFor(const std::set<makVrf::DtEntityMapperKey>&);
47  virtual QWidget* createControlsFor(const std::vector<DtComponentSystemDefinition*>&);
48 
49  virtual bool isModified() const;
50 
51  virtual void setElementChangedCallbackFunction(DtElementChangedCallbackFcn);
52 
53  virtual void clearContents();
54 
56  {
57  return myDisplaying;
58  }
59 
60  virtual void emptyList();
61 
62 signals:
63  void uiEvent(const DtUiElementEvent&);
64 
65 public slots:
66  virtual void sendEvent(const DtUiElementEvent&);
67 
68 protected:
71 
72  struct UiData
73  {
74  std::string uiFile;
76  };
77 
78  typedef std::map<std::string, UiData> UisForParameters;
79 
81 
83 };
84 
85 
88 {
89 public:
92 
94  virtual ~DtBehaviorUiCreator();
95 
97  static DtBehaviorUiCreator& instance(makVrv::DtDe&);
98 
100  static void registerInstance(makVrv::DtDe&, DtBehaviorUiCreator*);
101 
103  virtual DtBehaviorUi* create();
104 
105 protected:
107 };
Definition: behaviorUi.h:30
DtElementChangedCallbackFcn myElementChangedCallback
Definition: behaviorUi.h:70
DtUiForParameter * uiForParameter
Definition: behaviorUi.h:75
Creator for the canvas.
Definition: behaviorUi.h:87
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
UisForParameters myUis
Definition: behaviorUi.h:80
Definition: uiForParameter.h:27
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
Definition: modelSetEntry.h:34
Definition: behaviorUi.h:72
Contains makVrv::DtVirtualBaseClass class.
boost::function< void(DtUiElement *)> DtElementChangedCallbackFcn
Definition: uiElement.h:43
std::string uiFile
Definition: behaviorUi.h:74
makVrv::DtDe & myDe
Definition: behaviorUi.h:106
DtUiForParameter * myDisplaying
Definition: behaviorUi.h:82
std::map< std::string, UiData > UisForParameters
Definition: behaviorUi.h:78
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
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:70
DtUiForParameter * displaying()
Definition: behaviorUi.h:55
makVrv::DtDe & myDe
Definition: behaviorUi.h:69
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)