1 |
<!DOCTYPE UI><UI version="3.2" stdsetdef="1"> |
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> |
2 |
<class>qsamplerDeviceForm</class> |
<class>qsamplerDeviceForm</class> |
3 |
<comment>qsampler - A LinuxSampler Qt GUI Interface. |
<comment>qsampler - A LinuxSampler Qt GUI Interface. |
4 |
|
|
5 |
Copyright (C) 2005, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
GNU General Public License for more details. |
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License along |
18 |
along with this program; if not, write to the Free Software |
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
|
21 |
</comment> |
</comment> |
22 |
<author>rncbc aka Rui Nuno Capela</author> |
<author>rncbc aka Rui Nuno Capela</author> |
23 |
<widget class="QDialog"> |
<widget class="QWidget"> |
24 |
<property name="name"> |
<property name="name"> |
25 |
<cstring>qsamplerDeviceForm</cstring> |
<cstring>qsamplerDeviceForm</cstring> |
26 |
</property> |
</property> |
28 |
<rect> |
<rect> |
29 |
<x>0</x> |
<x>0</x> |
30 |
<y>0</y> |
<y>0</y> |
31 |
<width>542</width> |
<width>570</width> |
32 |
<height>331</height> |
<height>361</height> |
33 |
</rect> |
</rect> |
34 |
</property> |
</property> |
35 |
<property name="sizePolicy"> |
<property name="sizePolicy"> |
41 |
</sizepolicy> |
</sizepolicy> |
42 |
</property> |
</property> |
43 |
<property name="caption"> |
<property name="caption"> |
44 |
<string>Devices</string> |
<string>Qsampler: Devices</string> |
45 |
</property> |
</property> |
46 |
<property name="icon"> |
<property name="icon"> |
47 |
<pixmap>qsamplerChannel.png</pixmap> |
<pixmap>qsamplerDevice.png</pixmap> |
48 |
</property> |
</property> |
49 |
<property name="focusPolicy"> |
<property name="focusPolicy"> |
50 |
<enum>StrongFocus</enum> |
<enum>StrongFocus</enum> |
55 |
</property> |
</property> |
56 |
<widget class="QSplitter"> |
<widget class="QSplitter"> |
57 |
<property name="name"> |
<property name="name"> |
58 |
<cstring>splitter3</cstring> |
<cstring>splitter1</cstring> |
59 |
</property> |
</property> |
60 |
<property name="orientation"> |
<property name="orientation"> |
61 |
<enum>Horizontal</enum> |
<enum>Horizontal</enum> |
77 |
</property> |
</property> |
78 |
<property name="minimumSize"> |
<property name="minimumSize"> |
79 |
<size> |
<size> |
80 |
<width>120</width> |
<width>160</width> |
81 |
<height>0</height> |
<height>0</height> |
82 |
</size> |
</size> |
83 |
</property> |
</property> |
91 |
<string>Device list</string> |
<string>Device list</string> |
92 |
</property> |
</property> |
93 |
</widget> |
</widget> |
94 |
<widget class="QLayoutWidget"> |
<widget class="QSplitter"> |
95 |
<property name="name"> |
<property name="name"> |
96 |
<cstring>layout5</cstring> |
<cstring>splitter2</cstring> |
97 |
</property> |
</property> |
98 |
<grid> |
<property name="orientation"> |
99 |
|
<enum>Vertical</enum> |
100 |
|
</property> |
101 |
|
<widget class="QLayoutWidget"> |
102 |
<property name="name"> |
<property name="name"> |
103 |
<cstring>unnamed</cstring> |
<cstring>layout2</cstring> |
104 |
</property> |
</property> |
105 |
<widget class="QLabel" row="0" column="0"> |
<grid> |
106 |
<property name="name"> |
<property name="name"> |
107 |
<cstring>DeviceNameTextLabel</cstring> |
<cstring>unnamed</cstring> |
|
</property> |
|
|
<property name="sizePolicy"> |
|
|
<sizepolicy> |
|
|
<hsizetype>7</hsizetype> |
|
|
<vsizetype>5</vsizetype> |
|
|
<horstretch>0</horstretch> |
|
|
<verstretch>0</verstretch> |
|
|
</sizepolicy> |
|
|
</property> |
|
|
<property name="font"> |
|
|
<font> |
|
|
<pointsize>10</pointsize> |
|
|
<bold>1</bold> |
|
|
</font> |
|
|
</property> |
|
|
<property name="indent"> |
|
|
<number>4</number> |
|
|
</property> |
|
|
<property name="toolTip" stdset="0"> |
|
|
<string>Device name</string> |
|
|
</property> |
|
|
</widget> |
|
|
<widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="3"> |
|
|
<property name="name"> |
|
|
<cstring>DeviceParamTable</cstring> |
|
|
</property> |
|
|
<property name="sizePolicy"> |
|
|
<sizepolicy> |
|
|
<hsizetype>7</hsizetype> |
|
|
<vsizetype>7</vsizetype> |
|
|
<horstretch>0</horstretch> |
|
|
<verstretch>0</verstretch> |
|
|
</sizepolicy> |
|
|
</property> |
|
|
<property name="minimumSize"> |
|
|
<size> |
|
|
<width>320</width> |
|
|
<height>260</height> |
|
|
</size> |
|
108 |
</property> |
</property> |
109 |
<property name="focusPolicy"> |
<widget class="QLabel" row="0" column="0"> |
110 |
<enum>StrongFocus</enum> |
<property name="name"> |
111 |
</property> |
<cstring>DeviceNameTextLabel</cstring> |
112 |
<property name="toolTip" stdset="0"> |
</property> |
113 |
<string>Device parameters</string> |
<property name="sizePolicy"> |
114 |
</property> |
<sizepolicy> |
115 |
</widget> |
<hsizetype>7</hsizetype> |
116 |
<widget class="QComboBox" row="0" column="2"> |
<vsizetype>5</vsizetype> |
117 |
<property name="name"> |
<horstretch>0</horstretch> |
118 |
<cstring>DriverNameComboBox</cstring> |
<verstretch>0</verstretch> |
119 |
</property> |
</sizepolicy> |
120 |
<property name="toolTip" stdset="0"> |
</property> |
121 |
<string>Driver type name</string> |
<property name="font"> |
122 |
</property> |
<font> |
123 |
</widget> |
<bold>1</bold> |
124 |
<widget class="QLabel" row="0" column="1"> |
</font> |
125 |
|
</property> |
126 |
|
<property name="indent"> |
127 |
|
<number>4</number> |
128 |
|
</property> |
129 |
|
<property name="toolTip" stdset="0"> |
130 |
|
<string>Device name</string> |
131 |
|
</property> |
132 |
|
</widget> |
133 |
|
<widget class="QLabel" row="0" column="1"> |
134 |
|
<property name="name"> |
135 |
|
<cstring>DriverNameTextLabel</cstring> |
136 |
|
</property> |
137 |
|
<property name="text"> |
138 |
|
<string>Dri&ver:</string> |
139 |
|
</property> |
140 |
|
<property name="alignment"> |
141 |
|
<set>AlignVCenter|AlignRight</set> |
142 |
|
</property> |
143 |
|
<property name="buddy" stdset="0"> |
144 |
|
<cstring>DriverNameComboBox</cstring> |
145 |
|
</property> |
146 |
|
</widget> |
147 |
|
<widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="3"> |
148 |
|
<property name="name"> |
149 |
|
<cstring>DeviceParamTable</cstring> |
150 |
|
</property> |
151 |
|
<property name="sizePolicy"> |
152 |
|
<sizepolicy> |
153 |
|
<hsizetype>7</hsizetype> |
154 |
|
<vsizetype>7</vsizetype> |
155 |
|
<horstretch>0</horstretch> |
156 |
|
<verstretch>0</verstretch> |
157 |
|
</sizepolicy> |
158 |
|
</property> |
159 |
|
<property name="minimumSize"> |
160 |
|
<size> |
161 |
|
<width>380</width> |
162 |
|
<height>160</height> |
163 |
|
</size> |
164 |
|
</property> |
165 |
|
<property name="focusPolicy"> |
166 |
|
<enum>StrongFocus</enum> |
167 |
|
</property> |
168 |
|
<property name="toolTip" stdset="0"> |
169 |
|
<string>Device parameters</string> |
170 |
|
</property> |
171 |
|
</widget> |
172 |
|
<widget class="QComboBox" row="0" column="2"> |
173 |
|
<property name="name"> |
174 |
|
<cstring>DriverNameComboBox</cstring> |
175 |
|
</property> |
176 |
|
<property name="toolTip" stdset="0"> |
177 |
|
<string>Driver type name</string> |
178 |
|
</property> |
179 |
|
</widget> |
180 |
|
</grid> |
181 |
|
</widget> |
182 |
|
<widget class="QLayoutWidget"> |
183 |
|
<property name="name"> |
184 |
|
<cstring>layout3</cstring> |
185 |
|
</property> |
186 |
|
<grid> |
187 |
<property name="name"> |
<property name="name"> |
188 |
<cstring>DriverNameTextLabel</cstring> |
<cstring>unnamed</cstring> |
189 |
</property> |
</property> |
190 |
<property name="text"> |
<widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="2"> |
191 |
<string>Dri&ver:</string> |
<property name="name"> |
192 |
</property> |
<cstring>DevicePortParamTable</cstring> |
193 |
<property name="alignment"> |
</property> |
194 |
<set>AlignVCenter|AlignRight</set> |
<property name="sizePolicy"> |
195 |
</property> |
<sizepolicy> |
196 |
<property name="buddy" stdset="0"> |
<hsizetype>7</hsizetype> |
197 |
<cstring>DriverNameComboBox</cstring> |
<vsizetype>7</vsizetype> |
198 |
</property> |
<horstretch>0</horstretch> |
199 |
</widget> |
<verstretch>0</verstretch> |
200 |
</grid> |
</sizepolicy> |
201 |
|
</property> |
202 |
|
<property name="minimumSize"> |
203 |
|
<size> |
204 |
|
<width>380</width> |
205 |
|
<height>80</height> |
206 |
|
</size> |
207 |
|
</property> |
208 |
|
<property name="focusPolicy"> |
209 |
|
<enum>StrongFocus</enum> |
210 |
|
</property> |
211 |
|
<property name="toolTip" stdset="0"> |
212 |
|
<string>Device port/channel parameters</string> |
213 |
|
</property> |
214 |
|
</widget> |
215 |
|
<widget class="QLabel" row="0" column="0"> |
216 |
|
<property name="name"> |
217 |
|
<cstring>DevicePortTextLabel</cstring> |
218 |
|
</property> |
219 |
|
<property name="text"> |
220 |
|
<string>Channel:</string> |
221 |
|
</property> |
222 |
|
<property name="alignment"> |
223 |
|
<set>AlignVCenter|AlignRight</set> |
224 |
|
</property> |
225 |
|
<property name="buddy" stdset="0"> |
226 |
|
<cstring>DevicePortComboBox</cstring> |
227 |
|
</property> |
228 |
|
</widget> |
229 |
|
<widget class="QComboBox" row="0" column="1"> |
230 |
|
<property name="name"> |
231 |
|
<cstring>DevicePortComboBox</cstring> |
232 |
|
</property> |
233 |
|
<property name="sizePolicy"> |
234 |
|
<sizepolicy> |
235 |
|
<hsizetype>7</hsizetype> |
236 |
|
<vsizetype>0</vsizetype> |
237 |
|
<horstretch>0</horstretch> |
238 |
|
<verstretch>0</verstretch> |
239 |
|
</sizepolicy> |
240 |
|
</property> |
241 |
|
<property name="toolTip" stdset="0"> |
242 |
|
<string>Device port/channel</string> |
243 |
|
</property> |
244 |
|
</widget> |
245 |
|
</grid> |
246 |
|
</widget> |
247 |
</widget> |
</widget> |
248 |
</widget> |
</widget> |
249 |
<widget class="QLayoutWidget"> |
<widget class="QLayoutWidget"> |
250 |
<property name="name"> |
<property name="name"> |
251 |
<cstring>layout6</cstring> |
<cstring>layout1</cstring> |
252 |
</property> |
</property> |
253 |
<hbox> |
<hbox> |
254 |
<property name="name"> |
<property name="name"> |
264 |
<property name="accel"> |
<property name="accel"> |
265 |
<string>Alt+R</string> |
<string>Alt+R</string> |
266 |
</property> |
</property> |
267 |
|
<property name="iconSet"> |
268 |
|
<iconset>formRefresh.png</iconset> |
269 |
|
</property> |
270 |
<property name="toolTip" stdset="0"> |
<property name="toolTip" stdset="0"> |
271 |
<string>refresh device list view</string> |
<string>Refresh device list view</string> |
272 |
</property> |
</property> |
273 |
</widget> |
</widget> |
274 |
<spacer> |
<spacer> |
298 |
<property name="accel"> |
<property name="accel"> |
299 |
<string>Alt+C</string> |
<string>Alt+C</string> |
300 |
</property> |
</property> |
301 |
|
<property name="iconSet"> |
302 |
|
<iconset>deviceCreate.png</iconset> |
303 |
|
</property> |
304 |
<property name="toolTip" stdset="0"> |
<property name="toolTip" stdset="0"> |
305 |
<string>Create current device</string> |
<string>Create device</string> |
306 |
</property> |
</property> |
307 |
</widget> |
</widget> |
308 |
<widget class="QPushButton"> |
<widget class="QPushButton"> |
315 |
<property name="accel"> |
<property name="accel"> |
316 |
<string>Alt+D</string> |
<string>Alt+D</string> |
317 |
</property> |
</property> |
318 |
|
<property name="iconSet"> |
319 |
|
<iconset>deviceDelete.png</iconset> |
320 |
|
</property> |
321 |
<property name="toolTip" stdset="0"> |
<property name="toolTip" stdset="0"> |
322 |
<string>Delete current device</string> |
<string>Delete device</string> |
323 |
</property> |
</property> |
324 |
</widget> |
</widget> |
325 |
<widget class="QPushButton"> |
<widget class="QPushButton"> |
332 |
<property name="accel"> |
<property name="accel"> |
333 |
<string></string> |
<string></string> |
334 |
</property> |
</property> |
335 |
|
<property name="iconSet"> |
336 |
|
<iconset>formReject.png</iconset> |
337 |
|
</property> |
338 |
<property name="toolTip" stdset="0"> |
<property name="toolTip" stdset="0"> |
339 |
<string>Close this dialog</string> |
<string>Close this dialog</string> |
340 |
</property> |
</property> |
358 |
<horstretch>0</horstretch> |
<horstretch>0</horstretch> |
359 |
<verstretch>0</verstretch> |
<verstretch>0</verstretch> |
360 |
</sizepolicy> |
</sizepolicy> |
|
<pixmap>image0</pixmap> |
|
361 |
</customwidget> |
</customwidget> |
362 |
</customwidgets> |
</customwidgets> |
|
<images> |
|
|
<image name="image0"> |
|
|
<data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data> |
|
|
</image> |
|
|
</images> |
|
363 |
<connections> |
<connections> |
364 |
<connection> |
<connection> |
365 |
<sender>DeviceListView</sender> |
<sender>DeviceListView</sender> |
368 |
<slot>selectDevice()</slot> |
<slot>selectDevice()</slot> |
369 |
</connection> |
</connection> |
370 |
<connection> |
<connection> |
371 |
|
<sender>DeviceListView</sender> |
372 |
|
<signal>contextMenuRequested(QListViewItem*,const QPoint&,int)</signal> |
373 |
|
<receiver>qsamplerDeviceForm</receiver> |
374 |
|
<slot>contextMenu(QListViewItem*,const QPoint&,int)</slot> |
375 |
|
</connection> |
376 |
|
<connection> |
377 |
<sender>RefreshDevicesPushButton</sender> |
<sender>RefreshDevicesPushButton</sender> |
378 |
<signal>clicked()</signal> |
<signal>clicked()</signal> |
379 |
<receiver>qsamplerDeviceForm</receiver> |
<receiver>qsamplerDeviceForm</receiver> |
386 |
<slot>selectDriver(const QString&)</slot> |
<slot>selectDriver(const QString&)</slot> |
387 |
</connection> |
</connection> |
388 |
<connection> |
<connection> |
389 |
|
<sender>DevicePortComboBox</sender> |
390 |
|
<signal>activated(int)</signal> |
391 |
|
<receiver>qsamplerDeviceForm</receiver> |
392 |
|
<slot>selectDevicePort(int)</slot> |
393 |
|
</connection> |
394 |
|
<connection> |
395 |
<sender>CreateDevicePushButton</sender> |
<sender>CreateDevicePushButton</sender> |
396 |
<signal>clicked()</signal> |
<signal>clicked()</signal> |
397 |
<receiver>qsamplerDeviceForm</receiver> |
<receiver>qsamplerDeviceForm</receiver> |
415 |
<tabstop>RefreshDevicesPushButton</tabstop> |
<tabstop>RefreshDevicesPushButton</tabstop> |
416 |
<tabstop>DriverNameComboBox</tabstop> |
<tabstop>DriverNameComboBox</tabstop> |
417 |
<tabstop>DeviceParamTable</tabstop> |
<tabstop>DeviceParamTable</tabstop> |
418 |
|
<tabstop>DevicePortComboBox</tabstop> |
419 |
|
<tabstop>DevicePortParamTable</tabstop> |
420 |
<tabstop>CreateDevicePushButton</tabstop> |
<tabstop>CreateDevicePushButton</tabstop> |
421 |
<tabstop>DeleteDevicePushButton</tabstop> |
<tabstop>DeleteDevicePushButton</tabstop> |
422 |
<tabstop>ClosePushButton</tabstop> |
<tabstop>ClosePushButton</tabstop> |
430 |
</forwards> |
</forwards> |
431 |
<variables> |
<variables> |
432 |
<variable access="private">qsamplerMainForm *m_pMainForm;</variable> |
<variable access="private">qsamplerMainForm *m_pMainForm;</variable> |
433 |
|
<variable access="private">lscp_client_t *m_pClient;</variable> |
434 |
<variable access="private">int m_iDirtySetup;</variable> |
<variable access="private">int m_iDirtySetup;</variable> |
435 |
<variable access="private">int m_iDirtyCount;</variable> |
<variable access="private">int m_iDirtyCount;</variable> |
|
<variable access="private">lscp_client_t *m_pClient;</variable> |
|
436 |
<variable access="private">bool m_bNewDevice;</variable> |
<variable access="private">bool m_bNewDevice;</variable> |
437 |
|
<variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceType;</variable> |
438 |
|
<variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceTypeMode;</variable> |
439 |
|
<variable access="private">qsamplerDeviceItem *m_pAudioItems;</variable> |
440 |
|
<variable access="private">qsamplerDeviceItem *m_pMidiItems;</variable> |
441 |
</variables> |
</variables> |
442 |
|
<signals> |
443 |
|
<signal>devicesChanged()</signal> |
444 |
|
</signals> |
445 |
<slots> |
<slots> |
446 |
<slot specifier="non virtual">createDevice()</slot> |
<slot specifier="non virtual">createDevice()</slot> |
447 |
<slot specifier="non virtual">deleteDevice()</slot> |
<slot specifier="non virtual">deleteDevice()</slot> |
448 |
<slot specifier="non virtual">refreshDevices()</slot> |
<slot specifier="non virtual">refreshDevices()</slot> |
449 |
<slot specifier="non virtual">selectDriver( const QString & sDriverName )</slot> |
<slot specifier="non virtual">selectDriver( const QString & sDriverName )</slot> |
450 |
<slot specifier="non virtual">selectDevice()</slot> |
<slot specifier="non virtual">selectDevice()</slot> |
451 |
<slot specifier="non virtual">changeValue( int iRow, int iCol )</slot> |
<slot specifier="non virtual">selectDevicePort( int iPort )</slot> |
452 |
|
<slot specifier="non virtual">changeDeviceParam( int iRow, int iCol )</slot> |
453 |
|
<slot specifier="non virtual">changeDevicePortParam( int iRow, int iCol )</slot> |
454 |
|
<slot specifier="non virtual">contextMenu(QListViewItem *, const QPoint&, int)</slot> |
455 |
<slot specifier="non virtual">stabilizeForm()</slot> |
<slot specifier="non virtual">stabilizeForm()</slot> |
456 |
</slots> |
</slots> |
457 |
<functions> |
<functions> |
459 |
<function access="private" specifier="non virtual">destroy()</function> |
<function access="private" specifier="non virtual">destroy()</function> |
460 |
<function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function> |
<function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function> |
461 |
<function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function> |
<function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function> |
462 |
|
<function specifier="non virtual">setMainForm( qsamplerMainForm *pMainForm )</function> |
463 |
|
<function specifier="non virtual">setDeviceTypeMode( qsamplerDevice::qsamplerDeviceType deviceType )</function> |
464 |
<function specifier="non virtual">setClient( lscp_client_t *pClient )</function> |
<function specifier="non virtual">setClient( lscp_client_t *pClient )</function> |
465 |
|
<function specifier="non virtual">setDriverName( const QString & sDriverName )</function> |
466 |
|
<function specifier="non virtual">setDevice( qsamplerDevice *pDevice )</function> |
467 |
</functions> |
</functions> |
468 |
<pixmapinproject/> |
<pixmapinproject/> |
469 |
<layoutdefaults spacing="4" margin="4"/> |
<layoutdefaults spacing="4" margin="4"/> |
|
<includehints> |
|
|
<includehint>qsamplerdeviceparamtable.h</includehint> |
|
|
</includehints> |
|
470 |
</UI> |
</UI> |