MuseScore  3.4
Music composition and notation
bendcanvas.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2010 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __BENDCANVAS_H__
21 #define __BENDCANVAS_H__
22 
23 #include "libmscore/pitchvalue.h"
24 
25 namespace Ms {
26 
27 //---------------------------------------------------------
28 // BendCanvas
29 //---------------------------------------------------------
30 
31 class BendCanvas : public QFrame {
32  Q_OBJECT
33  QList<PitchValue> _points;
34 
35  virtual void paintEvent(QPaintEvent*);
36  virtual void mousePressEvent(QMouseEvent*);
37 
38  public:
39  BendCanvas(QWidget* parent = 0);
40  const QList<PitchValue>& points() const { return _points; }
41  QList<PitchValue>& points() { return _points; }
42  void setPoints(const QList<PitchValue>& p) { _points = p; }
43 
44  signals:
45  void bendCanvasChanged();
46  };
47 
48 
49 } // namespace Ms
50 #endif
51 
Definition: bendcanvas.h:31
const QList< PitchValue > & points() const
Definition: bendcanvas.h:40
virtual void paintEvent(QPaintEvent *)
Definition: bendcanvas.cpp:41
QList< PitchValue > & points()
Definition: bendcanvas.h:41
void setPoints(const QList< PitchValue > &p)
Definition: bendcanvas.h:42
virtual void mousePressEvent(QMouseEvent *)
Definition: bendcanvas.cpp:108
Definition: aeolus.cpp:26
BendCanvas(QWidget *parent=0)
Definition: bendcanvas.cpp:32
void bendCanvasChanged()
QList< PitchValue > _points
Definition: bendcanvas.h:33