| 1840 | } |
| 1841 | |
| 1842 | void WorksheetView::handlePlotSelected() { |
| 1843 | /* Action to All: action is applied to all ranges |
| 1844 | * - Disable |
| 1845 | * Action to X: action is applied to all x ranges |
| 1846 | * - x zoom selection: Zooming into all ranges of all plots (mostly the x ranges are the same for all plots --> usecase) |
| 1847 | * - y zoom selection: zoom only into the range from the curve |
| 1848 | * Action to Y: action is applied to all y ranges |
| 1849 | * - x zoom selection: zoom only into the range from the curve |
| 1850 | * - y zoom selection: Zooming into all ranges of all plots |
| 1851 | * Action to Selection |
| 1852 | * - x zoom selection: zoom only into the range from the curve |
| 1853 | * - y zoom selection: zoom only into the range from the curve |
| 1854 | */ |
| 1855 | |
| 1856 | switch (m_worksheet->cartesianPlotActionMode()) { |
| 1857 | case Worksheet::CartesianPlotActionMode::ApplyActionToAll: |
| 1858 | cartesianPlotZoomSelectionModeAction->setEnabled(false); |
| 1859 | cartesianPlotZoomXSelectionModeAction->setEnabled(false); |
| 1860 | cartesianPlotZoomYSelectionModeAction->setEnabled(false); |
| 1861 | zoomInAction->setEnabled(false); |
| 1862 | zoomOutAction->setEnabled(false); |
| 1863 | zoomInXAction->setEnabled(false); |
| 1864 | zoomOutXAction->setEnabled(false); |
| 1865 | zoomInYAction->setEnabled(false); |
| 1866 | zoomOutYAction->setEnabled(false); |
| 1867 | shiftLeftXAction->setEnabled(false); |
| 1868 | shiftRightXAction->setEnabled(false); |
| 1869 | shiftUpYAction->setEnabled(false); |
| 1870 | shiftDownYAction->setEnabled(false); |
| 1871 | scaleAutoAction->setEnabled(true); |
| 1872 | scaleAutoXAction->setEnabled(true); |
| 1873 | scaleAutoYAction->setEnabled(true); |
| 1874 | break; |
| 1875 | case Worksheet::CartesianPlotActionMode::ApplyActionToSelection: |
| 1876 | cartesianPlotZoomSelectionModeAction->setEnabled(true); |
| 1877 | cartesianPlotZoomXSelectionModeAction->setEnabled(true); |
| 1878 | cartesianPlotZoomYSelectionModeAction->setEnabled(true); |
| 1879 | zoomInAction->setEnabled(true); |
| 1880 | zoomOutAction->setEnabled(true); |
| 1881 | zoomInXAction->setEnabled(true); |
| 1882 | zoomOutXAction->setEnabled(true); |
| 1883 | zoomInYAction->setEnabled(true); |
| 1884 | zoomOutYAction->setEnabled(true); |
| 1885 | shiftLeftXAction->setEnabled(true); |
| 1886 | shiftRightXAction->setEnabled(true); |
| 1887 | shiftUpYAction->setEnabled(true); |
| 1888 | shiftDownYAction->setEnabled(true); |
| 1889 | scaleAutoAction->setEnabled(true); |
| 1890 | scaleAutoXAction->setEnabled(true); |
| 1891 | scaleAutoYAction->setEnabled(true); |
| 1892 | break; |
| 1893 | case Worksheet::CartesianPlotActionMode::ApplyActionToAllX: |
| 1894 | cartesianPlotZoomSelectionModeAction->setEnabled(false); |
| 1895 | cartesianPlotZoomXSelectionModeAction->setEnabled(true); |
| 1896 | cartesianPlotZoomYSelectionModeAction->setEnabled(true); |
| 1897 | zoomInAction->setEnabled(false); |
| 1898 | zoomOutAction->setEnabled(false); |
| 1899 | zoomInXAction->setEnabled(true); |
nothing calls this directly
no test coverage detected