Mercurial > hg > svgui
diff view/ViewManager.h @ 189:5b7472db612b
* Add large chunks of context help in the optional status bar
* Add an extra overlay mode in which even the centre frame is disabled
* Fixes to FTP retrieval
author | Chris Cannam |
---|---|
date | Fri, 19 Jan 2007 13:13:14 +0000 |
parents | 42118892f428 |
children | 4a3bdde1ef13 |
line wrap: on
line diff
--- a/view/ViewManager.h Fri Jan 12 21:52:56 2007 +0000 +++ b/view/ViewManager.h Fri Jan 19 13:13:14 2007 +0000 @@ -100,12 +100,32 @@ enum OverlayMode { NoOverlays, - BasicOverlays, + MinimalOverlays, + StandardOverlays, AllOverlays }; void setOverlayMode(OverlayMode mode); OverlayMode getOverlayMode() const { return m_overlayMode; } + bool shouldShowCentreLine() const { + return m_overlayMode != NoOverlays; + } + bool shouldShowFrameCount() const { + return m_overlayMode != NoOverlays; + } + bool shouldShowDuration() const { + return m_overlayMode > MinimalOverlays; + } + bool shouldShowVerticalScale() const { + return m_overlayMode > MinimalOverlays; + } + bool shouldShowSelectionExtents() const { + return m_overlayMode > MinimalOverlays; + } + bool shouldShowLayerNames() const { + return m_overlayMode == AllOverlays; + } + void setZoomWheelsEnabled(bool enable); bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }