MuseScore/mscore/noteGroups.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.4 KiB
C
Raw Normal View History

//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2013 Werner Schweer 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 2
// as published by the Free Software Foundation and appearing in
// the file LICENSE.GPL
//=============================================================================
#ifndef __NOTE_GROUPS_H__
#define __NOTE_GROUPS_H__
#include "ui_note_groups.h"
#include "libmscore/fraction.h"
#include "libmscore/groups.h"
2013-05-13 18:49:17 +02:00
namespace Ms {
class Chord;
class Score;
//---------------------------------------------------------
// NoteGroups
//---------------------------------------------------------
class NoteGroups : public QGroupBox, Ui::NoteGroups
{
Q_OBJECT
2020-05-26 15:54:26 +02:00
std::vector<Chord*> chords8;
std::vector<Chord*> chords16;
std::vector<Chord*> chords32;
Groups _groups;
Fraction _sig;
QString _z, _n;
2020-05-26 15:54:26 +02:00
Score* createScore(int n, TDuration::DurationType t, std::vector<Chord*>* chords);
void updateBeams(Chord*, Beam::Mode);
2020-05-26 15:54:26 +02:00
private slots:
void resetClicked();
2013-05-03 10:11:50 +02:00
void noteClicked(Note*);
void beamPropertyDropped(Chord*, Icon*);
2020-05-26 15:54:26 +02:00
public:
NoteGroups(QWidget* parent);
void setSig(Fraction sig, const Groups&, const QString& zText, const QString& nText);
Groups groups();
};
2013-05-13 18:49:17 +02:00
} // namespace Ms
#endif