1 |
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> |
2 |
<class>qsamplerDeviceForm</class> |
3 |
<comment>qsampler - A LinuxSampler Qt GUI Interface. |
4 |
|
5 |
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 |
8 |
modify it under the terms of the GNU General Public License |
9 |
as published by the Free Software Foundation; either version 2 |
10 |
of the License, or (at your option) any later version. |
11 |
|
12 |
This program is distributed in the hope that it will be useful, |
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
16 |
|
17 |
You should have received a copy of the GNU General Public License along |
18 |
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
21 |
</comment> |
22 |
<author>rncbc aka Rui Nuno Capela</author> |
23 |
<widget class="QWidget"> |
24 |
<property name="name"> |
25 |
<cstring>qsamplerDeviceForm</cstring> |
26 |
</property> |
27 |
<property name="geometry"> |
28 |
<rect> |
29 |
<x>0</x> |
30 |
<y>0</y> |
31 |
<width>570</width> |
32 |
<height>361</height> |
33 |
</rect> |
34 |
</property> |
35 |
<property name="sizePolicy"> |
36 |
<sizepolicy> |
37 |
<hsizetype>7</hsizetype> |
38 |
<vsizetype>1</vsizetype> |
39 |
<horstretch>0</horstretch> |
40 |
<verstretch>0</verstretch> |
41 |
</sizepolicy> |
42 |
</property> |
43 |
<property name="caption"> |
44 |
<string>Qsampler: Devices</string> |
45 |
</property> |
46 |
<property name="icon"> |
47 |
<pixmap>qsamplerDevice.png</pixmap> |
48 |
</property> |
49 |
<property name="focusPolicy"> |
50 |
<enum>StrongFocus</enum> |
51 |
</property> |
52 |
<vbox> |
53 |
<property name="name"> |
54 |
<cstring>unnamed</cstring> |
55 |
</property> |
56 |
<widget class="QSplitter"> |
57 |
<property name="name"> |
58 |
<cstring>splitter1</cstring> |
59 |
</property> |
60 |
<property name="orientation"> |
61 |
<enum>Horizontal</enum> |
62 |
</property> |
63 |
<widget class="QListView"> |
64 |
<column> |
65 |
<property name="text"> |
66 |
<string>Devices</string> |
67 |
</property> |
68 |
<property name="clickable"> |
69 |
<bool>true</bool> |
70 |
</property> |
71 |
<property name="resizable"> |
72 |
<bool>true</bool> |
73 |
</property> |
74 |
</column> |
75 |
<property name="name"> |
76 |
<cstring>DeviceListView</cstring> |
77 |
</property> |
78 |
<property name="minimumSize"> |
79 |
<size> |
80 |
<width>160</width> |
81 |
<height>0</height> |
82 |
</size> |
83 |
</property> |
84 |
<property name="rootIsDecorated"> |
85 |
<bool>true</bool> |
86 |
</property> |
87 |
<property name="resizeMode"> |
88 |
<enum>LastColumn</enum> |
89 |
</property> |
90 |
<property name="toolTip" stdset="0"> |
91 |
<string>Device list</string> |
92 |
</property> |
93 |
</widget> |
94 |
<widget class="QSplitter"> |
95 |
<property name="name"> |
96 |
<cstring>splitter2</cstring> |
97 |
</property> |
98 |
<property name="orientation"> |
99 |
<enum>Vertical</enum> |
100 |
</property> |
101 |
<widget class="QLayoutWidget"> |
102 |
<property name="name"> |
103 |
<cstring>layout2</cstring> |
104 |
</property> |
105 |
<grid> |
106 |
<property name="name"> |
107 |
<cstring>unnamed</cstring> |
108 |
</property> |
109 |
<widget class="QLabel" row="0" column="0"> |
110 |
<property name="name"> |
111 |
<cstring>DeviceNameTextLabel</cstring> |
112 |
</property> |
113 |
<property name="sizePolicy"> |
114 |
<sizepolicy> |
115 |
<hsizetype>7</hsizetype> |
116 |
<vsizetype>5</vsizetype> |
117 |
<horstretch>0</horstretch> |
118 |
<verstretch>0</verstretch> |
119 |
</sizepolicy> |
120 |
</property> |
121 |
<property name="font"> |
122 |
<font> |
123 |
<bold>1</bold> |
124 |
</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"> |
188 |
<cstring>unnamed</cstring> |
189 |
</property> |
190 |
<widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="2"> |
191 |
<property name="name"> |
192 |
<cstring>DevicePortParamTable</cstring> |
193 |
</property> |
194 |
<property name="sizePolicy"> |
195 |
<sizepolicy> |
196 |
<hsizetype>7</hsizetype> |
197 |
<vsizetype>7</vsizetype> |
198 |
<horstretch>0</horstretch> |
199 |
<verstretch>0</verstretch> |
200 |
</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> |
248 |
</widget> |
249 |
<widget class="QLayoutWidget"> |
250 |
<property name="name"> |
251 |
<cstring>layout1</cstring> |
252 |
</property> |
253 |
<hbox> |
254 |
<property name="name"> |
255 |
<cstring>unnamed</cstring> |
256 |
</property> |
257 |
<widget class="QPushButton"> |
258 |
<property name="name"> |
259 |
<cstring>RefreshDevicesPushButton</cstring> |
260 |
</property> |
261 |
<property name="text"> |
262 |
<string>&Refresh</string> |
263 |
</property> |
264 |
<property name="accel"> |
265 |
<string>Alt+R</string> |
266 |
</property> |
267 |
<property name="iconSet"> |
268 |
<iconset>formRefresh.png</iconset> |
269 |
</property> |
270 |
<property name="toolTip" stdset="0"> |
271 |
<string>Refresh device list view</string> |
272 |
</property> |
273 |
</widget> |
274 |
<spacer> |
275 |
<property name="name"> |
276 |
<cstring>spacer1</cstring> |
277 |
</property> |
278 |
<property name="orientation"> |
279 |
<enum>Horizontal</enum> |
280 |
</property> |
281 |
<property name="sizeType"> |
282 |
<enum>Expanding</enum> |
283 |
</property> |
284 |
<property name="sizeHint"> |
285 |
<size> |
286 |
<width>180</width> |
287 |
<height>20</height> |
288 |
</size> |
289 |
</property> |
290 |
</spacer> |
291 |
<widget class="QPushButton"> |
292 |
<property name="name"> |
293 |
<cstring>CreateDevicePushButton</cstring> |
294 |
</property> |
295 |
<property name="text"> |
296 |
<string>&Create</string> |
297 |
</property> |
298 |
<property name="accel"> |
299 |
<string>Alt+C</string> |
300 |
</property> |
301 |
<property name="iconSet"> |
302 |
<iconset>deviceCreate.png</iconset> |
303 |
</property> |
304 |
<property name="toolTip" stdset="0"> |
305 |
<string>Create device</string> |
306 |
</property> |
307 |
</widget> |
308 |
<widget class="QPushButton"> |
309 |
<property name="name"> |
310 |
<cstring>DeleteDevicePushButton</cstring> |
311 |
</property> |
312 |
<property name="text"> |
313 |
<string>&Delete</string> |
314 |
</property> |
315 |
<property name="accel"> |
316 |
<string>Alt+D</string> |
317 |
</property> |
318 |
<property name="iconSet"> |
319 |
<iconset>deviceDelete.png</iconset> |
320 |
</property> |
321 |
<property name="toolTip" stdset="0"> |
322 |
<string>Delete device</string> |
323 |
</property> |
324 |
</widget> |
325 |
<widget class="QPushButton"> |
326 |
<property name="name"> |
327 |
<cstring>ClosePushButton</cstring> |
328 |
</property> |
329 |
<property name="text"> |
330 |
<string>Close</string> |
331 |
</property> |
332 |
<property name="accel"> |
333 |
<string></string> |
334 |
</property> |
335 |
<property name="iconSet"> |
336 |
<iconset>formReject.png</iconset> |
337 |
</property> |
338 |
<property name="toolTip" stdset="0"> |
339 |
<string>Close this dialog</string> |
340 |
</property> |
341 |
</widget> |
342 |
</hbox> |
343 |
</widget> |
344 |
</vbox> |
345 |
</widget> |
346 |
<customwidgets> |
347 |
<customwidget> |
348 |
<class>qsamplerDeviceParamTable</class> |
349 |
<header location="global">qsamplerDevice.h</header> |
350 |
<sizehint> |
351 |
<width>-1</width> |
352 |
<height>-1</height> |
353 |
</sizehint> |
354 |
<container>0</container> |
355 |
<sizepolicy> |
356 |
<hordata>7</hordata> |
357 |
<verdata>7</verdata> |
358 |
<horstretch>0</horstretch> |
359 |
<verstretch>0</verstretch> |
360 |
</sizepolicy> |
361 |
</customwidget> |
362 |
</customwidgets> |
363 |
<connections> |
364 |
<connection> |
365 |
<sender>DeviceListView</sender> |
366 |
<signal>selectionChanged()</signal> |
367 |
<receiver>qsamplerDeviceForm</receiver> |
368 |
<slot>selectDevice()</slot> |
369 |
</connection> |
370 |
<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> |
378 |
<signal>clicked()</signal> |
379 |
<receiver>qsamplerDeviceForm</receiver> |
380 |
<slot>refreshDevices()</slot> |
381 |
</connection> |
382 |
<connection> |
383 |
<sender>DriverNameComboBox</sender> |
384 |
<signal>activated(const QString&)</signal> |
385 |
<receiver>qsamplerDeviceForm</receiver> |
386 |
<slot>selectDriver(const QString&)</slot> |
387 |
</connection> |
388 |
<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> |
396 |
<signal>clicked()</signal> |
397 |
<receiver>qsamplerDeviceForm</receiver> |
398 |
<slot>createDevice()</slot> |
399 |
</connection> |
400 |
<connection> |
401 |
<sender>DeleteDevicePushButton</sender> |
402 |
<signal>clicked()</signal> |
403 |
<receiver>qsamplerDeviceForm</receiver> |
404 |
<slot>deleteDevice()</slot> |
405 |
</connection> |
406 |
<connection> |
407 |
<sender>ClosePushButton</sender> |
408 |
<signal>clicked()</signal> |
409 |
<receiver>qsamplerDeviceForm</receiver> |
410 |
<slot>close()</slot> |
411 |
</connection> |
412 |
</connections> |
413 |
<tabstops> |
414 |
<tabstop>DeviceListView</tabstop> |
415 |
<tabstop>RefreshDevicesPushButton</tabstop> |
416 |
<tabstop>DriverNameComboBox</tabstop> |
417 |
<tabstop>DeviceParamTable</tabstop> |
418 |
<tabstop>DevicePortComboBox</tabstop> |
419 |
<tabstop>DevicePortParamTable</tabstop> |
420 |
<tabstop>CreateDevicePushButton</tabstop> |
421 |
<tabstop>DeleteDevicePushButton</tabstop> |
422 |
<tabstop>ClosePushButton</tabstop> |
423 |
</tabstops> |
424 |
<includes> |
425 |
<include location="local" impldecl="in declaration">qsamplerDevice.h</include> |
426 |
<include location="local" impldecl="in implementation">qsamplerDeviceForm.ui.h</include> |
427 |
</includes> |
428 |
<forwards> |
429 |
<forward>class qsamplerMainForm;</forward> |
430 |
</forwards> |
431 |
<variables> |
432 |
<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> |
435 |
<variable access="private">int m_iDirtyCount;</variable> |
436 |
<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> |
442 |
<signals> |
443 |
<signal>devicesChanged()</signal> |
444 |
</signals> |
445 |
<slots> |
446 |
<slot specifier="non virtual">createDevice()</slot> |
447 |
<slot specifier="non virtual">deleteDevice()</slot> |
448 |
<slot specifier="non virtual">refreshDevices()</slot> |
449 |
<slot specifier="non virtual">selectDriver( const QString & sDriverName )</slot> |
450 |
<slot specifier="non virtual">selectDevice()</slot> |
451 |
<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> |
456 |
</slots> |
457 |
<functions> |
458 |
<function access="private" specifier="non virtual">init()</function> |
459 |
<function access="private" specifier="non virtual">destroy()</function> |
460 |
<function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function> |
461 |
<function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function> |
462 |
<function specifier="non virtual">setDeviceTypeMode( qsamplerDevice::qsamplerDeviceType deviceType )</function> |
463 |
<function specifier="non virtual">setDriverName( const QString & sDriverName )</function> |
464 |
<function specifier="non virtual">setDevice( qsamplerDevice *pDevice )</function> |
465 |
</functions> |
466 |
<pixmapinproject/> |
467 |
<layoutdefaults spacing="4" margin="4"/> |
468 |
</UI> |