VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiUniqueNameElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 
16 
21 {
22  Q_OBJECT
23 
24 public:
25 
28 
30  virtual ~DtUiUniqueNameElement() override;
31 
32  virtual DtString uniqueNameCategory() const;
33  virtual void setUniqueNameCategory(const DtString& cat);
34 
35  virtual DtString uniqueIdentifyingName() const;
36  virtual void setUniqueIdentifyingName(const DtString& num);
37 
38  virtual bool uniqueNameConflicted() const;
39  virtual void setUniqueNameConflicted(bool confl);
40 
41  virtual void setFromSystemParameterData(
42  const DtSystemParameterData* data, const DtComponentSystemDefinition*) override;
43 
45  virtual void aboutToShow() override;
46 
48 
49  static DtUniqueNameManager* uniqueNameManager();
50 
51 protected:
52  virtual void createControls(QWidget*) override;
53 
54  virtual void setWidgetValue(const QString& val);
55 
56  virtual void setWidgetConflicted(bool conflicted);
57 
58 protected slots:
59 
60  virtual void elementChanged() override;
61  virtual void processEditFinished();
62 
63 protected:
64  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
65 
66 protected:
70  std::vector<DtString> myOrigUniqueNames;
71 
74 
76 
78 
79  static const int theMixedVal;
80 };
bool myAddedToManager
Definition: uiUniqueNameElement.h:75
DtString myUniqueNameCategory
Definition: uiUniqueNameElement.h:67
Element for managing a Unique Name variable. It hooks to the DtUniqueNameManager to auto-assign a uni...
Definition: uiUniqueNameElement.h:20
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.
bool myUniqueNameNumConflicted
Definition: uiUniqueNameElement.h:68
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:190
Definition: uniqueNameManager.h:23
virtual void elementChanged()
const DtSystemParameterData * myLastParamData
Definition: uiUniqueNameElement.h:72
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:27
virtual void aboutToShow()
Called when about to show as part of a properties dialog. Default is no-op.
DtString mySystemName
Definition: uiUniqueNameElement.h:69
static DtUniqueNameManager * theUniqueNameManager
Definition: uiUniqueNameElement.h:77
Base class for RW objects that describe a system parameter. This data is used by the entity editor to...
Definition: systemParameterData.h:30
const DtComponentSystemDefinition * myLastDef
Definition: uiUniqueNameElement.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:76
static const int theMixedVal
Definition: uiUniqueNameElement.h:79
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
std::vector< DtString > myOrigUniqueNames
Definition: uiUniqueNameElement.h:70
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:185
virtual void setFromSystemParameterData(const DtSystemParameterData *data, const DtComponentSystemDefinition *)
Sets data of this UiElement from the specified system parameter data. Sets things like sourceUnits...

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)