MuseScore  3.4
Music composition and notation
repeat.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2011 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __REPEAT_H__
14 #define __REPEAT_H__
15 
16 #include "text.h"
17 #include "rest.h"
18 
19 namespace Ms {
20 
21 class Score;
22 class Segment;
23 
24 //---------------------------------------------------------
25 // @@ RepeatMeasure
26 //---------------------------------------------------------
27 
28 class RepeatMeasure final : public Rest {
29  QPainterPath path;
30 
31  public:
33  RepeatMeasure &operator=(const RepeatMeasure&) = delete;
34  virtual RepeatMeasure* clone() const override { return new RepeatMeasure(*this); }
35  virtual Element* linkedClone() override { return Element::linkedClone(); }
36  virtual ElementType type() const override { return ElementType::REPEAT_MEASURE; }
37  virtual void draw(QPainter*) const override;
38  virtual void layout() override;
39  virtual Fraction ticks() const override;
40  Fraction actualTicks() const { return Rest::ticks(); }
41 
42  virtual QString accessibleInfo() const override;
43  };
44 
45 
46 } // namespace Ms
47 #endif
48 
virtual Fraction ticks() const
Definition: duration.h:62
virtual Fraction ticks() const override
Definition: repeat.cpp:78
virtual QString accessibleInfo() const override
Definition: repeat.cpp:89
RepeatMeasure & operator=(const RepeatMeasure &)=delete
Base class of score layout elements.
Definition: element.h:158
Fraction actualTicks() const
Definition: repeat.h:40
virtual ElementType type() const override
Definition: repeat.h:36
Definition: score.h:391
virtual void layout() override
Definition: repeat.cpp:46
virtual Element * linkedClone() override
Definition: repeat.h:35
Definition: aeolus.cpp:26
RepeatMeasure(Score *)
Definition: repeat.cpp:26
virtual RepeatMeasure * clone() const override
Definition: repeat.h:34
This class implements a rest.
Definition: rest.h:29
virtual Element * linkedClone()
Definition: element.cpp:208
virtual void draw(QPainter *) const override
Definition: repeat.cpp:35
Definition: fraction.h:46
ElementType
Definition: types.h:34
QPainterPath path
Definition: repeat.h:29
Definition: repeat.h:28