/[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 1464 by capela, Thu Nov 1 17:14:21 2007 UTC revision 1510 by capela, Thu Nov 22 14:17:24 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:
     DeviceForm(QWidget* parent = 0, Qt::WFlags f = 0);  
    ~DeviceForm();  
     void showEvent(QShowEvent* pShowEvent);  
   
     void setDeviceTypeMode(qsamplerDevice::qsamplerDeviceType deviceType);  
     void setDriverName(const QString& sDriverName);  
     void setDevice(qsamplerDevice* pDevice);  
40    
41  signals:          DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);
42      void devicesChanged();          ~DeviceForm();
43    
44            void setDeviceTypeMode(qsamplerDevice::DeviceType deviceType);
45            void setDriverName(const QString& sDriverName);
46            void setDevice(qsamplerDevice *pDevice);
47    
48  public slots:  public slots:
49      void createDevice();  
50      void deleteDevice();          void createDevice();
51      void refreshDevices();          void deleteDevice();
52      void selectDriver(const QString& sDriverName);          void refreshDevices();
53      void selectDevice();          void selectDriver(const QString& sDriverName);
54      void selectDevicePort(int iPort);          void selectDevice();
55      void changeDeviceParam(int iRow, int iCol);          void selectDevicePort(int iPort);
56      void changeDevicePortParam(int iRow, int iCol);          void changeDeviceParam(int iRow, int iCol);
57      void contextMenu(QTreeWidgetItem* item, const QPoint&, int);          void changeDevicePortParam(int iRow, int iCol);
58      void stabilizeForm();          void deviceListViewContextMenu(const QPoint& pos);
59            void stabilizeForm();
60    
61            void updateCellRenderers();
62            void updateCellRenderers(
63                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
64            void updatePortCellRenderers();
65            void updatePortCellRenderers(
66                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
67    
68    signals:
69    
70            void devicesChanged();
71    
72  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;  
73    
74      void hideEvent(QHideEvent* pHideEvent);          void showEvent(QShowEvent* pShowEvent);
75            void hideEvent(QHideEvent* pHideEvent);
76    
77  private:  private:
     Ui::qsamplerDeviceForm ui;  
78    
79      DeviceParamModel    deviceParamModel;          Ui::qsamplerDeviceForm m_ui;
80      DeviceParamDelegate deviceParamDelegate;  
81            DeviceParamModel    m_deviceParamModel;
82            DeviceParamDelegate m_deviceParamDelegate;
83    
84      DeviceParamModel    devicePortParamModel;          PortParamModel      m_devicePortParamModel;
85      DeviceParamDelegate devicePortParamDelegate;          DeviceParamDelegate m_devicePortParamDelegate;
86    
87            lscp_client_t *m_pClient;
88            int m_iDirtySetup;
89            int m_iDirtyCount;
90            bool m_bNewDevice;
91            qsamplerDevice::DeviceType m_deviceType;
92            qsamplerDevice::DeviceType m_deviceTypeMode;
93            qsamplerDeviceItem *m_pAudioItems;
94            qsamplerDeviceItem *m_pMidiItems;
95  };  };
96    
97  } // namespace QSampler  } // namespace QSampler
98    
99    
100  #endif // __qsamplerDeviceForm_h  #endif // __qsamplerDeviceForm_h
101    
102    

Legend:
Removed from v.1464  
changed lines
  Added in v.1510

  ViewVC Help
Powered by ViewVC