13 #if !defined(Q_MOC_RUN)
20 #include <QtWidgets/QCheckBox>
21 #include <QtWidgets/QScrollArea>
22 #include <QtWidgets/QSlider>
47 virtual double percent()
const;
50 virtual void setPercent(
double);
52 virtual void setValue(
double);
53 virtual double value()
const;
55 virtual void setRange(
double lower,
double upper);
57 virtual void setValuesArePercentages(
bool);
60 virtual void sliderChanged();
61 virtual void textChanged();
64 void percentChanged();
94 virtual void setupGui(
const std::vector<makVrv::DtSimEntry*>& data);
96 virtual void setDefaultPlatformFile(
const DtString&);
99 return myDefaultPlatformFile;
103 virtual QWidget* contents(
const std::vector<makVrv::DtSimEntry*>& data);
105 virtual void setupFrom(
const std::vector<makVrv::DtSimEntry*>& s);
107 virtual void sendRequest();
116 virtual void clearProperties();
125 bool updateExistingValue =
false,
bool recurse =
true);
132 virtual bool hasMoreThanDefaultValueInRegistry(
const DtReaderWriter* rw)
const;
136 virtual void modifyStateProperty();
137 virtual void updateOkButton();
138 virtual void revertValue();
141 virtual bool wantsSpacer()
const;
153 virtual void extract(std::vector<DtReaderWriter*>& allCounts,
const DtString& extractionType,
DtReaderWriter* curItem,
161 int level,
bool updateExistingValue,
int row);
167 virtual DtString properties()
const;
172 virtual bool replace()
const;
175 virtual DtString translationModule()
const;
178 virtual bool valuesArePercentages(
const std::vector<makVrv::DtSimEntry*>& data)
const;
182 virtual bool sendValuesAsPercentages()
const;
185 virtual bool isValid()
const;
187 virtual void checkHasNoItems();
209 PropertyItem() : labelLayout(0), label(0), validator(0), modified(false), alwaysUpdate(false), revertButton(0), properties(0), added(false) { widgets.widget = 0; };
211 labelLayout(orig.labelLayout), modified(orig.modified), properties(orig.properties), revertButton(orig.revertButton),
212 children(orig.children), added(orig.added) { widgets.widget = orig.
widgets.
widget; };
214 QHBoxLayout* labelLayout;
const DtString & defaultPlatformFile() const
Definition: setStatePropertiesDialog.h:97
QScrollArea * myScrollArea
Definition: setStatePropertiesDialog.h:196
QValidator * validator
Definition: setStatePropertiesDialog.h:216
bool myValuesArePercentages
Definition: setStatePropertiesDialog.h:238
File: setStateProperties.h.
Definition: setStateProperties.h:36
DtString myProperty
Definition: setStatePropertiesDialog.h:236
Definition: baseTaskSetDialogInterface.h:33
QSlider * slider
Definition: setStatePropertiesDialog.h:67
Widgets widgets
Definition: setStatePropertiesDialog.h:226
SpecificRwType * addProperty(DtReaderWriter &properties, const DtString &propertyName)
Adds a property with the specified name to the given set of properties.
bool myValuesAreRanged
Set this value to true in the class constructor to show a slider to set the values bounded by the ran...
Definition: setStatePropertiesDialog.h:243
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
QLabel * label
Definition: setStatePropertiesDialog.h:215
Definition: readerWriter.h:85
PropertyItem()
Definition: setStatePropertiesDialog.h:209
Definition: setStatePropertiesDialog.h:207
DtString myDefaultPlatformFile
If specified, and there is no data because the item that wants to be set does not exist...
Definition: setStatePropertiesDialog.h:204
DtRwProperties myStateProperties
Definition: setStatePropertiesDialog.h:246
Interface class used to define minimal interface for a property.
Definition: propertyInterface.h:48
bool myCreatePropertySlider
Definition: setStatePropertiesDialog.h:239
QGridLayout * myGridLayout
Definition: setStatePropertiesDialog.h:198
QWidget * myScrollAreaCanvas
Definition: setStatePropertiesDialog.h:197
A slider that can be used for property values to set percentages on them when values are entered as p...
Definition: setStatePropertiesDialog.h:38
bool myUsingGeneric
Definition: setStatePropertiesDialog.h:205
Contains makVrf::DtBaseTaskSetDialogInterface class.
bool modified
Definition: setStatePropertiesDialog.h:227
This class is the base for setting state properties.
Definition: setStatePropertiesDialog.h:76
bool myIgnoreMaximum
Definition: setStatePropertiesDialog.h:245
QLineEdit * sliderValue
Definition: setStatePropertiesDialog.h:68
bool alwaysUpdate
Definition: setStatePropertiesDialog.h:228
bool myValuesArePercentages
Definition: setStatePropertiesDialog.h:71
PropertyItem(const PropertyItem &orig)
Definition: setStatePropertiesDialog.h:210
QLabel * myNoItems
Definition: setStatePropertiesDialog.h:199
std::map< DtString, PropertyItem > PropertyItems
The key is the propertyItem root name.
Definition: setStatePropertiesDialog.h:109
class DtSimStatement:
Definition: simStatement.h:35
QPushButton * revertButton
Definition: setStatePropertiesDialog.h:229
QWidget * myCanvas
Definition: setStatePropertiesDialog.h:194
DtPropertyInterface * properties
Definition: setStatePropertiesDialog.h:230
QVBoxLayout * myMainLayout
Definition: setStatePropertiesDialog.h:195
A list of properties.
Definition: rwProperties.h:126
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
PropertyItems myPropertyItems
Definition: setStatePropertiesDialog.h:235
DtRwProperties myParameterData
Definition: setStatePropertiesDialog.h:247
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
bool added
Definition: setStatePropertiesDialog.h:231
PropertyItems children
Definition: setStatePropertiesDialog.h:232
std::map< DtString, std::set< DtString > > myIgnorePropertyMapColumns
If there are property maps, and you wish to ignore columns in those maps when they are set up...
Definition: setStatePropertiesDialog.h:251