VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiSingleSystemElement.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 
16 
17 class QComboBox;
19 class QAbstractButton;
20 class QGroupBox;
21 
25 {
26  Q_OBJECT
27 
28 public:
29 
32 
34  virtual ~DtUiSingleSystemElement() override;
35 
37 
38  virtual void setEnabled(bool) override;
39 
40 protected:
41  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
42 
43  //virtual QWidget* createControls(QWidget*);
44  virtual void createControls(QWidget* parent) override;
45 
46  virtual void elementChanged() override;
47 
48  virtual void findAvailableSystems() override;
49 
50  virtual void processUiEvent(const DtUiElementEvent&) override;
51  virtual DtRwVariableBindings* systemDescriptorFrom(DtReaderWriter* parentRw, DtFilename* retFilename = 0) const;
52 
53  virtual bool isModified() const override;
54  virtual void updateEnableState();
55 
57  virtual DtFilename getSystemFilename() const override;
58 
59 protected slots:
60  virtual void openPropertyEditWindow() override;
61  virtual void dialogClosed();
62  virtual void onRevertButtonClicked();
63 
64 public:
67  QAbstractButton* myPropertiesButton;
68  QAbstractButton* myLaunchOpdEditor;
69  QHBoxLayout* myButtonLayout;
70  QAbstractButton* myRevertButton;
71 
72 protected:
73  std::vector<DtRwVariableBindings*> mySystemDescriptors;
74  std::vector<DtRwVariableBindings*> myBackupSystemDescriptors;
77 
79 
82 };
bool myCurrentlyEnabled
Definition: uiSingleSystemElement.h:80
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:244
Definition: readerWriter.h:85
virtual void findAvailableSystems()
Fills in myAvailableSystems with the systems that match myCategory and the state repository type...
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:198
std::shared_ptr< DtSystemPropertyEditDialog > DtSystemPropertyEditDialogShdPtr
Definition: systemPropertyEditDialog.h:89
virtual void elementChanged()
virtual DtFilename getSystemFilename() const
Gets the system filename to edit.
QComboBox * myCombo
Definition: uiSingleSystemElement.h:65
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:28
Reader/Writer class which specifies the contents of a DtComponentSystem. This lists the sensors...
Definition: componentSystemDefinition.h:31
Element that defines a single system. Define none-selected-text property (string) to display the text...
Definition: uiSingleSystemElement.h:24
QAbstractButton * myLaunchOpdEditor
Definition: uiSingleSystemElement.h:68
std::vector< DtRwVariableBindings * > mySystemDescriptors
Definition: uiSingleSystemElement.h:73
bool myOwnsSystemDescriptor
Definition: uiSingleSystemElement.h:76
virtual bool isModified() const
const DtComponentSystemDefinition * myCurrentSystemDef
Definition: uiSingleSystemElement.h:78
virtual void createControls(QWidget *parent) override
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw) override
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
DtRwVariableBindings * myBackupSystemDescriptor
Definition: uiSingleSystemElement.h:81
virtual void openPropertyEditWindow()
Descriptor for a DtComponentSystem. Specified a system being added to an entity. This does not actual...
Definition: componentSystemDescriptor.h:25
QAbstractButton * myRevertButton
Definition: uiSingleSystemElement.h:70
QAbstractButton * myPropertiesButton
Definition: uiSingleSystemElement.h:67
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
QString myNoneSelectedText
Definition: uiSingleSystemElement.h:75
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
QHBoxLayout * myButtonLayout
Definition: uiSingleSystemElement.h:69
Definition: uiSystemElement.h:25
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
std::vector< DtRwVariableBindings * > myBackupSystemDescriptors
Definition: uiSingleSystemElement.h:74
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:193
DtSystemPropertyEditDialogShdPtr mySystemPropertyDialog
Definition: uiSingleSystemElement.h:66

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)