~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to globals.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2005-08-23 17:19:39 UTC
  • mto: (4.1.1 breezy) (1.1.9) (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20050823171939-hd8fgzokb4dbj007
Tags: upstream-0.7.1+0.7.2pre2
ImportĀ upstreamĀ versionĀ 0.7.1+0.7.2pre2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//=========================================================
2
 
//  MusE
3
 
//  Linux Music Editor
4
 
//  $Id: globals.h,v 1.1.1.1 2003/10/29 10:05:15 wschweer Exp $
5
 
//
6
 
//  (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
7
 
//=========================================================
8
 
 
9
 
#ifndef GLOBALS_H
10
 
#define GLOBALS_H
11
 
 
12
 
#include <sys/types.h>
13
 
#include <qstring.h>
14
 
#include <qfont.h>
15
 
#include <qnamespace.h>
16
 
#include <qaction.h>
17
 
#include "value.h"
18
 
#include "mtc.h"
19
 
 
20
 
#include <unistd.h>
21
 
 
22
 
extern int recFileNumber;
23
 
 
24
 
extern bool alsaFound;
25
 
extern bool audioTimebase;
26
 
 
27
 
extern int division;
28
 
extern volatile int sampleRate;
29
 
extern volatile int segmentSize;
30
 
extern int rtcTicks;
31
 
extern int minMeter;
32
 
extern double minSlider;
33
 
extern int guiRefresh;
34
 
 
35
 
extern QString helpBrowser;
36
 
 
37
 
extern bool noAudio;
38
 
extern bool noJack;
39
 
extern bool noAlsa;
40
 
extern bool useJackAudio;
41
 
extern bool useAlsaAudio;
42
 
 
43
 
extern bool hIsB;
44
 
 
45
 
extern const signed char sharpTab[14][7];
46
 
extern const signed char flatTab[14][7];
47
 
 
48
 
extern QString museGlobalLib;
49
 
extern QString museGlobalShare;
50
 
extern QString museUser;
51
 
extern QString museProject;
52
 
 
53
 
extern bool debugMode;
54
 
extern bool midiInputTrace;
55
 
extern bool midiOutputTrace;
56
 
extern bool debugMsg;
57
 
extern bool debugSync;
58
 
extern bool loadPlugins;
59
 
 
60
 
extern bool realTimeScheduling;
61
 
extern int realTimePriority;
62
 
extern const char* midi_file_pattern[];
63
 
extern const char* med_file_pattern[];
64
 
extern const char* image_file_pattern[];
65
 
extern const char* ctrl_file_pattern[];
66
 
 
67
 
extern QString scoreBg;    // Background Pixmap Pathname for score canvas
68
 
 
69
 
extern double paperWidth;
70
 
extern double paperHeight;
71
 
extern double topMargin;
72
 
extern double bottomMargin;
73
 
extern double leftMargin;
74
 
extern double rightMargin;
75
 
extern double printScale;
76
 
extern int barsPage;
77
 
extern double beamWidth;
78
 
extern double beamSpacing;
79
 
extern double beamSlopeTrigger;
80
 
 
81
 
extern QFont font0;       // 12pt
82
 
extern QFont font1;       // 8pt
83
 
extern QFont font2;       // 10 pt
84
 
extern QFont font3;       // 10 pt bold
85
 
extern QFont font4;       // 8 pt bold
86
 
extern QFont font5;       // 12pt typewriter
87
 
 
88
 
extern Qt::ButtonState globalKeyState;
89
 
 
90
 
extern bool extendedMidi;
91
 
extern int midiDivision;      // division for midi export
92
 
 
93
 
extern int midiInputPorts;          // receive from all devices
94
 
extern int midiInputChannel;        // receive all channel
95
 
extern int midiRecordType;          // receive all events
96
 
 
97
 
#define MIDI_FILTER_NOTEON    1
98
 
#define MIDI_FILTER_POLYP     2
99
 
#define MIDI_FILTER_CTRL      4
100
 
#define MIDI_FILTER_PROGRAM   8
101
 
#define MIDI_FILTER_AT        16
102
 
#define MIDI_FILTER_PITCH     32
103
 
#define MIDI_FILTER_SYSEX     64
104
 
 
105
 
extern int midiThruType;            // transmit all events
106
 
extern int midiFilterCtrl1;
107
 
extern int midiFilterCtrl2;
108
 
extern int midiFilterCtrl3;
109
 
extern int midiFilterCtrl4;
110
 
 
111
 
#define CMD_RANGE_ALL   0
112
 
#define CMD_RANGE_SELECTED    1
113
 
#define CMD_RANGE_LOOP  2
114
 
 
115
 
extern QActionGroup* undoRedo;
116
 
extern QAction* undoAction;
117
 
extern QAction* redoAction;
118
 
 
119
 
extern QActionGroup* transportAction;
120
 
extern QAction* playAction;
121
 
extern QAction* startAction;
122
 
extern QAction* stopAction;
123
 
extern QAction* rewindAction;
124
 
extern QAction* forwardAction;
125
 
extern QAction* loopAction;
126
 
extern QAction* punchinAction;
127
 
extern QAction* punchoutAction;
128
 
extern QAction* recordAction;
129
 
extern QAction* panicAction;
130
 
 
131
 
class AudioMixerApp;
132
 
class MusE;
133
 
extern AudioMixerApp* audioMixer;
134
 
extern MusE* muse;
135
 
 
136
 
extern int preMeasures;
137
 
extern unsigned char measureClickNote;
138
 
extern unsigned char measureClickVelo;
139
 
extern unsigned char beatClickNote;
140
 
extern unsigned char beatClickVelo;
141
 
extern unsigned char clickChan;
142
 
extern unsigned char clickPort;
143
 
extern bool precountEnableFlag;
144
 
extern bool precountFromMastertrackFlag;
145
 
extern int precountSigZ;
146
 
extern int precountSigN;
147
 
extern bool precountPrerecord;
148
 
extern bool precountPreroll;
149
 
extern bool midiClickFlag;
150
 
extern bool audioClickFlag;
151
 
 
152
 
extern bool rcEnable;
153
 
extern unsigned char rcStopNote;
154
 
extern unsigned char rcRecordNote;
155
 
extern unsigned char rcGotoLeftMarkNote;
156
 
extern unsigned char rcPlayNote;
157
 
 
158
 
 
159
 
extern uid_t euid, ruid;
160
 
extern void doSetuid();
161
 
extern void undoSetuid();
162
 
#endif