MuseScore  3.4
Music composition and notation
pitchlabel.h
Go to the documentation of this file.
1 //=============================================================================
2 // Awl
3 // Audio Widget Library
4 //
5 // Copyright (C) 2002-2006 by 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 __AWLPITCHLABEL_H__
21 #define __AWLPITCHLABEL_H__
22 
23 namespace Awl {
24 
25 //---------------------------------------------------------
26 // PitchLabel
27 //---------------------------------------------------------
28 
29 class PitchLabel : public QLabel {
30  bool _pitchMode;
31  int _value;
32  Q_OBJECT
33 
34  protected:
35  QSize sizeHint() const;
36 
37  public slots:
38  void setValue(int);
39  void setInt(int);
40  void setPitch(int);
41 
42  public:
43  PitchLabel(QWidget* parent = 0);
44  int value() const { return _value; }
45  void setPitchMode(bool val);
46  bool pitchMode() const { return _pitchMode; }
47  };
48 }
49 
50 #endif
bool pitchMode() const
Definition: pitchlabel.h:46
bool _pitchMode
Definition: pitchlabel.h:30
void setPitch(int)
Definition: pitchlabel.cpp:98
void setPitchMode(bool val)
Definition: pitchlabel.cpp:47
void setValue(int)
Definition: pitchlabel.cpp:70
QSize sizeHint() const
Definition: pitchlabel.cpp:56
int _value
Definition: pitchlabel.h:31
void setInt(int)
Definition: pitchlabel.cpp:87
PitchLabel(QWidget *parent=0)
Definition: pitchlabel.cpp:30
int value() const
Definition: pitchlabel.h:44
Definition: aslider.cpp:23
Definition: pitchlabel.h:29