MuseScore  3.4
Music composition and notation
tremolobarcanvas.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 __TREMOLOBARCANVAS_H__
21 #define __TREMOLOBARCANVAS_H__
22 
23 #include "libmscore/pitchvalue.h"
24 
25 namespace Ms {
26 
27 //---------------------------------------------------------
28 // TremoloBarCanvas
29 //---------------------------------------------------------
30 
31 class TremoloBarCanvas : public QFrame {
32  Q_OBJECT
33  QList<PitchValue> _points;
34 
35  virtual void paintEvent(QPaintEvent*);
36  virtual void mousePressEvent(QMouseEvent*);
37 
38  public:
39  TremoloBarCanvas(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:
46  };
47 }
48 
49 #endif
50 
void setPoints(const QList< PitchValue > &p)
Definition: tremolobarcanvas.h:42
void tremoloBarCanvasChanged()
Definition: tremolobarcanvas.h:31
QList< PitchValue > & points()
Definition: tremolobarcanvas.h:41
const QList< PitchValue > & points() const
Definition: tremolobarcanvas.h:40
TremoloBarCanvas(QWidget *parent=0)
Definition: tremolobarcanvas.cpp:32
virtual void mousePressEvent(QMouseEvent *)
Definition: tremolobarcanvas.cpp:109
virtual void paintEvent(QPaintEvent *)
Definition: tremolobarcanvas.cpp:41
Definition: aeolus.cpp:26
QList< PitchValue > _points
Definition: tremolobarcanvas.h:33