| 1873 | } |
| 1874 | |
| 1875 | void KDiff3App::slotAddManualDiffHelp() |
| 1876 | { |
| 1877 | LineRef firstLine; |
| 1878 | LineRef lastLine; |
| 1879 | e_SrcSelector winIdx = e_SrcSelector::Invalid; |
| 1880 | if(m_pDiffTextWindow1) |
| 1881 | { |
| 1882 | m_pDiffTextWindow1->getSelectionRange(&firstLine, &lastLine, eFileCoords); |
| 1883 | winIdx = e_SrcSelector::A; |
| 1884 | } |
| 1885 | if(!firstLine.isValid() && m_pDiffTextWindow2) |
| 1886 | { |
| 1887 | m_pDiffTextWindow2->getSelectionRange(&firstLine, &lastLine, eFileCoords); |
| 1888 | winIdx = e_SrcSelector::B; |
| 1889 | } |
| 1890 | if(!firstLine.isValid() && m_pDiffTextWindow3) |
| 1891 | { |
| 1892 | m_pDiffTextWindow3->getSelectionRange(&firstLine, &lastLine, eFileCoords); |
| 1893 | winIdx = e_SrcSelector::C; |
| 1894 | } |
| 1895 | |
| 1896 | if(!firstLine.isValid() || !lastLine.isValid() || lastLine < firstLine) |
| 1897 | KMessageBox::information(this, i18n("Nothing is selected in either diff input window."), i18n("Error while adding manual diff range")); |
| 1898 | else |
| 1899 | { |
| 1900 | m_manualDiffHelpList.insertEntry(winIdx, firstLine, lastLine); |
| 1901 | |
| 1902 | mainInit(m_totalDiffStatus, InitFlag::autoSolve | InitFlag::initGUI); // Init without reload |
| 1903 | slotRefresh(); |
| 1904 | } |
| 1905 | } |
| 1906 | |
| 1907 | void KDiff3App::slotClearManualDiffHelpList() |
| 1908 | { |
nothing calls this directly
no test coverage detected