comparison 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
comparison
equal deleted inserted replaced
69:6dad2724f3aa 70:bf306158803d
246 y = v->height() - metrics.height() + metrics.ascent() - 6; 246 y = v->height() - metrics.height() + metrics.ascent() - 6;
247 } 247 }
248 248
249 int tw = metrics.width(text); 249 int tw = metrics.width(text);
250 250
251 if (v->getLayer(0) == this) { 251 if (v->getViewManager() && v->getViewManager()->getOverlayMode() !=
252 // backmost layer, don't worry about outlining the text 252 ViewManager::NoOverlays) {
253 paint.drawText(x+2 - tw/2, y, text); 253
254 } else { 254 if (v->getLayer(0) == this) {
255 v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText); 255 // backmost layer, don't worry about outlining the text
256 } 256 paint.drawText(x+2 - tw/2, y, text);
257 } else {
258 v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText);
259 }
260 }
257 261
258 paint.setPen(greyColour); 262 paint.setPen(greyColour);
259 263
260 for (int i = 1; i < ticks; ++i) { 264 for (int i = 1; i < ticks; ++i) {
261 rt = rt + (incRt / ticks); 265 rt = rt + (incRt / ticks);