/[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 1509 by capela, Thu Nov 22 11:10:44 2007 UTC revision 3518 by capela, Sun Jun 30 16:58:30 2019 UTC
# Line 1  Line 1 
1  // qsamplerDeviceForm.h  // qsamplerDeviceForm.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2019, 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 30  Line 30 
30    
31  namespace QSampler {  namespace QSampler {
32    
33  class MainForm;  //-------------------------------------------------------------------------
34    // QSampler::DeviceForm -- Device form interface.
35    //
36    
37  class DeviceForm : public QDialog  class DeviceForm : public QDialog
38  {  {
# Line 38  class DeviceForm : public QDialog Line 40  class DeviceForm : public QDialog
40    
41  public:  public:
42    
43      DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);          DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);
44     ~DeviceForm();          ~DeviceForm();
45    
46      void setDeviceTypeMode(qsamplerDevice::DeviceType deviceType);          void setDeviceTypeMode(Device::DeviceType deviceType);
47      void setDriverName(const QString& sDriverName);          void setDriverName(const QString& sDriverName);
48      void setDevice(qsamplerDevice* pDevice);          void setDevice(Device *pDevice);
49    
50  public slots:  public slots:
51    
52      void createDevice();          void createDevice();
53      void deleteDevice();          void deleteDevice();
54      void refreshDevices();          void refreshDevices();
55      void selectDriver(const QString& sDriverName);          void selectDriver(const QString& sDriverName);
56      void selectDevice();          void selectDevice();
57      void selectDevicePort(int iPort);          void selectDevicePort(int iPort);
58      void changeDeviceParam(int iRow, int iCol);          void changeDeviceParam(int iRow, int iCol);
59      void changeDevicePortParam(int iRow, int iCol);          void changeDevicePortParam(int iRow, int iCol);
60      void deviceListViewContextMenu(const QPoint& pos);          void deviceListViewContextMenu(const QPoint& pos);
61      void stabilizeForm();          void stabilizeForm();
62      void updateCellRenderers();  
63      void updateCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight);          void updateCellRenderers();
64      void updatePortCellRenderers();          void updateCellRenderers(
65      void updatePortCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight);                  const QModelIndex& topLeft, const QModelIndex& bottomRight);
66            void updatePortCellRenderers();
67            void updatePortCellRenderers(
68                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
69    
70  signals:  signals:
71    
72      void devicesChanged();          void devicesChanged();
73    
74  protected:  protected:
75    
76      void showEvent(QShowEvent* pShowEvent);          void showEvent(QShowEvent* pShowEvent);
77      void hideEvent(QHideEvent* pHideEvent);          void hideEvent(QHideEvent* pHideEvent);
78    
79  private:  private:
80    
81      Ui::qsamplerDeviceForm m_ui;          Ui::qsamplerDeviceForm m_ui;
82    
83      DeviceParamModel    m_deviceParamModel;          DeviceParamModel    m_deviceParamModel;
84      DeviceParamDelegate m_deviceParamDelegate;          DeviceParamDelegate m_deviceParamDelegate;
85    
86      PortParamModel      m_devicePortParamModel;          PortParamModel      m_devicePortParamModel;
87      DeviceParamDelegate m_devicePortParamDelegate;          DeviceParamDelegate m_devicePortParamDelegate;
88    
89      lscp_client_t *m_pClient;          lscp_client_t *m_pClient;
90      int m_iDirtySetup;          int m_iDirtySetup;
91      int m_iDirtyCount;          int m_iDirtyCount;
92      bool m_bNewDevice;          bool m_bNewDevice;
93      qsamplerDevice::DeviceType m_deviceType;          Device::DeviceType m_deviceType;
94      qsamplerDevice::DeviceType m_deviceTypeMode;          Device::DeviceType m_deviceTypeMode;
95      qsamplerDeviceItem *m_pAudioItems;          DeviceItem *m_pAudioItems;
96      qsamplerDeviceItem *m_pMidiItems;          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.1509  
changed lines
  Added in v.3518

  ViewVC Help
Powered by ViewVC