ddt  0.1
ddtScaleButtonsWidget.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtScaleButtonsWidgets.hpp
8 // @brief DDT Widgets. Class for the DDT Scale Buttons Widget.
9 //
10 // Class for the Scale Buttons Widget. Allows to set the scale factor for the
11 // zooming of the connected Image Widget.
12 //
13 // @author Carsten Mannel, CGI
14 // @since 2020/02/19
15 //
16 
17 #ifndef DDT_DATAVISUALISATION_DDTWIDGETS_SCALEBUTTONSWIDGET_HPP
18 #define DDT_DATAVISUALISATION_DDTWIDGETS_SCALEBUTTONSWIDGET_HPP
19 
20 #include <QtUiPlugin/QDesignerExportWidget>
21 
23 
28 class QDESIGNER_WIDGET_EXPORT DdtScaleButtonsWidget : public DdtWidget {
29  Q_OBJECT
30 
31  public:
36  explicit DdtScaleButtonsWidget(QWidget* parent = nullptr);
37 
42 
43  protected:
44  private:
45  QToolButton* zoom_in_button;
46  QToolButton* zoom_out_button;
47  QToolButton* zoom_default_button;
48 
49  void CreateWidget();
50 
51  protected slots:
55  void ZoomIn();
56 
60  void ZoomOut();
61 
65  void ZoomAll();
66 
67  signals:
72 
77 
82 };
83 
84 #endif // DDT_DATAVISUALISATION_DDTWIDGETS_SCALEBUTTONSWIDGET_HPP
DdtScaleButtonsWidget::SetToDefaultScale
void SetToDefaultScale()
DdtScaleButtonsWidget
Definition: ddtScaleButtonsWidget.hpp:28
DdtScaleButtonsWidget::DecrementScale
void DecrementScale()
DdtWidget
The DdtWidget class Use as wrapper class for new widgets.
Definition: ddtWidget.hpp:23
DdtScaleButtonsWidget::IncrementScale
void IncrementScale()
DdtScaleButtonsWidget::~DdtScaleButtonsWidget
virtual ~DdtScaleButtonsWidget()
ddtWidget.hpp