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
59{
60
61}
62
63//=============================================================================================================
64
66{
67
68}
69
70//=============================================================================================================
71
73{
74 switch(mode) {
76 break;
77 default: // default is research mode
78 break;
79 }
80}
81
82//=============================================================================================================
83
85{
86 switch(mode) {
88 break;
89 default: // default is realtime mode
90 break;
91 }
92}
93
94//=============================================================================================================
95
96void ApplyToView::selectAll(bool bChecked)
97{
98 Q_UNUSED(bChecked);
99
100 m_pUi->m_checkBoxSignaViewer->setChecked(true);
101 m_pUi->m_checkBoxButterfly->setChecked(true);
102 m_pUi->m_checkBoxLayout->setChecked(true);
103}
104
105//=============================================================================================================
106
107void ApplyToView::selectClear(bool bChecked)
108{
109 Q_UNUSED(bChecked);
110
111 m_pUi->m_checkBoxSignaViewer->setChecked(false);
112 m_pUi->m_checkBoxButterfly->setChecked(false);
113 m_pUi->m_checkBoxLayout->setChecked(false);
114}
115
116//=============================================================================================================
117
119{
120 m_lViewList.clear();
121
122 m_lViewList.append("null");
123
124 if (m_pUi->m_checkBoxSignaViewer->isChecked()) {
125 m_lViewList.append("signalview");
126 }
127 if (m_pUi->m_checkBoxButterfly->isChecked()) {
128 m_lViewList.append("butterflyview");
129 }
130 if (m_pUi->m_checkBoxLayout->isChecked()){
131 m_lViewList.append("layoutview");
132 }
133
134 return m_lViewList;
135}
136
137//=============================================================================================================
138
140{
141
142}
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)