2012-05-26 14:26:10 +02:00
|
|
|
//=============================================================================
|
|
|
|
// 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 __REPEAT_H__
|
|
|
|
#define __REPEAT_H__
|
|
|
|
|
|
|
|
#include "text.h"
|
|
|
|
#include "rest.h"
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
namespace Ms {
|
|
|
|
|
2012-05-26 14:26:10 +02:00
|
|
|
class Score;
|
|
|
|
class Segment;
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
2012-07-25 11:49:34 +02:00
|
|
|
// @@ RepeatMeasure
|
2012-05-26 14:26:10 +02:00
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
class RepeatMeasure : public Rest {
|
2012-05-28 11:29:21 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2012-05-26 14:26:10 +02:00
|
|
|
QPainterPath path;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RepeatMeasure(Score*);
|
2014-06-27 13:41:49 +02:00
|
|
|
RepeatMeasure &operator=(const RepeatMeasure&) = delete;
|
2012-05-26 14:26:10 +02:00
|
|
|
virtual RepeatMeasure* clone() const { return new RepeatMeasure(*this); }
|
2014-06-24 18:36:02 +02:00
|
|
|
virtual Element::Type type() const { return Element::Type::REPEAT_MEASURE; }
|
2012-05-26 14:26:10 +02:00
|
|
|
virtual void draw(QPainter*) const;
|
|
|
|
virtual void layout();
|
2013-02-25 11:17:08 +01:00
|
|
|
virtual Fraction duration() const;
|
2014-07-10 14:13:37 +02:00
|
|
|
|
|
|
|
virtual QString accessibleInfo();
|
2012-05-26 14:26:10 +02:00
|
|
|
};
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
|
|
|
|
} // namespace Ms
|
2012-05-26 14:26:10 +02:00
|
|
|
#endif
|
|
|
|
|