mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-23 05:48:03 -05:00
There once have been huge efforts to implement FX send support in the master branch. In order to make it available on a stable base here's a backport which is non-trivial as there have been major rewrites of the mixer's worker thread architecture. There still seem to be bugs which we have to fix before merging into stable branch. Thanks to Andrew Kelley for the original work.
33 lines
587 B
C++
33 lines
587 B
C++
#ifndef SENDBUTTONINDICATOR_H
|
|
#define SENDBUTTONINDICATOR_H
|
|
|
|
#include <QDebug>
|
|
#include <QtGui/QLabel>
|
|
#include <QtGui/QPixmap>
|
|
|
|
#include "FxLine.h"
|
|
#include "FxMixerView.h"
|
|
|
|
class FxLine;
|
|
class FxMixerView;
|
|
|
|
class SendButtonIndicator : public QLabel {
|
|
public:
|
|
SendButtonIndicator( QWidget * _parent, FxLine * _owner,
|
|
FxMixerView * _mv);
|
|
|
|
virtual void mousePressEvent( QMouseEvent * e );
|
|
void updateLightStatus();
|
|
|
|
private:
|
|
|
|
FxLine * m_parent;
|
|
FxMixerView * m_mv;
|
|
QPixmap qpmOn;
|
|
QPixmap qpmOff;
|
|
|
|
FloatModel * getSendModel();
|
|
};
|
|
|
|
#endif // SENDBUTTONINDICATOR_H
|