Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Jeandet Alexis
- Thu, 06 Mar 2014 10:21:17
Show More
0
spwplugin/spwplugin.cpp
spwplugin/spwplugin.cpp
+14
0
@@
-40,6
+40,7
spwplugin::spwplugin(QWidget *parent):so
40
40
this -> bridgeSelector -> addItem ( "none" );
41
41
this -> bridgeSelector -> addItem ( "STAR-Dundee Spw USB Brick" );
42
42
connect ( this -> bridgeSelector , SIGNAL ( currentIndexChanged ( QString )), this , SLOT ( bridgeSelectionChanged ( QString )));
43
connect ((( spwPyWrapper * ) this -> pyObject ), SIGNAL ( selectBridge ( QString )), this , SLOT ( selectBridge ( QString )));
43
44
}
44
45
45
46
@@
-96,6
+97,19
void spwplugin::bridgeSelectionChanged(c
96
97
97
98
}
98
99
100
void spwplugin :: selectBridge ( const QString & text )
101
{
102
103
if ( text == "none" )
104
{
105
this -> bridgeSelector -> setCurrentIndex ( 0 );
106
}
107
if ( text == "STAR-Dundee Spw USB Brick" )
108
{
109
this -> bridgeSelector -> setCurrentIndex ( 1 );
110
}
111
}
112
99
113
void spwplugin :: setConnected ( bool connected )
100
114
{
101
115
this -> bridgeSelector -> setDisabled ( connected );
0
spwplugin/spwplugin.h
spwplugin/spwplugin.h
+1
0
@@
-55,6
+55,7
public slots:
55
55
unsigned int Read ( unsigned int * Value , unsigned int count , unsigned int address = 0 );
56
56
57
57
void bridgeSelectionChanged ( const QString & text );
58
void selectBridge ( const QString & text );
58
59
void setConnected ( bool connected );
59
60
60
61
signals :
0
spwplugin/spwpywrapper.h
spwplugin/spwpywrapper.h
+1
0
@@
-9,6
+9,7
public:
9
9
explicit spwPyWrapper ( socexplorerplugin * parent = 0 );
10
10
11
11
signals :
12
void selectBridge ( const QString & bridgeName );
12
13
bool connectBridge ();
13
14
bool disconnectBridge ();
14
15
void StarDundeeSelectBrick ( int brickIndex );
0
spwplugin/stardundeespw_usb.cpp
spwplugin/stardundeespw_usb.cpp
0
-8
@@
-128,10
+128,6
unsigned int stardundeeSPW_USB::Write(un
128
128
qApp -> processEvents ();
129
129
}
130
130
}
131
// if(progress!=NULL)
132
// {
133
// SocExplorerEngine::deleteProgressBar(progress);
134
// }
135
131
return written ;
136
132
}
137
133
@@
-208,10
+204,6
unsigned int stardundeeSPW_USB::Read(uns
208
204
qApp -> processEvents ();
209
205
}
210
206
}
211
// if(progress!=NULL)
212
// {
213
// SocExplorerEngine::deleteProgressBar(progress);
214
// }
215
207
return read ;
216
208
}
217
209
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages