MuseScore  3.4
Music composition and notation
noteGroups.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2013 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENSE.GPL
11 //=============================================================================
12 
13 #ifndef __NOTE_GROUPS_H__
14 #define __NOTE_GROUPS_H__
15 
16 #include "ui_note_groups.h"
17 #include "libmscore/fraction.h"
18 #include "libmscore/groups.h"
19 
20 namespace Ms {
21 
22 class Chord;
23 class Score;
24 
25 //---------------------------------------------------------
26 // NoteGroups
27 //---------------------------------------------------------
28 
29 class NoteGroups : public QGroupBox, Ui::NoteGroups {
30  Q_OBJECT
31 
32  std::vector<Chord*> chords8;
33  std::vector<Chord*> chords16;
34  std::vector<Chord*> chords32;
37  QString _z, _n;
38 
39  Score* createScore(int n, TDuration::DurationType t, std::vector<Chord*>* chords);
41 
42  private slots:
43  void resetClicked();
44  void noteClicked(Note*);
46 
47  public:
48  NoteGroups(QWidget* parent);
49  void setSig(Fraction sig, const Groups&, const QString& zText, const QString& nText);
50  Groups groups();
51  };
52 
53 
54 } // namespace Ms
55 #endif
56 
void noteClicked(Note *)
Definition: noteGroups.cpp:163
QString _n
Definition: noteGroups.h:37
std::vector< Chord * > chords8
Definition: noteGroups.h:32
DurationType
Definition: durationtype.h:30
Groups _groups
Definition: noteGroups.h:35
void updateBeams(Chord *, Beam::Mode)
Definition: noteGroups.cpp:201
Definition: noteGroups.h:29
GroupNodes must be sorted by tick.
Definition: groups.h:48
Definition: icon.h:26
Definition: score.h:391
Fraction _sig
Definition: noteGroups.h:36
void beamPropertyDropped(Chord *, Icon *)
Definition: noteGroups.cpp:176
std::vector< Chord * > chords16
Definition: noteGroups.h:33
Mode
Definition: beam.h:73
Definition: aeolus.cpp:26
Groups groups()
Definition: noteGroups.cpp:138
Score * createScore(int n, TDuration::DurationType t, std::vector< Chord *> *chords)
Definition: noteGroups.cpp:31
void resetClicked()
Definition: noteGroups.cpp:154
std::vector< Chord * > chords32
Definition: noteGroups.h:34
Graphic representation of a chord.
Definition: chord.h:55
QString _z
Definition: noteGroups.h:37
Graphic representation of a note.
Definition: note.h:212
Definition: fraction.h:46
NoteGroups(QWidget *parent)
Definition: noteGroups.cpp:77
void setSig(Fraction sig, const Groups &, const QString &zText, const QString &nText)
Definition: noteGroups.cpp:113