--- qsampler/trunk/src/qsamplerChannelForm.ui 2004/09/29 13:12:45 264
+++ 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:
@@ -93,18 +85,10 @@
- InstrumentTextLabel
-
-
-
- 1
- 5
- 0
- 0
-
+ InstrumentFileTextLabel
- &Instrument:
+ &Filename:
AlignVCenter|AlignRight
@@ -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,57 +208,230 @@
-
+
- InstrumentNrSpinBox
+ AudioGroupBox
-
-
- 40
- 32767
-
+
+
+ 7
+ 5
+ 0
+ 0
+
-
- Instrument index
+
+ Audio / Output
+
+
+ AlignAuto
+
+
+ unnamed
+
+
+ 8
+
+
+ 8
+
+
+
+ AudioDriverTextLabel
+
+
+ &Type:
+
+
+ AlignVCenter
+
+
+ AudioDriverComboBox
+
+
+
+
+ layout21
+
+
+
+ unnamed
+
+
+
+ AudioDriverComboBox
+
+
+
+ 5
+ 0
+ 0
+ 0
+
+
+
+ Audio output driver type
+
+
+
+
+ spacer3
+
+
+ Horizontal
+
+
+ Expanding
+
+
+
+ 20
+ 20
+
+
+
+
+
+
+
+ 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
+
+
+
+
+
+
+ AudioDeviceTextLabel
+
+
+ &Device:
+
+
+ AlignVCenter
+
+
+ AudioDeviceComboBox
+
+
+
+
+ AudioRoutingTable
+
+
+
+ 0
+ 100
+
+
+
+ StrongFocus
+
+
+ Audio output channel routing
+
+
+
InstrumentNrTextLabel
- Inde&x:
+ &Instrument:
AlignVCenter|AlignRight
- InstrumentNrSpinBox
+ InstrumentNrComboBox
-
+
- InstrumentNameTextLabel
+ InstrumentNrComboBox
- 1
- 5
+ 7
+ 0
0
0
+
+
+ 320
+ 0
+
+
Instrument name
-
+
MidiGroupBox
- 1
+ 7
5
0
0
@@ -280,7 +440,7 @@
MIDI / Input
-
+
unnamed
@@ -290,7 +450,7 @@
8
-
+
MidiDriverTextLabel
@@ -298,254 +458,339 @@
&Type:
- AlignVCenter|AlignRight
+ AlignVCenter
MidiDriverComboBox
-
- -
-
- ALSA
-
-
+
- MidiDriverComboBox
-
-
- MIDI input driver type
+ layout12
+
+
+ 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
+
+
+
-
+
- MidiPortTextLabel
+ MidiDeviceTextLabel
- &Port:
+ &Device:
- AlignVCenter|AlignRight
+ AlignVCenter
- MidiPortSpinBox
-
-
-
-
- MidiPortSpinBox
-
-
- MIDI input port number
+ MidiDeviceComboBox
-
+
- MidiChannelTextLabel
+ MidiMapTextLabel
- &Channel:
+ &Map:
AlignVCenter|AlignRight
- MidiChannelComboBox
-
-
-
- -
-
- All
-
-
- -
-
- 1
-
-
- -
-
- 2
-
-
- -
-
- 3
-
-
- -
-
- 4
-
-
- -
-
- 5
-
-
- -
-
- 6
-
-
- -
-
- 7
-
-
- -
-
- 8
-
-
- -
-
- 9
-
-
- -
-
- 10
-
-
- -
-
- 11
-
-
- -
-
- 12
-
-
- -
-
- 13
-
-
- -
-
- 14
-
-
- -
-
- 15
-
-
- -
-
- 16
-
-
-
- MidiChannelComboBox
-
-
- MIDI input channel
+ MidiMapComboBox
-
+
- spacer2
-
-
- Horizontal
-
-
- Expanding
-
-
-
- 8
- 8
-
-
-
-
-
-
-
- AudioGroupBox
-
-
-
- 1
- 5
- 0
- 0
-
-
-
- Audio / Output
-
-
- AlignAuto
-
-
-
- unnamed
-
-
- 8
-
-
- 8
-
-
-
- AudioDriverTextLabel
-
-
- &Type:
-
-
- AlignVCenter|AlignRight
-
-
- AudioDriverComboBox
+ 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
+
+
+
-
- -
-
- ALSA
-
-
- -
-
- JACK
-
-
+
- AudioDriverComboBox
-
-
- Audio output driver type
+ layout6
+
+
+ unnamed
+
+
+
+ MidiMapComboBox
+
+
+
+ 7
+ 0
+ 0
+ 0
+
+
+
+ Instrument name
+
+
+
+
+ spacer1_2
+
+
+ Horizontal
+
+
+ Expanding
+
+
+
+ 160
+ 20
+
+
+
+
-
-
- spacer3
-
-
- Horizontal
-
-
- Expanding
-
-
-
- 8
- 8
-
-
-
-
+
+
+
+ qsamplerChannelRoutingTable
+
+
+ -1
+ -1
+
+ 0
+
+ 7
+ 7
+ 0
+ 0
+
+
+
EngineNameComboBox
@@ -555,27 +800,33 @@
InstrumentFileComboBox
- textChanged(const QString &)
+ activated(const QString&)
qsamplerChannelForm
updateInstrumentName()
- InstrumentFilePushButton
+ InstrumentFileToolButton
clicked()
qsamplerChannelForm
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
@@ -590,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
@@ -607,41 +870,83 @@
qsamplerChannelForm
reject()
+
+ MidiDeviceToolButton
+ clicked()
+ qsamplerChannelForm
+ setupMidiDevice()
+
+
+ AudioDeviceToolButton
+ clicked()
+ qsamplerChannelForm
+ setupAudioDevice()
+
EngineNameComboBox
InstrumentFileComboBox
- InstrumentFilePushButton
- InstrumentNrSpinBox
+ 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()
init()
destroy()
- setup( qsamplerChannel *pChannel, bool bNew )
+ 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
+