v2.0.0
Loading...
Searching...
No Matches
applytoview.cpp
Go to the documentation of this file.
1//=============================================================================================================
13
14//=============================================================================================================
15// INCLUDES
16//=============================================================================================================
17
18#include "applytoview.h"
19
20#include "ui_applytoview.h"
21
22//=============================================================================================================
23// USED NAMESPACES
24//=============================================================================================================
25
26using namespace DISPLIB;
27
28//=============================================================================================================
29// DEFINE MEMBER METHODS
30//=============================================================================================================
31
32ApplyToView::ApplyToView(const QString& sSettingsPath,
33 QWidget* parent,
34 Qt::WindowFlags f)
35: AbstractView(parent, f)
36, m_sSettingsPath(sSettingsPath)
37, m_pUi(std::make_unique<Ui::ApplyToViewWidget>())
38{
39 m_pUi->setupUi(this);
40 this->setMinimumWidth(330);
41
42 connect(m_pUi->m_pushButtonAll, &QPushButton::clicked,
44
45 connect(m_pUi->m_pushButtonClear, &QPushButton::clicked,
47}
48
49//=============================================================================================================
50
54
55//=============================================================================================================
56
60
61//=============================================================================================================
62
66
67//=============================================================================================================
68
70{
71 switch (mode) {
73 break;
74 default: // default is research mode
75 break;
76 }
77}
78
79//=============================================================================================================
80
82{
83 switch (mode) {
85 break;
86 default: // default is realtime mode
87 break;
88 }
89}
90
91//=============================================================================================================
92
93void ApplyToView::selectAll(bool bChecked)
94{
95 Q_UNUSED(bChecked);
96
97 m_pUi->m_checkBoxSignaViewer->setChecked(true);
98 m_pUi->m_checkBoxButterfly->setChecked(true);
99 m_pUi->m_checkBoxLayout->setChecked(true);
100}
101
102//=============================================================================================================
103
104void ApplyToView::selectClear(bool bChecked)
105{
106 Q_UNUSED(bChecked);
107
108 m_pUi->m_checkBoxSignaViewer->setChecked(false);
109 m_pUi->m_checkBoxButterfly->setChecked(false);
110 m_pUi->m_checkBoxLayout->setChecked(false);
111}
112
113//=============================================================================================================
114
116{
117 m_lViewList.clear();
118
119 m_lViewList.append("null");
120
121 if (m_pUi->m_checkBoxSignaViewer->isChecked()) {
122 m_lViewList.append("signalview");
123 }
124 if (m_pUi->m_checkBoxButterfly->isChecked()) {
125 m_lViewList.append("butterflyview");
126 }
127 if (m_pUi->m_checkBoxLayout->isChecked()) {
128 m_lViewList.append("layoutview");
129 }
130
131 return m_lViewList;
132}
133
134//=============================================================================================================
135
137{
138}
Three-way radio selector widget choosing scope = Selected / Visible / All channels.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
QList< QString > getSelectedViews()
ApplyToView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
ApplyToView.
std::unique_ptr< Ui::ApplyToViewWidget > m_pUi
void updateProcessingMode(ProcessingMode mode)
QList< QString > m_lViewList
void updateGuiMode(GuiMode mode)