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) 2005, 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 |
18 |
along with this program; if not, write to the Free Software |
19 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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>556</width> |
32 |
<height>345</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>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>layout4</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>layout5</cstring> |
185 |
</property> |
186 |
<vbox> |
187 |
<property name="name"> |
188 |
<cstring>unnamed</cstring> |
189 |
</property> |
190 |
<widget class="QComboBox"> |
191 |
<property name="name"> |
192 |
<cstring>DevicePortComboBox</cstring> |
193 |
</property> |
194 |
<property name="toolTip" stdset="0"> |
195 |
<string>Device port/channel</string> |
196 |
</property> |
197 |
</widget> |
198 |
<widget class="qsamplerDeviceParamTable"> |
199 |
<property name="name"> |
200 |
<cstring>DevicePortParamTable</cstring> |
201 |
</property> |
202 |
<property name="sizePolicy"> |
203 |
<sizepolicy> |
204 |
<hsizetype>7</hsizetype> |
205 |
<vsizetype>7</vsizetype> |
206 |
<horstretch>0</horstretch> |
207 |
<verstretch>0</verstretch> |
208 |
</sizepolicy> |
209 |
</property> |
210 |
<property name="minimumSize"> |
211 |
<size> |
212 |
<width>380</width> |
213 |
<height>80</height> |
214 |
</size> |
215 |
</property> |
216 |
<property name="focusPolicy"> |
217 |
<enum>StrongFocus</enum> |
218 |
</property> |
219 |
<property name="toolTip" stdset="0"> |
220 |
<string>Device port/channel parameters</string> |
221 |
</property> |
222 |
</widget> |
223 |
</vbox> |
224 |
</widget> |
225 |
</widget> |
226 |
</widget> |
227 |
<widget class="QLayoutWidget"> |
228 |
<property name="name"> |
229 |
<cstring>layout6</cstring> |
230 |
</property> |
231 |
<hbox> |
232 |
<property name="name"> |
233 |
<cstring>unnamed</cstring> |
234 |
</property> |
235 |
<widget class="QPushButton"> |
236 |
<property name="name"> |
237 |
<cstring>RefreshDevicesPushButton</cstring> |
238 |
</property> |
239 |
<property name="text"> |
240 |
<string>&Refresh</string> |
241 |
</property> |
242 |
<property name="accel"> |
243 |
<string>Alt+R</string> |
244 |
</property> |
245 |
<property name="iconSet"> |
246 |
<iconset>formRefresh.png</iconset> |
247 |
</property> |
248 |
<property name="toolTip" stdset="0"> |
249 |
<string>Refresh device list view</string> |
250 |
</property> |
251 |
</widget> |
252 |
<spacer> |
253 |
<property name="name"> |
254 |
<cstring>spacer1</cstring> |
255 |
</property> |
256 |
<property name="orientation"> |
257 |
<enum>Horizontal</enum> |
258 |
</property> |
259 |
<property name="sizeType"> |
260 |
<enum>Expanding</enum> |
261 |
</property> |
262 |
<property name="sizeHint"> |
263 |
<size> |
264 |
<width>180</width> |
265 |
<height>20</height> |
266 |
</size> |
267 |
</property> |
268 |
</spacer> |
269 |
<widget class="QPushButton"> |
270 |
<property name="name"> |
271 |
<cstring>CreateDevicePushButton</cstring> |
272 |
</property> |
273 |
<property name="text"> |
274 |
<string>&Create</string> |
275 |
</property> |
276 |
<property name="accel"> |
277 |
<string>Alt+C</string> |
278 |
</property> |
279 |
<property name="iconSet"> |
280 |
<iconset>deviceCreate.png</iconset> |
281 |
</property> |
282 |
<property name="toolTip" stdset="0"> |
283 |
<string>Create device</string> |
284 |
</property> |
285 |
</widget> |
286 |
<widget class="QPushButton"> |
287 |
<property name="name"> |
288 |
<cstring>DeleteDevicePushButton</cstring> |
289 |
</property> |
290 |
<property name="text"> |
291 |
<string>&Delete</string> |
292 |
</property> |
293 |
<property name="accel"> |
294 |
<string>Alt+D</string> |
295 |
</property> |
296 |
<property name="iconSet"> |
297 |
<iconset>deviceDelete.png</iconset> |
298 |
</property> |
299 |
<property name="toolTip" stdset="0"> |
300 |
<string>Delete device</string> |
301 |
</property> |
302 |
</widget> |
303 |
<widget class="QPushButton"> |
304 |
<property name="name"> |
305 |
<cstring>ClosePushButton</cstring> |
306 |
</property> |
307 |
<property name="text"> |
308 |
<string>Close</string> |
309 |
</property> |
310 |
<property name="accel"> |
311 |
<string></string> |
312 |
</property> |
313 |
<property name="iconSet"> |
314 |
<iconset>formReject.png</iconset> |
315 |
</property> |
316 |
<property name="toolTip" stdset="0"> |
317 |
<string>Close this dialog</string> |
318 |
</property> |
319 |
</widget> |
320 |
</hbox> |
321 |
</widget> |
322 |
</vbox> |
323 |
</widget> |
324 |
<customwidgets> |
325 |
<customwidget> |
326 |
<class>qsamplerDeviceParamTable</class> |
327 |
<header location="global">qsamplerDevice.h</header> |
328 |
<sizehint> |
329 |
<width>-1</width> |
330 |
<height>-1</height> |
331 |
</sizehint> |
332 |
<container>0</container> |
333 |
<sizepolicy> |
334 |
<hordata>7</hordata> |
335 |
<verdata>7</verdata> |
336 |
<horstretch>0</horstretch> |
337 |
<verstretch>0</verstretch> |
338 |
</sizepolicy> |
339 |
<pixmap>image0</pixmap> |
340 |
</customwidget> |
341 |
</customwidgets> |
342 |
<images> |
343 |
<image name="image0"> |
344 |
<data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data> |
345 |
</image> |
346 |
</images> |
347 |
<connections> |
348 |
<connection> |
349 |
<sender>DeviceListView</sender> |
350 |
<signal>selectionChanged()</signal> |
351 |
<receiver>qsamplerDeviceForm</receiver> |
352 |
<slot>selectDevice()</slot> |
353 |
</connection> |
354 |
<connection> |
355 |
<sender>DeviceListView</sender> |
356 |
<signal>contextMenuRequested(QListViewItem*,const QPoint&,int)</signal> |
357 |
<receiver>qsamplerDeviceForm</receiver> |
358 |
<slot>contextMenu(QListViewItem*,const QPoint&,int)</slot> |
359 |
</connection> |
360 |
<connection> |
361 |
<sender>RefreshDevicesPushButton</sender> |
362 |
<signal>clicked()</signal> |
363 |
<receiver>qsamplerDeviceForm</receiver> |
364 |
<slot>refreshDevices()</slot> |
365 |
</connection> |
366 |
<connection> |
367 |
<sender>DriverNameComboBox</sender> |
368 |
<signal>activated(const QString&)</signal> |
369 |
<receiver>qsamplerDeviceForm</receiver> |
370 |
<slot>selectDriver(const QString&)</slot> |
371 |
</connection> |
372 |
<connection> |
373 |
<sender>DevicePortComboBox</sender> |
374 |
<signal>activated(int)</signal> |
375 |
<receiver>qsamplerDeviceForm</receiver> |
376 |
<slot>selectDevicePort(int)</slot> |
377 |
</connection> |
378 |
<connection> |
379 |
<sender>CreateDevicePushButton</sender> |
380 |
<signal>clicked()</signal> |
381 |
<receiver>qsamplerDeviceForm</receiver> |
382 |
<slot>createDevice()</slot> |
383 |
</connection> |
384 |
<connection> |
385 |
<sender>DeleteDevicePushButton</sender> |
386 |
<signal>clicked()</signal> |
387 |
<receiver>qsamplerDeviceForm</receiver> |
388 |
<slot>deleteDevice()</slot> |
389 |
</connection> |
390 |
<connection> |
391 |
<sender>ClosePushButton</sender> |
392 |
<signal>clicked()</signal> |
393 |
<receiver>qsamplerDeviceForm</receiver> |
394 |
<slot>close()</slot> |
395 |
</connection> |
396 |
</connections> |
397 |
<tabstops> |
398 |
<tabstop>DeviceListView</tabstop> |
399 |
<tabstop>RefreshDevicesPushButton</tabstop> |
400 |
<tabstop>DriverNameComboBox</tabstop> |
401 |
<tabstop>DeviceParamTable</tabstop> |
402 |
<tabstop>DevicePortComboBox</tabstop> |
403 |
<tabstop>DevicePortParamTable</tabstop> |
404 |
<tabstop>CreateDevicePushButton</tabstop> |
405 |
<tabstop>DeleteDevicePushButton</tabstop> |
406 |
<tabstop>ClosePushButton</tabstop> |
407 |
</tabstops> |
408 |
<includes> |
409 |
<include location="local" impldecl="in declaration">qsamplerDevice.h</include> |
410 |
<include location="local" impldecl="in implementation">qsamplerDeviceForm.ui.h</include> |
411 |
</includes> |
412 |
<forwards> |
413 |
<forward>class qsamplerMainForm;</forward> |
414 |
</forwards> |
415 |
<variables> |
416 |
<variable access="private">qsamplerMainForm *m_pMainForm;</variable> |
417 |
<variable access="private">lscp_client_t *m_pClient;</variable> |
418 |
<variable access="private">int m_iDirtySetup;</variable> |
419 |
<variable access="private">int m_iDirtyCount;</variable> |
420 |
<variable access="private">bool m_bNewDevice;</variable> |
421 |
<variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceType;</variable> |
422 |
<variable access="private">qsamplerDeviceItem *m_pAudioItems;</variable> |
423 |
<variable access="private">qsamplerDeviceItem *m_pMidiItems;</variable> |
424 |
</variables> |
425 |
<signals> |
426 |
<signal>devicesChanged()</signal> |
427 |
</signals> |
428 |
<slots> |
429 |
<slot specifier="non virtual">createDevice()</slot> |
430 |
<slot specifier="non virtual">deleteDevice()</slot> |
431 |
<slot specifier="non virtual">refreshDevices()</slot> |
432 |
<slot specifier="non virtual">selectDriver( const QString & sDriverName )</slot> |
433 |
<slot specifier="non virtual">selectDevice()</slot> |
434 |
<slot specifier="non virtual">selectDevicePort( int iPort )</slot> |
435 |
<slot specifier="non virtual">changeDeviceParam( int iRow, int iCol )</slot> |
436 |
<slot specifier="non virtual">changeDevicePortParam( int iRow, int iCol )</slot> |
437 |
<slot specifier="non virtual">contextMenu(QListViewItem *, const QPoint&, int)</slot> |
438 |
<slot specifier="non virtual">stabilizeForm()</slot> |
439 |
</slots> |
440 |
<functions> |
441 |
<function access="private" specifier="non virtual">init()</function> |
442 |
<function access="private" specifier="non virtual">destroy()</function> |
443 |
<function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function> |
444 |
<function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function> |
445 |
<function specifier="non virtual">setMainForm( qsamplerMainForm *pMainForm )</function> |
446 |
<function specifier="non virtual">setClient( lscp_client_t *pClient )</function> |
447 |
<function specifier="non virtual">setDevice( qsamplerDevice::qsamplerDeviceType deviceType, int iDeviceID )</function> |
448 |
</functions> |
449 |
<pixmapinproject/> |
450 |
<layoutdefaults spacing="4" margin="4"/> |
451 |
<includehints> |
452 |
<includehint>qsamplerdeviceparamtable.h</includehint> |
453 |
<includehint>qsamplerdeviceparamtable.h</includehint> |
454 |
</includehints> |
455 |
</UI> |