MuseScore  3.4
Music composition and notation
tupletdialog.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2002-2009 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 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __TUPLETDIALOG_H__
21 #define __TUPLETDIALOG_H__
22 
23 #include "libmscore/duration.h"
24 #include "ui_tupletdialog.h"
25 
26 namespace Ms {
27 
28 //---------------------------------------------------------
29 // TupletDialog
30 //---------------------------------------------------------
31 
32 class TupletDialog : public QDialog, Ui::TupletDialog {
33  Q_OBJECT
34 
35  virtual void hideEvent(QHideEvent*);
36  public:
37  TupletDialog(QWidget* parent = 0);
38  void defaultToStyleSettings(Score* score);
39  void setupTuplet(Tuplet* tuplet);
40  int getNormalNotes() const { return normalNotes->value(); }
41  };
42 }
43 
44 #endif
45 
void defaultToStyleSettings(Score *score)
Definition: tupletdialog.cpp:56
void setupTuplet(Tuplet *tuplet)
Definition: tupletdialog.cpp:73
Definition: score.h:391
Example of 1/8 triplet: _baseLen = 1/8 _actualNotes = 3 _normalNotes = 2 (3 notes played in the time ...
Definition: tuplet.h:37
Definition: aeolus.cpp:26
int getNormalNotes() const
Definition: tupletdialog.h:40
TupletDialog(QWidget *parent=0)
Definition: tupletdialog.cpp:43
Definition: tupletdialog.h:32
virtual void hideEvent(QHideEvent *)
Definition: tupletdialog.cpp:168