CVS commit by marios: #include headers clean-up M +12 -6 cvspart.cpp 1.40 M +0 -3 cvspart.h 1.17 --- kdevelop/parts/cvs/cvspart.cpp #1.39:1.40 @@ -10,6 +10,4 @@ ***************************************************************************/ -#include -#include #include #include @@ -20,4 +18,5 @@ #include #include +#include #include @@ -25,4 +24,6 @@ #include +#include +#include #include #include @@ -186,4 +187,6 @@ bool CvsPart::Private::findPaths() { kdDebug(9000) << "CvsPart::findPaths(): No project???" << endl; + KMessageBox::sorry( 0, i18n("Open a project first.\n" + "Operation will be aborted.") ); return false; } @@ -193,4 +196,6 @@ bool CvsPart::Private::findPaths() { kdDebug(9000) << "CvsPart::findPaths(): Unable to retrieve the Url for the active parte (is there any?)." << endl; + KMessageBox::sorry( 0, i18n("Unable to find current document's path. Is any opened?\n" + "Operation will be aborted.") ); return false; } @@ -224,10 +229,12 @@ bool CvsPart::Private::prepareOperation( if (!findPaths()) { - kdDebug(9000) << " ** slotCommit(): aborting since findPath() == false." << endl; + kdDebug(9000) << " ** prepareOperation(): aborting since findPath() == false." << endl; return false; } if (!isRegisteredInRepository()) { - kdDebug(9000) << " ** slotDiff(): aborting since file is not is repository." << endl; + kdDebug(9000) << " ** prepareOperation(): aborting since file is not is repository." << endl; + KMessageBox::sorry( 0, i18n("The file doesn't seem to belong to repository.\n" + "Operation will be aborted.") ); return false; } @@ -260,5 +267,4 @@ bool CvsPart::Private::isRegisteredInRep kdDebug(9000) << "===> dirName = " << dirName << endl; kdDebug(9000) << "===> entriesFilePath = " << entriesFilePath << endl; - //kdDebug(9000) << "===> whatToSearch = " << whatToSearch << endl; bool found = false; @@ -507,5 +513,5 @@ void CvsPart::slotAdd() if (!d->findPaths()) { - kdDebug(9000) << " ** slotCommit(): aborting since findPath() == false." << endl; + kdDebug(9000) << " ** slotAdd(): aborting since findPath() == false." << endl; return; } --- kdevelop/parts/cvs/cvspart.h #1.16:1.17 @@ -13,7 +13,4 @@ #define _CVSPART_H_ -#include -#include - #include "kdevversioncontrol.h"