diff options
Diffstat (limited to 'src/translators')
-rw-r--r-- | src/translators/csvimporter.cpp | 4 | ||||
-rw-r--r-- | src/translators/freedbimporter.cpp | 6 | ||||
-rw-r--r-- | src/translators/griffithimporter.cpp | 18 | ||||
-rw-r--r-- | src/translators/griffithimporter.h | 10 | ||||
-rw-r--r-- | src/translators/htmlexporter.cpp | 8 | ||||
-rw-r--r-- | src/translators/pilotdbexporter.cpp | 4 | ||||
-rw-r--r-- | src/translators/tellicoxmlexporter.cpp | 2 |
7 files changed, 26 insertions, 26 deletions
diff --git a/src/translators/csvimporter.cpp b/src/translators/csvimporter.cpp index 68e4789..ca3e7aa 100644 --- a/src/translators/csvimporter.cpp +++ b/src/translators/csvimporter.cpp @@ -202,7 +202,7 @@ Tellico::Data::CollPtr CSVImporter::collection() { } { - KConfigGroup config(KGlobal::config(), TQString::fromLatin1("ImportOptions - CSV")); + KConfigGroup config(TDEGlobal::config(), TQString::fromLatin1("ImportOptions - CSV")); config.writeEntry("Delimiter", m_delimiter); config.writeEntry("First Row Titles", m_firstRowHeader); } @@ -320,7 +320,7 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { l->addStretch(1); - KConfigGroup config(KGlobal::config(), TQString::fromLatin1("ImportOptions - CSV")); + KConfigGroup config(TDEGlobal::config(), TQString::fromLatin1("ImportOptions - CSV")); m_delimiter = config.readEntry("Delimiter", m_delimiter); m_firstRowHeader = config.readBoolEntry("First Row Titles", m_firstRowHeader); diff --git a/src/translators/freedbimporter.cpp b/src/translators/freedbimporter.cpp index 9ee128f..480bf07 100644 --- a/src/translators/freedbimporter.cpp +++ b/src/translators/freedbimporter.cpp @@ -96,7 +96,7 @@ void FreeDBImporter::readCDROM() { } { - KConfigGroup config(KGlobal::config(), TQString::fromLatin1("ImportOptions - FreeDB")); + KConfigGroup config(TDEGlobal::config(), TQString::fromLatin1("ImportOptions - FreeDB")); config.writeEntry("CD-ROM Devices", drives); config.writeEntry("Last Device", drivePath); config.writeEntry("Cache Files Only", false); @@ -291,7 +291,7 @@ void FreeDBImporter::readCache() { #ifdef HAVE_KCDDB { // remember the import options - KConfigGroup config(KGlobal::config(), TQString::fromLatin1("ImportOptions - FreeDB")); + KConfigGroup config(TDEGlobal::config(), TQString::fromLatin1("ImportOptions - FreeDB")); config.writeEntry("Cache Files Only", true); } @@ -515,7 +515,7 @@ TQWidget* FreeDBImporter::widget(TQWidget* parent_, const char* name_/*=0*/) { l->addStretch(1); // now read config options - KConfigGroup config(KGlobal::config(), TQString::fromLatin1("ImportOptions - FreeDB")); + KConfigGroup config(TDEGlobal::config(), TQString::fromLatin1("ImportOptions - FreeDB")); TQStringList devices = config.readListEntry("CD-ROM Devices"); if(devices.isEmpty()) { #if defined(__OpenBSD__) diff --git a/src/translators/griffithimporter.cpp b/src/translators/griffithimporter.cpp index ea4da5e..d5693e1 100644 --- a/src/translators/griffithimporter.cpp +++ b/src/translators/griffithimporter.cpp @@ -46,18 +46,18 @@ Tellico::Data::CollPtr GriffithImporter::collection() { return 0; } - TQString griffith = KGlobal::dirs()->findResource("appdata", TQString::fromLatin1("griffith2tellico.py")); + TQString griffith = TDEGlobal::dirs()->findResource("appdata", TQString::fromLatin1("griffith2tellico.py")); if(griffith.isEmpty()) { myWarning() << "GriffithImporter::collection() - griffith2tellico.py not found!" << endl; return 0; } - m_process = new KProcess(); - connect(m_process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), TQT_SLOT(slotData(KProcess*, char*, int))); - connect(m_process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), TQT_SLOT(slotError(KProcess*, char*, int))); - connect(m_process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotProcessExited(KProcess*))); + m_process = new TDEProcess(); + connect(m_process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), TQT_SLOT(slotData(TDEProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), TQT_SLOT(slotError(TDEProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(slotProcessExited(TDEProcess*))); *m_process << python << griffith; - if(!m_process->start(KProcess::Block, KProcess::AllOutput)) { + if(!m_process->start(TDEProcess::Block, TDEProcess::AllOutput)) { myDebug() << "ExecExternalFetcher::startSearch() - process failed to start" << endl; return 0; } @@ -65,19 +65,19 @@ Tellico::Data::CollPtr GriffithImporter::collection() { return m_coll; } -void GriffithImporter::slotData(KProcess*, char* buffer_, int len_) { +void GriffithImporter::slotData(TDEProcess*, char* buffer_, int len_) { TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(buffer_, len_); } -void GriffithImporter::slotError(KProcess*, char* buffer_, int len_) { +void GriffithImporter::slotError(TDEProcess*, char* buffer_, int len_) { TQString msg = TQString::fromLocal8Bit(buffer_, len_); myDebug() << "GriffithImporter::slotError() - " << msg << endl; setStatusMessage(msg); } -void GriffithImporter::slotProcessExited(KProcess*) { +void GriffithImporter::slotProcessExited(TDEProcess*) { // myDebug() << "GriffithImporter::slotProcessExited()" << endl; if(!m_process->normalExit() || m_process->exitStatus()) { myDebug() << "GriffithImporter::slotProcessExited() - process did not exit successfully" << endl; diff --git a/src/translators/griffithimporter.h b/src/translators/griffithimporter.h index 39b5aa8..265a308 100644 --- a/src/translators/griffithimporter.h +++ b/src/translators/griffithimporter.h @@ -17,7 +17,7 @@ #include "importer.h" #include "../datavectors.h" -class KProcess; +class TDEProcess; namespace Tellico { namespace Import { @@ -48,14 +48,14 @@ public: virtual bool canImport(int type) const; private slots: - void slotData(KProcess* proc, char* buffer, int len); - void slotError(KProcess* proc, char* buffer, int len); - void slotProcessExited(KProcess* proc); + void slotData(TDEProcess* proc, char* buffer, int len); + void slotError(TDEProcess* proc, char* buffer, int len); + void slotProcessExited(TDEProcess* proc); private: Data::CollPtr m_coll; - KProcess* m_process; + TDEProcess* m_process; TQByteArray m_data; }; diff --git a/src/translators/htmlexporter.cpp b/src/translators/htmlexporter.cpp index 2db0fc4..6cb38b4 100644 --- a/src/translators/htmlexporter.cpp +++ b/src/translators/htmlexporter.cpp @@ -209,7 +209,7 @@ bool HTMLExporter::loadXSLTFile() { // if parseDOM, that means we want the locations to be the actual location // otherwise, we assume it'll be relative if(m_parseDOM && m_dataDir.isEmpty()) { - m_dataDir = KGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")); + m_dataDir = TDEGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")); } else if(!m_parseDOM) { m_dataDir.truncate(0); } @@ -279,7 +279,7 @@ void HTMLExporter::setFormattingOptions(Data::CollPtr coll) { if(file != i18n("Untitled")) { m_handler->addStringParam("filename", TQFile::encodeName(file)); } - m_handler->addStringParam("cdate", KGlobal::locale()->formatDate(TQDate::currentDate()).utf8()); + m_handler->addStringParam("cdate", TDEGlobal::locale()->formatDate(TQDate::currentDate()).utf8()); m_handler->addParam("show-headers", m_printHeaders ? "true()" : "false()"); m_handler->addParam("group-entries", m_printGrouped ? "true()" : "false()"); @@ -375,7 +375,7 @@ void HTMLExporter::setFormattingOptions(Data::CollPtr coll) { m_handler->addStringParam("color2", TQString(Config::templateHighlightedBaseColor(type).name()).latin1()); // add locale code to stylesheet (for sorting) - m_handler->addStringParam("lang", KGlobal::locale()->languagesTwoAlpha().first().utf8()); + m_handler->addStringParam("lang", TDEGlobal::locale()->languagesTwoAlpha().first().utf8()); } void HTMLExporter::writeImages(Data::CollPtr coll_) { @@ -738,7 +738,7 @@ bool HTMLExporter::writeEntryFiles() { dataImages << TQString::fromLatin1("stars%1.png").arg(i); } KURL dataDir; - dataDir.setPath(KGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")) + "pics/"); + dataDir.setPath(TDEGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")) + "pics/"); KURL target = fileDir(); target.addPath(TQString::fromLatin1("pics/")); KIO::NetAccess::mkdir(target, m_widget); diff --git a/src/translators/pilotdbexporter.cpp b/src/translators/pilotdbexporter.cpp index 5d4fc16..5d7b40f 100644 --- a/src/translators/pilotdbexporter.cpp +++ b/src/translators/pilotdbexporter.cpp @@ -58,8 +58,8 @@ bool PilotDBExporter::exec() { TQTextCodec* codec = 0; { // Latin1 is default - KConfigGroup group(KGlobal::config(), TQString::fromLatin1("ExportOptions - %1").arg(formatString())); - codec = KGlobal::charsets()->codecForName(group.readEntry("Charset")); + KConfigGroup group(TDEGlobal::config(), TQString::fromLatin1("ExportOptions - %1").arg(formatString())); + codec = TDEGlobal::charsets()->codecForName(group.readEntry("Charset")); } if(!codec) { kdWarning() << "PilotDBExporter::exec() - no TQTextCodec!" << endl; diff --git a/src/translators/tellicoxmlexporter.cpp b/src/translators/tellicoxmlexporter.cpp index 0a7d1af..be7404b 100644 --- a/src/translators/tellicoxmlexporter.cpp +++ b/src/translators/tellicoxmlexporter.cpp @@ -298,7 +298,7 @@ void TellicoXMLExporter::exportEntryXML(TQDomDocument& dom_, TQDomElement& paren entryElem.appendChild(fieldElem); // Date fields get special treatment if(fIt->type() == Data::Field::Date) { - fieldElem.setAttribute(TQString::fromLatin1("calendar"), KGlobal::locale()->calendar()->calendarName()); + fieldElem.setAttribute(TQString::fromLatin1("calendar"), TDEGlobal::locale()->calendar()->calendarName()); TQStringList s = TQStringList::split('-', fieldValue, true); if(s.count() > 0 && !s[0].isEmpty()) { TQDomElement e = dom_.createElement(TQString::fromLatin1("year")); |