1 |
capela |
109 |
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> |
2 |
|
|
<class>qsamplerChannelStrip</class> |
3 |
|
|
<comment>qsampler - A LinuxSampler Qt GUI Interface. |
4 |
|
|
|
5 |
|
|
Copyright (C) 2004, 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>qsamplerChannelStrip</cstring> |
26 |
|
|
</property> |
27 |
|
|
<property name="geometry"> |
28 |
|
|
<rect> |
29 |
|
|
<x>0</x> |
30 |
|
|
<y>0</y> |
31 |
|
|
<width>693</width> |
32 |
|
|
<height>43</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>Channel</string> |
45 |
|
|
</property> |
46 |
|
|
<property name="icon"> |
47 |
|
|
<pixmap>qsamplerChannel.png</pixmap> |
48 |
|
|
</property> |
49 |
|
|
<property name="focusPolicy"> |
50 |
|
|
<enum>StrongFocus</enum> |
51 |
|
|
</property> |
52 |
|
|
<hbox> |
53 |
|
|
<property name="name"> |
54 |
|
|
<cstring>unnamed</cstring> |
55 |
|
|
</property> |
56 |
|
|
<property name="margin"> |
57 |
|
|
<number>4</number> |
58 |
|
|
</property> |
59 |
|
|
<property name="spacing"> |
60 |
|
|
<number>4</number> |
61 |
|
|
</property> |
62 |
|
|
<widget class="QPushButton"> |
63 |
|
|
<property name="name"> |
64 |
|
|
<cstring>ChannelSetupPushButton</cstring> |
65 |
|
|
</property> |
66 |
|
|
<property name="text"> |
67 |
|
|
<string>&Channel</string> |
68 |
|
|
</property> |
69 |
|
|
<property name="accel"> |
70 |
|
|
<string>Alt+C</string> |
71 |
|
|
</property> |
72 |
|
|
<property name="iconSet"> |
73 |
|
|
<iconset>qsamplerChannel.png</iconset> |
74 |
|
|
</property> |
75 |
|
|
<property name="flat"> |
76 |
|
|
<bool>true</bool> |
77 |
|
|
</property> |
78 |
|
|
<property name="toolTip" stdset="0"> |
79 |
|
|
<string>Channel setup</string> |
80 |
|
|
</property> |
81 |
|
|
</widget> |
82 |
|
|
<widget class="QFrame"> |
83 |
|
|
<property name="name"> |
84 |
|
|
<cstring>ChannelInfoFrame</cstring> |
85 |
|
|
</property> |
86 |
|
|
<property name="sizePolicy"> |
87 |
|
|
<sizepolicy> |
88 |
|
|
<hsizetype>5</hsizetype> |
89 |
|
|
<vsizetype>5</vsizetype> |
90 |
|
|
<horstretch>0</horstretch> |
91 |
|
|
<verstretch>0</verstretch> |
92 |
|
|
</sizepolicy> |
93 |
|
|
</property> |
94 |
|
|
<property name="minimumSize"> |
95 |
|
|
<size> |
96 |
|
|
<width>200</width> |
97 |
|
|
<height>0</height> |
98 |
|
|
</size> |
99 |
|
|
</property> |
100 |
|
|
<property name="maximumSize"> |
101 |
|
|
<size> |
102 |
|
|
<width>320</width> |
103 |
|
|
<height>64</height> |
104 |
|
|
</size> |
105 |
|
|
</property> |
106 |
|
|
<property name="paletteBackgroundColor"> |
107 |
|
|
<color> |
108 |
|
|
<red>0</red> |
109 |
|
|
<green>0</green> |
110 |
|
|
<blue>0</blue> |
111 |
|
|
</color> |
112 |
|
|
</property> |
113 |
|
|
<property name="paletteBackgroundPixmap"> |
114 |
|
|
<pixmap>displaybg1.png</pixmap> |
115 |
|
|
</property> |
116 |
|
|
<property name="frameShape"> |
117 |
|
|
<enum>Panel</enum> |
118 |
|
|
</property> |
119 |
|
|
<property name="frameShadow"> |
120 |
|
|
<enum>Sunken</enum> |
121 |
|
|
</property> |
122 |
|
|
<grid> |
123 |
|
|
<property name="name"> |
124 |
|
|
<cstring>unnamed</cstring> |
125 |
|
|
</property> |
126 |
|
|
<property name="margin"> |
127 |
|
|
<number>2</number> |
128 |
|
|
</property> |
129 |
|
|
<widget class="QLabel" row="1" column="0" rowspan="1" colspan="2"> |
130 |
|
|
<property name="name"> |
131 |
|
|
<cstring>InstrumentNameTextLabel</cstring> |
132 |
|
|
</property> |
133 |
|
|
<property name="paletteForegroundColor"> |
134 |
|
|
<color> |
135 |
|
|
<red>0</red> |
136 |
|
|
<green>255</green> |
137 |
|
|
<blue>0</blue> |
138 |
|
|
</color> |
139 |
|
|
</property> |
140 |
|
|
<property name="paletteBackgroundPixmap"> |
141 |
|
|
<pixmap>displaybg1.png</pixmap> |
142 |
|
|
</property> |
143 |
|
|
<property name="backgroundOrigin"> |
144 |
|
|
<enum>ParentOrigin</enum> |
145 |
|
|
</property> |
146 |
|
|
<property name="text"> |
147 |
|
|
<string>--</string> |
148 |
|
|
</property> |
149 |
|
|
<property name="toolTip" stdset="0"> |
150 |
|
|
<string>Instrument file [index]</string> |
151 |
|
|
</property> |
152 |
|
|
</widget> |
153 |
|
|
<widget class="QLabel" row="0" column="0"> |
154 |
|
|
<property name="name"> |
155 |
|
|
<cstring>EngineNameTextLabel</cstring> |
156 |
|
|
</property> |
157 |
|
|
<property name="sizePolicy"> |
158 |
|
|
<sizepolicy> |
159 |
|
|
<hsizetype>7</hsizetype> |
160 |
|
|
<vsizetype>5</vsizetype> |
161 |
|
|
<horstretch>0</horstretch> |
162 |
|
|
<verstretch>0</verstretch> |
163 |
|
|
</sizepolicy> |
164 |
|
|
</property> |
165 |
|
|
<property name="paletteForegroundColor"> |
166 |
|
|
<color> |
167 |
|
|
<red>255</red> |
168 |
|
|
<green>255</green> |
169 |
|
|
<blue>127</blue> |
170 |
|
|
</color> |
171 |
|
|
</property> |
172 |
|
|
<property name="paletteBackgroundPixmap"> |
173 |
|
|
<pixmap>displaybg1.png</pixmap> |
174 |
|
|
</property> |
175 |
|
|
<property name="backgroundOrigin"> |
176 |
|
|
<enum>ParentOrigin</enum> |
177 |
|
|
</property> |
178 |
|
|
<property name="text"> |
179 |
|
|
<string>--</string> |
180 |
|
|
</property> |
181 |
|
|
<property name="alignment"> |
182 |
|
|
<set>AlignTop</set> |
183 |
|
|
</property> |
184 |
|
|
<property name="toolTip" stdset="0"> |
185 |
|
|
<string>Engine name</string> |
186 |
|
|
</property> |
187 |
|
|
</widget> |
188 |
|
|
<widget class="QLabel" row="0" column="1"> |
189 |
|
|
<property name="name"> |
190 |
|
|
<cstring>MidiPortChannelTextLabel</cstring> |
191 |
|
|
</property> |
192 |
|
|
<property name="minimumSize"> |
193 |
|
|
<size> |
194 |
|
|
<width>20</width> |
195 |
|
|
<height>0</height> |
196 |
|
|
</size> |
197 |
|
|
</property> |
198 |
|
|
<property name="paletteForegroundColor"> |
199 |
|
|
<color> |
200 |
|
|
<red>255</red> |
201 |
|
|
<green>255</green> |
202 |
|
|
<blue>127</blue> |
203 |
|
|
</color> |
204 |
|
|
</property> |
205 |
|
|
<property name="paletteBackgroundPixmap"> |
206 |
|
|
<pixmap>displaybg1.png</pixmap> |
207 |
|
|
</property> |
208 |
|
|
<property name="backgroundOrigin"> |
209 |
|
|
<enum>ParentOrigin</enum> |
210 |
|
|
</property> |
211 |
|
|
<property name="text"> |
212 |
|
|
<string>--/--</string> |
213 |
|
|
</property> |
214 |
|
|
<property name="alignment"> |
215 |
|
|
<set>AlignTop</set> |
216 |
|
|
</property> |
217 |
|
|
<property name="toolTip" stdset="0"> |
218 |
|
|
<string>MIDI Port/Channel</string> |
219 |
|
|
</property> |
220 |
|
|
</widget> |
221 |
|
|
</grid> |
222 |
|
|
</widget> |
223 |
|
|
<widget class="QSlider"> |
224 |
|
|
<property name="name"> |
225 |
|
|
<cstring>VolumeSlider</cstring> |
226 |
|
|
</property> |
227 |
|
|
<property name="minimumSize"> |
228 |
|
|
<size> |
229 |
|
|
<width>180</width> |
230 |
|
|
<height>0</height> |
231 |
|
|
</size> |
232 |
|
|
</property> |
233 |
|
|
<property name="maxValue"> |
234 |
|
|
<number>100</number> |
235 |
|
|
</property> |
236 |
|
|
<property name="orientation"> |
237 |
|
|
<enum>Horizontal</enum> |
238 |
|
|
</property> |
239 |
|
|
<property name="tickmarks"> |
240 |
|
|
<enum>Both</enum> |
241 |
|
|
</property> |
242 |
|
|
<property name="tickInterval"> |
243 |
|
|
<number>10</number> |
244 |
|
|
</property> |
245 |
|
|
<property name="toolTip" stdset="0"> |
246 |
|
|
<string>Channel volume</string> |
247 |
|
|
</property> |
248 |
|
|
</widget> |
249 |
|
|
<widget class="QSpinBox"> |
250 |
|
|
<property name="name"> |
251 |
|
|
<cstring>VolumeSpinBox</cstring> |
252 |
|
|
</property> |
253 |
|
|
<property name="minimumSize"> |
254 |
|
|
<size> |
255 |
|
|
<width>40</width> |
256 |
|
|
<height>0</height> |
257 |
|
|
</size> |
258 |
|
|
</property> |
259 |
|
|
<property name="maximumSize"> |
260 |
|
|
<size> |
261 |
|
|
<width>60</width> |
262 |
|
|
<height>32767</height> |
263 |
|
|
</size> |
264 |
|
|
</property> |
265 |
|
|
<property name="maxValue"> |
266 |
|
|
<number>100</number> |
267 |
|
|
</property> |
268 |
|
|
<property name="toolTip" stdset="0"> |
269 |
|
|
<string>Channel volume</string> |
270 |
|
|
</property> |
271 |
|
|
</widget> |
272 |
|
|
<widget class="QProgressBar"> |
273 |
|
|
<property name="name"> |
274 |
|
|
<cstring>StreamUsageProgressBar</cstring> |
275 |
|
|
</property> |
276 |
|
|
<property name="sizePolicy"> |
277 |
|
|
<sizepolicy> |
278 |
|
|
<hsizetype>1</hsizetype> |
279 |
|
|
<vsizetype>0</vsizetype> |
280 |
|
|
<horstretch>0</horstretch> |
281 |
|
|
<verstretch>0</verstretch> |
282 |
|
|
</sizepolicy> |
283 |
|
|
</property> |
284 |
|
|
<property name="minimumSize"> |
285 |
|
|
<size> |
286 |
|
|
<width>100</width> |
287 |
|
|
<height>0</height> |
288 |
|
|
</size> |
289 |
|
|
</property> |
290 |
|
|
<property name="maximumSize"> |
291 |
|
|
<size> |
292 |
|
|
<width>32767</width> |
293 |
|
|
<height>22</height> |
294 |
|
|
</size> |
295 |
|
|
</property> |
296 |
|
|
<property name="indicatorFollowsStyle"> |
297 |
|
|
<bool>false</bool> |
298 |
|
|
</property> |
299 |
|
|
<property name="toolTip" stdset="0"> |
300 |
|
|
<string>Least buffer fill stream usage (%)</string> |
301 |
|
|
</property> |
302 |
|
|
</widget> |
303 |
|
|
<widget class="QLabel"> |
304 |
|
|
<property name="name"> |
305 |
|
|
<cstring>StreamVoiceCountTextLabel</cstring> |
306 |
|
|
</property> |
307 |
|
|
<property name="minimumSize"> |
308 |
|
|
<size> |
309 |
|
|
<width>60</width> |
310 |
|
|
<height>0</height> |
311 |
|
|
</size> |
312 |
|
|
</property> |
313 |
|
|
<property name="maximumSize"> |
314 |
|
|
<size> |
315 |
|
|
<width>32767</width> |
316 |
|
|
<height>22</height> |
317 |
|
|
</size> |
318 |
|
|
</property> |
319 |
|
|
<property name="paletteForegroundColor"> |
320 |
|
|
<color> |
321 |
|
|
<red>0</red> |
322 |
|
|
<green>255</green> |
323 |
|
|
<blue>0</blue> |
324 |
|
|
</color> |
325 |
|
|
</property> |
326 |
|
|
<property name="paletteBackgroundColor"> |
327 |
|
|
<color> |
328 |
|
|
<red>0</red> |
329 |
|
|
<green>0</green> |
330 |
|
|
<blue>0</blue> |
331 |
|
|
</color> |
332 |
|
|
</property> |
333 |
|
|
<property name="frameShape"> |
334 |
|
|
<enum>Panel</enum> |
335 |
|
|
</property> |
336 |
|
|
<property name="frameShadow"> |
337 |
|
|
<enum>Sunken</enum> |
338 |
|
|
</property> |
339 |
|
|
<property name="text"> |
340 |
|
|
<string>--/--</string> |
341 |
|
|
</property> |
342 |
|
|
<property name="alignment"> |
343 |
|
|
<set>AlignCenter</set> |
344 |
|
|
</property> |
345 |
|
|
<property name="toolTip" stdset="0"> |
346 |
|
|
<string>Stream / Voice count</string> |
347 |
|
|
</property> |
348 |
|
|
</widget> |
349 |
|
|
</hbox> |
350 |
|
|
</widget> |
351 |
|
|
<connections> |
352 |
|
|
<connection> |
353 |
|
|
<sender>ChannelSetupPushButton</sender> |
354 |
|
|
<signal>clicked()</signal> |
355 |
|
|
<receiver>qsamplerChannelStrip</receiver> |
356 |
|
|
<slot>channelSetup()</slot> |
357 |
|
|
</connection> |
358 |
|
|
<connection> |
359 |
|
|
<sender>VolumeSlider</sender> |
360 |
|
|
<signal>valueChanged(int)</signal> |
361 |
|
|
<receiver>qsamplerChannelStrip</receiver> |
362 |
|
|
<slot>volumeChanged(int)</slot> |
363 |
|
|
</connection> |
364 |
|
|
<connection> |
365 |
|
|
<sender>VolumeSpinBox</sender> |
366 |
|
|
<signal>valueChanged(int)</signal> |
367 |
|
|
<receiver>qsamplerChannelStrip</receiver> |
368 |
|
|
<slot>volumeChanged(int)</slot> |
369 |
|
|
</connection> |
370 |
|
|
</connections> |
371 |
|
|
<tabstops> |
372 |
|
|
<tabstop>ChannelSetupPushButton</tabstop> |
373 |
|
|
<tabstop>VolumeSlider</tabstop> |
374 |
|
|
<tabstop>VolumeSpinBox</tabstop> |
375 |
|
|
</tabstops> |
376 |
|
|
<includes> |
377 |
|
|
<include location="global" impldecl="in declaration">lscp/client.h</include> |
378 |
|
|
<include location="local" impldecl="in implementation">qsamplerChannelStrip.ui.h</include> |
379 |
|
|
</includes> |
380 |
|
|
<forwards> |
381 |
|
|
<forward>class qsamplerOptions;</forward> |
382 |
|
|
<forward>class qsamplerMainForm;</forward> |
383 |
|
|
</forwards> |
384 |
|
|
<variables> |
385 |
|
|
<variable access="private">qsamplerMainForm *m_pMainForm;</variable> |
386 |
|
|
<variable access="private">int m_iChannelID;</variable> |
387 |
|
|
<variable access="private">QString m_sEngineName;</variable> |
388 |
|
|
<variable access="private">QString m_sInstrumentFile;</variable> |
389 |
|
|
<variable access="private">int m_iInstrumentNr;</variable> |
390 |
|
|
<variable access="private">QString m_sMidiDriver;</variable> |
391 |
|
|
<variable access="private">int m_iMidiDevice;</variable> |
392 |
|
|
<variable access="private">int m_iMidiPort;</variable> |
393 |
|
|
<variable access="private">int m_iMidiChannel;</variable> |
394 |
|
|
<variable access="private">QString m_sAudioDriver;</variable> |
395 |
|
|
<variable access="private">int m_iAudioDevice;</variable> |
396 |
|
|
<variable access="private">float m_fVolume;</variable> |
397 |
|
|
<variable access="private">int m_iDirtyChange;</variable> |
398 |
|
|
</variables> |
399 |
|
|
<signals> |
400 |
|
|
<signal>channelChanged( qsamplerChannelStrip * )</signal> |
401 |
|
|
</signals> |
402 |
|
|
<slots> |
403 |
|
|
<slot specifier="non virtual">channelSetup()</slot> |
404 |
|
|
<slot specifier="non virtual">volumeChanged(int)</slot> |
405 |
|
|
</slots> |
406 |
|
|
<functions> |
407 |
|
|
<function access="private" specifier="non virtual">init()</function> |
408 |
|
|
<function access="private" specifier="non virtual">destroy()</function> |
409 |
|
|
<function specifier="non virtual">setup( qsamplerMainForm *pMainForm, int iChannelID )</function> |
410 |
|
|
<function specifier="non virtual" returnType="qsamplerOptions *">options( void )</function> |
411 |
|
|
<function specifier="non virtual" returnType="lscp_client_t *">client( void )</function> |
412 |
|
|
<function specifier="non virtual" returnType="int">channelID( void )</function> |
413 |
|
|
<function specifier="non virtual">setChannelID( int iChannelID )</function> |
414 |
|
|
<function specifier="non virtual" returnType="QString&">engineName( void )</function> |
415 |
|
|
<function specifier="non virtual" returnType="bool">loadEngine( const QString& sEngineName )</function> |
416 |
|
|
<function specifier="non virtual" returnType="QString&">instrumentFile( void )</function> |
417 |
|
|
<function specifier="non virtual" returnType="int">instrumentNr( void )</function> |
418 |
|
|
<function specifier="non virtual" returnType="bool">loadInstrument( const QString& sInstrumentFile, int iInstrumentNr )</function> |
419 |
|
|
<function specifier="non virtual" returnType="QString&">midiDriver( void )</function> |
420 |
|
|
<function specifier="non virtual" returnType="bool">setMidiDriver( const QString& sMidiDriver )</function> |
421 |
|
|
<function specifier="non virtual" returnType="int">midiDevice( void )</function> |
422 |
|
|
<function specifier="non virtual" returnType="bool">setMidiDevice( int iMidiDevice )</function> |
423 |
|
|
<function specifier="non virtual" returnType="int">midiPort( void )</function> |
424 |
|
|
<function specifier="non virtual" returnType="bool">setMidiPort( int iMidiPort )</function> |
425 |
|
|
<function specifier="non virtual" returnType="int">midiChannel( void )</function> |
426 |
|
|
<function specifier="non virtual" returnType="bool">setMidiChannel( int iMidiChannel )</function> |
427 |
|
|
<function specifier="non virtual" returnType="int">audioDevice( void )</function> |
428 |
|
|
<function specifier="non virtual" returnType="bool">setAudioDevice( int iAudioDevice )</function> |
429 |
|
|
<function specifier="non virtual" returnType="QString&">audioDriver( void )</function> |
430 |
|
|
<function specifier="non virtual" returnType="bool">setAudioDriver( const QString& sAudioDriver )</function> |
431 |
|
|
<function specifier="non virtual" returnType="float">volume( void )</function> |
432 |
|
|
<function specifier="non virtual" returnType="bool">setVolume( float fVolume )</function> |
433 |
|
|
<function specifier="non virtual" returnType="QFont">displayFont( void )</function> |
434 |
|
|
<function specifier="non virtual">setDisplayFont( const QFont & font )</function> |
435 |
|
|
<function specifier="non virtual">updateChannelInfo( void )</function> |
436 |
|
|
<function specifier="non virtual">updateChannelVolume( void )</function> |
437 |
|
|
<function specifier="non virtual">updateChannelUsage( void )</function> |
438 |
|
|
<function specifier="non virtual">appendMessages( const QString & s )</function> |
439 |
|
|
<function specifier="non virtual">appendMessagesColor( const QString & s, const QString & c )</function> |
440 |
|
|
<function specifier="non virtual">appendMessagesText( const QString & s )</function> |
441 |
|
|
<function specifier="non virtual">appendMessagesError( const QString & s )</function> |
442 |
|
|
<function specifier="non virtual">appendMessagesClient( const QString & s )</function> |
443 |
|
|
</functions> |
444 |
|
|
<pixmapinproject/> |
445 |
|
|
<layoutdefaults spacing="0" margin="0"/> |
446 |
|
|
</UI> |