/[svn]/qsampler/trunk/src/qsamplerChannelStrip.ui
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelStrip.ui

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 118 by capela, Tue Jun 8 18:40:06 2004 UTC revision 1018 by capela, Wed Jan 10 19:39:00 2007 UTC
# Line 2  Line 2 
2  <class>qsamplerChannelStrip</class>  <class>qsamplerChannelStrip</class>
3  <comment>qsampler - A LinuxSampler Qt GUI Interface.  <comment>qsampler - A LinuxSampler Qt GUI Interface.
4    
5     Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, 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
# Line 14  Line 14 
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>
# Line 28  Line 28 
28          <rect>          <rect>
29              <x>0</x>              <x>0</x>
30              <y>0</y>              <y>0</y>
31              <width>693</width>              <width>720</width>
32              <height>43</height>              <height>48</height>
33          </rect>          </rect>
34      </property>      </property>
35      <property name="sizePolicy">      <property name="sizePolicy">
# Line 41  Line 41 
41          </sizepolicy>          </sizepolicy>
42      </property>      </property>
43      <property name="caption">      <property name="caption">
44          <string>Channel</string>          <string>Qsampler: Channel</string>
45      </property>      </property>
46      <property name="icon">      <property name="icon">
47          <pixmap>qsamplerChannel.png</pixmap>          <pixmap>qsamplerChannel.png</pixmap>
# Line 126  Line 126 
126                  <property name="margin">                  <property name="margin">
127                      <number>2</number>                      <number>2</number>
128                  </property>                  </property>
129                  <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">                  <widget class="QLabel" row="0" column="0">
130                        <property name="name">
131                            <cstring>EngineNameTextLabel</cstring>
132                        </property>
133                        <property name="sizePolicy">
134                            <sizepolicy>
135                                <hsizetype>7</hsizetype>
136                                <vsizetype>5</vsizetype>
137                                <horstretch>0</horstretch>
138                                <verstretch>0</verstretch>
139                            </sizepolicy>
140                        </property>
141                        <property name="paletteForegroundColor">
142                            <color>
143                                <red>255</red>
144                                <green>255</green>
145                                <blue>127</blue>
146                            </color>
147                        </property>
148                        <property name="paletteBackgroundPixmap">
149                            <pixmap>displaybg1.png</pixmap>
150                        </property>
151                        <property name="backgroundOrigin">
152                            <enum>ParentOrigin</enum>
153                        </property>
154                        <property name="text">
155                            <string>--</string>
156                        </property>
157                        <property name="alignment">
158                            <set>AlignTop</set>
159                        </property>
160                        <property name="toolTip" stdset="0">
161                            <string>Engine name</string>
162                        </property>
163                    </widget>
164                    <widget class="QLabel" row="1" column="0">
165                      <property name="name">                      <property name="name">
166                          <cstring>InstrumentNameTextLabel</cstring>                          <cstring>InstrumentNameTextLabel</cstring>
167                      </property>                      </property>
# Line 147  Line 182 
182                          <string>--</string>                          <string>--</string>
183                      </property>                      </property>
184                      <property name="toolTip" stdset="0">                      <property name="toolTip" stdset="0">
185                          <string>Instrument file [index]</string>                          <string>Instrument name</string>
186                      </property>                      </property>
187                  </widget>                  </widget>
188                  <widget class="QLabel" row="0" column="0">                  <widget class="QLabel" row="0" column="1">
189                      <property name="name">                      <property name="name">
190                          <cstring>EngineNameTextLabel</cstring>                          <cstring>MidiPortChannelTextLabel</cstring>
191                      </property>                      </property>
192                      <property name="sizePolicy">                      <property name="minimumSize">
193                          <sizepolicy>                          <size>
194                              <hsizetype>7</hsizetype>                              <width>20</width>
195                              <vsizetype>5</vsizetype>                              <height>0</height>
196                              <horstretch>0</horstretch>                          </size>
                             <verstretch>0</verstretch>  
                         </sizepolicy>  
197                      </property>                      </property>
198                      <property name="paletteForegroundColor">                      <property name="paletteForegroundColor">
199                          <color>                          <color>
# Line 176  Line 209 
209                          <enum>ParentOrigin</enum>                          <enum>ParentOrigin</enum>
210                      </property>                      </property>
211                      <property name="text">                      <property name="text">
212                          <string>--</string>                          <string>-- / --</string>
213                      </property>                      </property>
214                      <property name="alignment">                      <property name="alignment">
215                          <set>AlignTop</set>                          <set>AlignTop|AlignHCenter</set>
216                      </property>                      </property>
217                      <property name="toolTip" stdset="0">                      <property name="toolTip" stdset="0">
218                          <string>Engine name</string>                          <string>MIDI port / channel</string>
219                      </property>                      </property>
220                  </widget>                  </widget>
221                  <widget class="QLabel" row="0" column="1">                  <widget class="QLabel" row="1" column="1">
222                      <property name="name">                      <property name="name">
223                          <cstring>MidiPortChannelTextLabel</cstring>                          <cstring>InstrumentStatusTextLabel</cstring>
224                      </property>                      </property>
225                      <property name="minimumSize">                      <property name="minimumSize">
226                          <size>                          <size>
# Line 197  Line 230 
230                      </property>                      </property>
231                      <property name="paletteForegroundColor">                      <property name="paletteForegroundColor">
232                          <color>                          <color>
233                              <red>255</red>                              <red>0</red>
234                              <green>255</green>                              <green>255</green>
235                              <blue>127</blue>                              <blue>0</blue>
236                          </color>                          </color>
237                      </property>                      </property>
238                      <property name="paletteBackgroundPixmap">                      <property name="paletteBackgroundPixmap">
# Line 209  Line 242 
242                          <enum>ParentOrigin</enum>                          <enum>ParentOrigin</enum>
243                      </property>                      </property>
244                      <property name="text">                      <property name="text">
245                          <string>--/--</string>                          <string>--</string>
246                      </property>                      </property>
247                      <property name="alignment">                      <property name="alignment">
248                          <set>AlignTop</set>                          <set>AlignCenter</set>
249                      </property>                      </property>
250                      <property name="toolTip" stdset="0">                      <property name="toolTip" stdset="0">
251                          <string>MIDI Port/Channel</string>                          <string>Instrument load status</string>
252                      </property>                      </property>
253                  </widget>                  </widget>
254              </grid>              </grid>
255          </widget>          </widget>
256            <widget class="QPushButton">
257                <property name="name">
258                    <cstring>ChannelMutePushButton</cstring>
259                </property>
260                <property name="maximumSize">
261                    <size>
262                        <width>48</width>
263                        <height>64</height>
264                    </size>
265                </property>
266                <property name="text">
267                    <string>&amp;Mute</string>
268                </property>
269                <property name="accel">
270                    <string>Alt+M</string>
271                </property>
272                <property name="toggleButton">
273                    <bool>true</bool>
274                </property>
275                <property name="toolTip" stdset="0">
276                    <string>Channel mute</string>
277                </property>
278            </widget>
279            <widget class="QPushButton">
280                <property name="name">
281                    <cstring>ChannelSoloPushButton</cstring>
282                </property>
283                <property name="maximumSize">
284                    <size>
285                        <width>48</width>
286                        <height>64</height>
287                    </size>
288                </property>
289                <property name="text">
290                    <string>&amp;Solo</string>
291                </property>
292                <property name="accel">
293                    <string>Alt+S</string>
294                </property>
295                <property name="toggleButton">
296                    <bool>true</bool>
297                </property>
298                <property name="toolTip" stdset="0">
299                    <string>Channel solo</string>
300                </property>
301            </widget>
302          <widget class="QSlider">          <widget class="QSlider">
303              <property name="name">              <property name="name">
304                  <cstring>VolumeSlider</cstring>                  <cstring>VolumeSlider</cstring>
305              </property>              </property>
306              <property name="minimumSize">              <property name="minimumSize">
307                  <size>                  <size>
308                      <width>180</width>                      <width>120</width>
309                      <height>0</height>                      <height>0</height>
310                  </size>                  </size>
311              </property>              </property>
# Line 262  Line 341 
341                      <height>32767</height>                      <height>32767</height>
342                  </size>                  </size>
343              </property>              </property>
344                <property name="suffix">
345                    <string> %</string>
346                </property>
347              <property name="maxValue">              <property name="maxValue">
348                  <number>100</number>                  <number>100</number>
349              </property>              </property>
# Line 356  Line 438 
438          <slot>channelSetup()</slot>          <slot>channelSetup()</slot>
439      </connection>      </connection>
440      <connection>      <connection>
441            <sender>ChannelMutePushButton</sender>
442            <signal>toggled(bool)</signal>
443            <receiver>qsamplerChannelStrip</receiver>
444            <slot>channelMute(bool)</slot>
445        </connection>
446        <connection>
447            <sender>ChannelSoloPushButton</sender>
448            <signal>toggled(bool)</signal>
449            <receiver>qsamplerChannelStrip</receiver>
450            <slot>channelSolo(bool)</slot>
451        </connection>
452        <connection>
453          <sender>VolumeSlider</sender>          <sender>VolumeSlider</sender>
454          <signal>valueChanged(int)</signal>          <signal>valueChanged(int)</signal>
455          <receiver>qsamplerChannelStrip</receiver>          <receiver>qsamplerChannelStrip</receiver>
# Line 370  Line 464 
464  </connections>  </connections>
465  <tabstops>  <tabstops>
466      <tabstop>ChannelSetupPushButton</tabstop>      <tabstop>ChannelSetupPushButton</tabstop>
467        <tabstop>ChannelMutePushButton</tabstop>
468        <tabstop>ChannelSoloPushButton</tabstop>
469      <tabstop>VolumeSlider</tabstop>      <tabstop>VolumeSlider</tabstop>
470      <tabstop>VolumeSpinBox</tabstop>      <tabstop>VolumeSpinBox</tabstop>
471  </tabstops>  </tabstops>
472  <includes>  <includes>
473      <include location="global" impldecl="in declaration">lscp/client.h</include>      <include location="local" impldecl="in declaration">qsamplerChannel.h</include>
     <include location="local" impldecl="in implementation">qsamplerChannelStrip.ui.h</include>  
474  </includes>  </includes>
 <forwards>  
     <forward>class qsamplerOptions;</forward>  
     <forward>class qsamplerMainForm;</forward>  
 </forwards>  
475  <variables>  <variables>
476      <variable access="private">qsamplerMainForm *m_pMainForm;</variable>      <variable access="private">qsamplerChannel *m_pChannel;</variable>
     <variable access="private">int m_iChannelID;</variable>  
     <variable access="private">QString m_sEngineName;</variable>  
     <variable access="private">QString m_sInstrumentFile;</variable>  
     <variable access="private">int m_iInstrumentNr;</variable>  
     <variable access="private">QString m_sMidiDriver;</variable>  
     <variable access="private">int m_iMidiDevice;</variable>  
     <variable access="private">int m_iMidiPort;</variable>  
     <variable access="private">int m_iMidiChannel;</variable>  
     <variable access="private">QString m_sAudioDriver;</variable>  
     <variable access="private">int m_iAudioDevice;</variable>  
     <variable access="private">float m_fVolume;</variable>  
477      <variable access="private">int m_iDirtyChange;</variable>      <variable access="private">int m_iDirtyChange;</variable>
478        <variable access="private">int m_iErrorCount;</variable>
479  </variables>  </variables>
480  <signals>  <signals>
481      <signal>channelChanged( qsamplerChannelStrip * )</signal>      <signal>channelChanged( qsamplerChannelStrip * )</signal>
482  </signals>  </signals>
483  <slots>  <slots>
484      <slot specifier="non virtual">channelSetup()</slot>      <slot specifier="non virtual" returnType="bool">channelSetup()</slot>
485        <slot specifier="non virtual" returnType="bool">channelMute( bool bMute )</slot>
486        <slot specifier="non virtual" returnType="bool">channelSolo( bool bSolo )</slot>
487        <slot specifier="non virtual" returnType="bool">channelReset()</slot>
488      <slot specifier="non virtual">volumeChanged(int)</slot>      <slot specifier="non virtual">volumeChanged(int)</slot>
489  </slots>  </slots>
490  <functions>  <functions>
491      <function access="private" specifier="non virtual">init()</function>      <function access="private" specifier="non virtual">init()</function>
492      <function access="private" specifier="non virtual">destroy()</function>      <function access="private" specifier="non virtual">destroy()</function>
493      <function specifier="non virtual">setup( qsamplerMainForm *pMainForm, int iChannelID )</function>      <function access="private" specifier="non virtual" returnType="bool">decodeDragFile( const QMimeSource * pEvent, QString &amp; sInstrumentFile )</function>
494      <function specifier="non virtual" returnType="qsamplerOptions *">options( void )</function>      <function access="private" specifier="non virtual">dragEnterEvent( QDragEnterEvent *pDragEnterEvent )</function>
495      <function specifier="non virtual" returnType="lscp_client_t *">client( void )</function>      <function access="private" specifier="non virtual">dropEvent( QDropEvent *pDropEvent )</function>
496      <function specifier="non virtual" returnType="int">channelID( void )</function>      <function access="private" specifier="non virtual">contextMenuEvent( QContextMenuEvent *pEvent )</function>
497      <function specifier="non virtual">setChannelID( int iChannelID )</function>      <function specifier="non virtual">setup( qsamplerChannel *pChannel )</function>
498      <function specifier="non virtual" returnType="QString&amp;">engineName( void )</function>      <function specifier="non virtual" returnType="qsamplerChannel *">channel ( void )</function>
     <function specifier="non virtual" returnType="bool">loadEngine( const QString&amp; sEngineName )</function>  
     <function specifier="non virtual" returnType="QString&amp;">instrumentFile( void )</function>  
     <function specifier="non virtual" returnType="int">instrumentNr( void )</function>  
     <function specifier="non virtual" returnType="bool">loadInstrument( const QString&amp; sInstrumentFile, int iInstrumentNr )</function>  
     <function specifier="non virtual" returnType="QString&amp;">midiDriver( void )</function>  
     <function specifier="non virtual" returnType="bool">setMidiDriver( const QString&amp; sMidiDriver )</function>  
     <function specifier="non virtual" returnType="int">midiDevice( void )</function>  
     <function specifier="non virtual" returnType="bool">setMidiDevice( int iMidiDevice )</function>  
     <function specifier="non virtual" returnType="int">midiPort( void )</function>  
     <function specifier="non virtual" returnType="bool">setMidiPort( int iMidiPort )</function>  
     <function specifier="non virtual" returnType="int">midiChannel( void )</function>  
     <function specifier="non virtual" returnType="bool">setMidiChannel( int iMidiChannel )</function>  
     <function specifier="non virtual" returnType="int">audioDevice( void )</function>  
     <function specifier="non virtual" returnType="bool">setAudioDevice( int iAudioDevice )</function>  
     <function specifier="non virtual" returnType="QString&amp;">audioDriver( void )</function>  
     <function specifier="non virtual" returnType="bool">setAudioDriver( const QString&amp; sAudioDriver )</function>  
     <function specifier="non virtual" returnType="float">volume( void )</function>  
     <function specifier="non virtual" returnType="bool">setVolume( float fVolume )</function>  
499      <function specifier="non virtual" returnType="QFont">displayFont( void )</function>      <function specifier="non virtual" returnType="QFont">displayFont( void )</function>
500      <function specifier="non virtual">setDisplayFont( const QFont &amp; font )</function>      <function specifier="non virtual">setDisplayFont( const QFont &amp; font )</function>
501      <function specifier="non virtual">updateChannelInfo( void )</function>      <function specifier="non virtual">setDisplayEffect( bool bDisplayEffect )</function>
502      <function specifier="non virtual">updateChannelVolume( void )</function>      <function specifier="non virtual">setDisplayBackground( const QPixmap &amp; pm )</function>
503      <function specifier="non virtual">updateChannelUsage( void )</function>      <function specifier="non virtual">setMaxVolume( int iMaxVolume )</function>
504      <function specifier="non virtual">appendMessages( const QString &amp; s )</function>      <function specifier="non virtual" returnType="bool">updateInstrumentName( bool bForce )</function>
505      <function specifier="non virtual">appendMessagesColor( const QString &amp; s, const QString &amp; c )</function>      <function specifier="non virtual" returnType="bool">updateChannelVolume( void )</function>
506      <function specifier="non virtual">appendMessagesText( const QString &amp; s )</function>      <function specifier="non virtual" returnType="bool">updateChannelInfo( void )</function>
507      <function specifier="non virtual">appendMessagesError( const QString &amp; s )</function>      <function specifier="non virtual" returnType="bool">updateChannelUsage( void )</function>
508      <function specifier="non virtual">appendMessagesClient( const QString &amp; s )</function>      <function specifier="non virtual">resetErrorCount( void )</function>
     <function specifier="non virtual">contextMenuEvent( QContextMenuEvent *pEvent )</function>  
509  </functions>  </functions>
510  <pixmapinproject/>  <pixmapinproject/>
511  <layoutdefaults spacing="0" margin="0"/>  <layoutdefaults spacing="0" margin="0"/>

Legend:
Removed from v.118  
changed lines
  Added in v.1018

  ViewVC Help
Powered by ViewVC