#include "keduvocdocument.h"
-#include <QApplication>
#include <QFileInfo>
#include <QTextStream>
#include <QtAlgorithms>
FileType ft = detectFileType(url.path());
- QApplication::setOverrideCursor(Qt::WaitCursor);
switch (ft) {
case kvtml:
{
}
}
- QApplication::restoreOverrideCursor();
-
if (!read) {
QString msg = i18n("Could not open or properly read \"%1\"\n(Error reported: %2)", url.path(), errorMessage);
KMessageBox::error(0, msg, i18n("Error Opening File"));
return false;
}
- QApplication::setOverrideCursor(Qt::WaitCursor);
switch (ft) {
case kvtml: {
KEduVocKvtmlWriter kvtmlWriter(&f);
break;
}
f.close();
- QApplication::restoreOverrideCursor();
if (!saved) {
QString msg = i18n("Could not save \"%1\"\nDo you want to try again?", tmp.path());
kDebug() << "Merging of docs is not implemented"; /// @todo IMPLEMENT ME
/*
if (docToMerge) {
- QApplication::setOverrideCursor(Qt::WaitCursor);
QStringList new_names = docToMerge->lessonDescriptions();
}
}
}
- QApplication::restoreOverrideCursor();
*/
}
int KEduVocDocument::appendIdentifier(const QString & id)
{
d->m_identifiers.append(id);
- kDebug() << "appending identifier" << id;
return d->m_identifiers.size() - 1;
}