/[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 1558 by capela, Thu Dec 6 09:35:33 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;  //-------------------------------------------------------------------------
34    // QSampler::DeviceForm -- Device form interface.
35    //
36    
37    class DeviceForm : public QDialog
38    {
39            Q_OBJECT
40    
 class DeviceForm : public QDialog {  
 Q_OBJECT  
41  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);  
42    
43  signals:          DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);
44      void devicesChanged();          ~DeviceForm();
45    
46            void setDeviceTypeMode(Device::DeviceType deviceType);
47            void setDriverName(const QString& sDriverName);
48            void setDevice(Device *pDevice);
49    
50  public slots:  public slots:
51      void createDevice();  
52      void deleteDevice();          void createDevice();
53      void refreshDevices();          void deleteDevice();
54      void selectDriver(const QString& sDriverName);          void refreshDevices();
55      void selectDevice();          void selectDriver(const QString& sDriverName);
56      void selectDevicePort(int iPort);          void selectDevice();
57      void changeDeviceParam(int iRow, int iCol);          void selectDevicePort(int iPort);
58      void changeDevicePortParam(int iRow, int iCol);          void changeDeviceParam(int iRow, int iCol);
59      void deviceListViewContextMenu(const QPoint& pos);          void changeDevicePortParam(int iRow, int iCol);
60      void stabilizeForm();          void deviceListViewContextMenu(const QPoint& pos);
61            void stabilizeForm();
62    
63            void updateCellRenderers();
64            void updateCellRenderers(
65                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
66            void updatePortCellRenderers();
67            void updatePortCellRenderers(
68                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
69    
70    signals:
71    
72            void devicesChanged();
73    
74  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;  
75    
76      void hideEvent(QHideEvent* pHideEvent);          void showEvent(QShowEvent* pShowEvent);
77            void hideEvent(QHideEvent* pHideEvent);
78    
79  private:  private:
     Ui::qsamplerDeviceForm ui;  
80    
81      DeviceParamModel    deviceParamModel;          Ui::qsamplerDeviceForm m_ui;
82      DeviceParamDelegate deviceParamDelegate;  
83            DeviceParamModel    m_deviceParamModel;
84            DeviceParamDelegate m_deviceParamDelegate;
85    
86      DeviceParamModel    devicePortParamModel;          PortParamModel      m_devicePortParamModel;
87      DeviceParamDelegate devicePortParamDelegate;          DeviceParamDelegate m_devicePortParamDelegate;
88    
89            lscp_client_t *m_pClient;
90            int m_iDirtySetup;
91            int m_iDirtyCount;
92            bool m_bNewDevice;
93            Device::DeviceType m_deviceType;
94            Device::DeviceType m_deviceTypeMode;
95            DeviceItem *m_pAudioItems;
96            DeviceItem *m_pMidiItems;
97  };  };
98    
99  } // namespace QSampler  } // namespace QSampler
100    
101    
102  #endif // __qsamplerDeviceForm_h  #endif // __qsamplerDeviceForm_h
103    
104    

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

  ViewVC Help
Powered by ViewVC