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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1667 - (show annotations) (download) (as text)
Mon Feb 4 23:24:19 2008 UTC (16 years, 1 month ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 2130 byte(s)
* added FX Sends dialog to channel strips
  (still under construction, so far one can only create, destroy and rename
  FX sends, the rest is still to do)
* bumped version to 0.2.1.3

1 // qsamplerFxSendList.h
2 //
3 /****************************************************************************
4 Copyright (C) 2008, Christian Schoenebeck
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 *****************************************************************************/
21
22 #ifndef __qsamplerFxSendList_h
23 #define __qsamplerFxSendList_h
24
25 #include <QAbstractListModel>
26 #include <lscp/client.h>
27
28 #include "qsamplerFxSend.h"
29
30 namespace QSampler {
31
32 class FxSendsModel : public QAbstractListModel
33 {
34 Q_OBJECT
35 public:
36 FxSendsModel(int SamplerChannelID, QObject* pParent = NULL);
37
38 // Overridden methods from subclass(es)
39 int rowCount(const QModelIndex& parent) const;
40 QVariant data(const QModelIndex& index, int role) const;
41 bool setData(const QModelIndex& index,
42 const QVariant& value, int role = Qt::EditRole);
43 QVariant headerData(int section, Qt::Orientation orientation,
44 int role = Qt::DisplayRole) const;
45 Qt::ItemFlags flags(const QModelIndex& index) const;
46
47 // Make the following method public
48 QAbstractListModel::reset;
49
50 // Own methods
51 FxSend* addFxSend();
52 FxSend* fxSend(const QModelIndex& index);
53 void removeFxSend(const QModelIndex& index);
54
55 signals:
56 void fxSendsDirtyChanged(bool);
57
58 public slots:
59 void cleanRefresh();
60 void applyToSampler();
61
62 private:
63 typedef QList<FxSend> FxSendsList;
64
65 int m_SamplerChannelID;
66 FxSendsList m_FxSends;
67 };
68
69 } // namespace QSampler
70
71 #endif // __qsamplerFxSendList_h
72
73 // end of qsamplerFxSendList.h

  ViewVC Help
Powered by ViewVC