MNE-CPP  beta 1.0
babymegsetupwidget.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "babymegsetupwidget.h"
42 #include "babymegaboutwidget.h"
43 
44 #include "babymegsquidcontroldgl.h"
45 
46 #include "../babymeg.h"
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QDir>
55 #include <QDebug>
56 #include <QComboBox>
57 
58 
59 //*************************************************************************************************************
60 //=============================================================================================================
61 // USED NAMESPACES
62 //=============================================================================================================
63 
64 using namespace BabyMEGPlugin;
65 
66 
67 //*************************************************************************************************************
68 //=============================================================================================================
69 // DEFINE MEMBER METHODS
70 //=============================================================================================================
71 
72 BabyMEGSetupWidget::BabyMEGSetupWidget(BabyMEG* p_pBabyMEG, QWidget* parent)
73 : QWidget(parent)
74 , m_pBabyMEG(p_pBabyMEG)
75 , m_bIsInit(false)
76 {
77  ui.setupUi(this);
78 
79  connect(m_pBabyMEG, &BabyMEG::cmdConnectionChanged, this, &BabyMEGSetupWidget::cmdConnectionChanged);
80 
81  //rt server fiffInfo received
83 
84  //About
85  connect(ui.m_qPushButton_About, &QPushButton::released, this, &BabyMEGSetupWidget::showAboutDialog);
86 
87  //SQUID Control
88  connect(ui.m_qPushButtonSqdCtrl, &QPushButton::released, this, &BabyMEGSetupWidget::showSqdCtrlDialog);
89 
90  ui.m_qPushButtonSqdCtrl->setVisible(false);
91 
92  this->init();
93 }
94 
95 
96 //*************************************************************************************************************
97 
99 {
100 
101 }
102 
103 
104 //*************************************************************************************************************
105 
107 {
108 }
109 
110 
111 //*************************************************************************************************************
112 
113 void BabyMEGSetupWidget::cmdConnectionChanged(bool p_bConnectionStatus)
114 {
115  Q_UNUSED(p_bConnectionStatus)
116 }
117 
118 
119 //*************************************************************************************************************
120 
122 {
123  if(m_pBabyMEG->m_pFiffInfo)
124  this->ui.m_qLabel_sps->setText(QString("%1").arg(m_pBabyMEG->m_pFiffInfo->sfreq));
125 }
126 
127 
128 //*************************************************************************************************************
129 
130 void BabyMEGSetupWidget::showAboutDialog()
131 {
132  BabyMEGAboutWidget aboutDialog(this);
133  aboutDialog.exec();
134 }
135 
136 
137 //*************************************************************************************************************
138 
139 void BabyMEGSetupWidget::showSqdCtrlDialog()
140 {
141 // BabyMEGSQUIDControlDgl SQUIDCtrlDlg(m_pBabyMEG,this);
142 // SQUIDCtrlDlg.exec();
143 }
The BabyMEG class provides a Fiff data simulator.
Definition: babymeg.h:101
The BabyMEGAboutWidget class provides the about dialog for the BabyMEG.
BabyMEGSetupWidget(BabyMEG *p_pBabyMEG, QWidget *parent=0)
Contains the declaration of the BabyMEGSQUIDControlDGL class.
Contains the declaration of the BabyMEGSetupWidget class.
void cmdConnectionChanged(bool p_bStatus)
Contains the declaration of the BabyMEGAboutWidget class.