SnapshotSelectorWidget.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
5#include <QWidget>
6
9
10#include "SnapshotForm.h"
11
12
13class QCheckBox;
14class QComboBox;
15class QVBoxLayout;
16class QPushButton;
17
18namespace armarx::armem::gui
19{
20
21 /**
22 * @brief Widget where queries for snapshots can be configured.
23 *
24 * Manages multiple forms which are hidden if not selected
25 * (in order to keep their settings).
26 */
27 class SnapshotSelectorWidget : public QWidget
28 {
29 Q_OBJECT
30 using This = SnapshotSelectorWidget;
31
32 public:
34
35
38
39
40 public slots:
41
42 signals:
44
45 private slots:
46
47 //void updateSelector();
48
49 void hideAllForms();
50 void showSelectedFormForQuery(QString selected);
51
52 signals:
54
55
56 private:
57 void addForm(const QString& key, SnapshotForm* form);
58
59
60 public:
61 QVBoxLayout* _pageLayout;
62 QComboBox* _queryComboBox;
63 /// The forms for the different query types. Hidden when not selected.
64 std::map<QString, SnapshotForm*> _queryForms;
65 };
66
67} // namespace armarx::armem::gui
std::map< QString, SnapshotForm * > _queryForms
The forms for the different query types. Hidden when not selected.
armem::query::DataMode dataMode() const