/[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 3555 by capela, Tue Aug 13 10:19:32 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 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 = nullptr, 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 contextMenu(QTreeWidgetItem* item, const QPoint&, int);          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;
     DeviceParamDelegate deviceParamDelegate;  
82    
83      DeviceParamModel    devicePortParamModel;          DeviceParamModel    m_deviceParamModel;
84      DeviceParamDelegate devicePortParamDelegate;          DeviceParamDelegate m_deviceParamDelegate;
85    
86            PortParamModel      m_devicePortParamModel;
87            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.1464  
changed lines
  Added in v.3555

  ViewVC Help
Powered by ViewVC