summaryrefslogtreecommitdiff
path: root/muse2/muse/master/masteredit.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-07 03:27:48 +0000
committerTim E. Real <termtech@rogers.com>2010-12-07 03:27:48 +0000
commit8e9886770af1022d88e6f92ff4fcceb3e50d0e55 (patch)
treefb42340c5d7a75278b7ed37478f066324fa59dde /muse2/muse/master/masteredit.cpp
parent45f13100f9b5d0fd5a9f4950e135c2ed6de0429c (diff)
Built Awl::posedit and Awl::sigedit, and replaced /widget versions and all usages.
Reverted class SpinBox to previous revision.
Diffstat (limited to 'muse2/muse/master/masteredit.cpp')
-rw-r--r--muse2/muse/master/masteredit.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/muse2/muse/master/masteredit.cpp b/muse2/muse/master/masteredit.cpp
index 2736808e..d4fd3e0d 100644
--- a/muse2/muse/master/masteredit.cpp
+++ b/muse2/muse/master/masteredit.cpp
@@ -5,6 +5,8 @@
// (C) Copyright 1999 Werner Schweer (ws@seh.de)
//=========================================================
+#include "awl/sigedit.h"
+
#include "masteredit.h"
#include "mtscale.h"
#include "hitscale.h"
@@ -18,7 +20,7 @@
#include "xml.h"
#include "lcombo.h"
#include "doublelabel.h"
-#include "sigedit.h"
+///#include "sigedit.h"
#include "globals.h"
#include <values.h>
@@ -55,9 +57,9 @@ void MasterEdit::songChanged(int type)
}
if (type & SC_SIG) {
int z, n;
- sigmap.timesig(song->cpos(), z, n);
+ AL::sigmap.timesig(song->cpos(), z, n);
curSig->blockSignals(true);
- curSig->setValue(Sig(z, n));
+ curSig->setValue(AL::TimeSignature(z, n));
curSig->blockSignals(false);
sign->redraw();
}
@@ -131,12 +133,14 @@ MasterEdit::MasterEdit()
info->addWidget(new QLabel(tr("CurPos ")));
curTempo = new TempoEdit(0);
curSig = new SigEdit(0);
- curSig->setValue(Sig(4, 4));
+ curSig->setValue(AL::TimeSignature(4, 4));
curTempo->setToolTip(tr("tempo at current position"));
curSig->setToolTip(tr("time signature at current position"));
info->addWidget(curTempo);
info->addWidget(curSig);
- connect(curSig, SIGNAL(valueChanged(int,int)), song, SLOT(setSig(int,int)));
+ ///connect(curSig, SIGNAL(valueChanged(int,int)), song, SLOT(setSig(int,int)));
+ connect(curSig, SIGNAL(valueChanged(const AL::TimeSignature&)), song, SLOT(setSig(const AL::TimeSignature&)));
+
///connect(curTempo, SIGNAL(valueChanged(double)), song, SLOT(setTempo(double)));
connect(curTempo, SIGNAL(tempoChanged(double)), song, SLOT(setTempo(double)));
@@ -354,12 +358,12 @@ void MasterEdit::posChanged(int idx, unsigned val, bool)
if (idx == 0) {
int z, n;
int tempo = tempomap.tempo(val);
- sigmap.timesig(val, z, n);
+ AL::sigmap.timesig(val, z, n);
curTempo->blockSignals(true);
curSig->blockSignals(true);
curTempo->setValue(double(60000000.0/tempo));
- curSig->setValue(Sig(z, n));
+ curSig->setValue(AL::TimeSignature(z, n));
curTempo->blockSignals(false);
curSig->blockSignals(false);