Mercurial > hg > svgui
comparison view/ViewManager.h @ 1468:de41a11cabc2
Add opportunistic-editing toggle
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2019 15:35:01 +0100 |
parents | a18e78b9c78b |
children | 9bf8aa2916e9 |
comparison
equal
deleted
inserted
replaced
1467:f9110e5afca1 | 1468:de41a11cabc2 |
---|---|
243 } | 243 } |
244 | 244 |
245 void setZoomWheelsEnabled(bool enable); | 245 void setZoomWheelsEnabled(bool enable); |
246 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } | 246 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } |
247 | 247 |
248 /** | |
249 * Enable or disable opportunistic editing. This allows certain | |
250 * edits while not in edit modes - e.g. double-click on an item | |
251 * while in navigate mode to open an edit dialog. It is enabled by | |
252 * default, but it may be undesirable if the application is | |
253 * intended to be "read-only". | |
254 * | |
255 * This setting makes no difference to behaviour when actually in | |
256 * editing modes. | |
257 * | |
258 * Unlike some other options, this is considered to be | |
259 * application-build-specific and is not restored from settings. | |
260 */ | |
261 void setOpportunisticEditingEnabled(bool enable); | |
262 bool getOpportunisticEditingEnabled() const { | |
263 return m_opportunisticEditingEnabled; | |
264 } | |
265 | |
248 void setGlobalDarkBackground(bool dark); | 266 void setGlobalDarkBackground(bool dark); |
249 bool getGlobalDarkBackground() const; | 267 bool getGlobalDarkBackground() const; |
250 | 268 |
251 signals: | 269 signals: |
252 /** Emitted when user causes the global centre frame to change. */ | 270 /** Emitted when user causes the global centre frame to change. */ |
301 void showCentreLineChanged(); | 319 void showCentreLineChanged(); |
302 | 320 |
303 /** Emitted when the zoom wheels have been toggled. */ | 321 /** Emitted when the zoom wheels have been toggled. */ |
304 void zoomWheelsEnabledChanged(); | 322 void zoomWheelsEnabledChanged(); |
305 | 323 |
324 /** Emitted when editing-enabled has been toggled. */ | |
325 void opportunisticEditingEnabledChanged(); | |
326 | |
306 /** Emitted when any loggable activity has occurred. */ | 327 /** Emitted when any loggable activity has occurred. */ |
307 void activity(QString); | 328 void activity(QString); |
308 | 329 |
309 public slots: | 330 public slots: |
310 void viewCentreFrameChanged(sv_frame_t, bool, PlaybackFollowMode); | 331 void viewCentreFrameChanged(sv_frame_t, bool, PlaybackFollowMode); |
364 MultiSelection m_newSelection; | 385 MultiSelection m_newSelection; |
365 }; | 386 }; |
366 | 387 |
367 OverlayMode m_overlayMode; | 388 OverlayMode m_overlayMode; |
368 bool m_zoomWheelsEnabled; | 389 bool m_zoomWheelsEnabled; |
390 bool m_opportunisticEditingEnabled; | |
369 bool m_showCentreLine; | 391 bool m_showCentreLine; |
370 bool m_illuminateLocalFeatures; | 392 bool m_illuminateLocalFeatures; |
371 bool m_showWorkTitle; | 393 bool m_showWorkTitle; |
372 bool m_showDuration; | 394 bool m_showDuration; |
373 | 395 |