summaryrefslogtreecommitdiffstats
path: root/kpilot/conduits/docconduit/kpalmdoc_dlg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/conduits/docconduit/kpalmdoc_dlg.cc')
-rw-r--r--kpilot/conduits/docconduit/kpalmdoc_dlg.cc90
1 files changed, 45 insertions, 45 deletions
diff --git a/kpilot/conduits/docconduit/kpalmdoc_dlg.cc b/kpilot/conduits/docconduit/kpalmdoc_dlg.cc
index 5bdacba8c..29713ffae 100644
--- a/kpilot/conduits/docconduit/kpalmdoc_dlg.cc
+++ b/kpilot/conduits/docconduit/kpalmdoc_dlg.cc
@@ -31,12 +31,12 @@
#include <stdio.h>
#include <iostream>
-#include <qtabwidget.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqtabwidget.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <klocale.h>
#include <kconfig.h>
@@ -54,24 +54,24 @@
#include "kpalmdocSettings.h"
-ConverterDlg::ConverterDlg( QWidget *parent, const QString& caption)
+ConverterDlg::ConverterDlg( TQWidget *parent, const TQString& caption)
: KDialogBase( parent, "converterdialog", false, caption, KDialogBase::Close|KDialogBase::Help|KDialogBase::User1,
KDialogBase::Close, true, i18n("&About"))
{
- QWidget *page = makeHBoxMainWidget();
+ TQWidget *page = makeHBoxMainWidget();
dlg=new ConverterDlgBase(page);
- QStringList l = KGlobal::charsets()->descriptiveEncodingNames();
- for ( QStringList::Iterator it = l.begin(); it != l.end(); ++it)
+ TQStringList l = KGlobal::charsets()->descriptiveEncodingNames();
+ for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it)
{
dlg->fEncoding->insertItem(*it);
}
readSettings();
- connect(dlg->fDirectories, SIGNAL(toggled(bool)),
- this, SLOT(slotDirectories(bool)));
- connect(dlg->fTextToPDB, SIGNAL(clicked()), this, SLOT(slotToPDB()));
- connect(dlg->fPDBToText, SIGNAL(clicked()), this, SLOT(slotToText()));
+ connect(dlg->fDirectories, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotDirectories(bool)));
+ connect(dlg->fTextToPDB, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotToPDB()));
+ connect(dlg->fPDBToText, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotToText()));
resize(minimumSize());
}
@@ -117,7 +117,7 @@ void ConverterDlg::readSettings()
slotDirectories(dir);
dlg->fAskOverwrite->setChecked( KPalmDocSettings::askOverwrite() );
dlg->fVerbose->setChecked( KPalmDocSettings::verboseMessages() );
- QString encoding = KPalmDocSettings::encoding();
+ TQString encoding = KPalmDocSettings::encoding();
#ifdef DEBUG
DEBUGKPILOT << fname << ": Encoding=" << encoding << endl;
#endif
@@ -162,11 +162,11 @@ void ConverterDlg::slotToText()
bool dir=dlg->fDirectories->isChecked();
- QString txturl=dlg->fTXTDir->url();
- QString pdburl=dlg->fPDBDir->url();
+ TQString txturl=dlg->fTXTDir->url();
+ TQString pdburl=dlg->fPDBDir->url();
- QFileInfo txtinfo(txturl);
- QFileInfo pdbinfo(pdburl);
+ TQFileInfo txtinfo(txturl);
+ TQFileInfo pdbinfo(pdburl);
if (dir)
{
@@ -176,7 +176,7 @@ void ConverterDlg::slotToText()
i18n("<qt>You selected to sync folders, "
"but gave a filename instead (<em>%1</em>)."
"<br>Use folder <em>%2</em> instead?</qt>").arg(pdburl)
- .arg(pdbinfo.dirPath(true)), QString::null, i18n("Use Folder"), KStdGuiItem::cancel());
+ .arg(pdbinfo.dirPath(true)), TQString::null, i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes)
{
pdburl=pdbinfo.dirPath(true);
@@ -212,7 +212,7 @@ void ConverterDlg::slotToText()
i18n("<qt>You selected to sync folders, "
"but gave a filename instead (<em>%1</em>)."
"<br>Use folder <em>%2</em> instead?</qt>").arg(txturl)
- .arg(txtinfo.dirPath(true)), QString::null, i18n("Use Folder"), KStdGuiItem::cancel());
+ .arg(txtinfo.dirPath(true)), TQString::null, i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes) {
txturl=txtinfo.dirPath(true);
txtinfo.setFile(txturl);
@@ -235,13 +235,13 @@ void ConverterDlg::slotToText()
// Now that we have both directories, create the converter object
DEBUGKPILOT<<"Pdbinfo.dir="<<pdbinfo.dir().absPath()<<endl;
DEBUGKPILOT<<"txtinfo.dir="<<txtinfo.dir().absPath()<<endl;
- QStringList pdbfiles(pdbinfo.dir().entryList(CSL1("*.pdb")));
- QStringList converted_Files;
+ TQStringList pdbfiles(pdbinfo.dir().entryList(CSL1("*.pdb")));
+ TQStringList converted_Files;
DEBUGKPILOT<<"Length of filename list: "<<pdbfiles.size()<<endl;
- for ( QStringList::Iterator it = pdbfiles.begin(); it != pdbfiles.end(); ++it )
+ for ( TQStringList::Iterator it = pdbfiles.begin(); it != pdbfiles.end(); ++it )
{
- QString txtfile=QFileInfo(*it).baseName(true)+CSL1(".txt");
+ TQString txtfile=TQFileInfo(*it).baseName(true)+CSL1(".txt");
DEBUGKPILOT<<"pdbfile="<<*it<<", pdbdir="<<pdburl<<", txtfile="<<txtfile<<", txtdir="<<txturl<<endl;
if (convertPDBtoTXT(pdburl, *it, txturl, txtfile, &conv))
{
@@ -311,11 +311,11 @@ void ConverterDlg::slotToPDB()
bool dir=dlg->fDirectories->isChecked();
- QString txturl=dlg->fTXTDir->url();
- QString pdburl=dlg->fPDBDir->url();
+ TQString txturl=dlg->fTXTDir->url();
+ TQString pdburl=dlg->fPDBDir->url();
- QFileInfo txtinfo(txturl);
- QFileInfo pdbinfo(pdburl);
+ TQFileInfo txtinfo(txturl);
+ TQFileInfo pdbinfo(pdburl);
if (dir)
{
@@ -325,7 +325,7 @@ void ConverterDlg::slotToPDB()
i18n("<qt>You selected to sync folders, "
"but gave a filename instead (<em>%1</em>)."
"<br>Use folder <em>%2</em> instead?</qt>").arg(txturl)
- .arg(txtinfo.dirPath(true)), QString::null, i18n("Use Folder"), KStdGuiItem::cancel());
+ .arg(txtinfo.dirPath(true)), TQString::null, i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes)
{
txturl=txtinfo.dirPath(true);
@@ -351,7 +351,7 @@ void ConverterDlg::slotToPDB()
"but gave a filename instead (<em>%1</em>)."
"<br>Use folder <em>%2</em> instead?</qt>")
.arg(pdburl)
- .arg(pdbinfo.dirPath(true)), QString::null, i18n("Use Folder"), KStdGuiItem::cancel());
+ .arg(pdbinfo.dirPath(true)), TQString::null, i18n("Use Folder"), KStdGuiItem::cancel());
if (res==KMessageBox::Yes) {
pdburl=pdbinfo.dirPath(true);
pdbinfo.setFile(pdburl);
@@ -373,13 +373,13 @@ void ConverterDlg::slotToPDB()
// Now that we have both directories, create the converter object
DEBUGKPILOT<<"Pdbinfo.dir="<<pdbinfo.dir().absPath()<<endl;
DEBUGKPILOT<<"txtinfo.dir="<<txtinfo.dir().absPath()<<endl;
- QStringList txtfiles(txtinfo.dir().entryList(CSL1("*.txt")));
- QStringList converted_Files;
+ TQStringList txtfiles(txtinfo.dir().entryList(CSL1("*.txt")));
+ TQStringList converted_Files;
DEBUGKPILOT<<"Length of filename list: "<<txtfiles.size()<<endl;
- for ( QStringList::Iterator it = txtfiles.begin(); it != txtfiles.end(); ++it )
+ for ( TQStringList::Iterator it = txtfiles.begin(); it != txtfiles.end(); ++it )
{
- QString pdbfile=QFileInfo(*it).baseName(true)+CSL1(".pdb");
+ TQString pdbfile=TQFileInfo(*it).baseName(true)+CSL1(".pdb");
DEBUGKPILOT<<"pdbfile="<<pdbfile<<", pdbdir="<<pdburl<<", txtfile="<<*it<<", txtdir="<<txturl<<endl;
if (convertTXTtoPDB(txturl, *it, pdburl, pdbfile, &conv))
{
@@ -444,19 +444,19 @@ void ConverterDlg::slotDirectories(bool dir)
}
}
-bool ConverterDlg::convertTXTtoPDB(QString txtdir, QString txtfile,
- QString pdbdir, QString pdbfile, DOCConverter*conv)
+bool ConverterDlg::convertTXTtoPDB(TQString txtdir, TQString txtfile,
+ TQString pdbdir, TQString pdbfile, DOCConverter*conv)
{
FUNCTIONSETUP;
bool res=false;
- QFileInfo dbfileinfo(pdbdir, pdbfile);
+ TQFileInfo dbfileinfo(pdbdir, pdbfile);
DEBUGKPILOT<<"Working on file "<<pdbfile<<endl;
if (!dbfileinfo.exists() || !askOverwrite ||
(KMessageBox::Yes==KMessageBox::questionYesNo(this,
i18n("<qt>The database file <em>%1</em> already exists. Overwrite it?</qt>")
- .arg(dbfileinfo.filePath()), QString::null, i18n("Overwrite"), KStdGuiItem::cancel() ) ))
+ .arg(dbfileinfo.filePath()), TQString::null, i18n("Overwrite"), KStdGuiItem::cancel() ) ))
{
- PilotLocalDatabase*pdbdb=new PilotLocalDatabase(pdbdir, QFileInfo(pdbfile).baseName(), false);
+ PilotLocalDatabase*pdbdb=new PilotLocalDatabase(pdbdir, TQFileInfo(pdbfile).baseName(), false);
if (pdbdb)
{
if (!pdbdb->isOpen())
@@ -489,19 +489,19 @@ bool ConverterDlg::convertTXTtoPDB(QString txtdir, QString txtfile,
return res;
}
-bool ConverterDlg::convertPDBtoTXT(QString pdbdir, QString pdbfile,
- QString txtdir, QString txtfile, DOCConverter*conv)
+bool ConverterDlg::convertPDBtoTXT(TQString pdbdir, TQString pdbfile,
+ TQString txtdir, TQString txtfile, DOCConverter*conv)
{
FUNCTIONSETUP;
bool res=false;
- QFileInfo txtfileinfo(txtdir, txtfile);
+ TQFileInfo txtfileinfo(txtdir, txtfile);
DEBUGKPILOT<<"Working on file "<<txtfile<<endl;
if (!txtfileinfo.exists() || !askOverwrite ||
(KMessageBox::Yes==KMessageBox::questionYesNo(this,
i18n("<qt>The text file <em>%1</em> already exists. Overwrite it?</qt>")
- .arg(txtfileinfo.filePath()), QString::null, i18n("Overwrite"), KStdGuiItem::cancel() ) ))
+ .arg(txtfileinfo.filePath()), TQString::null, i18n("Overwrite"), KStdGuiItem::cancel() ) ))
{
- PilotLocalDatabase*pdbdb=new PilotLocalDatabase(pdbdir, QFileInfo(pdbfile).baseName(), false);
+ PilotLocalDatabase*pdbdb=new PilotLocalDatabase(pdbdir, TQFileInfo(pdbfile).baseName(), false);
if (pdbdb)
{
if (pdbdb->isOpen())