14 #if !defined(Q_MOC_RUN)
18 #include <QtWidgets/QSpinBox>
19 #include <QtGui/qvalidator.h>
51 if (value == maximum())
55 return QSpinBox::textFromValue(value);
60 if (text == tr(
"All"))
64 return QSpinBox::valueFromText(text);
67 virtual QValidator::State
validate(QString& input,
int& pos)
const override
69 if (input == tr(
"All"))
71 return QValidator::Acceptable;
73 return QSpinBox::validate(input, pos);
137 Qt::WindowFlags f = Qt::Widget );
148 virtual void setGhostEchelonLevelItems(
bool enabled )
override;
149 virtual void setGhostEchelonLevelItemLabels(
bool enabled)
override;
150 virtual void setEchelonLevel(
int,
int maxLevel = -1)
override;
151 virtual void setDisplayBoundingBoxes(
bool enabled )
override;
152 virtual void setDisplayAggregates(
bool enabled )
override;
153 virtual void setDisplayLeafLevelItems(
bool enabled )
override;
154 virtual void setDisplayBoundingBoxesForSelected(
bool enabled )
override;
155 virtual void setAllowSelectingOfGhostedItems(
bool enabled )
override;
156 virtual void setDisplayMainIcon(
bool enabled )
override;
157 virtual void setColorizedModelColorType(
160 virtual void setAutoCollapseExpandEnabled(
bool enabled)
override;
161 virtual void resetAutoCollapseExpand()
override;
162 virtual void setCollapseLevelsAboveMapScale(std::map<int, double> levels)
override;
169 virtual int echelonLevel()
const;
170 virtual bool displayAggregates()
const;
171 virtual bool ghostEchelonLevelItems()
const;
172 virtual bool ghostEchelonLevelItemLabels()
const;
173 virtual bool displayBoundingBoxes()
const;
174 virtual bool displayBoundingBoxesForSelected()
const;
175 virtual bool displayMainIcon()
const;
176 virtual bool displayLeafLevelItems()
const;
177 virtual bool allowSelectingOfGhostedItems()
const;
179 colorizedModelColorType()
const;
188 virtual void on_setDisplayAggregatesChanged();
189 virtual void on_setShowLeafNodesChanged();
190 virtual void on_displayBoundingBoxesForSelectedChanged();
191 virtual void on_displayBoundingBoxesChanged();
192 virtual void on_displayMainIconChanged();
193 virtual void on_ghostEchelonLevelItemsChanged();
194 virtual void on_ghostEchelonLevelItemLabelsChanged();
195 virtual void on_allowSelectionOfGhostedItemsChanged();
196 virtual void on_echelonLevelChanged();
197 virtual void on_colorizedModelColorTypeChanged();
199 virtual void on_autoCollapseExpandEnabled(
bool enabled);
200 virtual void on_resetAutoCollapseExpand();
201 virtual void on_collapseLevelsAboveMapScale(std::map<int, double> levels);
212 void connectToSignals();
215 virtual void updateEnabledStates();
virtual QString textFromValue(int value) const override
Definition: DtAggregateSettingsWidget.h:49
Interface for the aggregate settings GUI.
Definition: DtAggregateSettingsInterface.h:25
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
DtColorizedModelColorType
Enumeration for the model coloring mode.
Definition: DtSharedEntityDisplaySettings.h:38
Contains DLL export macros.
Definition: DtAggregateSettingsWidget.h:41
virtual QValidator::State validate(QString &input, int &pos) const override
Definition: DtAggregateSettingsWidget.h:67
virtual int valueFromText(const QString &text) const override
Definition: DtAggregateSettingsWidget.h:58
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
DtEchelonLevelSpinBox(QWidget *parent=nullptr)
Definition: DtAggregateSettingsWidget.h:46