VR-Forces 4.2 Class Documentation
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 
12 #include <vrvUtil/DtVirtualBaseClass.h>
13 #include "vrfutil/rwList.h"
14 #include <vlutil/vlString.h>
16 #include <QtCore/QString>
17 
18 #include <QMap>
19 #include <QVariant>
20 #include <set>
21 
22 class DtUiForParameter;
23 class DtModelSetEntry;
24 class QWidget;
25 class DtUiElementEvent;
26 
28 {
29  Q_OBJECT
30 
31 public:
32 
34  DtBehaviorUi(makVrv::DtDe&);
35 
37  virtual ~DtBehaviorUi();
38 
40  virtual bool loadUiFilesFrom(const std::string&);
41 
43  virtual QWidget* createControlsFor(const std::set<makVrf::DtEntityMapperKey>&);
44 
45  virtual bool isModified() const;
46 
47  virtual void setElementChangedCallbackFunction(DtElementChangedCallbackFcn);
48 
49  virtual void clearContents();
50 
51  DtUiForParameter* displaying()
52  {
53  return myDisplaying;
54  }
55 
56 protected:
57  virtual void emptyList();
58 
59 signals:
60  void uiEvent(const DtUiElementEvent&);
61 
62 public slots:
63  virtual void sendEvent(const DtUiElementEvent&);
64 
65 protected:
66  makVrv::DtDe& myDe;
68 
69  struct UiData
70  {
71  std::string uiFile;
73  };
74 
75  typedef std::map<std::string, UiData> UisForParameters;
76 
78 
80 
82 };
83 
84 
86 class DT_DLL_entityeditorimpl DtBehaviorUiCreator : public makVrv::DtVirtualBaseClass
87 {
88 public:
90  DtBehaviorUiCreator(makVrv::DtDe&);
91 
93  virtual ~DtBehaviorUiCreator();
94 
96  static DtBehaviorUiCreator& instance(makVrv::DtDe&);
97 
99  static void registerInstance(makVrv::DtDe&, DtBehaviorUiCreator*);
100 
102  virtual DtBehaviorUi* create();
103 
104 protected:
105  makVrv::DtDe& myDe;
106 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)