MuseScore/libmscore/breath.h
2013-05-13 19:43:59 +02:00

55 lines
1.5 KiB
C++

//=============================================================================
// MuseScore
// Music Composition & Notation
//
// 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;
namespace Ms {
//---------------------------------------------------------
// @@ Breath
/// brathT() is index in symList
//---------------------------------------------------------
class Breath : public Element {
Q_OBJECT
int _breathType;
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 breathType() const { return _breathType; }
void setBreathType(int v) { _breathType = 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(XmlReader&);
virtual QPointF pagePos() const; ///< position in page coordinates
};
} // namespace Ms
#endif