diff base/ViewManager.cpp @ 65:e1aad27029e3

* 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 3086ff194ea0
children 163f3428bbe0
line wrap: on
line diff
--- a/base/ViewManager.cpp	Thu Mar 30 13:18:11 2006 +0000
+++ b/base/ViewManager.cpp	Thu Mar 30 15:00:22 2006 +0000
@@ -33,7 +33,8 @@
     m_inProgressExclusive(true),
     m_toolMode(NavigateMode),
     m_playLoopMode(false),
-    m_playSelectionMode(false)
+    m_playSelectionMode(false),
+    m_overlayMode(BasicOverlays)
 {
     connect(this, 
 	    SIGNAL(centreFrameChanged(void *, unsigned long, bool)),
@@ -341,6 +342,15 @@
 #endif
 }
 
+void
+ViewManager::setOverlayMode(OverlayMode mode)
+{
+    if (m_overlayMode != mode) {
+        m_overlayMode = mode;
+        emit overlayModeChanged();
+    }
+}
+
 #ifdef INCLUDE_MOCFILES
 #include "ViewManager.moc.cpp"
 #endif