blob: 860797c525a444cd67f1b337b258f85aef17f814 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
//=========================================================
// MusE
// Linux Music Editor
// $Id: midiitransform.h,v 1.1.1.1.2.1 2009/02/02 21:38:01 terminator356 Exp $
//
// (C) Copyright 2001 Werner Schweer (ws@seh.de)
//=========================================================
#ifndef __MIDIITRANSFORM_H__
#define __MIDIITRANSFORM_H__
#include "itransformbase.h"
//Added by qt3to4:
#include <QCloseEvent>
class Q3ListBoxItem;
class MidiTransformation;
class MidiInputTransformation;
class MidiRecordEvent;
class MidiPart;
class Xml;
#include "miditransform.h"
enum InputTransformProcEventOp { KeepType, FixType };
//---------------------------------------------------------
// MidiInputTransform
//---------------------------------------------------------
class MidiInputTransformDialog : public MidiInputTransformDialogBase {
Q_OBJECT
MidiInputTransformation* cmt;
int cindex; // current index in preset list
int cmodul; // current index in modules list
virtual void accept();
virtual void reject();
void setValOp(QWidget* a, QWidget* b, ValOp op);
virtual void closeEvent(QCloseEvent*);
void updatePresetList();
signals:
void hideWindow();
private slots:
void presetNew();
void presetDelete();
void changeModul(int k);
void selEventOpSel(int);
void selTypeSel(int);
void selVal1OpSel(int);
void selVal2OpSel(int);
void procEventOpSel(int);
void procEventTypeSel(int);
void procVal1OpSel(int);
void procVal2OpSel(int);
void funcOpSel(int);
void presetChanged(Q3ListBoxItem*);
void nameChanged(const QString&);
void commentChanged();
void selVal1aChanged(int);
void selVal1bChanged(int);
void selVal2aChanged(int);
void selVal2bChanged(int);
void procVal1aChanged(int);
void procVal1bChanged(int);
void procVal2aChanged(int);
void procVal2bChanged(int);
void modul1enableChanged(bool);
void modul2enableChanged(bool);
void modul3enableChanged(bool);
void modul4enableChanged(bool);
void selPortOpSel(int);
void selPortValaChanged(int);
void selPortValbChanged(int);
void selChannelOpSel(int);
void selChannelValaChanged(int);
void selChannelValbChanged(int);
void procPortOpSel(int);
void procPortValaChanged(int);
void procPortValbChanged(int);
void procChannelOpSel(int);
void procChannelValaChanged(int);
void procChannelValbChanged(int);
public slots:
void songChanged(int);
public:
MidiInputTransformDialog(QWidget* parent = 0, const char* name = 0,
bool modal = false, Qt::WFlags fl = 0);
};
extern void writeMidiInputTransforms(int level, Xml& xml);
extern void readMidiInputTransform(Xml&);
extern bool applyMidiInputTransformation(MidiRecordEvent& event);
extern void clearMidiInputTransforms();
#endif
|