summaryrefslogtreecommitdiff
path: root/muse2/muse/master/masteredit.h
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2010-10-13 19:34:22 +0000
committerRobert Jonsson <spamatica@gmail.com>2010-10-13 19:34:22 +0000
commit8a2c2824a59d7644e13bc52c9a0ecbd641f21f95 (patch)
tree064ad3f2bf8daab0ad27b128abd86a9bbdb1e496 /muse2/muse/master/masteredit.h
parenta27706d9629e8b592cca4659f865b70adef24e6d (diff)
new branch muse2, first checkin
Diffstat (limited to 'muse2/muse/master/masteredit.h')
-rw-r--r--muse2/muse/master/masteredit.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/muse2/muse/master/masteredit.h b/muse2/muse/master/masteredit.h
new file mode 100644
index 00000000..88ada6eb
--- /dev/null
+++ b/muse2/muse/master/masteredit.h
@@ -0,0 +1,83 @@
+//=========================================================
+// 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 <qwidget.h>
+//Added by qt3to4:
+#include <QCloseEvent>
+#include "midieditor.h"
+#include "noteinfo.h"
+#include "cobject.h"
+#include <q3mainwindow.h>
+
+class QToolButton;
+class Master;
+class ScrollScale;
+class MTScale;
+class SigScale;
+class HitScale;
+class TScale;
+class TempoEdit;
+class SigEdit;
+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;
+ Q3ToolBar* tools;
+ PosLabel* cursorPos;
+ TempoLabel* tempo;
+ QToolButton* enableButton;
+
+ static int _rasterInit;
+
+ Q_OBJECT
+ 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(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
+