~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to awl/pitchlabel.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-08-12 11:16:41 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20110812111641-sg7bj019yhh91mpl
Tags: upstream-2.0~beta2
ImportĀ upstreamĀ versionĀ 2.0~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=============================================================================
 
2
//  Awl
 
3
//  Audio Widget Library
 
4
//  $Id:$
 
5
//
 
6
//  Copyright (C) 2002-2006 by Werner Schweer and others
 
7
//
 
8
//  This program is free software; you can redistribute it and/or modify
 
9
//  it under the terms of the GNU General Public License version 2.
 
10
//
 
11
//  This program is distributed in the hope that it will be useful,
 
12
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
//  GNU General Public License for more details.
 
15
//
 
16
//  You should have received a copy of the GNU General Public License
 
17
//  along with this program; if not, write to the Free Software
 
18
//  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
//=============================================================================
 
20
 
 
21
#ifndef __AWLPITCHLABEL_H__
 
22
#define __AWLPITCHLABEL_H__
 
23
 
 
24
#include <QLabel>
 
25
 
 
26
namespace Awl {
 
27
 
 
28
//---------------------------------------------------------
 
29
//   PitchLabel
 
30
//---------------------------------------------------------
 
31
 
 
32
class PitchLabel : public QLabel {
 
33
      bool _pitchMode;
 
34
      int _value;
 
35
      Q_OBJECT
 
36
 
 
37
   protected:
 
38
      QSize sizeHint() const;
 
39
 
 
40
   public slots:
 
41
      void setValue(int);
 
42
      void setInt(int);
 
43
      void setPitch(int);
 
44
 
 
45
   public:
 
46
      PitchLabel();
 
47
      int value() const { return _value; }
 
48
      void setPitchMode(bool val);
 
49
      bool pitchMode() const { return _pitchMode; }
 
50
      };
 
51
}
 
52
 
 
53
#endif