@@ -28,13 +28,8 stardundeeSPW_USB::stardundeeSPW_USB(soc | |||
|
28 | 28 | abstractSpwBridge(parent) |
|
29 | 29 | { |
|
30 | 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 | 31 | this->manager = new stardundeeSPW_USB_Manager(parent,this); |
|
32 | makeGUI(socexplorerplugin *parent); | |
|
38 | 33 | this->manager->start(); |
|
39 | 34 | } |
|
40 | 35 | |
@@ -195,6 +190,16 unsigned int stardundeeSPW_USB::Read(uns | |||
|
195 | 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 | 203 | stardundeeSPW_USB_Manager::stardundeeSPW_USB_Manager(socexplorerplugin *plugin, QObject *parent) |
|
199 | 204 | :QThread((QObject*)parent) |
|
200 | 205 | { |
@@ -69,6 +69,7 private: | |||
|
69 | 69 | char* SPWPacketBuff; |
|
70 | 70 | QList<RMAP_Answer*> RMAP_Answers; |
|
71 | 71 | QList<int> RMAP_pending_transaction_IDs; |
|
72 | int linkNumber; | |
|
72 | 73 | }; |
|
73 | 74 | |
|
74 | 75 | class stardundeeSPW_USB : public abstractSpwBridge |
@@ -89,6 +90,7 public slots: | |||
|
89 | 90 | unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0); |
|
90 | 91 | |
|
91 | 92 | private: |
|
93 | void makeGUI(socexplorerplugin *parent); | |
|
92 | 94 | stardundeeSPW_USB_Manager* manager; |
|
93 | 95 | QGridLayout* mainLayout; |
|
94 | 96 | QPushButton* connectBridgeButton; |
General Comments 0
You need to be logged in to leave comments.
Login now