MuseScore  3.4
Music composition and notation
measureproperties.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 __MEASUREPROPERTIES_H__
21 #define __MEASUREPROPERTIES_H__
22 
23 #include "ui_measureproperties.h"
24 #include "libmscore/sig.h"
25 
26 namespace Ms {
27 
28 class Measure;
29 
30 //---------------------------------------------------------
31 // MeasureProperties
32 //---------------------------------------------------------
33 
34 class MeasureProperties : public QDialog, private Ui::MeasurePropertiesBase {
35  Q_OBJECT
37 
38  void apply();
39  Fraction len() const;
40  bool isIrregular() const;
41  int repeatCount() const;
42  bool visible(int staffIdx);
43  bool stemless(int staffIdx);
44  void setMeasure(Measure* _m);
45 
46  virtual void hideEvent(QHideEvent*);
47 
48  private slots:
49  void bboxClicked(QAbstractButton* button);
50  void gotoNextMeasure();
51  void gotoPreviousMeasure();
52 
53  public:
54  MeasureProperties(Measure*, QWidget* parent = 0);
55  };
56 
57 
58 } // namespace Ms
59 #endif
60 
bool stemless(int staffIdx)
Definition: measureproperties.cpp:210
void gotoNextMeasure()
Definition: measureproperties.cpp:94
Measure * m
Definition: measureproperties.h:36
bool isIrregular() const
Definition: measureproperties.cpp:229
Fraction len() const
Definition: measureproperties.cpp:220
void gotoPreviousMeasure()
Definition: measureproperties.cpp:107
one measure in a system
Definition: measure.h:65
void apply()
Definition: measureproperties.cpp:247
MeasureProperties(Measure *, QWidget *parent=0)
Definition: measureproperties.cpp:37
Definition: measureproperties.h:34
int repeatCount() const
Definition: measureproperties.cpp:238
void bboxClicked(QAbstractButton *button)
Definition: measureproperties.cpp:174
Definition: aeolus.cpp:26
Definition: fraction.h:46
virtual void hideEvent(QHideEvent *)
Definition: measureproperties.cpp:297
bool visible(int staffIdx)
Definition: measureproperties.cpp:200
void setMeasure(Measure *_m)
Definition: measureproperties.cpp:120