diff layer/TimeRulerLayer.cpp @ 70:bf306158803d

* Add stub for item-edit dialog (for editing properties of an item on double- click) -- doesn't actually do anything yet * Add code to invoke said non-working item-edit dialog on double-click in time-value, time-instants and note layers * Add overlay mode (no text, basic text, all text)
author Chris Cannam
date Thu, 30 Mar 2006 15:00:22 +0000
parents 705f05ab42e3
children 4b98bda7e94d
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp	Thu Mar 30 13:18:11 2006 +0000
+++ b/layer/TimeRulerLayer.cpp	Thu Mar 30 15:00:22 2006 +0000
@@ -248,12 +248,16 @@
 
 	int tw = metrics.width(text);
 
-	if (v->getLayer(0) == this) {
-	    // backmost layer, don't worry about outlining the text
-	    paint.drawText(x+2 - tw/2, y, text);
-	} else {
-	    v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText);
-	}
+        if (v->getViewManager() && v->getViewManager()->getOverlayMode() !=
+            ViewManager::NoOverlays) {
+
+            if (v->getLayer(0) == this) {
+                // backmost layer, don't worry about outlining the text
+                paint.drawText(x+2 - tw/2, y, text);
+            } else {
+                v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText);
+            }
+        }
 
 	paint.setPen(greyColour);