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

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

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

revision 1510 by capela, Thu Nov 22 14:17:24 2007 UTC revision 2387 by capela, Sat Dec 29 00:21:11 2012 UTC
# Line 1  Line 1 
1  // qsamplerChannelStrip.h  // qsamplerChannelStrip.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2012, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007, 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
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 28  Line 28 
28  #include "qsamplerChannel.h"  #include "qsamplerChannel.h"
29    
30  class QDragEnterEvent;  class QDragEnterEvent;
31    class QTimer;
32    
33    
34  namespace QSampler {  namespace QSampler {
35    
36    //-------------------------------------------------------------------------
37    // QSampler::ChannelStrip -- Channel strip form interface.
38    //
39    
40  class ChannelStrip : public QWidget  class ChannelStrip : public QWidget
41  {  {
42          Q_OBJECT          Q_OBJECT
# Line 41  public: Line 46  public:
46          ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);          ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);
47          ~ChannelStrip();          ~ChannelStrip();
48    
49          void setup(qsamplerChannel *pChannel);          void setup(Channel *pChannel);
50    
51          qsamplerChannel *channel() const;          Channel *channel() const;
52    
53          void setDisplayFont(const QFont& font);          void setDisplayFont(const QFont& font);
54          QFont displayFont() const;          QFont displayFont() const;
# Line 59  public: Line 64  public:
64    
65          void resetErrorCount();          void resetErrorCount();
66    
67            // Channel strip activation/selection.
68            void setSelected(bool bSelected);
69            bool isSelected() const;
70    
71  signals:  signals:
72    
73          void channelChanged(ChannelStrip*);          void channelChanged(ChannelStrip*);
# Line 69  public slots: Line 78  public slots:
78          bool channelMute(bool bMute);          bool channelMute(bool bMute);
79          bool channelSolo(bool bSolo);          bool channelSolo(bool bSolo);
80          void channelEdit();          void channelEdit();
81            bool channelFxEdit();
82          bool channelReset();          bool channelReset();
83          void volumeChanged(int iVolume);          void volumeChanged(int iVolume);
84    
85            void midiActivityLedOn();
86    
87  protected:  protected:
88    
89          void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);          void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);
90          void dropEvent(QDropEvent* pDropEvent);          void dropEvent(QDropEvent* pDropEvent);
91          void contextMenuEvent(QContextMenuEvent* pEvent);          void contextMenuEvent(QContextMenuEvent* pEvent);
92    
93    protected slots:
94    
95            void midiActivityLedOff();
96    
97  private:  private:
98    
99          Ui::qsamplerChannelStrip m_ui;          Ui::qsamplerChannelStrip m_ui;
100    
101          qsamplerChannel* m_pChannel;          Channel *m_pChannel;
102          int m_iDirtyChange;          int m_iDirtyChange;
103          int m_iErrorCount;          int m_iErrorCount;
104    
105            QTimer  *m_pMidiActivityTimer;
106    
107            // MIDI activity pixmap common resources.
108            static int      g_iMidiActivityRefCount;
109            static QPixmap *g_pMidiActivityLedOn;
110            static QPixmap *g_pMidiActivityLedOff;
111    
112            // Channel strip activation/selection.
113            static ChannelStrip *g_pSelectedStrip;
114  };  };
115    
116  } // namespace QSampler  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC