VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtUiStringElement Class Reference
Inheritance diagram for DtUiStringElement:
Inheritance graph
[legend]

Public Member Functions

 DtUiStringElement (makVrv::DtDe &)
 
virtual ~DtUiStringElement () override
 
virtual void setValue (const QString &)
 
virtual QString value () const
 
virtual void elementChanged () override
 
- Public Member Functions inherited from DtUiMapAwareElement
 DtUiMapAwareElement (makVrv::DtDe &)
 
virtual ~DtUiMapAwareElement () override
 
virtual void init (QWidget *sourceWidget, QWidget *label, const std::vector< DtReaderWriter * > &sourceData, const std::vector< DtReaderWriter * > &backup, DtElementChangedCallbackFcn f) override
 
virtual void init (QWidget *sourceWidget, QWidget *label, DtReaderWriter *sourceData, DtReaderWriter *backup, DtElementChangedCallbackFcn f) override
 
- Public Member Functions inherited from DtUiElement
 DtUiElement (makVrv::DtDe &)
 
virtual ~DtUiElement () override
 
virtual bool blockSignals (bool)
 
virtual void init (QWidget *widget, QWidget *label, const DtEntityType &, const DtString &platformType, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, boost::placeholders::_1))
 
virtual DtString displayUnits () const
 
virtual void setDisplayUnits (const DtString &units)
 
virtual void setLabelText (const QString &)
 
virtual DtString sourceUnits () const
 
virtual void setSourceUnits (const DtString &units)
 
virtual void setFromSystemParameterData (const DtSystemParameterData *data, const DtComponentSystemDefinition *)
 
virtual void objectParametersModified ()
 
virtual void processUiEvent (const DtUiElementEvent &)
 
virtual void setModelModified (DtModelSetEntry *)
 
virtual DtString uniqueName () const
 
virtual bool supportsSystems () const
 
virtual const DtStringplatformType () const
 
virtual void setPlatformType (const DtString &)
 
virtual void setObjectTypes (const std::vector< DtEntityType > &)
 
virtual void aboutToShow ()
 
const std::vector
< DtReaderWriter * > & 
values () const
 
const std::vector
< DtReaderWriter * > & 
backupValues () const
 
virtual bool isModified () const
 
virtual bool isValid () const
 
virtual void decorateElement ()
 
virtual void setFromParameters (DtReaderWriter *parentRw)
 
virtual void setFromParameters (const std::vector< DtComponentSystemDefinition * > &)
 
virtual bool restoreFromBackup ()
 
QHBoxLayout * findLayoutThatHas (QWidget *w, QBoxLayout *layout)
 
QBoxLayout * findUsableLayoutFor (QWidget *w)
 
const std::vector< DtEntityType > & objectTypes () const
 
const std::vector
< DtComponentSystemDefinition * > & 
systems () const
 
virtual void sendEvent (const DtUiElementEvent &)
 
virtual bool allValuesTheSame () const
 
virtual bool isMixedValue () const
 
virtual void setEnabled (bool)
 
virtual bool enabled () const
 
virtual void setControllingCheckBox (QCheckBox *)
 
QCheckBoxcontrollingCheckBox ()
 
virtual void populateParentValues (std::string elementName)
 

Static Public Member Functions

static DtUiElementCreatorFunction (makVrv::DtDe &)
 
- Static Public Member Functions inherited from DtUiElement
static void registerUiTypes ()
 
static DtUiElementcreateUiElement (makVrv::DtDe &, const DtString &type)
 
static bool hasCreator (const DtString &)
 
static void theNullFunction (DtUiElement *)
 
static UiElementFactoryMapelementFactory ()
 
static QString mixedText ()
 
static void setMixedText (const QString &)
 

Protected Types

typedef std::map< DtString,
DtString
DisplayLabelToSourceValueMap
 

Protected Member Functions

virtual void setFromParameters (const std::vector< DtReaderWriter * > &parentRw) override
 
virtual void createControls (QWidget *widget) override
 
virtual DtString sourceValueToDisplayLabel (const DtString &source)
 
virtual DtString displayLabelToSourceValue (const DtString &display)
 
- Protected Member Functions inherited from DtUiMapAwareElement
virtual void connectedTo (QObject *) override
 
virtual void setupReaderWriterFromMapCombo (QComboBox *)
 
virtual void setupReaderWriterFromMapKey (const DtString &key, const std::string &elementContainer)
 
virtual void setupReaderWriterFromMapKey (const DtString &key, const std::string &elementContainer, std::vector< DtReaderWriter * > &vars, std::vector< DtReaderWriter * > &backupVars)
 
virtual DtString variableNameFromParameters (const DtRwPropertiesMap *mapToCheck, const std::string &prototypeName, const std::string &variableName, const DtString &mapKey) const
 
virtual void setupReaderWriterFromVariable (const std::string &elementContainer)
 
- Protected Member Functions inherited from DtUiElement
virtual double sourceToDisplayUnits (double) const
 
virtual double displayToSourceUnits (double) const
 
virtual QString units () const
 
virtual void updateLabelTitle ()
 
virtual QString labelTitle () const
 

Protected Attributes

bool myIsLineEdit
 
DisplayLabelToSourceValueMap myDisplayToSourceValues
 
- Protected Attributes inherited from DtUiElement
DtString myDisplayUnits
 
DtString mySourceUnits
 
std::vector< DtReaderWriter * > myValues
 
std::vector< DtReaderWriter * > myBackupValues
 
DtReaderWritermyParentValue
 
bool myIsNew
 
DtElementChangedCallbackFcn myElementChangedCallbackFunction
 
DtUnit mySource
 
DtUnit myDestination
 
makVrv::DtDemyDe
 
DtString myPlatformType
 
std::vector< DtEntityType > myObjectTypes
 
std::vector
< DtComponentSystemDefinition * > 
mySystems
 
const DtComponentSystemDefinitionmySystemDefinition
 
bool myEnabled
 
std::vector< QObject * > myConnectedTo
 
int myUniqueId
 
QCheckBoxmyControllingCheckBox
 
QToolButtonmyRevertToParentButton
 

Additional Inherited Members

- Public Types inherited from DtUiElement
typedef boost::function
< DtUiElement *(makVrv::DtDe &)> 
CreatorFunction
 
typedef std::map< std::string,
CreatorFunction
UiElementFactoryMap
 
- Public Slots inherited from DtUiElement
virtual void toggleDisplayed (bool display)
 
- Signals inherited from DtUiElement
void uiEvent (const DtUiElementEvent &)
 
void changed ()
 
- Public Attributes inherited from DtUiElement
QWidget * myWidget
 
QWidget * myLabel
 
- Protected Slots inherited from DtUiMapAwareElement
virtual void setupMapValuesFromKey ()
 
- Protected Slots inherited from DtUiElement
virtual void enableIfChecked ()
 
virtual void disableIfChecked ()
 
- Static Protected Attributes inherited from DtUiElement
static UiElementFactoryMap theFactory
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtUiStringElement::DtUiStringElement ( makVrv::DtDe )

Constructor.

virtual DtUiStringElement::~DtUiStringElement ( )
overridevirtual

Destructor.

Member Function Documentation

virtual void DtUiStringElement::setValue ( const QString &  )
virtual

Sets/gets values.

virtual QString DtUiStringElement::value ( ) const
virtual
virtual void DtUiStringElement::elementChanged ( )
overridevirtual

Reimplemented from DtUiElement.

virtual void DtUiStringElement::setFromParameters ( const std::vector< DtReaderWriter * > &  parentRw)
overrideprotectedvirtual

Reimplemented from DtUiElement.

virtual void DtUiStringElement::createControls ( QWidget *  widget)
overrideprotectedvirtual

If any additional controls or initialization needs to be done, it is done here.

Reimplemented from DtUiElement.

Reimplemented in DtUiComboBoxElement.

virtual DtString DtUiStringElement::sourceValueToDisplayLabel ( const DtString source)
protectedvirtual
virtual DtString DtUiStringElement::displayLabelToSourceValue ( const DtString display)
protectedvirtual

Member Data Documentation

bool DtUiStringElement::myIsLineEdit
protected

True if this string element uses a line edit, false if combo box.

DisplayLabelToSourceValueMap DtUiStringElement::myDisplayToSourceValues
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)