2013-05-02 11:01:38 +02:00
|
|
|
//=============================================================================
|
|
|
|
// 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 {
|
2013-05-02 11:01:38 +02:00
|
|
|
class Chord;
|
|
|
|
class Score;
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
// NoteGroups
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
class NoteGroups : public QGroupBox, Ui::NoteGroups
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-05-26 15:54:26 +02:00
|
|
|
|
2013-05-02 11:01:38 +02:00
|
|
|
std::vector<Chord*> chords8;
|
|
|
|
std::vector<Chord*> chords16;
|
|
|
|
std::vector<Chord*> chords32;
|
|
|
|
Groups _groups;
|
|
|
|
Fraction _sig;
|
2018-11-09 12:06:03 +01:00
|
|
|
QString _z, _n;
|
2020-05-26 15:54:26 +02:00
|
|
|
|
2013-05-02 11:01:38 +02:00
|
|
|
Score* createScore(int n, TDuration::DurationType t, std::vector<Chord*>* chords);
|
2017-02-18 14:52:10 +01:00
|
|
|
void updateBeams(Chord*, Beam::Mode);
|
2020-05-26 15:54:26 +02:00
|
|
|
|
2013-05-02 11:01:38 +02:00
|
|
|
private slots:
|
|
|
|
void resetClicked();
|
2013-05-03 10:11:50 +02:00
|
|
|
void noteClicked(Note*);
|
2017-02-18 14:52:10 +01:00
|
|
|
void beamPropertyDropped(Chord*, Icon*);
|
2020-05-26 15:54:26 +02:00
|
|
|
|
2013-05-02 11:01:38 +02:00
|
|
|
public:
|
|
|
|
NoteGroups(QWidget* parent);
|
2018-11-09 12:06:03 +01:00
|
|
|
void setSig(Fraction sig, const Groups&, const QString& zText, const QString& nText);
|
2013-05-02 11:01:38 +02:00
|
|
|
Groups groups();
|
|
|
|
};
|
2013-05-13 18:49:17 +02:00
|
|
|
} // namespace Ms
|
2013-05-02 11:01:38 +02:00
|
|
|
#endif
|