ddt 1.2.1
Loading...
Searching...
No Matches
ddtCubeNavigationWidget.hpp
Go to the documentation of this file.
1
20#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_CUBENAVIGATIONWIDGET_HPP
21#define DDT_DATAVISUALISATION_DDTWIDGETS_CUBENAVIGATIONWIDGET_HPP
22
23#include <QtUiPlugin/QDesignerExportWidget>
24
26
31class QDESIGNER_WIDGET_EXPORT DdtCubeNavigationWidget : public DdtWidget {
32 Q_OBJECT
33
34 public:
39 explicit DdtCubeNavigationWidget(QWidget* parent = nullptr);
40
44 ~DdtCubeNavigationWidget() override = default;
45
46 public slots:
53 void CurrentLayer(const int current_layer, const int total_layers);
54
55 protected slots:
59 void DecLayer();
60
64 void IncLayer();
65
69 void FastDecLayer();
70
74 void FastIncLayer();
75
79 void FirstLayer();
80
84 void LastLayer();
85
89 void JumpLayer();
90
94 void SelectLayer(int selected_value);
95
99 void Reset();
100
101 signals:
106 void IncrementLayer(const int inc);
107
113 void DecrementLayer(const int dec);
114
119 void JumpToLayer(const int num);
120
121 private:
122 QWidget* buttons_container_widget;
123
124 QToolButton* dec_layer_button;
125 QToolButton* inc_layer_button;
126 QToolButton* fast_dec_layer_button;
127 QToolButton* fast_inc_layer_button;
128 QToolButton* first_layer_button;
129 QToolButton* last_layer_button;
130 QLabel* current_layer_label;
131
132 QSlider* select_layer_slider;
133
134 void CreateWidget();
135};
136
137#endif // DDT_DATAVISUALISATION_DDTWIDGETS_CUBENAVIGATIONWIDGET_HPP
138
Definition ddtCubeNavigationWidget.hpp:31
~DdtCubeNavigationWidget() override=default
void DecrementLayer(const int dec)
void IncrementLayer(const int inc)
void JumpToLayer(const int num)
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.