-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
glissando.h
55 lines (43 loc) · 1.64 KB
/
glissando.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id: glissando.h 5500 2012-03-28 16:28:26Z wschweer $
//
// Copyright (C) 2008-2011 Werner Schweer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
//=============================================================================
#ifndef __GLISSANDO_H__
#define __GLISSANDO_H__
#include "element.h"
class Note;
//---------------------------------------------------------
// @@ Glissando
//---------------------------------------------------------
class Glissando : public Element {
Q_OBJECT
int _subtype;
QLineF line;
QString _text;
bool _showText;
public:
Glissando(Score* s);
virtual Glissando* clone() const { return new Glissando(*this); }
virtual ElementType type() const { return GLISSANDO; }
int subtype() const { return _subtype; }
void setSubtype(int v) { _subtype = v; }
virtual Space space() const;
virtual void draw(QPainter*) const;
virtual void layout();
virtual void write(Xml&) const;
virtual void read(const QDomElement&);
void setSize(const QSizeF&); // used for palette
QString text() const { return _text; }
void setText(const QString& t) { _text = t; }
bool showText() const { return _showText; }
void setShowText(bool v) { _showText = v; }
};
#endif