MNE-CPP  beta 1.0
tmsimanualannotationwidget.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
42 #include "../tmsi.h"
43 
44 
45 //*************************************************************************************************************
46 //=============================================================================================================
47 // QT INCLUDES
48 //=============================================================================================================
49 
50 #include <QDebug>
51 
52 
53 //*************************************************************************************************************
54 //=============================================================================================================
55 // USED NAMESPACES
56 //=============================================================================================================
57 
58 using namespace TMSIPlugin;
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // DEFINE MEMBER METHODS
64 //=============================================================================================================
65 
67 : QWidget(parent)
68 , m_pTMSI(pTMSI)
69 {
70  ui.setupUi(this);
71 }
72 
73 
74 //*************************************************************************************************************
75 
76 
78 {
79 }
80 
81 
82 //*************************************************************************************************************
83 
85 {
86 }
87 
88 
89 //*************************************************************************************************************
90 
91 void TMSIManualAnnotationWidget::keyPressEvent(QKeyEvent *event)
92 {
93  switch (event->key())
94  {
95  case Qt::Key_Up:
96  //std::cout<<"Up"<<endl;
97  break;
98  case Qt::Key_Down:
99  //std::cout<<"Down"<<endl;
100  break;
101  case Qt::Key_Control://Qt::Key_Left:
102  //std::cout<<"Left"<<endl;
103  m_pTMSI->setKeyboardTriggerType(253);
104  ui.m_pushButton_Left->click();//setStyleSheet("background-color: green");
105  break;
106  case Qt::Key_Enter://Qt::Key_Right:
107  //std::cout<<"right"<<endl;
108  m_pTMSI->setKeyboardTriggerType(254);
109  ui.m_pushButton_Right->click();//->setStyleSheet("background-color: green");
110  break;
111  default:
112  QWidget::keyPressEvent(event);
113  }
114 }
Contains the declaration of the TMSIManualAnnotation class.
The TMSI class provides a EEG connector. In order for this plugin to work properly the driver dll "RT...
Definition: tmsi.h:122
TMSIManualAnnotationWidget(TMSI *pTMSI, QWidget *parent=0)