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

Annotation of /qsampler/trunk/src/qsamplerChannelStrip.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1464 - (hide annotations) (download) (as text)
Thu Nov 1 17:14:21 2007 UTC (16 years, 5 months ago) by capela
File MIME type: text/x-c++hdr
File size: 2501 byte(s)
- Qt4 migration: missing copyright headers update.

1 capela 1464 // qsamplerChannelStrip.h
2     //
3     /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck
6 schoenebeck 1461
7 capela 1464 This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License
9     as published by the Free Software Foundation; either version 2
10     of the License, or (at your option) any later version.
11    
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     GNU General Public License for more details.
16    
17     You should have received a copy of the GNU General Public License along
18     with this program; if not, write to the Free Software Foundation, Inc.,
19     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20    
21     *****************************************************************************/
22    
23     #ifndef __qsamplerChannelStrip_h
24     #define __qsamplerChannelStrip_h
25    
26 schoenebeck 1461 #include "ui_qsamplerChannelStrip.h"
27    
28     #include "qsamplerChannel.h"
29    
30     #include <QDragEnterEvent>
31    
32     namespace QSampler {
33    
34     class ChannelStrip : public QWidget {
35     Q_OBJECT
36     public:
37     ChannelStrip(QWidget* parent = 0, Qt::WFlags f = 0);
38     ~ChannelStrip();
39    
40     void setup(qsamplerChannel* pChannel);
41     qsamplerChannel* channel();
42     QFont displayFont();
43     void setDisplayFont(const QFont& font);
44     void setDisplayEffect(bool bDisplayEffect);
45     void setDisplayBackground(const QPixmap& pm);
46     void setMaxVolume(int iMaxVolume);
47     bool updateInstrumentName(bool bForce);
48     bool updateChannelVolume();
49     bool updateChannelInfo();
50     bool updateChannelUsage();
51     void resetErrorCount();
52    
53     signals:
54     void channelChanged(ChannelStrip*);
55    
56     public slots:
57     bool channelSetup();
58     bool channelMute(bool bMute);
59     bool channelSolo(bool bSolo);
60     void channelEdit();
61     bool channelReset();
62     void volumeChanged(int iVolume);
63    
64     protected:
65     bool decodeDragFile(const QMimeSource* pEvent, QString& sInstrumentFile);
66     void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);
67     void dropEvent(QDropEvent* pDropEvent);
68     void contextMenuEvent(QContextMenuEvent* pEvent);
69    
70     private:
71     Ui::qsamplerChannelStrip ui;
72    
73     qsamplerChannel* m_pChannel;
74     int m_iDirtyChange;
75     int m_iErrorCount;
76     };
77    
78     } // namespace QSampler
79    
80 capela 1464 #endif // __qsamplerChannelStrip_h
81    
82    
83     // end of qsamplerChannelStrip.h

  ViewVC Help
Powered by ViewVC