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

« back to all changes in this revision

Viewing changes to muse/miditransform.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: miditransform.h,v 1.2.2.2 2009/02/02 21:38:00 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 __MIDITRANSFORM_H__
13
28
 
14
29
class QListWidgetItem;
15
30
class QDialog;
 
31
 
 
32
namespace MusECore {
 
33
 
 
34
class Event;
 
35
class MidiPart;
16
36
class MidiTransformation;
17
37
class MidiTransformPrivate;
18
 
class Event;
19
 
class MidiPart;
20
38
class Xml;
21
39
 
22
40
enum ValOp {
33
51
      ScaleMap, Flip, Dynamic, Random
34
52
      };
35
53
 
 
54
extern void writeMidiTransforms(int level, Xml& xml);
 
55
extern void readMidiTransform(Xml&);
 
56
extern void clearMidiTransforms();
 
57
 
 
58
} // namespace MusECore
 
59
 
 
60
namespace MusEGui {
 
61
 
36
62
//---------------------------------------------------------
37
63
//   MidiTransformDialog
38
64
//---------------------------------------------------------
39
65
 
40
66
class MidiTransformerDialog : public QDialog, public Ui::MidiTransformDialogBase {
41
67
      Q_OBJECT
42
 
      MidiTransformPrivate* data;
 
68
      MusECore::MidiTransformPrivate* data;
43
69
 
44
70
      virtual void accept();
45
71
//      virtual void reject();
46
 
      void setValOp(QWidget* a, QWidget* b, ValOp op);
47
 
      void processEvent(Event&, MidiPart*, MidiPart*);
48
 
      bool isSelected(Event&, MidiPart*);
49
 
      void transformEvent(Event&, MidiPart*, MidiPart*);
50
 
      bool typesMatch(Event& e, unsigned selType);
 
72
      void setValOp(QWidget* a, QWidget* b, MusECore::ValOp op);
 
73
      void processEvent(MusECore::Event&, MusECore::MidiPart*, MusECore::MidiPart*);
 
74
      bool isSelected(MusECore::Event&, MusECore::MidiPart*);
 
75
      void transformEvent(MusECore::Event&, MusECore::MidiPart*, MusECore::MidiPart*);
 
76
      bool typesMatch(MusECore::Event& e, unsigned selType);
51
77
      
52
78
      void updatePresetList();
53
79
 
99
125
      ~MidiTransformerDialog();
100
126
      };
101
127
 
102
 
extern void writeMidiTransforms(int level, Xml& xml);
103
 
extern void readMidiTransform(Xml&);
104
 
extern void clearMidiTransforms();
 
128
} // namespace MusEGui
 
129
 
105
130
#endif