MuseScore/libmscore/repeat.h

43 lines
1.2 KiB
C++

//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id: repeat.h 5516 2012-04-02 20:25:43Z 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 __REPEAT_H__
#define __REPEAT_H__
#include "text.h"
#include "rest.h"
class Score;
class Segment;
//---------------------------------------------------------
// @@ RepeatMeasure
//---------------------------------------------------------
class RepeatMeasure : public Rest {
Q_OBJECT
QPainterPath path;
public:
RepeatMeasure(Score*);
RepeatMeasure &operator=(const RepeatMeasure&);
virtual RepeatMeasure* clone() const { return new RepeatMeasure(*this); }
virtual ElementType type() const { return REPEAT_MEASURE; }
virtual void draw(QPainter*) const;
virtual void layout();
virtual Fraction duration() const;
};
#endif