summaryrefslogtreecommitdiff
path: root/attic/muse_qt4_evolution/awl/slider.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-27 16:08:57 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-27 16:08:57 +0000
commite9e38901f1b0c8b0d4c11f6de37abf7ff6c7234f (patch)
tree6db56ee33fda6adce28afc456c4fd84b56180453 /attic/muse_qt4_evolution/awl/slider.h
parent5c2eaaf143f517e1a4d52e243a761e479aeb3e5b (diff)
parentd52fac00567bb85944188f3c946b86b2a420819c (diff)
merged with trunk
Diffstat (limited to 'attic/muse_qt4_evolution/awl/slider.h')
-rw-r--r--attic/muse_qt4_evolution/awl/slider.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/attic/muse_qt4_evolution/awl/slider.h b/attic/muse_qt4_evolution/awl/slider.h
deleted file mode 100644
index e8e38ba2..00000000
--- a/attic/muse_qt4_evolution/awl/slider.h
+++ /dev/null
@@ -1,81 +0,0 @@
-//=============================================================================
-// Awl
-// Audio Widget Library
-// $Id:$
-//
-// Copyright (C) 2002-2006 by Werner Schweer and others
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 2.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-//=============================================================================
-
-#ifndef __AWLSLIDER_H__
-#define __AWLSLIDER_H__
-
-#include "aslider.h"
-
-namespace Awl {
-
-//---------------------------------------------------------
-// Slider
-//
-//! Base class of all slider type input widgets.
-//
-//! Inherits from AwlKnob
-//!
-//---------------------------------------------------------
-
-class Slider : public AbstractSlider {
- Q_OBJECT
-
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
- Q_PROPERTY(QSize sliderSize READ sliderSize WRITE setSliderSize)
-
- Qt::Orientation orient;
- QSize _sliderSize;
-
- QPoint startDrag;
- bool dragMode;
- int dragppos;
-
- virtual void mouseReleaseEvent(QMouseEvent*);
- virtual void mouseMoveEvent(QMouseEvent*);
- virtual void paintEvent(QPaintEvent*);
- void init();
- void updateKnob();
-
- protected:
- QPainterPath* points;
- virtual void mousePressEvent(QMouseEvent*);
-
- signals:
- void sliderPressed(int);
- void sliderReleased(int);
-
- public:
- Slider(QWidget* parent = 0);
- Slider(Qt::Orientation orientation, QWidget* parent = 0);
- ~Slider();
-
- virtual void setOrientation(Qt::Orientation);
- Qt::Orientation orientation() const { return orient; }
-
- QSize sliderSize() const { return _sliderSize; }
- void setSliderSize(const QSize& s);
-
- virtual void setInvertedAppearance(bool val);
- virtual QSize sizeHint() const;
- };
-}
-
-#endif
-