/[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 1514 by capela, Fri Nov 23 10:51:37 2007 UTC
# Line 38  class ChannelStrip : public QWidget Line 38  class ChannelStrip : public QWidget
38    
39  public:  public:
40    
41      ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);          ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);
42     ~ChannelStrip();          ~ChannelStrip();
43    
44      void setup(qsamplerChannel* pChannel);          void setup(qsamplerChannel *pChannel);
45    
46      qsamplerChannel *channel() const;          qsamplerChannel *channel() const;
47    
48      void setDisplayFont(const QFont& font);          void setDisplayFont(const QFont& font);
49      QFont displayFont() const;          QFont displayFont() const;
50    
51      void setDisplayEffect(bool bDisplayEffect);          void setDisplayEffect(bool bDisplayEffect);
52    
53      void setMaxVolume(int iMaxVolume);          void setMaxVolume(int iMaxVolume);
54    
55      bool updateInstrumentName(bool bForce);          bool updateInstrumentName(bool bForce);
56      bool updateChannelVolume();          bool updateChannelVolume();
57      bool updateChannelInfo();          bool updateChannelInfo();
58      bool updateChannelUsage();          bool updateChannelUsage();
59    
60      void resetErrorCount();          void resetErrorCount();
61    
62            // Channel strip activation/selection.
63            void setSelected(bool bSelected);
64            bool isSelected() const;
65    
66  signals:  signals:
67    
68      void channelChanged(ChannelStrip*);          void channelChanged(ChannelStrip*);
69    
70  public slots:  public slots:
71    
72      bool channelSetup();          bool channelSetup();
73      bool channelMute(bool bMute);          bool channelMute(bool bMute);
74      bool channelSolo(bool bSolo);          bool channelSolo(bool bSolo);
75      void channelEdit();          void channelEdit();
76      bool channelReset();          bool channelReset();
77      void volumeChanged(int iVolume);          void volumeChanged(int iVolume);
78    
79  protected:  protected:
80    
81      void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);          void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);
82      void dropEvent(QDropEvent* pDropEvent);          void dropEvent(QDropEvent* pDropEvent);
83      void contextMenuEvent(QContextMenuEvent* pEvent);          void contextMenuEvent(QContextMenuEvent* pEvent);
84    
85  private:  private:
86    
87      Ui::qsamplerChannelStrip m_ui;          Ui::qsamplerChannelStrip m_ui;
88    
89            qsamplerChannel* m_pChannel;
90            int m_iDirtyChange;
91            int m_iErrorCount;
92    
93      qsamplerChannel* m_pChannel;          // Channel strip activation/selection.
94      int m_iDirtyChange;          static ChannelStrip *g_pSelectedStrip;
     int m_iErrorCount;  
95  };  };
96    
97  } // namespace QSampler  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC