| 981 | } |
| 982 | |
| 983 | void KDiff3App::slotFileSaveAs() |
| 984 | { |
| 985 | slotStatusMsg(i18n("Saving file with a new filename...")); |
| 986 | |
| 987 | QString s = QFileDialog::getSaveFileUrl(this, i18n("Save As..."), QUrl::fromLocalFile(QDir::currentPath())).url(QUrl::PreferLocalFile); |
| 988 | if(!s.isEmpty()) |
| 989 | { |
| 990 | m_outputFilename = s; |
| 991 | m_pMergeResultWindowTitle->setFileName(m_outputFilename); |
| 992 | bool bSuccess = m_pMergeResultWindow->saveDocument(m_outputFilename, m_pMergeResultWindowTitle->getEncoding(), m_pMergeResultWindowTitle->getLineEndStyle()); |
| 993 | if(bSuccess) |
| 994 | { |
| 995 | m_bOutputModified = false; |
| 996 | if(m_bDirCompare) |
| 997 | m_pDirectoryMergeWindow->mergeResultSaved(m_outputFilename); |
| 998 | } |
| 999 | //setWindowTitle(url.fileName(),doc->isModified()); |
| 1000 | |
| 1001 | m_bDefaultFilename = false; |
| 1002 | } |
| 1003 | |
| 1004 | slotStatusMsg(i18n("Ready.")); |
| 1005 | } |
| 1006 | |
| 1007 | void KDiff3App::slotFilePrint() |
| 1008 | { |
nothing calls this directly
no test coverage detected