VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiMapAwareElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class QComboBox;
15 class DtRwPropertiesMap;
16 
19 {
20  Q_OBJECT
21 
22 public:
23 
26 
28  virtual ~DtUiMapAwareElement();
29 
30  virtual void init(QWidget* sourceWidget, QWidget* label,
31  const std::vector<DtReaderWriter*>& sourceData, const std::vector<DtReaderWriter*>& backup, DtElementChangedCallbackFcn f);
32  virtual void init(QWidget* sourceWidget, QWidget* label,
34 
35 protected:
36  virtual void connectedTo(QObject*);
37 
38  virtual void setupReaderWriterFromMapCombo(QComboBox*);
39 
40  virtual void setupReaderWriterFromMapKey(const DtString& key, const std::string& elementContainer);
41  virtual void setupReaderWriterFromMapKey(const DtString& key, const std::string& elementContainer,
42  std::vector<DtReaderWriter*>& vars, std::vector<DtReaderWriter*>& backupVars);
43 
44  virtual DtString variableNameFromParameters(const DtRwPropertiesMap* mapToCheck, const std::string& prototypeName, const std::string& variableName,
45  const DtString& mapKey) const;
46 
47  virtual void setupReaderWriterFromVariable(const std::string& elementContainer);
48 
49 protected slots:
50  virtual void setupMapValuesFromKey();
51 };
virtual void init(QWidget *widget, QWidget *label, DtReaderWriter *originalData, DtReaderWriter *backupData, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, _1))
Definition: readerWriter.h:85
boost::function< void(DtUiElement *)> DtElementChangedCallbackFcn
Definition: uiElement.h:43
For validation, add lower_bound and upper_bound properties to set a lower and upper bound...
Definition: uiMapAwareElement.h:18
Acts as a map for properties. A map is a definition that has a key and a prototype, with values being the key and prototype pair. The key can only be a string (DtRwStringType), int (DtRwIntType, DtRwInt8Type, DtRwInt16Type, DtRwInt32Type), or real (DtRwRealType, DtRwReal32Type, DtRwReal64Type).
Definition: rwPropertiesMap.h:41
virtual void connectedTo(QObject *)
Called when this item is connected to any signal emitted by the given item.
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)