ddt 1.2.1
Loading...
Searching...
No Matches
ddtImageScaleWidget.hpp
Go to the documentation of this file.
1
20#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_IMAGESCALEWIDGET_HPP
21#define DDT_DATAVISUALISATION_DDTWIDGETS_IMAGESCALEWIDGET_HPP
22
23#include <QtUiPlugin/QDesignerExportWidget>
24
26
31class QDESIGNER_WIDGET_EXPORT DdtImageScaleWidget : public DdtWidget {
32 Q_OBJECT
33
34 public:
39 explicit DdtImageScaleWidget(QWidget *parent = nullptr);
40
44 virtual ~DdtImageScaleWidget() = default;
45
46 private:
51 QLabel *lable_name;
52
57 QComboBox *combobox_scale;
58
63 QLabel *lable_actually_scale;
64
69 QCheckBox *checkbox_auto_scale;
70
74 bool setup_scale_list;
75
76 void CreateWidget();
77
78 public slots:
85 void UpdateScaleLabel(const QString new_scale_factor);
86
92 void NewScaleFactors(const QList<QString> new_scale_factor_list);
93
100 void NewAutoScaleState(const bool new_state);
101
105 void Reset();
106
107 protected slots:
113 void NewScaleSelected(const int selected_field);
114
121 void NewAutoScaleSelect(const int new_state);
122
123 signals:
129
135
141
148 void SelectScale(QString next_scale);
149
155 void SetAutoScale(const bool new_auto_scale_state);
156};
157
158#endif // DDT_DATAVISUALISATION_DDTWIDGETS_IMAGESCALEWIDGET_HPP
159
Definition ddtImageScaleWidget.hpp:31
void SetToDefaultScale()
SetToDefaultScale Signal which is sent when the default scale is selected.
void SelectScale(QString next_scale)
SelectScale this will be sent after the user choose another scale value with the combo box.
void SetAutoScale(const bool new_auto_scale_state)
SetAutoScale Signal is send after the check box changed the state.
void IncrementScale()
IncrementScale Signal which is sent when the scale is increased.
virtual ~DdtImageScaleWidget()=default
void DecrementScale()
DecrementScale Signal which is sent when the scale is decreased.
The DdtWidget class Use as wrapper class for new widgets.
Definition ddtWidget.hpp:28
DDT Widgets. Base class for the DDT widgets. Base class for the DDT widgets.