comparison 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
comparison
equal deleted inserted replaced
740:a31c8ee2e17e 741:56ba2b03508e
153 153
154 void setMainModelSampleRate(size_t sr) { m_mainModelSampleRate = sr; } 154 void setMainModelSampleRate(size_t sr) { m_mainModelSampleRate = sr; }
155 155
156 enum OverlayMode { 156 enum OverlayMode {
157 NoOverlays, 157 NoOverlays,
158 MinimalOverlays, 158 GlobalOverlays,
159 StandardOverlays,
159 AllOverlays 160 AllOverlays
160 }; 161 };
161 void setOverlayMode(OverlayMode mode); 162 void setOverlayMode(OverlayMode mode);
162 OverlayMode getOverlayMode() const { return m_overlayMode; } 163 OverlayMode getOverlayMode() const { return m_overlayMode; }
163 164
175 } 176 }
176 bool shouldShowVerticalColourScale() const { 177 bool shouldShowVerticalColourScale() const {
177 return m_overlayMode == AllOverlays; 178 return m_overlayMode == AllOverlays;
178 } 179 }
179 bool shouldShowSelectionExtents() const { 180 bool shouldShowSelectionExtents() const {
180 return m_overlayMode != NoOverlays; 181 return m_overlayMode != NoOverlays && m_overlayMode != GlobalOverlays;
181 } 182 }
182 bool shouldShowLayerNames() const { 183 bool shouldShowLayerNames() const {
183 return m_overlayMode == AllOverlays; 184 return m_overlayMode == AllOverlays;
184 } 185 }
185 bool shouldShowScaleGuides() const { 186 bool shouldShowScaleGuides() const {
188 bool shouldShowWorkTitle() const { 189 bool shouldShowWorkTitle() const {
189 return m_showWorkTitle; 190 return m_showWorkTitle;
190 } 191 }
191 bool shouldIlluminateLocalFeatures() const { 192 bool shouldIlluminateLocalFeatures() const {
192 return m_illuminateLocalFeatures; 193 return m_illuminateLocalFeatures;
194 }
195 bool shouldShowFeatureLabels() const {
196 return m_overlayMode != NoOverlays && m_overlayMode != GlobalOverlays;
193 } 197 }
194 198
195 void setZoomWheelsEnabled(bool enable); 199 void setZoomWheelsEnabled(bool enable);
196 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } 200 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }
197 201