MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
applytoview.cpp
Go to the documentation of this file.
1//=============================================================================================================
35//=============================================================================================================
36// INCLUDES
37//=============================================================================================================
38
39#include "applytoview.h"
40
41#include "ui_applytoview.h"
42
43//=============================================================================================================
44// USED NAMESPACES
45//=============================================================================================================
46
47using namespace DISPLIB;
48
49//=============================================================================================================
50// DEFINE MEMBER METHODS
51//=============================================================================================================
52
53ApplyToView::ApplyToView(const QString& sSettingsPath,
54 QWidget *parent,
55 Qt::WindowFlags f)
56: AbstractView(parent, f)
57, m_sSettingsPath(sSettingsPath)
58, m_pUi(new Ui::ApplyToViewWidget)
59{
60 m_pUi->setupUi(this);
61 this->setMinimumWidth(330);
62
63 connect(m_pUi->m_pushButtonAll, &QPushButton::clicked,
65
66 connect(m_pUi->m_pushButtonClear, &QPushButton::clicked,
68}
69
70//=============================================================================================================
71
72ApplyToView::~ApplyToView()
73{
74 delete m_pUi;
75}
76
77//=============================================================================================================
78
80{
81
82}
83
84//=============================================================================================================
85
87{
88
89}
90
91//=============================================================================================================
92
94{
95 switch(mode) {
96 case GuiMode::Clinical:
97 break;
98 default: // default is research mode
99 break;
100 }
101}
102
103//=============================================================================================================
104
105void ApplyToView::updateProcessingMode(ProcessingMode mode)
106{
107 switch(mode) {
108 case ProcessingMode::Offline:
109 break;
110 default: // default is realtime mode
111 break;
112 }
113}
114
115//=============================================================================================================
116
117void ApplyToView::selectAll(bool bChecked)
118{
119 Q_UNUSED(bChecked);
120
121 m_pUi->m_checkBoxSignaViewer->setChecked(true);
122 m_pUi->m_checkBoxButterfly->setChecked(true);
123 m_pUi->m_checkBoxLayout->setChecked(true);
124}
125
126//=============================================================================================================
127
128void ApplyToView::selectClear(bool bChecked)
129{
130 Q_UNUSED(bChecked);
131
132 m_pUi->m_checkBoxSignaViewer->setChecked(false);
133 m_pUi->m_checkBoxButterfly->setChecked(false);
134 m_pUi->m_checkBoxLayout->setChecked(false);
135}
136
137//=============================================================================================================
138
139QList<QString> ApplyToView::getSelectedViews()
140{
141 m_lViewList.clear();
142
143 m_lViewList.append("null");
144
145 if (m_pUi->m_checkBoxSignaViewer->isChecked()) {
146 m_lViewList.append("signalview");
147 }
148 if (m_pUi->m_checkBoxButterfly->isChecked()) {
149 m_lViewList.append("butterflyview");
150 }
151 if (m_pUi->m_checkBoxLayout->isChecked()){
152 m_lViewList.append("layoutview");
153 }
154
155 return m_lViewList;
156}
157
158//=============================================================================================================
159
161{
162
163}
Declaration of the ApplyToView Class.
The AbstractView class provides the base calss for all Disp viewers.
ApplyToView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
ApplyToView.
void updateProcessingMode(ProcessingMode mode)
void updateGuiMode(GuiMode mode)