-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
breath.h
52 lines (40 loc) · 1.52 KB
/
breath.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
//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id: breath.h 5504 2012-03-29 11:01:37Z wschweer $
//
// Copyright (C) 2002-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 __BREATH_H__
#define __BREATH_H__
#include "element.h"
class QPainter;
//---------------------------------------------------------
// @@ Breath
// subtype() is index in symList
//---------------------------------------------------------
class Breath : public Element {
Q_OBJECT
int _subtype;
static const int breathSymbols = 4;
static int symList[breathSymbols];
public:
Breath(Score* s);
virtual Breath* clone() const { return new Breath(*this); }
virtual ElementType type() const { return BREATH; }
int subtype() const { return _subtype; }
void setSubtype(int v) { _subtype = v; }
Segment* segment() const { return (Segment*)parent(); }
virtual Space space() const;
virtual void draw(QPainter*) const;
virtual void layout();
virtual void write(Xml&) const;
virtual void read(const QDomElement&);
virtual QPointF pagePos() const; ///< position in page coordinates
};
#endif