diff options
Diffstat (limited to 'attic/muse2-oom/muse2/muse/mixer/mstrip.h')
-rw-r--r-- | attic/muse2-oom/muse2/muse/mixer/mstrip.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/attic/muse2-oom/muse2/muse/mixer/mstrip.h b/attic/muse2-oom/muse2/muse/mixer/mstrip.h new file mode 100644 index 00000000..920cca99 --- /dev/null +++ b/attic/muse2-oom/muse2/muse/mixer/mstrip.h @@ -0,0 +1,86 @@ +//========================================================= +// MusE +// Linux Music Editor +// $Id: mstrip.h,v 1.4.2.4 2009/10/25 19:26:29 lunar_shuttle Exp $ +// +// (C) Copyright 2000-2004 Werner Schweer (ws@seh.de) +//========================================================= + +#ifndef __MSTRIP_H__ +#define __MSTRIP_H__ + +#include "strip.h" +#include <QLabel> + +class Slider; +class DoubleLabel; +class QDialog; +class Knob; +class QString; +class MidiTrack; +class QLabel; +class QAction; +class TransparentToolButton; + +//--------------------------------------------------------- +// MidiStrip +//--------------------------------------------------------- + +class MidiStrip : public Strip { + Q_OBJECT + + Slider* slider; + DoubleLabel* sl; + TransparentToolButton* off; + //QToolButton* route; + //QToolButton* iR; + //QToolButton* oR; + + struct KNOB { + Knob* knob; + DoubleLabel* dl; + QLabel* lb; + } controller[4]; // pan variation reverb chorus + + int volume; + int variSend; + int reverbSend; + int chorusSend; + int pan; + bool inHeartBeat; + + void addKnob(int idx, const QString&, const QString&, const char*, bool); + void ctrlChanged(int num, int val); + void updateControls(); + void updateOffState(); + + private slots: + //void routeClicked(); + void offToggled(bool); + void iRoutePressed(); + void oRoutePressed(); + void routingPopupMenuActivated(QAction*); + void setVolume(double); + void setPan(double); + void setChorusSend(double); + void setVariSend(double); + void setReverbSend(double); + void labelDoubleClicked(int); + void volLabelChanged(double); + void controlRightClicked(const QPoint&, int); + + protected slots: + virtual void heartBeat(); + + public slots: + virtual void songChanged(int); + + public: + MidiStrip(QWidget* parent, MidiTrack*); + }; + + +#endif + + + |