/[svn]/qsampler/trunk/src/qsamplerChannelForm.h
ViewVC logotype

Contents of /qsampler/trunk/src/qsamplerChannelForm.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1461 - (show annotations) (download) (as text)
Sun Oct 28 23:30:36 2007 UTC (16 years, 5 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1680 byte(s)
* started to port QSampler to Qt4 (NOTE: this version is yet broken, use
  the latest tarball release 0.1.5 until the Qt4 port is completed)

1 #ifndef QSAMPLER_CHANNEL_FORM_H
2 #define QSAMPLER_CHANNEL_FORM_H
3
4 #include "ui_qsamplerChannelForm.h"
5
6 #include "qsamplerDevice.h"
7 #include "qsamplerChannel.h"
8 #include "qsamplerDeviceForm.h"
9
10 #include <Q3PtrList>
11
12 namespace QSampler {
13
14 class ChannelForm : public QDialog {
15 Q_OBJECT
16 public:
17 ChannelForm(QWidget* parent = 0);
18 ~ChannelForm();
19
20 void setup(qsamplerChannel* pChannel);
21 void setupDevice(qsamplerDevice* pDevice, qsamplerDevice::qsamplerDeviceType deviceTypeMode, const QString& sDriverName);
22 void selectMidiDriverItem(const QString& sMidiDriver);
23 void selectMidiDeviceItem(int iMidiItem);
24 void selectAudioDriverItem(const QString& sAudioDriver);
25 void selectAudioDeviceItem(int iAudioItem);
26
27 protected:
28 qsamplerChannel* m_pChannel;
29 int m_iDirtySetup;
30 int m_iDirtyCount;
31 Q3PtrList<qsamplerDevice> m_audioDevices;
32 Q3PtrList<qsamplerDevice> m_midiDevices;
33 DeviceForm* m_pDeviceForm;
34 qsamplerChannelRoutingMap m_audioRouting;
35 ChannelRoutingModel routingModel;
36 ChannelRoutingDelegate routingDelegate;
37
38 protected slots:
39 void accept();
40 void reject();
41 void openInstrumentFile();
42 void updateInstrumentName();
43 void selectMidiDriver(const QString& sMidiDriver);
44 void selectMidiDevice(int iMidiItem);
45 void setupMidiDevice();
46 void selectAudioDriver(const QString& sAudioDriver);
47 void selectAudioDevice(int iAudioItem);
48 void setupAudioDevice();
49 void changeAudioRouting(int iRow, int iCol);
50 void updateDevices();
51 void optionsChanged();
52 void stabilizeForm();
53
54 private:
55 Ui::qsamplerChannelForm ui;
56 };
57
58 } // namespace QSampler
59
60 #endif // QSAMPLER_CHANNEL_FORM_H

  ViewVC Help
Powered by ViewVC