blob: 5abcfc8d59989e50bf7532185c35fb26b815b98f (
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
|
//=========================================================
// MusE
// Linux Music Editor
// $Id: masteredit.h,v 1.3.2.2 2009/04/01 01:37:11 terminator356 Exp $
// (C) Copyright 1999 Werner Schweer (ws@seh.de)
//=========================================================
#ifndef __MASTER_EDIT_H__
#define __MASTER_EDIT_H__
#include <QByteArray>
#include <QResizeEvent>
#include "midieditor.h"
#include "noteinfo.h"
#include "cobject.h"
namespace Awl {
class SigEdit;
};
using Awl::SigEdit;
class QCloseEvent;
class QToolBar;
class QToolButton;
class Master;
class ScrollScale;
class MTScale;
class SigScale;
class HitScale;
class TScale;
class TempoEdit;
class LabelCombo;
class PosLabel;
class TempoLabel;
//---------------------------------------------------------
// MasterEdit
//---------------------------------------------------------
class MasterEdit : public MidiEditor {
Master* canvas;
ScrollScale* hscroll;
ScrollScale* vscroll;
MTScale* time1;
MTScale* time2;
SigScale* sign;
HitScale* thits;
HitScale* zhits;
TScale* tscale;
TempoEdit* curTempo;
SigEdit* curSig;
LabelCombo* rasterLabel;
QToolBar* tools;
PosLabel* cursorPos;
TempoLabel* tempo;
QToolButton* enableButton;
static int _rasterInit;
static int _widthInit, _heightInit;
static QByteArray _toolbarInit;
Q_OBJECT
virtual void closeEvent(QCloseEvent*);
virtual void resizeEvent(QResizeEvent*);
virtual void focusOutEvent(QFocusEvent*);
private slots:
void _setRaster(int);
void posChanged(int,unsigned,bool);
void setTime(unsigned);
void setTempo(int);
public slots:
void songChanged(int);
// void tempoChanged(double);
signals:
void deleted(unsigned long);
public:
MasterEdit();
~MasterEdit();
virtual void readStatus(Xml&);
virtual void writeStatus(int, Xml&) const;
static void readConfiguration(Xml&);
static void writeConfiguration(int, Xml&);
};
#endif
|