summaryrefslogtreecommitdiffstats
path: root/src/exporterdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exporterdialog.cpp')
-rw-r--r--src/exporterdialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/exporterdialog.cpp b/src/exporterdialog.cpp
index 569baf7..8bf2e2d 100644
--- a/src/exporterdialog.cpp
+++ b/src/exporterdialog.cpp
@@ -21,38 +21,38 @@
#include <kurlrequester.h>
#include <klineedit.h>
#include <kfiledialog.h>
-#include <qcheckbox.h>
-#include <qdir.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqcheckbox.h>
+#include <tqdir.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kconfig.h>
#include "exporterdialog.h"
#include "basket.h"
-ExporterDialog::ExporterDialog(Basket *basket, QWidget *parent, const char *name)
- : KDialogBase(parent, name, /*modal=*/true, i18n("Export Basket to HTML"),
+ExporterDialog::ExporterDialog(Basket *basket, TQWidget *tqparent, const char *name)
+ : KDialogBase(tqparent, name, /*modal=*/true, i18n("Export Basket to HTML"),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, /*separator=*/true),
m_basket(basket)
{
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- QWidget *wid = new QWidget(page);
- QHBoxLayout *hLay = new QHBoxLayout(wid, /*margin=*/0, KDialogBase::spacingHint());
+ TQWidget *wid = new TQWidget(page);
+ TQHBoxLayout *hLay = new TQHBoxLayout(wid, /*margin=*/0, KDialogBase::spacingHint());
m_url = new KURLRequester("", wid);
m_url->setCaption(i18n("HTML Page Filename"));
m_url->setFilter("text/html");
m_url->fileDialog()->setOperationMode(KFileDialog::Saving);
- hLay->addWidget( new QLabel(m_url, i18n("&Filename:"), wid) );
+ hLay->addWidget( new TQLabel(m_url, i18n("&Filename:"), wid) );
hLay->addWidget( m_url );
- m_embedLinkedFiles = new QCheckBox(i18n("&Embed linked local files"), page);
- m_embedLinkedFolders = new QCheckBox(i18n("Embed &linked local folders"), page);
- m_erasePreviousFiles = new QCheckBox(i18n("Erase &previous files in target folder"), page);
- m_formatForImpression = new QCheckBox(i18n("For&mat for impression"), page);
+ m_embedLinkedFiles = new TQCheckBox(i18n("&Embed linked local files"), page);
+ m_embedLinkedFolders = new TQCheckBox(i18n("Embed &linked local folders"), page);
+ m_erasePreviousFiles = new TQCheckBox(i18n("Erase &previous files in target folder"), page);
+ m_formatForImpression = new TQCheckBox(i18n("For&mat for impression"), page);
m_formatForImpression->hide();
load();
@@ -60,12 +60,12 @@ ExporterDialog::ExporterDialog(Basket *basket, QWidget *parent, const char *name
showTile(true);
// Add a stretch at the bottom:
- // Duplicated code from AddBasketWizard::addStretch(QWidget *parent):
- (new QWidget(page))->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ // Duplicated code from AddBasketWizard::addStretch(TQWidget *tqparent):
+ (new TQWidget(page))->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
// Double the width, because the filename should be visible
- QSize size(sizeHint());
- resize(QSize(size.width() * 2, size.height()));
+ TQSize size(tqsizeHint());
+ resize(TQSize(size.width() * 2, size.height()));
/*
==========================
+ [00000000000 ] Progress bar!
@@ -81,9 +81,9 @@ void ExporterDialog::show()
{
KDialogBase::show();
- QString lineEditText = m_url->lineEdit()->text();
- int selectionStart = lineEditText.findRev("/") + 1;
- m_url->lineEdit()->setSelection(selectionStart, lineEditText.length() - selectionStart - QString(".html").length());
+ TQString lineEditText = m_url->lineEdit()->text();
+ int selectionStart = lineEditText.tqfindRev("/") + 1;
+ m_url->lineEdit()->setSelection(selectionStart, lineEditText.length() - selectionStart - TQString(".html").length());
}
void ExporterDialog::load()
@@ -91,8 +91,8 @@ void ExporterDialog::load()
KConfig *config = KGlobal::config();
config->setGroup("HTML Export");
- QString folder = config->readEntry("lastFolder", QDir::homeDirPath()) + "/";
- QString url = folder + QString(m_basket->basketName()).replace("/", "_") + ".html";
+ TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";
+ TQString url = folder + TQString(m_basket->basketName()).tqreplace("/", "_") + ".html";
m_url->setURL(url);
m_embedLinkedFiles->setChecked( config->readBoolEntry("embedLinkedFiles", true) );
@@ -106,7 +106,7 @@ void ExporterDialog::save()
KConfig *config = KGlobal::config();
config->setGroup("HTML Export");
- QString folder = KURL(m_url->url()).directory();
+ TQString folder = KURL(m_url->url()).directory();
config->writeEntry( "lastFolder", folder );
config->writeEntry( "embedLinkedFiles", m_embedLinkedFiles->isChecked() );
config->writeEntry( "embedLinkedFolders", m_embedLinkedFolders->isChecked() );
@@ -120,7 +120,7 @@ void ExporterDialog::slotOk()
KDialogBase::slotOk();
}
-QString ExporterDialog::filePath()
+TQString ExporterDialog::filePath()
{
return m_url->url();
}