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

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

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

revision 1470 by schoenebeck, Sun Nov 4 23:37:47 2007 UTC revision 1509 by capela, Thu Nov 22 11:10:44 2007 UTC
# Line 25  Line 25 
25    
26  #include "ui_qsamplerDeviceForm.h"  #include "ui_qsamplerDeviceForm.h"
27    
28  #include "qsamplerMainForm.h"  #include "qsamplerDevice.h"
29    
30    
31  namespace QSampler {  namespace QSampler {
32    
33  class MainForm;  class MainForm;
34    
35  class DeviceForm : public QDialog {  class DeviceForm : public QDialog
36  Q_OBJECT  {
37            Q_OBJECT
38    
39  public:  public:
40      DeviceForm(QWidget* parent = 0, Qt::WFlags f = 0);  
41        DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);
42     ~DeviceForm();     ~DeviceForm();
     void showEvent(QShowEvent* pShowEvent);  
43    
44      void setDeviceTypeMode(qsamplerDevice::qsamplerDeviceType deviceType);      void setDeviceTypeMode(qsamplerDevice::DeviceType deviceType);
45      void setDriverName(const QString& sDriverName);      void setDriverName(const QString& sDriverName);
46      void setDevice(qsamplerDevice* pDevice);      void setDevice(qsamplerDevice* pDevice);
47    
 signals:  
     void devicesChanged();  
   
48  public slots:  public slots:
49    
50      void createDevice();      void createDevice();
51      void deleteDevice();      void deleteDevice();
52      void refreshDevices();      void refreshDevices();
# Line 56  public slots: Line 57  public slots:
57      void changeDevicePortParam(int iRow, int iCol);      void changeDevicePortParam(int iRow, int iCol);
58      void deviceListViewContextMenu(const QPoint& pos);      void deviceListViewContextMenu(const QPoint& pos);
59      void stabilizeForm();      void stabilizeForm();
60        void updateCellRenderers();
61        void updateCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight);
62        void updatePortCellRenderers();
63        void updatePortCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight);
64    
65    signals:
66    
67        void devicesChanged();
68    
69  protected:  protected:
     MainForm *m_pMainForm;  
     lscp_client_t *m_pClient;  
     int m_iDirtySetup;  
     int m_iDirtyCount;  
     bool m_bNewDevice;  
     qsamplerDevice::qsamplerDeviceType m_deviceType;  
     qsamplerDevice::qsamplerDeviceType m_deviceTypeMode;  
     qsamplerDeviceItem *m_pAudioItems;  
     qsamplerDeviceItem *m_pMidiItems;  
70    
71        void showEvent(QShowEvent* pShowEvent);
72      void hideEvent(QHideEvent* pHideEvent);      void hideEvent(QHideEvent* pHideEvent);
73    
74  private:  private:
     Ui::qsamplerDeviceForm ui;  
75    
76      DeviceParamModel    deviceParamModel;      Ui::qsamplerDeviceForm m_ui;
77      DeviceParamDelegate deviceParamDelegate;  
78        DeviceParamModel    m_deviceParamModel;
79        DeviceParamDelegate m_deviceParamDelegate;
80    
81        PortParamModel      m_devicePortParamModel;
82        DeviceParamDelegate m_devicePortParamDelegate;
83    
84      DeviceParamModel    devicePortParamModel;      lscp_client_t *m_pClient;
85      DeviceParamDelegate devicePortParamDelegate;      int m_iDirtySetup;
86        int m_iDirtyCount;
87        bool m_bNewDevice;
88        qsamplerDevice::DeviceType m_deviceType;
89        qsamplerDevice::DeviceType m_deviceTypeMode;
90        qsamplerDeviceItem *m_pAudioItems;
91        qsamplerDeviceItem *m_pMidiItems;
92  };  };
93    
94  } // namespace QSampler  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC