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