Ability to delete mixer channels in the FX Mixer
Users can now delete mixer channels from the FX mixer, and it doesn't mess up the instrument send channels.
This commit is contained in:
@@ -21,11 +21,11 @@ public:
|
||||
virtual void mouseDoubleClickEvent( QMouseEvent * );
|
||||
|
||||
inline int channelIndex() { return m_channelIndex; }
|
||||
inline void setChannelIndex(int index) { m_channelIndex = index; }
|
||||
|
||||
knob * m_sendKnob;
|
||||
SendButtonIndicator * m_sendBtn;
|
||||
|
||||
|
||||
private:
|
||||
FxMixerView * m_mv;
|
||||
|
||||
|
||||
@@ -109,6 +109,13 @@ public:
|
||||
// returns the index of the channel that was just added
|
||||
int createChannel();
|
||||
|
||||
// delete a channel from the FX mixer.
|
||||
void deleteChannel(int index);
|
||||
|
||||
// re-arrange channels
|
||||
void moveChannelLeft(int index);
|
||||
void moveChannelRight(int index);
|
||||
|
||||
// reset a channel's name, fx, sends, etc
|
||||
void clearChannel(fx_ch_t channelIndex);
|
||||
|
||||
|
||||
@@ -52,15 +52,16 @@ public:
|
||||
FxChannelView(QWidget * _parent, FxMixerView * _mv, int _chIndex );
|
||||
|
||||
FxLine * m_fxLine;
|
||||
//EffectRackView * m_rackView;
|
||||
pixmapButton * m_muteBtn;
|
||||
fader * m_fader;
|
||||
} ;
|
||||
};
|
||||
|
||||
|
||||
FxMixerView();
|
||||
virtual ~FxMixerView();
|
||||
|
||||
virtual void keyPressEvent(QKeyEvent * e);
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _this );
|
||||
virtual void loadSettings( const QDomElement & _this );
|
||||
|
||||
@@ -81,7 +82,10 @@ public:
|
||||
|
||||
|
||||
// display the send button and knob correctly
|
||||
void updateFxLine(int i);
|
||||
void updateFxLine(int index);
|
||||
|
||||
// notify the view that an fx channel was deleted
|
||||
void deleteChannel(int index);
|
||||
|
||||
private slots:
|
||||
void updateFaders();
|
||||
|
||||
Reference in New Issue
Block a user