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

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

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

revision 2387 by capela, Sat Dec 29 00:21:11 2012 UTC revision 2979 by capela, Tue Aug 16 15:34:45 2016 UTC
# Line 1  Line 1 
1  // qsamplerFxSendList.h  // qsamplerFxSendList.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2010-2012, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2010-2016, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2008, Christian Schoenebeck     Copyright (C) 2008, 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 23  Line 23 
23  #ifndef __qsamplerFxSendList_h  #ifndef __qsamplerFxSendList_h
24  #define __qsamplerFxSendList_h  #define __qsamplerFxSendList_h
25    
26  #include <QAbstractListModel>  #include "qsamplerFxSend.h"
27    
28  #include <lscp/client.h>  #include <lscp/client.h>
29    
30  #include "qsamplerFxSend.h"  #include <QAbstractListModel>
31    
32  namespace QSampler {  namespace QSampler {
33    
34  class FxSendsModel : public QAbstractListModel  class FxSendsModel : public QAbstractListModel
35  {  {
36          Q_OBJECT          Q_OBJECT
37    
38  public:  public:
39          FxSendsModel(int SamplerChannelID, QObject* pParent = NULL);  
40            FxSendsModel(int iChannelID, QObject *pParent = NULL);
41    
42          // Overridden methods from subclass(es)          // Overridden methods from subclass(es)
43          int rowCount(const QModelIndex& parent) const;          int rowCount(const QModelIndex& parent) const;
# Line 46  public: Line 49  public:
49          Qt::ItemFlags flags(const QModelIndex& index) const;          Qt::ItemFlags flags(const QModelIndex& index) const;
50    
51          // Own methods          // Own methods
52          FxSend* addFxSend();          FxSend *addFxSend();
53          FxSend* fxSend(const QModelIndex& index);          FxSend *fxSend(const QModelIndex& index);
54          void removeFxSend(const QModelIndex& index);          void removeFxSend(const QModelIndex& index);
55    
56  signals:  signals:
57    
58          void fxSendsDirtyChanged(bool);          void fxSendsDirtyChanged(bool);
59    
60  public slots:  public slots:
61    
62          void cleanRefresh();          void cleanRefresh();
63          void applyToSampler();          void applyToSampler();
64    
65          // not pretty, but more efficient than wiring connections for each element          // not pretty, but more efficient than wiring connections for each element
66          void onExternalModifiication(const QModelIndex& index);          void onExternalModifiication(const QModelIndex& index);
67    
68  private:  private:
69    
70          typedef QList<FxSend> FxSendsList;          typedef QList<FxSend> FxSendsList;
71    
72          int         m_SamplerChannelID;          int m_iChannelID;
73          FxSendsList m_FxSends;          FxSendsList m_fxSends;
74  };  };
75    
76  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.2387  
changed lines
  Added in v.2979

  ViewVC Help
Powered by ViewVC