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
108
|
//=========================================================
// 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)
//
// 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; version 2 of
// the License, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
//=========================================================
#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 TScale;
namespace MusEWidget {
class HitScale;
class LabelCombo;
class MTScale;
class PosLabel;
class ScrollScale;
class SigScale;
class TempoEdit;
class TempoLabel;
}
//---------------------------------------------------------
// MasterEdit
//---------------------------------------------------------
class MasterEdit : public MidiEditor {
Q_OBJECT
Master* canvas;
MusEWidget::ScrollScale* hscroll;
MusEWidget::ScrollScale* vscroll;
MusEWidget::MTScale* time1;
MusEWidget::MTScale* time2;
MusEWidget::SigScale* sign;
MusEWidget::HitScale* thits;
MusEWidget::HitScale* zhits;
TScale* tscale;
MusEWidget::TempoEdit* curTempo;
SigEdit* curSig;
MusEWidget::LabelCombo* rasterLabel;
QToolBar* tools;
MusEWidget::PosLabel* cursorPos;
MusEWidget::TempoLabel* tempo;
QToolButton* enableButton;
static int _rasterInit;
virtual void closeEvent(QCloseEvent*);
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(TopWin*);
public:
MasterEdit();
~MasterEdit();
virtual void readStatus(Xml&);
virtual void writeStatus(int, Xml&) const;
static void readConfiguration(Xml&);
static void writeConfiguration(int, Xml&);
};
#endif
|