-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkmidiframe.h
107 lines (82 loc) · 2.38 KB
/
kmidiframe.h
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
102
103
104
105
106
107
/*
kmidi - a midi to wav converter
Copyright 1997 Bernd Johannes Wuebben math.cornell.edu
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef KMIDIFRAME_H
#define KMIDIFRAME_H
#include "version.h"
#include <pwd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <kmainwindow.h>
#include <kmenubar.h>
#include "docking.h"
class KMidiFrame : public KMainWindow {
Q_OBJECT
public:
KMidiFrame( const char *name = 0 );
~KMidiFrame();
bool docking;
KMenuBar *menuBar;
protected:
bool queryClose();
protected slots:
void file_Open();
void quitClick();
void doViewMenuItem(int);
void fixViewItems();
void doViewInfoLevel(int);
void fixInfoLevelItems();
void doEffectsMenuItem(int);
void fixEffectsItems();
void doEchoLevel(int);
void doReverbLevel(int);
void doChorusLevel(int);
void doDetuneLevel(int);
void fixReverbLevelItems();
void fixChorusLevelItems();
void fixEchoLevelItems();
void fixDetuneLevelItems();
void doSettingsMenu(int);
//void doVolumeMenuItem(int);
void doVolumeCurve(int);
void doExpressionCurve(int);
void fixVolumeCurveItems();
void fixExpressionCurveItems();
private:
int m_on_id, m_off_id, i_on_id, i_off_id;
QPopupMenu *view_options;
QPopupMenu *settings_menu;
QPopupMenu *view_level;
QPopupMenu *effects_menu;
QPopupMenu *chorus_level;
QPopupMenu *detune_level;
QPopupMenu *echo_level;
QPopupMenu *reverb_level;
QPopupMenu *volume_options;
QPopupMenu *expression_curve;
QPopupMenu *volume_curve;
};
extern KMidiFrame *kmidiframe;
#endif