VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiStringElement.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 #include <readerWriter/rwInt.h>
14 
16 {
17 public:
18 
21 
23  virtual ~DtUiStringElement();
24 
26 
28  virtual void setValue(const QString&);
29  virtual QString value() const;
30 
31  virtual void elementChanged();
32 
33 protected:
34  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
35 
37  virtual void createControls(QWidget* widget);
38 
39  virtual DtString sourceValueToDisplayLabel(const DtString& source);
40  virtual DtString displayLabelToSourceValue(const DtString& display);
41 
42 protected:
45 
46  typedef std::map<DtString, DtString> DisplayLabelToSourceValueMap;
48 };
std::map< DtString, DtString > DisplayLabelToSourceValueMap
Definition: uiStringElement.h:46
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:185
virtual void elementChanged()
DisplayLabelToSourceValueMap myDisplayToSourceValues
Definition: uiStringElement.h:47
For validation, add lower_bound and upper_bound properties to set a lower and upper bound...
Definition: uiMapAwareElement.h:18
const char * source
Definition: lz4.h:442
Definition: uiStringElement.h:15
bool myIsLineEdit
True if this string element uses a line edit, false if combo box.
Definition: uiStringElement.h:44
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)