MuseScore
3.4
Music composition and notation
libmscore
measurenumber.h
Go to the documentation of this file.
1
//=============================================================================
2
// MuseScore
3
// Music Composition & Notation
4
//
5
// Copyright (C) 2014 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 __MEASURENUMBER_H__
14
#define __MEASURENUMBER_H__
15
16
#include "
textbase.h
"
17
18
namespace
Ms
{
19
20
//---------------------------------------------------------
21
// MeasureNumber
22
//---------------------------------------------------------
23
24
class
MeasureNumber
final :
public
TextBase
{
25
26
public
:
27
MeasureNumber
(
Score
* s = 0);
28
29
virtual
ElementType
type
()
const override
{
return
ElementType::MEASURE_NUMBER
; }
30
virtual
MeasureNumber
*
clone
()
const override
{
return
new
MeasureNumber
(*
this
); }
31
virtual
QVariant
propertyDefault
(
Pid
id
)
const override
;
32
33
virtual
void
layout
()
override
;
34
Measure
*
measure
()
const
{
return
toMeasure(
parent
()); }
35
};
36
37
}
// namespace Ms
38
39
#endif
40
Ms::Pid
Pid
Definition:
property.h:62
Ms::MeasureNumber
Definition:
measurenumber.h:24
Ms::Measure
one measure in a system
Definition:
measure.h:65
Ms::MeasureNumber::type
virtual ElementType type() const override
Definition:
measurenumber.h:29
Ms::MeasureNumber::clone
virtual MeasureNumber * clone() const override
Definition:
measurenumber.h:30
Ms::ElementType::MEASURE_NUMBER
Ms::Element::parent
Element * parent() const
Definition:
element.h:192
Ms::Score
Definition:
score.h:391
Ms::MeasureNumber::measure
Measure * measure() const
Definition:
measurenumber.h:34
Ms::MeasureNumber::layout
virtual void layout() override
Definition:
measurenumber.cpp:58
Ms::MeasureNumber::MeasureNumber
MeasureNumber(Score *s=0)
Definition:
measurenumber.cpp:31
Ms::TextBase
Definition:
textbase.h:217
Ms
Definition:
aeolus.cpp:26
Ms::MeasureNumber::propertyDefault
virtual QVariant propertyDefault(Pid id) const override
Definition:
measurenumber.cpp:42
textbase.h
Ms::ElementType
ElementType
Definition:
types.h:34
Generated by
1.8.13