VR-Forces 5.0.2 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();
35 
37 
38  virtual void setEnabled(bool);
39 
40 protected:
41  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
42 
43  //virtual QWidget* createControls(QWidget*);
44  virtual void createControls(QWidget* parent);
45 
46  virtual void elementChanged();
47 
48  virtual void findAvailableSystems();
49 
50  virtual void processUiEvent(const DtUiElementEvent&);
51  virtual DtRwVariableBindings* systemDescriptorFrom(DtReaderWriter* parentRw, DtFilename* retFilename = 0) const;
52 
53  virtual bool isModified() const;
54  virtual void updateEnableState();
55 
57  virtual DtFilename getSystemFilename() const;
58 
59 protected slots:
60  virtual void openPropertyEditWindow();
61  virtual void dialogClosed();
62 
63 public:
66  QAbstractButton* myPropertiesButton;
67  QAbstractButton* myLaunchOpdEditor;
68  QHBoxLayout* myButtonLayout;
69 
70 protected:
71  std::vector<DtRwVariableBindings*> mySystemDescriptors;
72  std::vector<DtRwVariableBindings*> myBackupSystemDescriptors;
75 
77 
80 };
bool myCurrentlyEnabled
Definition: uiSingleSystemElement.h:78
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:231
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:185
virtual void elementChanged()
virtual DtFilename getSystemFilename() const
Gets the system filename to edit.
QComboBox * myCombo
Definition: uiSingleSystemElement.h:64
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
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:67
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
std::vector< DtRwVariableBindings * > mySystemDescriptors
Definition: uiSingleSystemElement.h:71
bool myOwnsSystemDescriptor
Definition: uiSingleSystemElement.h:74
virtual bool isModified() const
const DtComponentSystemDefinition * myCurrentSystemDef
Definition: uiSingleSystemElement.h:76
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
DtRwVariableBindings * myBackupSystemDescriptor
Definition: uiSingleSystemElement.h:79
virtual void openPropertyEditWindow()
Descriptor for a DtComponentSystem. Specified a system being added to an entity. This does not actual...
Definition: componentSystemDescriptor.h:23
DtBoost::shared_ptr< DtSystemPropertyEditDialog > DtSystemPropertyEditDialogShdPtr
Definition: systemPropertyEditDialog.h:89
QAbstractButton * myPropertiesButton
Definition: uiSingleSystemElement.h:66
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:73
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
QHBoxLayout * myButtonLayout
Definition: uiSingleSystemElement.h:68
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
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:72
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:180
DtSystemPropertyEditDialogShdPtr mySystemPropertyDialog
Definition: uiSingleSystemElement.h:65

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)