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

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

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

revision 1509 by capela, Thu Nov 22 11:10:44 2007 UTC revision 2387 by capela, Sat Dec 29 00:21:11 2012 UTC
# Line 1  Line 1 
1  // qsamplerChannelForm.h  // qsamplerChannelForm.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2012, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007, Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
# Line 32  Line 32 
32    
33  namespace QSampler {  namespace QSampler {
34    
35    //-------------------------------------------------------------------------
36    // QSampler::Channelform -- Channel form interface.
37    //
38    
39  class ChannelForm : public QDialog  class ChannelForm : public QDialog
40  {  {
41          Q_OBJECT          Q_OBJECT
42    
43  public:  public:
44    
45      ChannelForm(QWidget* parent = 0);          ChannelForm(QWidget* pParent = NULL);
46     ~ChannelForm();          ~ChannelForm();
47    
48      void setup(qsamplerChannel* pChannel);          void setup(Channel* pChannel);
49    
50      void setupDevice(qsamplerDevice* pDevice,          void setupDevice(Device* pDevice,
51                  qsamplerDevice::DeviceType deviceTypeMode,                  Device::DeviceType deviceTypeMode,
52                  const QString& sDriverName);                  const QString& sDriverName);
53    
54      void selectMidiDriverItem(const QString& sMidiDriver);          void selectMidiDriverItem(const QString& sMidiDriver);
55      void selectMidiDeviceItem(int iMidiItem);          void selectMidiDeviceItem(int iMidiItem);
56      void selectAudioDriverItem(const QString& sAudioDriver);          void selectAudioDriverItem(const QString& sAudioDriver);
57      void selectAudioDeviceItem(int iAudioItem);          void selectAudioDeviceItem(int iAudioItem);
58    
59  protected slots:  protected slots:
60    
61      void accept();          void accept();
62      void reject();          void reject();
63      void openInstrumentFile();          void openInstrumentFile();
64      void updateInstrumentName();          void updateInstrumentName();
65      void selectMidiDriver(const QString& sMidiDriver);          void selectMidiDriver(const QString& sMidiDriver);
66      void selectMidiDevice(int iMidiItem);          void selectMidiDevice(int iMidiItem);
67      void setupMidiDevice();          void setupMidiDevice();
68      void selectAudioDriver(const QString& sAudioDriver);          void selectAudioDriver(const QString& sAudioDriver);
69      void selectAudioDevice(int iAudioItem);          void selectAudioDevice(int iAudioItem);
70      void setupAudioDevice();          void setupAudioDevice();
71      void updateDevices();          void updateDevices();
72      void optionsChanged();          void optionsChanged();
73      void stabilizeForm();          void stabilizeForm();
74    
75      void updateTableCellRenderers();          void updateTableCellRenderers();
76      void updateTableCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight);          void updateTableCellRenderers(
77                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
78    
79  private:  private:
80    
81      Ui::qsamplerChannelForm m_ui;          Ui::qsamplerChannelForm m_ui;
82    
83      qsamplerChannel* m_pChannel;          Channel* m_pChannel;
84      int m_iDirtySetup;          int m_iDirtySetup;
85      int m_iDirtyCount;          int m_iDirtyCount;
86      QList<qsamplerDevice *> m_audioDevices;          QList<Device *> m_audioDevices;
87      QList<qsamplerDevice *> m_midiDevices;          QList<Device *> m_midiDevices;
88      DeviceForm* m_pDeviceForm;          DeviceForm* m_pDeviceForm;
89      ChannelRoutingModel m_routingModel;          ChannelRoutingModel m_routingModel;
90      ChannelRoutingDelegate m_routingDelegate;          ChannelRoutingDelegate m_routingDelegate;
91  };  };
92    
93  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.1509  
changed lines
  Added in v.2387

  ViewVC Help
Powered by ViewVC