![]() |
VR-Forces Developer's Guide
|
Element for managing a Unique Name variable. It hooks to the DtUniqueNameManager to auto-assign a unique name to avoid conflicts with other names in the same category.

Public Member Functions | |
| DtUiUniqueNameElement (makVrv::DtDe &) | |
| virtual | ~DtUiUniqueNameElement () override |
| virtual DtString | uniqueNameCategory () const |
| virtual void | setUniqueNameCategory (const DtString &cat) |
| virtual DtString | uniqueIdentifyingName () const |
| virtual void | setUniqueIdentifyingName (const DtString &num) |
| virtual bool | uniqueNameConflicted () const |
| virtual void | setUniqueNameConflicted (bool confl) |
| virtual void | setFromSystemParameterData (const DtSystemParameterData *data, const DtComponentSystemDefinition *) override |
| virtual void | aboutToShow () override |
Public Member Functions inherited from DtUiElement | |
| DtUiElement (makVrv::DtDe &) | |
| virtual | ~DtUiElement () override |
| virtual bool | blockSignals (bool) |
| virtual void | init (QWidget *widget, QWidget *label, DtReaderWriter *originalData, DtReaderWriter *backupData, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, boost::placeholders::_1)) |
| virtual void | init (QWidget *widget, QWidget *label, const std::vector< DtReaderWriter * > &originalData, const std::vector< DtReaderWriter * > &backupData, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, boost::placeholders::_1)) |
| 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 | objectParametersModified () |
| virtual void | connectedTo (QObject *) |
| virtual void | processUiEvent (const DtUiElementEvent &) |
| virtual void | setModelModified (DtModelSetEntry *) |
| virtual DtString | uniqueName () const |
| virtual bool | supportsSystems () const |
| virtual const DtString & | platformType () const |
| virtual void | setPlatformType (const DtString &) |
| virtual void | setObjectTypes (const std::vector< DtEntityType > &) |
| 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 *) |
| QCheckBox * | controllingCheckBox () |
| virtual void | populateParentValues (std::string elementName) |
Static Public Member Functions | |
| static DtUiElement * | CreatorFunction (makVrv::DtDe &) |
| static DtUniqueNameManager * | uniqueNameManager () |
Static Public Member Functions inherited from DtUiElement | |
| static void | registerUiTypes () |
| static DtUiElement * | createUiElement (makVrv::DtDe &, const DtString &type) |
| static bool | hasCreator (const DtString &) |
| static void | theNullFunction (DtUiElement *) |
| static UiElementFactoryMap & | elementFactory () |
| static QString | mixedText () |
| static void | setMixedText (const QString &) |
Protected Slots | |
| virtual void | elementChanged () override |
| virtual void | processEditFinished () |
Protected Slots inherited from DtUiElement | |
| virtual void | elementChanged () |
| virtual void | enableIfChecked () |
| virtual void | disableIfChecked () |
Protected Member Functions | |
| virtual void | createControls (QWidget *) override |
| virtual void | setWidgetValue (const QString &val) |
| virtual void | setWidgetConflicted (bool conflicted) |
| virtual void | setFromParameters (const std::vector< DtReaderWriter * > &parentRw) override |
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 | |
| DtString | myUniqueNameCategory |
| bool | myUniqueNameNumConflicted |
| DtString | mySystemName |
| std::vector< DtString > | myOrigUniqueNames |
| const DtSystemParameterData * | myLastParamData |
| const DtComponentSystemDefinition * | myLastDef |
| bool | myAddedToManager |
Protected Attributes inherited from DtUiElement | |
| DtString | myDisplayUnits |
| DtString | mySourceUnits |
| std::vector< DtReaderWriter * > | myValues |
| std::vector< DtReaderWriter * > | myBackupValues |
| DtReaderWriter * | myParentValue |
| bool | myIsNew |
| DtElementChangedCallbackFcn | myElementChangedCallbackFunction |
| DtUnit | mySource |
| DtUnit | myDestination |
| makVrv::DtDe & | myDe |
| DtString | myPlatformType |
| std::vector< DtEntityType > | myObjectTypes |
| std::vector < DtComponentSystemDefinition * > | mySystems |
| const DtComponentSystemDefinition * | mySystemDefinition |
| bool | myEnabled |
| std::vector< QObject * > | myConnectedTo |
| int | myUniqueId |
| QCheckBox * | myControllingCheckBox |
| QToolButton * | myRevertToParentButton |
Static Protected Attributes | |
| static DtUniqueNameManager * | theUniqueNameManager |
| static const int | theMixedVal |
Static Protected Attributes inherited from DtUiElement | |
| static UiElementFactoryMap | theFactory |
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 |
| DtUiUniqueNameElement::DtUiUniqueNameElement | ( | makVrv::DtDe & | ) |
Constructor.
|
overridevirtual |
Destructor.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
overridevirtual |
Sets data of this UiElement from the specified system parameter data. Sets things like sourceUnits, displayUnits, etc.
Reimplemented from DtUiElement.
|
overridevirtual |
Called when about to show as part of a properties dialog.
Reimplemented from DtUiElement.
|
static |
|
static |
|
overrideprotectedvirtual |
If additional widgets or connections need to be made do it here. The parent is the myWidget member.
Reimplemented from DtUiElement.
|
protectedvirtual |
|
protectedvirtual |
|
overrideprotectedvirtualslot |
|
protectedvirtualslot |
|
overrideprotectedvirtual |
Reimplemented from DtUiElement.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |