-
Notifications
You must be signed in to change notification settings - Fork 0
/
fsPulseTrainTab.h
executable file
·54 lines (37 loc) · 1.14 KB
/
fsPulseTrainTab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef __SPIKE_FS_OUTPUT_ONLY_H__
#define __SPIKE_FS_OUTPUT_ONLY_H__
#include <QtGui>
#include <QtWidgets>
#include <QtXml>
#define DEFAULT_TMP_PULSE_COMMANDS_FILE "/tmp/tmp_pulse_commands"
class StimPulseTrainTab : public QWidget
{
Q_OBJECT
public:
StimPulseTrainTab (QWidget *parent);
int loadFromXML(QDomNode &outputConfNode);
void saveToXML(QDomDocument &doc, QDomElement &rootNode);
int trainCounter;
int nTrains;
int aOut1Mode, aOut2Mode;
QSpinBox *trainIntervalSpinBox;
QSpinBox *nTrainsSpinBox;
QPushButton *continuousButton;
QComboBox *stimulatorSelectComboBox;
QComboBox *aOutSelectComboBox;
QPushButton *stimSingleButton;
QPushButton *startStimButton;
QPushButton *abortStimButton;
void startStimulation(int count);
void writeStateToFile(QFile *stateFile);
void readStateFromFile(QFile *stateFile);
public slots:
void toggleContinuousMode(bool isToggled) {nTrainsSpinBox->setEnabled(!isToggled);}
void endStimulation(int flag);
void stepStimulation(int count);
void updateActiveAOut(int aOutIndex, int aOut1Mode, int aOut2Mode);
private:
void updateAOutEnable(void);
protected:
};
#endif