/[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 1499 by capela, Tue Nov 20 16:48:04 2007 UTC revision 1510 by capela, Thu Nov 22 14:17:24 2007 UTC
# Line 32  class QDragEnterEvent; Line 32  class QDragEnterEvent;
32    
33  namespace QSampler {  namespace QSampler {
34    
35  class ChannelStrip : public QWidget {  class ChannelStrip : public QWidget
36  Q_OBJECT  {
37            Q_OBJECT
38    
39  public:  public:
     ChannelStrip(QWidget* parent = 0, Qt::WFlags f = 0);  
    ~ChannelStrip();  
40    
41      void setup(qsamplerChannel* pChannel);          ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);
42      qsamplerChannel* channel();          ~ChannelStrip();
43      QFont displayFont();  
44      void setDisplayFont(const QFont& font);          void setup(qsamplerChannel *pChannel);
45      void setDisplayEffect(bool bDisplayEffect);  
46      void setMaxVolume(int iMaxVolume);          qsamplerChannel *channel() const;
47      bool updateInstrumentName(bool bForce);  
48      bool updateChannelVolume();          void setDisplayFont(const QFont& font);
49      bool updateChannelInfo();          QFont displayFont() const;
50      bool updateChannelUsage();  
51      void resetErrorCount();          void setDisplayEffect(bool bDisplayEffect);
52    
53            void setMaxVolume(int iMaxVolume);
54    
55            bool updateInstrumentName(bool bForce);
56            bool updateChannelVolume();
57            bool updateChannelInfo();
58            bool updateChannelUsage();
59    
60            void resetErrorCount();
61    
62  signals:  signals:
63      void channelChanged(ChannelStrip*);  
64            void channelChanged(ChannelStrip*);
65    
66  public slots:  public slots:
67      bool channelSetup();  
68      bool channelMute(bool bMute);          bool channelSetup();
69      bool channelSolo(bool bSolo);          bool channelMute(bool bMute);
70      void channelEdit();          bool channelSolo(bool bSolo);
71      bool channelReset();          void channelEdit();
72      void volumeChanged(int iVolume);          bool channelReset();
73            void volumeChanged(int iVolume);
74    
75  protected:  protected:
76      void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);  
77      void dropEvent(QDropEvent* pDropEvent);          void dragEnterEvent(QDragEnterEvent* pDragEnterEvent);
78      void contextMenuEvent(QContextMenuEvent* pEvent);          void dropEvent(QDropEvent* pDropEvent);
79            void contextMenuEvent(QContextMenuEvent* pEvent);
80    
81  private:  private:
     Ui::qsamplerChannelStrip ui;  
82    
83      qsamplerChannel* m_pChannel;          Ui::qsamplerChannelStrip m_ui;
84      int m_iDirtyChange;  
85      int m_iErrorCount;          qsamplerChannel* m_pChannel;
86            int m_iDirtyChange;
87            int m_iErrorCount;
88  };  };
89    
90  } // namespace QSampler  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC