MuseScore  3.4
Music composition and notation
timedialog.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
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 // as published by the Free Software Foundation and appearing in
10 // the file LICENSE.GPL
11 //=============================================================================
12 
13 #ifndef __TIMEDIALOG_H__
14 #define __TIMEDIALOG_H__
15 
16 #include "ui_timedialog.h"
17 #include "libmscore/fraction.h"
18 
19 namespace Ms {
20 
21 class Palette;
22 class PaletteScrollArea;
23 class TimeSig;
24 class Score;
25 class Chord;
26 
27 //---------------------------------------------------------
28 // TimeDialog
29 //---------------------------------------------------------
30 
31 class TimeDialog : public QWidget, Ui::TimeDialogBase {
32  Q_OBJECT
33 
36  bool _dirty;
37 
38  int denominator() const;
39  int denominator2Idx(int) const;
40 
41  private slots:
42  void addClicked();
43  void zChanged(int);
44  void nChanged(int);
45  void paletteChanged(int idx);
46  void textChanged();
47  void setDirty() { _dirty = true; }
48 
49  signals:
50  void timeSigAdded(const TimeSig*);
51 
52  public:
53  TimeDialog(QWidget* parent = 0);
54  bool dirty() const { return _dirty; }
55  void showTimePalette(bool val);
56  void save();
57  };
58 }
59 
60 #endif
void zChanged(int)
Definition: timedialog.cpp:128
This class represents a time signature.
Definition: timesig.h:41
void paletteChanged(int idx)
Definition: timedialog.cpp:188
void setDirty()
Definition: timedialog.h:47
PaletteScrollArea * _timePalette
Definition: timedialog.h:34
void save()
Definition: timedialog.cpp:116
void nChanged(int)
Definition: timedialog.cpp:139
int denominator() const
Definition: timedialog.cpp:169
Definition: palette.h:53
int denominator2Idx(int) const
Definition: timedialog.cpp:150
TimeDialog(QWidget *parent=0)
Definition: timedialog.cpp:37
bool dirty() const
Definition: timedialog.h:54
bool _dirty
Definition: timedialog.h:36
void timeSigAdded(const TimeSig *)
Definition: aeolus.cpp:26
void addClicked()
Definition: timedialog.cpp:84
void textChanged()
Definition: timedialog.cpp:222
void showTimePalette(bool val)
Definition: timedialog.cpp:107
Definition: palette.h:72
Palette * sp
Definition: timedialog.h:35
Definition: timedialog.h:31