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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1461 - (hide annotations) (download) (as text)
Sun Oct 28 23:30:36 2007 UTC (16 years, 5 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1443 byte(s)
* started to port QSampler to Qt4 (NOTE: this version is yet broken, use
  the latest tarball release 0.1.5 until the Qt4 port is completed)

1 schoenebeck 1461 #ifndef QSAMPLER_CHANNEL_STRIP_H
2     #define QSAMPLER_CHANNEL_STRIP_H
3    
4     #include "ui_qsamplerChannelStrip.h"
5    
6     #include "qsamplerChannel.h"
7    
8     #include <QDragEnterEvent>
9    
10     namespace QSampler {
11    
12     class ChannelStrip : public QWidget {
13     Q_OBJECT
14     public:
15     ChannelStrip(QWidget* parent = 0, Qt::WFlags f = 0);
16     ~ChannelStrip();
17    
18     void setup(qsamplerChannel* pChannel);
19     qsamplerChannel* channel();
20     QFont displayFont();
21     void setDisplayFont(const QFont& font);
22     void setDisplayEffect(bool bDisplayEffect);
23     void setDisplayBackground(const QPixmap& pm);
24     void setMaxVolume(int iMaxVolume);
25     bool updateInstrumentName(bool bForce);
26     bool updateChannelVolume();
27     bool updateChannelInfo();
28     bool updateChannelUsage();
29     void resetErrorCount();
30    
31     signals:
32     void channelChanged(ChannelStrip*);
33    
34     public slots:
35     bool channelSetup();
36     bool channelMute(bool bMute);
37     bool channelSolo(bool bSolo);
38     void channelEdit();
39     bool channelReset();
40     void volumeChanged(int iVolume);
41    
42     protected:
43     bool decodeDragFile(const QMimeSource* pEvent, QString& sInstrumentFile);
44     void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);
45     void dropEvent(QDropEvent* pDropEvent);
46     void contextMenuEvent(QContextMenuEvent* pEvent);
47    
48     private:
49     Ui::qsamplerChannelStrip ui;
50    
51     qsamplerChannel* m_pChannel;
52     int m_iDirtyChange;
53     int m_iErrorCount;
54     };
55    
56     } // namespace QSampler
57    
58     #endif // QSAMPLER_CHANNEL_STRIP_H

  ViewVC Help
Powered by ViewVC