/[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 1509 by capela, Thu Nov 22 11:10:44 2007 UTC revision 1667 by schoenebeck, Mon Feb 4 23:24:19 2008 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, 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 32  class QDragEnterEvent; Line 32  class QDragEnterEvent;
32    
33  namespace QSampler {  namespace QSampler {
34    
35    //-------------------------------------------------------------------------
36    // QSampler::ChannelStrip -- Channel strip form interface.
37    //
38    
39  class ChannelStrip : public QWidget  class ChannelStrip : public QWidget
40  {  {
41          Q_OBJECT          Q_OBJECT
42    
43  public:  public:
44    
45      ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);          ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);
46     ~ChannelStrip();          ~ChannelStrip();
47    
48      void setup(qsamplerChannel* pChannel);          void setup(Channel *pChannel);
49    
50      qsamplerChannel *channel() const;          Channel *channel() const;
51    
52      void setDisplayFont(const QFont& font);          void setDisplayFont(const QFont& font);
53      QFont displayFont() const;          QFont displayFont() const;
54    
55      void setDisplayEffect(bool bDisplayEffect);          void setDisplayEffect(bool bDisplayEffect);
56    
57      void setMaxVolume(int iMaxVolume);          void setMaxVolume(int iMaxVolume);
58    
59      bool updateInstrumentName(bool bForce);          bool updateInstrumentName(bool bForce);
60      bool updateChannelVolume();          bool updateChannelVolume();
61      bool updateChannelInfo();          bool updateChannelInfo();
62      bool updateChannelUsage();          bool updateChannelUsage();
63    
64      void resetErrorCount();          void resetErrorCount();
65    
66            // Channel strip activation/selection.
67            void setSelected(bool bSelected);
68            bool isSelected() const;
69    
70  signals:  signals:
71    
72      void channelChanged(ChannelStrip*);          void channelChanged(ChannelStrip*);
73    
74  public slots:  public slots:
75    
76      bool channelSetup();          bool channelSetup();
77      bool channelMute(bool bMute);          bool channelMute(bool bMute);
78      bool channelSolo(bool bSolo);          bool channelSolo(bool bSolo);
79      void channelEdit();          void channelEdit();
80      bool channelReset();          bool channelFxEdit();
81      void volumeChanged(int iVolume);          bool channelReset();
82            void volumeChanged(int iVolume);
83    
84  protected:  protected:
85    
86      void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);          void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);
87      void dropEvent(QDropEvent* pDropEvent);          void dropEvent(QDropEvent* pDropEvent);
88      void contextMenuEvent(QContextMenuEvent* pEvent);          void contextMenuEvent(QContextMenuEvent* pEvent);
89    
90  private:  private:
91    
92      Ui::qsamplerChannelStrip m_ui;          Ui::qsamplerChannelStrip m_ui;
93    
94            Channel* m_pChannel;
95            int m_iDirtyChange;
96            int m_iErrorCount;
97    
98      qsamplerChannel* m_pChannel;          // Channel strip activation/selection.
99      int m_iDirtyChange;          static ChannelStrip *g_pSelectedStrip;
     int m_iErrorCount;  
100  };  };
101    
102  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.1509  
changed lines
  Added in v.1667

  ViewVC Help
Powered by ViewVC