Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 1468:de41a11cabc2
Add opportunistic-editing toggle
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2019 15:35:01 +0100 |
parents | f31ccc5f3fb8 |
children | 9bf8aa2916e9 |
comparison
equal
deleted
inserted
replaced
1467:f9110e5afca1 | 1468:de41a11cabc2 |
---|---|
45 m_playSelectionMode(false), | 45 m_playSelectionMode(false), |
46 m_playSoloMode(false), | 46 m_playSoloMode(false), |
47 m_alignMode(false), | 47 m_alignMode(false), |
48 m_overlayMode(StandardOverlays), | 48 m_overlayMode(StandardOverlays), |
49 m_zoomWheelsEnabled(true), | 49 m_zoomWheelsEnabled(true), |
50 m_opportunisticEditingEnabled(true), | |
50 m_showCentreLine(true), | 51 m_showCentreLine(true), |
51 m_illuminateLocalFeatures(true), | 52 m_illuminateLocalFeatures(true), |
52 m_showWorkTitle(false), | 53 m_showWorkTitle(false), |
53 m_showDuration(true), | 54 m_showDuration(true), |
54 m_lightPalette(QApplication::palette()), | 55 m_lightPalette(QApplication::palette()), |
747 settings.setValue("zoom-wheels-enabled", m_zoomWheelsEnabled); | 748 settings.setValue("zoom-wheels-enabled", m_zoomWheelsEnabled); |
748 settings.endGroup(); | 749 settings.endGroup(); |
749 } | 750 } |
750 | 751 |
751 void | 752 void |
753 ViewManager::setOpportunisticEditingEnabled(bool enabled) | |
754 { | |
755 if (m_opportunisticEditingEnabled != enabled) { | |
756 m_opportunisticEditingEnabled = enabled; | |
757 emit opportunisticEditingEnabledChanged(); | |
758 } | |
759 } | |
760 | |
761 void | |
752 ViewManager::setShowCentreLine(bool show) | 762 ViewManager::setShowCentreLine(bool show) |
753 { | 763 { |
754 if (m_showCentreLine != show) { | 764 if (m_showCentreLine != show) { |
755 m_showCentreLine = show; | 765 m_showCentreLine = show; |
756 emit showCentreLineChanged(); | 766 emit showCentreLineChanged(); |