--- qsampler/trunk/src/qsamplerChannelForm.ui 2004/11/17 15:55:02 300
+++ qsampler/trunk/src/qsamplerChannelForm.ui 2006/12/17 22:29:29 980
@@ -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-2006, 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
@@ -14,9 +14,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
rncbc aka Rui Nuno Capela
@@ -28,8 +28,8 @@
0
0
- 430
- 255
+ 446
+ 436
@@ -41,7 +41,7 @@
- Channel
+ Qsampler: Channel
qsamplerChannel.png
@@ -53,7 +53,7 @@
unnamed
-
+
EngineNameComboBox
@@ -73,14 +73,6 @@
EngineNameTextLabel
-
-
- 1
- 5
- 0
- 0
-
-
&Engine:
@@ -95,14 +87,6 @@
InstrumentFileTextLabel
-
-
- 1
- 5
- 0
- 0
-
-
&Filename:
@@ -113,9 +97,9 @@
InstrumentFileComboBox
-
+
- InstrumentFilePushButton
+ InstrumentFileToolButton
@@ -137,17 +121,20 @@
26
+
+ TabFocus
+
-
- fileOpen.png
+
+ fileOpen.png
Browse for instrument filename
-
+
InstrumentFileComboBox
@@ -172,9 +159,9 @@
Instrument filename
-
+
- layout1
+ layout01
@@ -182,7 +169,7 @@
- spacer3
+ spacer4
Horizontal
@@ -221,58 +208,25 @@
-
+
- InstrumentNrComboBox
+ AudioGroupBox
7
- 0
- 0
- 0
-
-
-
-
- 320
- 0
-
-
-
- Instrument name
-
-
-
-
- InstrumentNrTextLabel
-
-
- &Instrument:
-
-
- AlignVCenter|AlignRight
-
-
- InstrumentNrComboBox
-
-
-
-
- MidiGroupBox
-
-
-
- 1
5
0
0
- MIDI / Input
+ Audio / Output
-
+
+ AlignAuto
+
+
unnamed
@@ -282,200 +236,211 @@
8
-
+
- MidiDriverTextLabel
+ AudioDriverTextLabel
&Type:
- AlignVCenter|AlignRight
+ AlignVCenter
- MidiDriverComboBox
+ AudioDriverComboBox
-
- -
-
- ALSA
-
-
+
- MidiDriverComboBox
-
-
- MIDI input driver type
+ layout21
+
+
+ unnamed
+
+
+
+ AudioDriverComboBox
+
+
+
+ 5
+ 0
+ 0
+ 0
+
+
+
+ Audio output driver type
+
+
+
+
+ spacer3
+
+
+ Horizontal
+
+
+ Expanding
+
+
+
+ 20
+ 20
+
+
+
+
-
+
- MidiPortTextLabel
-
-
- &Port:
-
-
- AlignVCenter|AlignRight
-
-
- MidiPortSpinBox
+ layout22
+
+
+ unnamed
+
+
+
+ AudioDeviceComboBox
+
+
+
+ 7
+ 0
+ 0
+ 0
+
+
+
+ Audio output device
+
+
+
+
+ AudioDeviceToolButton
+
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+
+
+ 24
+ 24
+
+
+
+
+ 26
+ 26
+
+
+
+ TabFocus
+
+
+
+
+
+ audio1.png
+
+
+ Audio output device setup
+
+
+
-
+
- MidiPortSpinBox
-
-
- MIDI input port number
-
-
-
-
- MidiChannelTextLabel
+ AudioDeviceTextLabel
- &Channel:
+ &Device:
- AlignVCenter|AlignRight
+ AlignVCenter
- MidiChannelComboBox
-
-
-
- -
-
- 1
-
-
- -
-
- 2
-
-
- -
-
- 3
-
-
- -
-
- 4
-
-
- -
-
- 5
-
-
- -
-
- 6
-
-
- -
-
- 7
-
-
- -
-
- 8
-
-
- -
-
- 9
-
-
- -
-
- 10
-
-
- -
-
- 11
-
-
- -
-
- 12
-
-
- -
-
- 13
-
-
- -
-
- 14
-
-
- -
-
- 15
-
-
- -
-
- 16
-
-
- -
-
- All
-
-
-
- MidiChannelComboBox
-
-
- MIDI input channel
+ AudioDeviceComboBox
-
+
- spacer2
+ AudioRoutingTable
-
- Horizontal
-
-
- Expanding
-
-
+
- 8
- 8
+ 0
+ 100
-
-
+
+ StrongFocus
+
+
+ Audio output channel routing
+
+
+
-
+
- AudioGroupBox
+ InstrumentNrTextLabel
+
+
+ &Instrument:
+
+
+ AlignVCenter|AlignRight
+
+
+ InstrumentNrComboBox
+
+
+
+
+ InstrumentNrComboBox
+
+
+
+ 7
+ 0
+ 0
+ 0
+
+
+
+
+ 320
+ 0
+
+
+
+ Instrument name
+
+
+
+
+ MidiGroupBox
- 1
+ 7
5
0
0
- Audio / Output
-
-
- AlignAuto
+ MIDI / Input
-
+
unnamed
@@ -485,59 +450,347 @@
8
-
+
- AudioDriverTextLabel
+ MidiDriverTextLabel
&Type:
- AlignVCenter|AlignRight
+ AlignVCenter
- AudioDriverComboBox
+ MidiDriverComboBox
-
- -
-
- ALSA
-
-
- -
-
- JACK
-
-
+
- AudioDriverComboBox
+ layout12
-
- Audio output driver type
+
+
+ unnamed
+
+
+
+ MidiDeviceComboBox
+
+
+
+ 7
+ 0
+ 0
+ 0
+
+
+
+ MIDI input device
+
+
+
+
+ MidiDeviceToolButton
+
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+
+
+ 24
+ 24
+
+
+
+
+ 26
+ 26
+
+
+
+ TabFocus
+
+
+
+
+
+ midi1.png
+
+
+ MIDI input device setup
+
+
+
+
+
+
+ MidiDeviceTextLabel
+
+
+ &Device:
+
+
+ AlignVCenter
+
+
+ MidiDeviceComboBox
-
+
- spacer3
+ MidiMapTextLabel
-
- Horizontal
+
+ &Map:
-
- Expanding
+
+ AlignVCenter|AlignRight
-
-
- 8
- 8
-
+
+ MidiMapComboBox
-
-
+
+
+
+ layout11
+
+
+
+ unnamed
+
+
+
+ MidiDriverComboBox
+
+
+
+ 5
+ 0
+ 0
+ 0
+
+
+
+ MIDI input driver type
+
+
+
+
+ spacer1
+
+
+ Horizontal
+
+
+ Expanding
+
+
+
+ 20
+ 20
+
+
+
+
+
+ MidiPortTextLabel
+
+
+ &Port:
+
+
+ AlignVCenter|AlignRight
+
+
+ MidiPortSpinBox
+
+
+
+
+ MidiPortSpinBox
+
+
+ MIDI input port number
+
+
+
+
+ MidiChannelTextLabel
+
+
+ &Channel:
+
+
+ AlignVCenter|AlignRight
+
+
+ MidiChannelComboBox
+
+
+
+ -
+
+ 1
+
+
+ -
+
+ 2
+
+
+ -
+
+ 3
+
+
+ -
+
+ 4
+
+
+ -
+
+ 5
+
+
+ -
+
+ 6
+
+
+ -
+
+ 7
+
+
+ -
+
+ 8
+
+
+ -
+
+ 9
+
+
+ -
+
+ 10
+
+
+ -
+
+ 11
+
+
+ -
+
+ 12
+
+
+ -
+
+ 13
+
+
+ -
+
+ 14
+
+
+ -
+
+ 15
+
+
+ -
+
+ 16
+
+
+ -
+
+ All
+
+
+
+ MidiChannelComboBox
+
+
+ MIDI input channel
+
+
+
+
+
+
+ layout6
+
+
+
+ unnamed
+
+
+
+ MidiMapComboBox
+
+
+
+ 7
+ 0
+ 0
+ 0
+
+
+
+ Instrument name
+
+
+
+
+ spacer1_2
+
+
+ Horizontal
+
+
+ Expanding
+
+
+
+ 160
+ 20
+
+
+
+
+
+
+
+
+ qsamplerChannelRoutingTable
+
+
+ -1
+ -1
+
+ 0
+
+ 7
+ 7
+ 0
+ 0
+
+
+
EngineNameComboBox
@@ -547,23 +800,35 @@
InstrumentFileComboBox
- textChanged(const QString &)
+ activated(const QString&)
qsamplerChannelForm
updateInstrumentName()
- InstrumentFilePushButton
+ InstrumentFileToolButton
clicked()
qsamplerChannelForm
openInstrumentFile()
- MidiDriverComboBox
+ InstrumentNrComboBox
activated(int)
qsamplerChannelForm
optionsChanged()
+ MidiDriverComboBox
+ activated(const QString&)
+ qsamplerChannelForm
+ selectMidiDriver(const QString&)
+
+
+ MidiDeviceComboBox
+ activated(int)
+ qsamplerChannelForm
+ selectMidiDevice(int)
+
+
MidiPortSpinBox
valueChanged(int)
qsamplerChannelForm
@@ -576,12 +841,24 @@
optionsChanged()
- AudioDriverComboBox
+ MidiMapComboBox
activated(int)
qsamplerChannelForm
optionsChanged()
+ AudioDriverComboBox
+ activated(const QString&)
+ qsamplerChannelForm
+ selectAudioDriver(const QString&)
+
+
+ AudioDeviceComboBox
+ activated(int)
+ qsamplerChannelForm
+ selectAudioDevice(int)
+
+
OkPushButton
clicked()
qsamplerChannelForm
@@ -593,33 +870,67 @@
qsamplerChannelForm
reject()
+
+ MidiDeviceToolButton
+ clicked()
+ qsamplerChannelForm
+ setupMidiDevice()
+
+
+ AudioDeviceToolButton
+ clicked()
+ qsamplerChannelForm
+ setupAudioDevice()
+
EngineNameComboBox
InstrumentFileComboBox
- InstrumentFilePushButton
+ InstrumentFileToolButton
InstrumentNrComboBox
MidiDriverComboBox
MidiPortSpinBox
MidiChannelComboBox
+ MidiDeviceComboBox
+ MidiDeviceToolButton
+ MidiMapComboBox
AudioDriverComboBox
+ AudioDeviceComboBox
+ AudioDeviceToolButton
+ AudioRoutingTable
OkPushButton
CancelPushButton
+ qsamplerDevice.h
qsamplerChannel.h
qsamplerChannelForm.ui.h
+
+ class qsamplerDeviceForm;
+
qsamplerChannel *m_pChannel;
int m_iDirtySetup;
int m_iDirtyCount;
+ QPtrList < qsamplerDevice > m_audioDevices;
+ QPtrList < qsamplerDevice > m_midiDevices;
+ qsamplerDeviceForm *m_pDeviceForm;
+ qsamplerChannelRoutingMap m_audioRouting;
accept()
reject()
openInstrumentFile()
updateInstrumentName()
+ selectMidiDriver( const QString & sMidiDriver )
+ selectMidiDevice( int iMidiItem )
+ setupMidiDevice()
+ selectAudioDriver( const QString & sAudioDriver )
+ selectAudioDevice( int iAudioItem )
+ setupAudioDevice()
+ changeAudioRouting( int iRow, int iCol )
+ updateDevices()
optionsChanged()
stabilizeForm()
@@ -627,7 +938,15 @@
init()
destroy()
setup( qsamplerChannel *pChannel )
+ setupDevice( qsamplerDevice *pDevice, qsamplerDevice::qsamplerDeviceType deviceTypeMode, const QString & sDriverName )
+ selectMidiDriverItem( const QString & sMidiDriver )
+ selectMidiDeviceItem( int iMidiItem )
+ selectAudioDriverItem( const QString & sAudioDriver )
+ selectAudioDeviceItem( int iAudioItem )
-
+
+
+ qsamplerChannel.h
+