VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
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 
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  virtual void emptyList();
57 
58 signals:
59  void uiEvent(const DtUiElementEvent&);
60 
61 public slots:
62  virtual void sendEvent(const DtUiElementEvent&);
63 
64 protected:
67 
68  struct UiData
69  {
70  std::string uiFile;
72  };
73 
74  typedef std::map<std::string, UiData> UisForParameters;
75 
77 
79 };
80 
81 
84 {
85 public:
88 
90  virtual ~DtBehaviorUiCreator();
91 
93  static DtBehaviorUiCreator& instance(makVrv::DtDe&);
94 
96  static void registerInstance(makVrv::DtDe&, DtBehaviorUiCreator*);
97 
99  virtual DtBehaviorUi* create();
100 
101 protected:
103 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)