File indexing completed on 2024-05-12 16:34:15
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2007 Marijn Kruisselbrink <mkruisselbrink@kde.org> 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Library General Public 0006 * License as published by the Free Software Foundation; either 0007 * version 2 of the License, or (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 * Library General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Library General Public License 0015 * along with this library; see the file COPYING.LIB. If not, write to 0016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 #ifndef MUSIC_ENGRAVER_H 0020 #define MUSIC_ENGRAVER_H 0021 0022 #include <QSizeF> 0023 0024 namespace MusicCore { 0025 class Bar; 0026 class VoiceBar; 0027 class Sheet; 0028 class Part; 0029 } 0030 0031 /** 0032 * This class is responsible for layint out notes and other musical elements inside a bar, and for laying out bars 0033 * within staff systems. 0034 */ 0035 class Engraver { 0036 public: 0037 Engraver(); 0038 void engraveSheet(MusicCore::Sheet* sheet, int firstSystem, QSizeF size, bool engraveBars = true, int* lastSystem=0); 0039 void engraveBar(MusicCore::Bar* bar, qreal sizeFactor = 1.0); 0040 qreal engraveBars(MusicCore::Sheet* sheet, int firstBar, int lastBar, qreal sizeFactor); 0041 void rebeamBar(MusicCore::Part* part, MusicCore::VoiceBar* bar); 0042 }; 0043 0044 #endif // MUSIC_ENGRAVER_H