summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/muse/widgets/pitchedit.h
blob: 8d2c878952d96696166347d4b8ef3fd8bd1ad0e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//=========================================================
//  MusE
//  Linux Music Editor
//    $Id: pitchedit.h,v 1.2 2004/01/09 17:12:54 wschweer Exp $
//  (C) Copyright 2001 Werner Schweer (ws@seh.de)
//=========================================================

#ifndef __PITCHEDIT_H__
#define __PITCHEDIT_H__

#include <QSpinBox>

//---------------------------------------------------------
//   PitchEdit
//---------------------------------------------------------

class PitchEdit : public QSpinBox {
      Q_OBJECT

      bool deltaMode;

   protected:
      virtual QString mapValueToText(int v);
      virtual int mapTextToValue(bool* ok);

   public:
      PitchEdit(QWidget* parent=0);
      void setDeltaMode(bool);
      };

extern QString pitch2string(int v);

#endif