VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
systemPropertyEditDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <QtWidgets/QDialog>
16 #include <vlutil/vlSmartPointers.h>
18 #include "ui_systemPropertyEditDialogUi.h"
19 
22 class QPushButton;
23 class DtUiElement;
24 class DtUiElementEvent;
25 
30 
32 {
33  Q_OBJECT
34 public:
35  DtSystemPropertyEditDialog(makVrv::DtDe&, QWidget* parent, const std::vector<DtObjectType>& objectTypes, Qt::WindowFlags f = Qt::Tool);
36 
37  virtual ~DtSystemPropertyEditDialog();
38 
39  virtual void setSystem(const std::vector<DtRwVariableBindings*>& descriptor,
40  const DtComponentSystemDefinition* definition);
41 
42  virtual void createParameterFrame();
43 
44  virtual void processUiEvent(const DtUiElementEvent&);
45 
46  virtual void setEnabled(bool);
47 
48  virtual void accept();
49  virtual void reject();
50 
51 public:
52  virtual int exec();
53  virtual void execModeless(DtUiElement*);
54 
55 protected:
56  virtual void restoreFromBackup();
57  virtual void cleanBackups();
58  virtual void createBackups();
59  virtual void closeEvent(QCloseEvent* e);
60 
61 protected slots:
62  virtual void uiEventSignaled(const DtUiElementEvent&);
63  virtual void uiElementModified();
64 
65 signals:
66  void uiEvent(const DtUiElementEvent&);
67 
68 public:
69  Ui::DtSystemPropertyEditDialogUi myUiImpl;
70  std::list<DtUiElement*> mySubElements;
72 
74  {
75  return mySystemDefinition;
76  }
77 
78 protected:
79  std::vector<DtRwVariableBindings*> mySystemDescriptors;
80  std::vector<DtRwVariableBindings*> myBackupSystemDescriptors;
82  bool myModeless;
83 
85  bool myEnabled;
86  std::vector<DtObjectType> myObjectTypes;
87 };
88 
89 typedef DtBoost::shared_ptr<DtSystemPropertyEditDialog> DtSystemPropertyEditDialogShdPtr;
DtUiElement * myElement
Definition: systemPropertyEditDialog.h:71
std::vector< DtRwVariableBindings * > myBackupSystemDescriptors
Definition: systemPropertyEditDialog.h:80
std::list< DtUiElement * > mySubElements
Definition: systemPropertyEditDialog.h:70
Q_DECLARE_METATYPE(DtArticulatedPartEditDialogShdPtr)
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
Dialog which allows the user to view and edit the parameters for a system. Which parameters are edita...
Definition: systemPropertyEditDialog.h:31
makVrv::DtDe & myDe
Definition: systemPropertyEditDialog.h:84
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
const DtComponentSystemDefinition * systemDefinition()
Definition: systemPropertyEditDialog.h:73
Ui::DtSystemPropertyEditDialogUi myUiImpl
Definition: systemPropertyEditDialog.h:69
std::vector< DtObjectType > myObjectTypes
Definition: systemPropertyEditDialog.h:86
bool myEnabled
Definition: systemPropertyEditDialog.h:85
bool myModeless
Definition: systemPropertyEditDialog.h:82
DtBoost::shared_ptr< DtSystemPropertyEditDialog > DtSystemPropertyEditDialogShdPtr
Definition: systemPropertyEditDialog.h:89
const DtComponentSystemDefinition * mySystemDefinition
Definition: systemPropertyEditDialog.h:81
std::vector< DtRwVariableBindings * > mySystemDescriptors
Definition: systemPropertyEditDialog.h:79
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
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:180

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)