1 /* This file is part of the KDE project
2  * Copyright (C) 2007 Marijn Kruisselbrink <mkruisselbrink@kde.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB.  If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 #ifndef MUSIC_CORE_STAFFSYSTEM_H
20 #define MUSIC_CORE_STAFFSYSTEM_H
21 
22 #include <QObject>
23 #include <QList>
24 
25 namespace MusicCore {
26 
27 class Sheet;
28 class Clef;
29 class Staff;
30 
31 class StaffSystem : public QObject
32 {
33     Q_OBJECT
34 public:
35     explicit StaffSystem(Sheet *sheet);
36     ~StaffSystem() override;
37 
38     qreal top() const;
39     qreal height() const;
40     void setHeight(qreal height);
41     int firstBar() const;
42     qreal indent() const;
43     void setIndent(qreal indent);
44     qreal lineWidth() const;
45     void setLineWidth(qreal width);
46     QList<Clef*> clefs() const;
47     Clef* clef(Staff* staff) const;
48     void setClefs(QList<Clef*> clefs);
49 public Q_SLOTS:
50     void setTop(qreal top);
51     void setFirstBar(int bar);
52 Q_SIGNALS:
53     void topChanged(qreal top);
54     void firstBarChanged(int bar);
55 private:
56     class Private;
57     Private * const d;
58 };
59 
60 } // namespace MusicCore
61 
62 #endif // MUSIC_CORE_STAFFSYSTEM_H
63