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

« back to all changes in this revision

Viewing changes to muse/mplugins/midiitransform.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:
4
4
//  $Id: midiitransform.h,v 1.1.1.1.2.1 2009/02/02 21:38:01 terminator356 Exp $
5
5
//
6
6
//  (C) Copyright 2001 Werner Schweer (ws@seh.de)
 
7
//
 
8
//  This program is free software; you can redistribute it and/or
 
9
//  modify it under the terms of the GNU General Public License
 
10
//  as published by the Free Software Foundation; version 2 of
 
11
//  the License, or (at your option) any later version.
 
12
//
 
13
//  This program is distributed in the hope that it will be useful,
 
14
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
//  GNU General Public License for more details.
 
17
//
 
18
//  You should have received a copy of the GNU General Public License
 
19
//  along with this program; if not, write to the Free Software
 
20
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
21
//
7
22
//=========================================================
8
23
 
9
24
#ifndef __MIDIITRANSFORM_H__
14
29
#include <QCloseEvent>
15
30
 
16
31
class QButtonGroup;
17
 
class MidiTransformation;
 
32
class Xml;
 
33
 
 
34
#include "miditransform.h"
 
35
 
 
36
namespace MusECore {
18
37
class MidiInputTransformation;
 
38
class MidiPart;
19
39
class MidiRecordEvent;
20
 
class MidiPart;
21
 
class Xml;
22
 
 
23
 
#include "miditransform.h"
 
40
class MidiTransformation;
24
41
 
25
42
enum InputTransformProcEventOp { KeepType, FixType };
26
43
 
 
44
extern void writeMidiInputTransforms(int level, Xml& xml);
 
45
extern void readMidiInputTransform(Xml&);
 
46
extern bool applyMidiInputTransformation(MidiRecordEvent& event);
 
47
extern void clearMidiInputTransforms();
 
48
}
 
49
 
 
50
namespace MusEGui {
 
51
 
27
52
//---------------------------------------------------------
28
53
//   MidiInputTransform
29
54
//---------------------------------------------------------
30
55
 
31
56
class MidiInputTransformDialog : public QDialog, public Ui::MidiInputTransformDialogBase {
32
57
      Q_OBJECT
33
 
      MidiInputTransformation* cmt;
 
58
      MusECore::MidiInputTransformation* cmt;
34
59
      int cindex;                   // current index in preset list
35
60
      int cmodul;                   // current index in modules list
36
61
 
37
62
      virtual void accept();
38
63
      virtual void reject();
39
 
      void setValOp(QWidget* a, QWidget* b, ValOp op);
 
64
      void setValOp(QWidget* a, QWidget* b, MusECore::ValOp op);
40
65
      virtual void closeEvent(QCloseEvent*);
41
66
      
42
67
      void updatePresetList();
95
120
      MidiInputTransformDialog(QDialog* parent = 0, Qt::WFlags fl = 0);
96
121
      };
97
122
 
98
 
extern void writeMidiInputTransforms(int level, Xml& xml);
99
 
extern void readMidiInputTransform(Xml&);
100
 
extern bool applyMidiInputTransformation(MidiRecordEvent& event);
101
 
extern void clearMidiInputTransforms();
 
123
} // namespace MusEGui
 
124
 
102
125
#endif