PeriodicUpdateView.h
Go to the documentation of this file.
1#pragma once
2
3#include <QWidget>
4
5
6class QCheckBox;
7class QDoubleSpinBox;
8class QPushButton;
9class QLabel;
10class QMovie;
11
13{
14
15 class PeriodicUpdateView : public QWidget
16 {
17 Q_OBJECT
18 using This = PeriodicUpdateView;
19
20 public:
22
23 QCheckBox* autoCheckBox();
24 QDoubleSpinBox* frequencySpinBox();
25 QPushButton* updateButton();
26 QPushButton* collapseAllButton();
27 QPushButton* splitBoxButton();
28
29 bool isAutoEnabled() const;
30 double getUpdateFrequency() const;
31 int getUpdateIntervalMs() const;
32 void showUpdatingLabel();
33 void hideUpdatingLabel();
34 void toggleSplitButton();
35
36 signals:
37
38 void update();
40 void splitBox();
42 void toggleAutoUpdates(bool enabled);
43
44 private:
45 QPushButton* _updateButton;
46 QCheckBox* _autoCheckBox;
47 QDoubleSpinBox* _frequencySpinBox;
48 QPushButton* _collapseAllButton;
49 QPushButton* _splitBoxButton;
50 QLabel* _loadingGifLabel;
51 QMovie* _loadingGif;
52
53 };
54
55} // namespace armarx::armem::gui::view