--- qsampler/trunk/src/qsamplerChannelForm.ui 2004/05/30 15:38:06 95 +++ qsampler/trunk/src/qsamplerChannelForm.ui 2005/03/14 12:59:27 455 @@ -2,7 +2,7 @@ qsamplerChannelForm qsampler - A LinuxSampler Qt GUI Interface. - Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved. + Copyright (C) 2004-2005, rncbc aka Rui Nuno Capela. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -28,8 +28,8 @@ 0 0 - 424 - 268 + 455 + 303 @@ -93,7 +93,7 @@ - InstrumentTextLabel + InstrumentFileTextLabel @@ -104,7 +104,7 @@ - &Instrument: + &Filename: AlignVCenter|AlignRight @@ -159,6 +159,12 @@ 0 + + + 320 + 0 + + true @@ -166,23 +172,6 @@ Instrument filename - - - spacer1 - - - Vertical - - - Expanding - - - - 8 - 8 - - - layout1 @@ -232,18 +221,26 @@ - + - InstrumentNrSpinBox + InstrumentNrComboBox - + + + 7 + 0 + 0 + 0 + + + - 40 - 32767 + 320 + 0 - Instrument index + Instrument name @@ -251,29 +248,13 @@ InstrumentNrTextLabel - Inde&x: + &Instrument: AlignVCenter|AlignRight - InstrumentNrSpinBox - - - - - InstrumentNameTextLabel - - - - 1 - 5 - 0 - 0 - - - - Instrument name + InstrumentNrComboBox @@ -289,9 +270,9 @@ - &MIDI/Input + MIDI / Input - + unnamed @@ -301,7 +282,15 @@ 8 - + + + MidiDriverComboBox + + + MIDI input driver type + + + MidiDriverTextLabel @@ -309,40 +298,35 @@ &Type: - AlignVCenter|AlignRight + AlignVCenter MidiDriverComboBox - - - - ALSA - - + - MidiDriverComboBox + MidiDeviceComboBox - MIDI input driver type + MIDI input device - + - MidiPortTextLabel + MidiDeviceTextLabel - &Port: + &Device: - AlignVCenter|AlignRight + AlignVCenter - MidiPortSpinBox + MidiDeviceComboBox - + MidiPortSpinBox @@ -350,7 +334,100 @@ MIDI input port number - + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + All + + + + MidiChannelComboBox + + + MIDI input channel + + + MidiChannelTextLabel @@ -361,26 +438,12 @@ AlignVCenter|AlignRight - MidiChannelSpinBox + MidiChannelComboBox - + - MidiChannelSpinBox - - - 16 - - - 0 - - - MIDI input channel - - - - - spacer2 + spacer1 Horizontal @@ -390,12 +453,26 @@ - 8 + 16 8 - + + + MidiPortTextLabel + + + &Port: + + + AlignVCenter|AlignRight + + + MidiPortSpinBox + + + @@ -410,12 +487,12 @@ - &Audio/Output + Audio / Output AlignAuto - + unnamed @@ -425,7 +502,23 @@ 8 - + + + AudioDeviceComboBox + + + Audio output device + + + + + AudioDriverComboBox + + + Audio output driver type + + + AudioDriverTextLabel @@ -433,33 +526,29 @@ &Type: - AlignVCenter|AlignRight + AlignVCenter AudioDriverComboBox - - - - ALSA - - - - - JACK - - + - AudioDriverComboBox + AudioDeviceTextLabel - - Audio output driver type + + &Device: + + + AlignVCenter + + + AudioDeviceComboBox - + - spacer3 + spacer2 Horizontal @@ -469,12 +558,12 @@ - 8 + 210 8 - + @@ -498,16 +587,22 @@ openInstrumentFile() - InstrumentNrSpinBox - valueChanged(int) + InstrumentNrComboBox + activated(int) qsamplerChannelForm - updateInstrumentName() + optionsChanged() MidiDriverComboBox + activated(const QString &) + qsamplerChannelForm + selectMidiDriver(const QString&) + + + MidiDeviceComboBox activated(int) qsamplerChannelForm - optionsChanged() + selectMidiDevice(int) MidiPortSpinBox @@ -516,16 +611,22 @@ optionsChanged() - MidiChannelSpinBox - valueChanged(int) + MidiChannelComboBox + activated(int) qsamplerChannelForm optionsChanged() AudioDriverComboBox + activated(const QString &) + qsamplerChannelForm + selectAudioDriver(const QString&) + + + AudioDeviceComboBox activated(int) qsamplerChannelForm - optionsChanged() + selectAudioDevice(int) OkPushButton @@ -544,37 +645,44 @@ EngineNameComboBox InstrumentFileComboBox InstrumentFilePushButton - InstrumentNrSpinBox + InstrumentNrComboBox MidiDriverComboBox MidiPortSpinBox - MidiChannelSpinBox + MidiChannelComboBox + MidiDeviceComboBox AudioDriverComboBox + AudioDeviceComboBox OkPushButton CancelPushButton + qsamplerDevice.h + qsamplerChannel.h qsamplerChannelForm.ui.h - - class qsamplerChannelStrip; - - qsamplerChannelStrip *m_pChannel; + qsamplerChannel *m_pChannel; int m_iDirtySetup; int m_iDirtyCount; + QPtrList < qsamplerDevice > m_audioDevices; + QPtrList < qsamplerDevice > m_midiDevices; accept() reject() openInstrumentFile() updateInstrumentName() + selectMidiDriver( const QString & sMidiDriver ) + selectMidiDevice( int iMidiItem ) + selectAudioDriver( const QString & sAudioDriver ) + selectAudioDevice( int iAudioItem ) optionsChanged() stabilizeForm() init() destroy() - setup( qsamplerChannelStrip *pChannel ) + setup( qsamplerChannel *pChannel )