-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
noteheadsettingsmodel.h
73 lines (65 loc) · 2.66 KB
/
noteheadsettingsmodel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* SPDX-License-Identifier: GPL-3.0-only
* MuseScore-CLA-applies
*
* MuseScore
* Music Composition & Notation
*
* Copyright (C) 2021 MuseScore BVBA and others
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef MU_INSPECTOR_NOTEHEADSETTINGSMODEL_H
#define MU_INSPECTOR_NOTEHEADSETTINGSMODEL_H
#include "models/abstractinspectormodel.h"
namespace mu::inspector {
class NoteheadSettingsModel : public AbstractInspectorModel
{
Q_OBJECT
Q_PROPERTY(PropertyItem * isHeadHidden READ isHeadHidden CONSTANT)
Q_PROPERTY(PropertyItem * isHeadSmall READ isHeadSmall CONSTANT)
Q_PROPERTY(PropertyItem * hasHeadParentheses READ hasHeadParentheses CONSTANT)
Q_PROPERTY(PropertyItem * headDirection READ headDirection CONSTANT)
Q_PROPERTY(PropertyItem * headGroup READ headGroup CONSTANT)
Q_PROPERTY(PropertyItem * headType READ headType CONSTANT)
Q_PROPERTY(PropertyItem * dotPosition READ dotPosition CONSTANT)
Q_PROPERTY(PropertyItem * horizontalOffset READ horizontalOffset CONSTANT)
Q_PROPERTY(PropertyItem * verticalOffset READ verticalOffset CONSTANT)
public:
explicit NoteheadSettingsModel(QObject* parent, IElementRepositoryService* repository);
PropertyItem* isHeadHidden() const;
PropertyItem* isHeadSmall() const;
PropertyItem* hasHeadParentheses() const;
PropertyItem* headDirection() const;
PropertyItem* headGroup() const;
PropertyItem* headType() const;
PropertyItem* dotPosition() const;
PropertyItem* horizontalOffset() const;
PropertyItem* verticalOffset() const;
private:
void createProperties() override;
void requestElements() override;
void loadProperties() override;
void resetProperties() override;
PropertyItem* m_isHeadHidden = nullptr;
PropertyItem* m_isHeadSmall = nullptr;
PropertyItem* m_hasHeadParentheses = nullptr;
PropertyItem* m_headDirection = nullptr;
PropertyItem* m_headGroup = nullptr;
PropertyItem* m_headType = nullptr;
PropertyItem* m_dotPosition = nullptr;
PropertyItem* m_horizontalOffset = nullptr;
PropertyItem* m_verticalOffset = nullptr;
};
}
#endif // MU_INSPECTOR_NOTEHEADSETTINGSMODEL_H