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: |
40 |
ChannelStrip(QWidget* parent = 0, Qt::WFlags f = 0); |
|
41 |
|
ChannelStrip(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0); |
42 |
~ChannelStrip(); |
~ChannelStrip(); |
43 |
|
|
44 |
void setup(qsamplerChannel* pChannel); |
void setup(qsamplerChannel* pChannel); |
45 |
qsamplerChannel* channel(); |
|
46 |
QFont displayFont(); |
qsamplerChannel *channel() const; |
47 |
|
|
48 |
void setDisplayFont(const QFont& font); |
void setDisplayFont(const QFont& font); |
49 |
|
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 |
signals: |
signals: |
63 |
|
|
64 |
void channelChanged(ChannelStrip*); |
void channelChanged(ChannelStrip*); |
65 |
|
|
66 |
public slots: |
public slots: |
67 |
|
|
68 |
bool channelSetup(); |
bool channelSetup(); |
69 |
bool channelMute(bool bMute); |
bool channelMute(bool bMute); |
70 |
bool channelSolo(bool bSolo); |
bool channelSolo(bool bSolo); |
73 |
void volumeChanged(int iVolume); |
void volumeChanged(int iVolume); |
74 |
|
|
75 |
protected: |
protected: |
76 |
|
|
77 |
void dragEnterEvent(QDragEnterEvent* pDragEnterEvent); |
void dragEnterEvent(QDragEnterEvent* pDragEnterEvent); |
78 |
void dropEvent(QDropEvent* pDropEvent); |
void dropEvent(QDropEvent* pDropEvent); |
79 |
void contextMenuEvent(QContextMenuEvent* pEvent); |
void contextMenuEvent(QContextMenuEvent* pEvent); |
80 |
|
|
81 |
private: |
private: |
82 |
Ui::qsamplerChannelStrip ui; |
|
83 |
|
Ui::qsamplerChannelStrip m_ui; |
84 |
|
|
85 |
qsamplerChannel* m_pChannel; |
qsamplerChannel* m_pChannel; |
86 |
int m_iDirtyChange; |
int m_iDirtyChange; |