Mercurial > hg > svgui
diff view/ViewManager.h @ 741:56ba2b03508e tonioni
Introduce a GlobalOverlays mode that shows general surrounding information but less local stuff
author | Chris Cannam |
---|---|
date | Thu, 06 Mar 2014 15:16:25 +0000 |
parents | f831ca41d4a5 |
children | b75c95e7f906 |
line wrap: on
line diff
--- a/view/ViewManager.h Thu Mar 06 14:27:59 2014 +0000 +++ b/view/ViewManager.h Thu Mar 06 15:16:25 2014 +0000 @@ -155,7 +155,8 @@ enum OverlayMode { NoOverlays, - MinimalOverlays, + GlobalOverlays, + StandardOverlays, AllOverlays }; void setOverlayMode(OverlayMode mode); @@ -177,7 +178,7 @@ return m_overlayMode == AllOverlays; } bool shouldShowSelectionExtents() const { - return m_overlayMode != NoOverlays; + return m_overlayMode != NoOverlays && m_overlayMode != GlobalOverlays; } bool shouldShowLayerNames() const { return m_overlayMode == AllOverlays; @@ -191,6 +192,9 @@ bool shouldIlluminateLocalFeatures() const { return m_illuminateLocalFeatures; } + bool shouldShowFeatureLabels() const { + return m_overlayMode != NoOverlays && m_overlayMode != GlobalOverlays; + } void setZoomWheelsEnabled(bool enable); bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }