summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/muse/mixer/astrip.h
diff options
context:
space:
mode:
Diffstat (limited to 'attic/muse2-oom/muse2/muse/mixer/astrip.h')
-rw-r--r--attic/muse2-oom/muse2/muse/mixer/astrip.h105
1 files changed, 105 insertions, 0 deletions
diff --git a/attic/muse2-oom/muse2/muse/mixer/astrip.h b/attic/muse2-oom/muse2/muse/mixer/astrip.h
new file mode 100644
index 00000000..1526c847
--- /dev/null
+++ b/attic/muse2-oom/muse2/muse/mixer/astrip.h
@@ -0,0 +1,105 @@
+//=========================================================
+// MusE
+// Linux Music Editor
+// $Id: astrip.h,v 1.8.2.6 2009/11/14 03:37:48 terminator356 Exp $
+//
+// (C) Copyright 2000-2004 Werner Schweer (ws@seh.de)
+//=========================================================
+
+#ifndef __ASTRIP_H__
+#define __ASTRIP_H__
+
+#include <vector>
+
+#include "strip.h"
+#include "route.h"
+
+class Slider;
+class Knob;
+//class QDialog;
+class QToolButton;
+//class QAction;
+//class QPopupMenu;
+class PopupMenu;
+class QButton;
+class TransparentToolButton;
+class AudioTrack;
+class DoubleLabel;
+class EffectRack;
+
+//---------------------------------------------------------
+// AudioStrip
+//---------------------------------------------------------
+
+class AudioStrip : public Strip {
+ Q_OBJECT
+
+ int channel;
+ Slider* slider;
+ DoubleLabel* sl;
+ EffectRack* rack;
+
+ Knob* pan;
+ DoubleLabel* panl;
+
+ std::vector<Knob*> auxKnob;
+ std::vector<DoubleLabel*> auxLabel;
+
+ QToolButton* stereo;
+ QToolButton* pre;
+ TransparentToolButton* off;
+
+ double volume;
+ double panVal;
+
+ QString slDefaultStyle;
+
+ //QToolButton* iR;
+ //QToolButton* oR;
+
+ Knob* addKnob(int, int, DoubleLabel**);
+
+ void updateOffState();
+ void updateVolume();
+ void updatePan();
+ void updateChannels();
+ //void updateRouteMenus();
+
+ private slots:
+ void stereoToggled(bool);
+ void preToggled(bool);
+ void offToggled(bool);
+ void iRoutePressed();
+ void oRoutePressed();
+ void routingPopupMenuActivated(QAction*);
+ void auxChanged(double, int);
+ void volumeChanged(double);
+ void volumePressed();
+ void volumeReleased();
+ void panChanged(double);
+ void panPressed();
+ void panReleased();
+ void volLabelChanged(double);
+ void panLabelChanged(double);
+ void auxLabelChanged(double, unsigned int);
+ void volumeRightClicked(const QPoint &);
+ void panRightClicked(const QPoint &);
+ void playbackClipped();
+ void resetPeaks();
+
+ protected slots:
+ virtual void heartBeat();
+
+ public slots:
+ virtual void configChanged();
+ virtual void songChanged(int);
+
+ public:
+ AudioStrip(QWidget* parent, AudioTrack*);
+ ~AudioStrip();
+ ///virtual QSize minimumSizeHint () const;
+ //virtual QSize sizeHint () const;
+ };
+
+#endif
+