Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
188:dd573e090eed | 189:5b7472db612b |
---|---|
98 size_t getMainModelSampleRate() const { return m_mainModelSampleRate; } | 98 size_t getMainModelSampleRate() const { return m_mainModelSampleRate; } |
99 void setMainModelSampleRate(size_t sr) { m_mainModelSampleRate = sr; } | 99 void setMainModelSampleRate(size_t sr) { m_mainModelSampleRate = sr; } |
100 | 100 |
101 enum OverlayMode { | 101 enum OverlayMode { |
102 NoOverlays, | 102 NoOverlays, |
103 BasicOverlays, | 103 MinimalOverlays, |
104 StandardOverlays, | |
104 AllOverlays | 105 AllOverlays |
105 }; | 106 }; |
106 void setOverlayMode(OverlayMode mode); | 107 void setOverlayMode(OverlayMode mode); |
107 OverlayMode getOverlayMode() const { return m_overlayMode; } | 108 OverlayMode getOverlayMode() const { return m_overlayMode; } |
109 | |
110 bool shouldShowCentreLine() const { | |
111 return m_overlayMode != NoOverlays; | |
112 } | |
113 bool shouldShowFrameCount() const { | |
114 return m_overlayMode != NoOverlays; | |
115 } | |
116 bool shouldShowDuration() const { | |
117 return m_overlayMode > MinimalOverlays; | |
118 } | |
119 bool shouldShowVerticalScale() const { | |
120 return m_overlayMode > MinimalOverlays; | |
121 } | |
122 bool shouldShowSelectionExtents() const { | |
123 return m_overlayMode > MinimalOverlays; | |
124 } | |
125 bool shouldShowLayerNames() const { | |
126 return m_overlayMode == AllOverlays; | |
127 } | |
108 | 128 |
109 void setZoomWheelsEnabled(bool enable); | 129 void setZoomWheelsEnabled(bool enable); |
110 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } | 130 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } |
111 | 131 |
112 signals: | 132 signals: |