/[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 1464 by capela, Thu Nov 1 17:14:21 2007 UTC revision 1514 by capela, Fri Nov 23 10:51:37 2007 UTC
# Line 27  Line 27 
27    
28  #include "qsamplerChannel.h"  #include "qsamplerChannel.h"
29    
30  #include <QDragEnterEvent>  class QDragEnterEvent;
31    
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 setDisplayBackground(const QPixmap& pm);          qsamplerChannel *channel() const;
47      void setMaxVolume(int iMaxVolume);  
48      bool updateInstrumentName(bool bForce);          void setDisplayFont(const QFont& font);
49      bool updateChannelVolume();          QFont displayFont() const;
50      bool updateChannelInfo();  
51      bool updateChannelUsage();          void setDisplayEffect(bool bDisplayEffect);
52      void resetErrorCount();  
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            // Channel strip activation/selection.
63            void setSelected(bool bSelected);
64            bool isSelected() const;
65    
66  signals:  signals:
67      void channelChanged(ChannelStrip*);  
68            void channelChanged(ChannelStrip*);
69    
70  public slots:  public slots:
71      bool channelSetup();  
72      bool channelMute(bool bMute);          bool channelSetup();
73      bool channelSolo(bool bSolo);          bool channelMute(bool bMute);
74      void channelEdit();          bool channelSolo(bool bSolo);
75      bool channelReset();          void channelEdit();
76      void volumeChanged(int iVolume);          bool channelReset();
77            void volumeChanged(int iVolume);
78    
79  protected:  protected:
80      bool decodeDragFile(const QMimeSource* pEvent, QString& sInstrumentFile);  
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:
     Ui::qsamplerChannelStrip ui;  
86    
87      qsamplerChannel* m_pChannel;          Ui::qsamplerChannelStrip m_ui;
88      int m_iDirtyChange;  
89      int m_iErrorCount;          qsamplerChannel* m_pChannel;
90            int m_iDirtyChange;
91            int m_iErrorCount;
92    
93            // Channel strip activation/selection.
94            static ChannelStrip *g_pSelectedStrip;
95  };  };
96    
97  } // namespace QSampler  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC