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(new 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
52{
53 delete m_pUi;
54}
55
56//=============================================================================================================
57
61
62//=============================================================================================================
63
67
68//=============================================================================================================
69
71{
72 switch (mode) {
74 break;
75 default: // default is research mode
76 break;
77 }
78}
79
80//=============================================================================================================
81
83{
84 switch (mode) {
86 break;
87 default: // default is realtime mode
88 break;
89 }
90}
91
92//=============================================================================================================
93
94void ApplyToView::selectAll(bool bChecked)
95{
96 Q_UNUSED(bChecked);
97
98 m_pUi->m_checkBoxSignaViewer->setChecked(true);
99 m_pUi->m_checkBoxButterfly->setChecked(true);
100 m_pUi->m_checkBoxLayout->setChecked(true);
101}
102
103//=============================================================================================================
104
105void ApplyToView::selectClear(bool bChecked)
106{
107 Q_UNUSED(bChecked);
108
109 m_pUi->m_checkBoxSignaViewer->setChecked(false);
110 m_pUi->m_checkBoxButterfly->setChecked(false);
111 m_pUi->m_checkBoxLayout->setChecked(false);
112}
113
114//=============================================================================================================
115
117{
118 m_lViewList.clear();
119
120 m_lViewList.append("null");
121
122 if (m_pUi->m_checkBoxSignaViewer->isChecked()) {
123 m_lViewList.append("signalview");
124 }
125 if (m_pUi->m_checkBoxButterfly->isChecked()) {
126 m_lViewList.append("butterflyview");
127 }
128 if (m_pUi->m_checkBoxLayout->isChecked()) {
129 m_lViewList.append("layoutview");
130 }
131
132 return m_lViewList;
133}
134
135//=============================================================================================================
136
138{
139}
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()
Ui::ApplyToViewWidget * m_pUi
ApplyToView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
ApplyToView.
void updateProcessingMode(ProcessingMode mode)
QList< QString > m_lViewList
void updateGuiMode(GuiMode mode)