MNE-CPP  beta 1.0
rtssssetupwidget.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "rtssssetupwidget.h"
42 #include "rtsssaboutwidget.h"
43 #include "../rtsss.h"
44 #include "../rtsssalgo.h"
45 
46 //*************************************************************************************************************
47 //=============================================================================================================
48 // QT INCLUDES
49 //=============================================================================================================
50 
51 #include <QDebug>
52 
53 
54 //*************************************************************************************************************
55 //=============================================================================================================
56 // USED NAMESPACES
57 //=============================================================================================================
58 
59 using namespace RtSssPlugin;
60 
61 
62 //*************************************************************************************************************
63 //=============================================================================================================
64 // DEFINE MEMBER METHODS
65 //=============================================================================================================
66 
67 RtSssSetupWidget::RtSssSetupWidget(RtSss* toolbox, QWidget *parent)
68 : QWidget(parent)
69 , m_pRtSss(toolbox)
70 {
71  ui.setupUi(this);
72 
73  connect(ui.m_qPushButton_About, SIGNAL(released()), this, SLOT(showAboutDialog()));
74 
75  connect(ui.m_qSpinBox_LinRR, SIGNAL(valueChanged (int)), this, SLOT(setNewLinRR(int)));
76 
77  connect(ui.m_qSpinBox_LinRR, SIGNAL(valueChanged (int)), this, SLOT(setNewLinRR(int)));
78  connect(ui.m_qSpinBox_LoutRR, SIGNAL(valueChanged (int)), this, SLOT(setNewLoutRR(int)));
79  connect(ui.m_qSpinBox_Lin, SIGNAL(valueChanged (int)), this, SLOT(setNewLin(int)));
80  connect(ui.m_qSpinBox_Lout, SIGNAL(valueChanged (int)), this, SLOT(setNewLout(int)));
81 }
82 
83 
84 //*************************************************************************************************************
85 
87 {
88 
89 }
90 
91 
92 //*************************************************************************************************************
93 
94 void RtSssSetupWidget::setNewLinRR(int val)
95 {
96  std::cout << "###### Emitted LinRR(set): " << val << std::endl;
97  emit signalNewLinRR(val);
98 }
99 
100 void RtSssSetupWidget::setNewLoutRR(int val)
101 {
102  std::cout << "###### Emitted LoutRR(set): " << val << std::endl;
103  emit signalNewLoutRR(val);
104 }
105 
106 void RtSssSetupWidget::setNewLin(int val)
107 {
108  std::cout << "###### Emitted Lin(set): " << val << std::endl;
109  emit signalNewLin(val);
110 }
111 
112 void RtSssSetupWidget::setNewLout(int val)
113 {
114  std::cout << "###### Emitted Lout(set): " << val << std::endl;
115  emit signalNewLout(val);
116 }
117 
118 
119 //*************************************************************************************************************
120 
121 int RtSssSetupWidget::getLinRR()
122 {
123  return ui.m_qSpinBox_LinRR->value();
124 }
125 
126 int RtSssSetupWidget::getLoutRR()
127 {
128  return ui.m_qSpinBox_LoutRR->value();
129 }
130 
131 int RtSssSetupWidget::getLin()
132 {
133  return ui.m_qSpinBox_Lin->value();
134 }
135 
136 int RtSssSetupWidget::getLout()
137 {
138  return ui.m_qSpinBox_Lout->value();
139 }
140 
141 
142 //*************************************************************************************************************
143 
144 void RtSssSetupWidget::showAboutDialog()
145 {
146  RtSssAboutWidget aboutDialog(this);
147  aboutDialog.exec();
148 }
RtSssSetupWidget(RtSss *toolbox, QWidget *parent=0)
Contains the declaration of the RtSssAboutWidget class.
The RtSss class provides a rtsss algorithm structure.
Definition: rtsss.h:102
The RtSssAboutWidget class provides the about dialog for the RtSss.
Contains the declaration of the RtSssSetupWidget class.