##// END OF EJS Templates
Sync
Jeandet Alexis -
r9:f3bd193d674d default
parent child
Show More
@@ -28,13 +28,8 stardundeeSPW_USB::stardundeeSPW_USB(soc
28 abstractSpwBridge(parent)
28 abstractSpwBridge(parent)
29 {
29 {
30 Q_UNUSED(parent)
30 Q_UNUSED(parent)
31 this->p_GUI = new QWidget(parent);
32 this->mainLayout = new QGridLayout(this->p_GUI);
33 this->p_GUI->setLayout(mainLayout);
34 this->connectBridgeButton = new QPushButton("Connect");
35 this->mainLayout->addWidget(this->connectBridgeButton,1,0,1,1);
36 connect(this->connectBridgeButton,SIGNAL(clicked()),this,SLOT(toggleBridgeConnection()));
37 this->manager = new stardundeeSPW_USB_Manager(parent,this);
31 this->manager = new stardundeeSPW_USB_Manager(parent,this);
32 makeGUI(socexplorerplugin *parent);
38 this->manager->start();
33 this->manager->start();
39 }
34 }
40
35
@@ -195,6 +190,16 unsigned int stardundeeSPW_USB::Read(uns
195 return read;
190 return read;
196 }
191 }
197
192
193 void stardundeeSPW_USB::makeGUI(socexplorerplugin *parent)
194 {
195 this->p_GUI = new QWidget(parent);
196 this->mainLayout = new QGridLayout(this->p_GUI);
197 this->p_GUI->setLayout(mainLayout);
198 this->connectBridgeButton = new QPushButton("Connect");
199 this->mainLayout->addWidget(this->connectBridgeButton,1,0,1,1);
200 connect(this->connectBridgeButton,SIGNAL(clicked()),this,SLOT(toggleBridgeConnection()));
201 }
202
198 stardundeeSPW_USB_Manager::stardundeeSPW_USB_Manager(socexplorerplugin *plugin, QObject *parent)
203 stardundeeSPW_USB_Manager::stardundeeSPW_USB_Manager(socexplorerplugin *plugin, QObject *parent)
199 :QThread((QObject*)parent)
204 :QThread((QObject*)parent)
200 {
205 {
@@ -69,6 +69,7 private:
69 char* SPWPacketBuff;
69 char* SPWPacketBuff;
70 QList<RMAP_Answer*> RMAP_Answers;
70 QList<RMAP_Answer*> RMAP_Answers;
71 QList<int> RMAP_pending_transaction_IDs;
71 QList<int> RMAP_pending_transaction_IDs;
72 int linkNumber;
72 };
73 };
73
74
74 class stardundeeSPW_USB : public abstractSpwBridge
75 class stardundeeSPW_USB : public abstractSpwBridge
@@ -89,6 +90,7 public slots:
89 unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0);
90 unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0);
90
91
91 private:
92 private:
93 void makeGUI(socexplorerplugin *parent);
92 stardundeeSPW_USB_Manager* manager;
94 stardundeeSPW_USB_Manager* manager;
93 QGridLayout* mainLayout;
95 QGridLayout* mainLayout;
94 QPushButton* connectBridgeButton;
96 QPushButton* connectBridgeButton;
General Comments 0
You need to be logged in to leave comments. Login now