comparison view/ViewManager.h @ 326:4f4f38a11cd2

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents 7b96a3261e1c
children e74b56f07c73 64e84e5efb76
comparison
equal deleted inserted replaced
324:1f67b110c1a3 326:4f4f38a11cd2
113 void setPlaySoloMode(bool on); 113 void setPlaySoloMode(bool on);
114 114
115 bool getAlignMode() const { return m_alignMode; } 115 bool getAlignMode() const { return m_alignMode; }
116 void setAlignMode(bool on); 116 void setAlignMode(bool on);
117 117
118 void setIlluminateLocalFeatures(bool i) { m_illuminateLocalFeatures = i; }
119 void setShowWorkTitle(bool show) { m_showWorkTitle = show; }
120
118 /** 121 /**
119 * The sample rate that is used for playback. This is usually the 122 * The sample rate that is used for playback. This is usually the
120 * rate of the main model, but not always. Models whose rates 123 * rate of the main model, but not always. Models whose rates
121 * differ from this will play back at the wrong speed -- there is 124 * differ from this will play back at the wrong speed -- there is
122 * no per-model resampler. 125 * no per-model resampler.
167 return m_overlayMode == AllOverlays; 170 return m_overlayMode == AllOverlays;
168 } 171 }
169 bool shouldShowScaleGuides() const { 172 bool shouldShowScaleGuides() const {
170 return m_overlayMode != NoOverlays; 173 return m_overlayMode != NoOverlays;
171 } 174 }
175 bool shouldShowWorkTitle() const {
176 return m_showWorkTitle;
177 }
178 bool shouldIlluminateLocalFeatures() const {
179 return m_illuminateLocalFeatures;
180 }
172 181
173 void setZoomWheelsEnabled(bool enable); 182 void setZoomWheelsEnabled(bool enable);
174 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } 183 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }
175 184
176 void setGlobalDarkBackground(bool dark); 185 void setGlobalDarkBackground(bool dark);
275 MultiSelection m_newSelection; 284 MultiSelection m_newSelection;
276 }; 285 };
277 286
278 OverlayMode m_overlayMode; 287 OverlayMode m_overlayMode;
279 bool m_zoomWheelsEnabled; 288 bool m_zoomWheelsEnabled;
289 bool m_illuminateLocalFeatures;
290 bool m_showWorkTitle;
280 291
281 QPalette m_lightPalette; 292 QPalette m_lightPalette;
282 QPalette m_darkPalette; 293 QPalette m_darkPalette;
283 }; 294 };
284 295