From 8e9886770af1022d88e6f92ff4fcceb3e50d0e55 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Tue, 7 Dec 2010 03:27:48 +0000 Subject: Built Awl::posedit and Awl::sigedit, and replaced /widget versions and all usages. Reverted class SpinBox to previous revision. --- muse2/awl/posedit.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'muse2/awl/posedit.cpp') diff --git a/muse2/awl/posedit.cpp b/muse2/awl/posedit.cpp index 4f8b19b2..51cea634 100644 --- a/muse2/awl/posedit.cpp +++ b/muse2/awl/posedit.cpp @@ -22,10 +22,13 @@ #include "awl.h" #include "posedit.h" #include "al/sig.h" +//#include "sig.h" + +//#include "sync.h" // Tim. namespace Awl { - using AL::mtcType; + ///using AL::mtcType; using AL::sigmap; //--------------------------------------------------------- @@ -239,8 +242,11 @@ QAbstractSpinBox::StepEnabled PosEdit::stepEnabled() const int bar, beat; unsigned tick; AL::sigmap.tickValues(_pos.tick(), &bar, &beat, &tick); + //sigmap.tickValues(_pos.tick(), &bar, &beat, &tick); unsigned tb = AL::sigmap.ticksBeat(_pos.tick()); + //unsigned tb = sigmap.ticksBeat(_pos.tick()); unsigned tm = AL::sigmap.ticksMeasure(_pos.tick()); + //unsigned tm = sigmap.ticksMeasure(_pos.tick()); int bm = tm / tb; switch (segment) { @@ -386,7 +392,9 @@ void PosEdit::stepBy(int steps) _pos.mbt(&bar, &beat, &tick); int tb = AL::sigmap.ticksBeat(_pos.tick()); + //int tb = sigmap.ticksBeat(_pos.tick()); unsigned tm = AL::sigmap.ticksMeasure(_pos.tick()); + //unsigned tm = sigmap.ticksMeasure(_pos.tick()); int bm = tm / tb; switch(segment) { -- cgit v1.2.3