diff options
author | Robert Jonsson <spamatica@gmail.com> | 2010-10-13 19:34:22 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2010-10-13 19:34:22 +0000 |
commit | 8a2c2824a59d7644e13bc52c9a0ecbd641f21f95 (patch) | |
tree | 064ad3f2bf8daab0ad27b128abd86a9bbdb1e496 /muse2/muse/mixer/astrip.h | |
parent | a27706d9629e8b592cca4659f865b70adef24e6d (diff) |
new branch muse2, first checkin
Diffstat (limited to 'muse2/muse/mixer/astrip.h')
-rw-r--r-- | muse2/muse/mixer/astrip.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/muse2/muse/mixer/astrip.h b/muse2/muse/mixer/astrip.h new file mode 100644 index 00000000..82662b2b --- /dev/null +++ b/muse2/muse/mixer/astrip.h @@ -0,0 +1,97 @@ +//========================================================= +// 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 QPopupMenu; +class PopupMenu; +class QButton; +class TransparentToolButton; +class AudioTrack; +class DoubleLabel; + +//--------------------------------------------------------- +// AudioStrip +//--------------------------------------------------------- + +class AudioStrip : public Strip { + Q_OBJECT + + int channel; + Slider* slider; + DoubleLabel* sl; + + Knob* pan; + DoubleLabel* panl; + + std::vector<Knob*> auxKnob; + std::vector<DoubleLabel*> auxLabel; + + QToolButton* stereo; + QToolButton* pre; + TransparentToolButton* off; + + double volume; + double panVal; + + //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(int /*id*/); + 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 &); + + protected slots: + virtual void heartBeat(); + + public slots: + virtual void configChanged(); + virtual void songChanged(int); + + public: + AudioStrip(QWidget* parent, AudioTrack*); + ~AudioStrip(); + virtual QSize minimumSizeHint () const; + }; + +#endif + |