comparison view/ViewManager.h @ 822:d974ed657176 tonioni

code to remove duration/sample rate from panes
author matthiasm
date Wed, 16 Jul 2014 14:35:00 +0100
parents 09026c875301
children d4446f267e12
comparison
equal deleted inserted replaced
821:ec0906aef9bf 822:d974ed657176
156 bool getAlignMode() const { return m_alignMode; } 156 bool getAlignMode() const { return m_alignMode; }
157 void setAlignMode(bool on); 157 void setAlignMode(bool on);
158 158
159 void setIlluminateLocalFeatures(bool i) { m_illuminateLocalFeatures = i; } 159 void setIlluminateLocalFeatures(bool i) { m_illuminateLocalFeatures = i; }
160 void setShowWorkTitle(bool show) { m_showWorkTitle = show; } 160 void setShowWorkTitle(bool show) { m_showWorkTitle = show; }
161 void setShowDuration(bool show) { m_showDuration = show; }
161 162
162 /** 163 /**
163 * The sample rate that is used for playback. This is usually the 164 * The sample rate that is used for playback. This is usually the
164 * rate of the main model, but not always. Models whose rates 165 * rate of the main model, but not always. Models whose rates
165 * differ from this will play back at the wrong speed -- there is 166 * differ from this will play back at the wrong speed -- there is
194 195
195 void setShowCentreLine(bool show); 196 void setShowCentreLine(bool show);
196 bool shouldShowCentreLine() const { return m_showCentreLine; } 197 bool shouldShowCentreLine() const { return m_showCentreLine; }
197 198
198 bool shouldShowDuration() const { 199 bool shouldShowDuration() const {
199 return m_overlayMode != NoOverlays; 200 return m_overlayMode != NoOverlays && m_showDuration;
200 } 201 }
201 bool shouldShowFrameCount() const { 202 bool shouldShowFrameCount() const {
202 return m_showCentreLine && shouldShowDuration(); 203 return m_showCentreLine && shouldShowDuration();
203 } 204 }
204 bool shouldShowVerticalScale() const { 205 bool shouldShowVerticalScale() const {
348 OverlayMode m_overlayMode; 349 OverlayMode m_overlayMode;
349 bool m_zoomWheelsEnabled; 350 bool m_zoomWheelsEnabled;
350 bool m_showCentreLine; 351 bool m_showCentreLine;
351 bool m_illuminateLocalFeatures; 352 bool m_illuminateLocalFeatures;
352 bool m_showWorkTitle; 353 bool m_showWorkTitle;
354 bool m_showDuration;
353 355
354 QPalette m_lightPalette; 356 QPalette m_lightPalette;
355 QPalette m_darkPalette; 357 QPalette m_darkPalette;
356 }; 358 };
357 359