ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtImageScaleWidget.hpp
Go to the documentation of this file.
1
10
11#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_IMAGESCALEWIDGET_HPP
12#define DDT_DATAVISUALISATION_DDTWIDGETS_IMAGESCALEWIDGET_HPP
13
14#include <QtUiPlugin/QDesignerExportWidget>
15
17
22class QDESIGNER_WIDGET_EXPORT DdtImageScaleWidget : public DdtWidget {
23 Q_OBJECT
24
25 public:
30 explicit DdtImageScaleWidget(QWidget *parent = nullptr);
31
35 virtual ~DdtImageScaleWidget() = default;
36
37 private:
42 QLabel *lable_name;
43
48 QComboBox *combobox_scale;
49
54 QLabel *lable_actually_scale;
55
60 QCheckBox *checkbox_auto_scale;
61
65 bool setup_scale_list;
66
67 void CreateWidget();
68
69 public slots:
76 void UpdateScaleLabel(const QString new_scale_factor);
77
83 void NewScaleFactors(const QList<QString> new_scale_factor_list);
84
91 void NewAutoScaleState(const bool new_state);
92
96 void Reset();
97
98 protected slots:
104 void NewScaleSelected(const int selected_field);
105
112 void NewAutoScaleSelect(const int new_state);
113
114 signals:
120
126
132
139 void SelectScale(QString next_scale);
140
146 void SetAutoScale(const bool new_auto_scale_state);
147};
148
149#endif // DDT_DATAVISUALISATION_DDTWIDGETS_IMAGESCALEWIDGET_HPP
void NewAutoScaleState(const bool new_state)
NewAutoScaleState this will be called after the auto scale switched to a new state.
Definition ddtImageScaleWidget.cpp:86
DdtImageScaleWidget(QWidget *parent=nullptr)
Definition ddtImageScaleWidget.cpp:17
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 NewScaleFactors(const QList< QString > new_scale_factor_list)
NewScaleFactors this will be called after new scale factor values are available *.
Definition ddtImageScaleWidget.cpp:62
void UpdateScaleLabel(const QString new_scale_factor)
UpdateScaleLabel Catch the signal which informs about that the scale factor changed.
Definition ddtImageScaleWidget.cpp:82
void NewScaleSelected(const int selected_field)
NewScaleSelected this will be called by the check list after the user selcted a new scale factor.
Definition ddtImageScaleWidget.cpp:56
void DecrementScale()
DecrementScale Signal which is sent when the scale is decreased.
void NewAutoScaleSelect(const int new_state)
NewAutoScaleSelect this will be called after the user pressed the check box of the auto scale.
Definition ddtImageScaleWidget.cpp:78
void Reset()
Definition ddtImageScaleWidget.cpp:90
DdtWidget(QWidget *parent=nullptr)
DdtWidget.
Definition ddtWidget.cpp:19
DDT Widgets. Base class for the DDT widgets. Base class for the DDT widgets.