summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/function_dialogs/velocity.h
blob: 83aac54d7fa2d2ce3393f2cdea0a1f30a2b2a826 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
//=========================================================
//  MusE
//  Linux Music Editor
//    $Id: velocity.h,v 1.1.1.1 2003/10/27 18:54:51 wschweer Exp $
//  (C) Copyright 2001 Werner Schweer (ws@seh.de)
//=========================================================

#ifndef __VELOCITY_H__
#define __VELOCITY_H__

#include "ui_velocitybase.h"

class QButtonGroup;
class Xml;

//---------------------------------------------------------
//   Velocity
//---------------------------------------------------------

class Velocity : public QDialog, public Ui::VelocityBase {
      Q_OBJECT
   private:
      
      QButtonGroup* rangeGroup;

   protected slots:
      void accept();
      void pullValues();

   public:
      Velocity(QWidget* parent = 0);

      int range;
      int rateVal;
      int offsetVal;
      
      void read_configuration(Xml& xml);
      void write_configuration(int level, Xml& xml);
      
      
   public slots:
      int exec();
      };

#endif