Created a user interface so you can add and remove FX sends as well as tweak how much you are sending. The gui does not yet prevent the user from creating endless render loops. Additionally, there seems to be some issues to work out regarding rendering with multiple sends.
33 lines
575 B
C++
33 lines
575 B
C++
#ifndef SENDBUTTONINDICATOR_H
|
|
#define SENDBUTTONINDICATOR_H
|
|
|
|
#include <QLabel>
|
|
#include <QDebug>
|
|
#include <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
|