~ubuntu-branches/ubuntu/wily/muse/wily-proposed

« back to all changes in this revision

Viewing changes to muse/widgets/function_dialogs/velocity.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-12-03 17:12:54 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20111203171254-28b1j4lpb46r5jtl
Tags: 2.0~rc1-1
* New upstream RC release.
* Refresh patches, remove those patches not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//    $Id: velocity.h,v 1.1.1.1 2003/10/27 18:54:51 wschweer Exp $
 
5
//  (C) Copyright 2001 Werner Schweer (ws@seh.de)
 
6
//
 
7
//  This program is free software; you can redistribute it and/or
 
8
//  modify it under the terms of the GNU General Public License
 
9
//  as published by the Free Software Foundation; version 2 of
 
10
//  the License, or (at your option) any later version.
 
11
//
 
12
//  This program is distributed in the hope that it will be useful,
 
13
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
//  GNU General Public License for more details.
 
16
//
 
17
//  You should have received a copy of the GNU General Public License
 
18
//  along with this program; if not, write to the Free Software
 
19
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
20
//
 
21
//=========================================================
 
22
 
 
23
#ifndef __VELOCITY_H__
 
24
#define __VELOCITY_H__
 
25
 
 
26
#include "ui_velocitybase.h"
 
27
 
 
28
class QButtonGroup;
 
29
 
 
30
namespace MusECore {
 
31
class Xml;
 
32
}
 
33
 
 
34
namespace MusEGui {
 
35
 
 
36
//---------------------------------------------------------
 
37
//   Velocity
 
38
//---------------------------------------------------------
 
39
 
 
40
class Velocity : public QDialog, public Ui::VelocityBase {
 
41
      Q_OBJECT
 
42
   private:
 
43
      
 
44
      QButtonGroup* rangeGroup;
 
45
 
 
46
   protected slots:
 
47
      void accept();
 
48
      void pullValues();
 
49
 
 
50
   public:
 
51
      Velocity(QWidget* parent = 0);
 
52
 
 
53
      int range;
 
54
      int rateVal;
 
55
      int offsetVal;
 
56
      
 
57
      void read_configuration(MusECore::Xml& xml);
 
58
      void write_configuration(int level, MusECore::Xml& xml);
 
59
      
 
60
      
 
61
   public slots:
 
62
      int exec();
 
63
      };
 
64
 
 
65
} // namespace MusEGui
 
66
 
 
67
#endif
 
68