summaryrefslogtreecommitdiffstats
path: root/kdeprint/kdeprintfax
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kdeprint/kdeprintfax
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/kdeprintfax')
-rw-r--r--kdeprint/kdeprintfax/conffax.cpp26
-rw-r--r--kdeprint/kdeprintfax/conffax.h4
-rw-r--r--kdeprint/kdeprintfax/conffilters.cpp66
-rw-r--r--kdeprint/kdeprintfax/conffilters.h6
-rw-r--r--kdeprint/kdeprintfax/confgeneral.cpp34
-rw-r--r--kdeprint/kdeprintfax/confgeneral.h8
-rw-r--r--kdeprint/kdeprintfax/configdlg.cpp6
-rw-r--r--kdeprint/kdeprintfax/configdlg.h4
-rw-r--r--kdeprint/kdeprintfax/confsystem.cpp50
-rw-r--r--kdeprint/kdeprintfax/confsystem.h6
-rw-r--r--kdeprint/kdeprintfax/defcmds.cpp4
-rw-r--r--kdeprint/kdeprintfax/defcmds.h4
-rw-r--r--kdeprint/kdeprintfax/faxab.cpp42
-rw-r--r--kdeprint/kdeprintfax/faxab.h18
-rw-r--r--kdeprint/kdeprintfax/faxctrl.cpp158
-rw-r--r--kdeprint/kdeprintfax/faxctrl.h20
-rw-r--r--kdeprint/kdeprintfax/filterdlg.cpp26
-rw-r--r--kdeprint/kdeprintfax/filterdlg.h4
-rw-r--r--kdeprint/kdeprintfax/kdeprintfax.cpp210
-rw-r--r--kdeprint/kdeprintfax/kdeprintfax.h44
-rw-r--r--kdeprint/kdeprintfax/main.cpp6
21 files changed, 373 insertions, 373 deletions
diff --git a/kdeprint/kdeprintfax/conffax.cpp b/kdeprint/kdeprintfax/conffax.cpp
index c88184595..2351c9c69 100644
--- a/kdeprint/kdeprintfax/conffax.cpp
+++ b/kdeprint/kdeprintfax/conffax.cpp
@@ -20,11 +20,11 @@
#include "conffax.h"
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qprinter.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqprinter.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -33,24 +33,24 @@
#include <stdlib.h>
-ConfFax::ConfFax(QWidget *parent, const char *name)
-: QWidget(parent, name)
+ConfFax::ConfFax(TQWidget *parent, const char *name)
+: TQWidget(parent, name)
{
- m_resolution = new QComboBox(this);
+ m_resolution = new TQComboBox(this);
m_resolution->setMinimumHeight(25);
- m_pagesize = new QComboBox(this);
+ m_pagesize = new TQComboBox(this);
m_pagesize->setMinimumHeight(25);
m_resolution->insertItem(i18n("High (204x196 dpi)"));
m_resolution->insertItem(i18n("Low (204x98 dpi)"));
m_pagesize->insertItem(i18n("A4"));
m_pagesize->insertItem(i18n("Letter"));
m_pagesize->insertItem(i18n("Legal"));
- QLabel *m_resolutionlabel = new QLabel(i18n("&Resolution:"), this);
+ QLabel *m_resolutionlabel = new TQLabel(i18n("&Resolution:"), this);
m_resolutionlabel->setBuddy(m_resolution);
- QLabel *m_pagesizelabel = new QLabel(i18n("&Paper size:"), this);
+ QLabel *m_pagesizelabel = new TQLabel(i18n("&Paper size:"), this);
m_pagesizelabel->setBuddy(m_pagesize);
- QGridLayout *l0 = new QGridLayout(this, 3, 2, 10, 10);
+ QGridLayout *l0 = new TQGridLayout(this, 3, 2, 10, 10);
l0->setColStretch(1, 1);
l0->setRowStretch(2, 1);
l0->addWidget(m_resolutionlabel, 0, 0);
@@ -63,7 +63,7 @@ void ConfFax::load()
{
KConfig *conf = KGlobal::config();
conf->setGroup("Fax");
- QString v = conf->readEntry("Page", KGlobal::locale()->pageSize() == QPrinter::A4 ? "a4" : "letter");
+ QString v = conf->readEntry("Page", KGlobal::locale()->pageSize() == TQPrinter::A4 ? "a4" : "letter");
if (v == "letter") m_pagesize->setCurrentItem(1);
else if (v == "legal") m_pagesize->setCurrentItem(2);
else m_pagesize->setCurrentItem(0);
diff --git a/kdeprint/kdeprintfax/conffax.h b/kdeprint/kdeprintfax/conffax.h
index ffcd125ae..888ef5825 100644
--- a/kdeprint/kdeprintfax/conffax.h
+++ b/kdeprint/kdeprintfax/conffax.h
@@ -21,14 +21,14 @@
#ifndef CONFFAX_H
#define CONFFAX_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QComboBox;
class ConfFax : public QWidget
{
public:
- ConfFax(QWidget *parent = 0, const char *name = 0);
+ ConfFax(TQWidget *parent = 0, const char *name = 0);
void load();
void save();
diff --git a/kdeprint/kdeprintfax/conffilters.cpp b/kdeprint/kdeprintfax/conffilters.cpp
index ab828c582..fc33f88b1 100644
--- a/kdeprint/kdeprintfax/conffilters.cpp
+++ b/kdeprint/kdeprintfax/conffilters.cpp
@@ -21,13 +21,13 @@
#include "conffilters.h"
#include "filterdlg.h"
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-#include <qheader.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
+#include <tqheader.h>
#include <klocale.h>
#include <klistview.h>
@@ -35,41 +35,41 @@
#include <kstandarddirs.h>
#include <kmessagebox.h>
-ConfFilters::ConfFilters(QWidget *parent, const char *name)
-: QWidget(parent, name)
+ConfFilters::ConfFilters(TQWidget *parent, const char *name)
+: TQWidget(parent, name)
{
m_filters = new KListView(this);
m_filters->addColumn(i18n("Mime Type"));
m_filters->addColumn(i18n("Command"));
- m_filters->setFrameStyle(QFrame::WinPanel|QFrame::Sunken);
+ m_filters->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken);
m_filters->setLineWidth(1);
m_filters->setSorting(-1);
m_filters->header()->setStretchEnabled(true, 1);
- connect(m_filters, SIGNAL(doubleClicked(QListViewItem*)), SLOT(slotChange()));
+ connect(m_filters, TQT_SIGNAL(doubleClicked(TQListViewItem*)), TQT_SLOT(slotChange()));
- m_add = new QPushButton(this);
+ m_add = new TQPushButton(this);
m_add->setPixmap(BarIcon("filenew"));
- m_remove = new QPushButton(this);
+ m_remove = new TQPushButton(this);
m_remove->setIconSet(BarIconSet("remove"));
- m_change = new QPushButton(this);
+ m_change = new TQPushButton(this);
m_change->setIconSet(BarIconSet("filter"));
- m_up = new QPushButton(this);
+ m_up = new TQPushButton(this);
m_up->setIconSet(BarIconSet("up"));
- m_down = new QPushButton(this);
+ m_down = new TQPushButton(this);
m_down->setIconSet(BarIconSet("down"));
- connect(m_add, SIGNAL(clicked()), SLOT(slotAdd()));
- connect(m_change, SIGNAL(clicked()), SLOT(slotChange()));
- connect(m_remove, SIGNAL(clicked()), SLOT(slotRemove()));
- connect(m_up, SIGNAL(clicked()), SLOT(slotUp()));
- connect(m_down, SIGNAL(clicked()), SLOT(slotDown()));
- QToolTip::add(m_add, i18n("Add filter"));
- QToolTip::add(m_change, i18n("Modify filter"));
- QToolTip::add(m_remove, i18n("Remove filter"));
- QToolTip::add(m_up, i18n("Move filter up"));
- QToolTip::add(m_down, i18n("Move filter down"));
-
- QHBoxLayout *l0 = new QHBoxLayout(this, 10, 10);
- QVBoxLayout *l1 = new QVBoxLayout(0, 0, 0);
+ connect(m_add, TQT_SIGNAL(clicked()), TQT_SLOT(slotAdd()));
+ connect(m_change, TQT_SIGNAL(clicked()), TQT_SLOT(slotChange()));
+ connect(m_remove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemove()));
+ connect(m_up, TQT_SIGNAL(clicked()), TQT_SLOT(slotUp()));
+ connect(m_down, TQT_SIGNAL(clicked()), TQT_SLOT(slotDown()));
+ TQToolTip::add(m_add, i18n("Add filter"));
+ TQToolTip::add(m_change, i18n("Modify filter"));
+ TQToolTip::add(m_remove, i18n("Remove filter"));
+ TQToolTip::add(m_up, i18n("Move filter up"));
+ TQToolTip::add(m_down, i18n("Move filter down"));
+
+ QHBoxLayout *l0 = new TQHBoxLayout(this, 10, 10);
+ QVBoxLayout *l1 = new TQVBoxLayout(0, 0, 0);
l0->addWidget(m_filters, 1);
l0->addLayout(l1, 0);
l1->addWidget(m_add);
@@ -80,7 +80,7 @@ ConfFilters::ConfFilters(QWidget *parent, const char *name)
l1->addWidget(m_down);
l1->addStretch(1);
updateButton();
- connect(m_filters, SIGNAL(selectionChanged ()),SLOT(updateButton()));
+ connect(m_filters, TQT_SIGNAL(selectionChanged ()),TQT_SLOT(updateButton()));
}
void ConfFilters::load()
@@ -95,11 +95,11 @@ void ConfFilters::load()
while (!t.eof())
{
line = t.readLine().stripWhiteSpace();
- if ((p=line.find(QRegExp("\\s"))) != -1)
+ if ((p=line.find(TQRegExp("\\s"))) != -1)
{
QString mime(line.left(p)), cmd(line.right(line.length()-p-1).stripWhiteSpace());
if (!mime.isEmpty() && !cmd.isEmpty())
- item = new QListViewItem(m_filters, item, mime, cmd);
+ item = new TQListViewItem(m_filters, item, mime, cmd);
}
}
}
@@ -126,7 +126,7 @@ void ConfFilters::slotAdd()
if (FilterDlg::doIt(this, &mime, &cmd))
if (!mime.isEmpty() && !cmd.isEmpty())
{
- new QListViewItem(m_filters, m_filters->currentItem(), mime, cmd);
+ new TQListViewItem(m_filters, m_filters->currentItem(), mime, cmd);
updateButton();
}
else
diff --git a/kdeprint/kdeprintfax/conffilters.h b/kdeprint/kdeprintfax/conffilters.h
index 38f564b1f..ce3d64156 100644
--- a/kdeprint/kdeprintfax/conffilters.h
+++ b/kdeprint/kdeprintfax/conffilters.h
@@ -21,15 +21,15 @@
#ifndef CONFFILTERS_H
#define CONFFILTERS_H
-#include <qwidget.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqpushbutton.h>
class KListView;
class ConfFilters : public QWidget
{
Q_OBJECT
public:
- ConfFilters(QWidget *parent = 0, const char *name = 0);
+ ConfFilters(TQWidget *parent = 0, const char *name = 0);
void load();
void save();
diff --git a/kdeprint/kdeprintfax/confgeneral.cpp b/kdeprint/kdeprintfax/confgeneral.cpp
index 3f592e694..757c54af7 100644
--- a/kdeprint/kdeprintfax/confgeneral.cpp
+++ b/kdeprint/kdeprintfax/confgeneral.cpp
@@ -20,10 +20,10 @@
#include "confgeneral.h"
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -32,26 +32,26 @@
#include <stdlib.h>
-ConfGeneral::ConfGeneral(QWidget *parent, const char *name)
-: QWidget(parent, name)
+ConfGeneral::ConfGeneral(TQWidget *parent, const char *name)
+: TQWidget(parent, name)
{
- m_name = new QLineEdit(this);
- m_company = new QLineEdit(this);
- m_number = new QLineEdit(this);
- QLabel *m_namelabel = new QLabel(i18n("&Name:"), this);
+ m_name = new TQLineEdit(this);
+ m_company = new TQLineEdit(this);
+ m_number = new TQLineEdit(this);
+ QLabel *m_namelabel = new TQLabel(i18n("&Name:"), this);
m_namelabel->setBuddy(m_name);
- QLabel *m_companylabel = new QLabel(i18n("&Company:"), this);
+ QLabel *m_companylabel = new TQLabel(i18n("&Company:"), this);
m_companylabel->setBuddy(m_company);
- QLabel *m_numberlabel = new QLabel(i18n("N&umber:"), this);
+ QLabel *m_numberlabel = new TQLabel(i18n("N&umber:"), this);
m_numberlabel->setBuddy(m_number);
KSeparator *sep = new KSeparator( this );
- m_replace_int_char = new QCheckBox( i18n( "Replace international prefix '+' with:" ), this );
- m_replace_int_char_val = new QLineEdit( this );
+ m_replace_int_char = new TQCheckBox( i18n( "Replace international prefix '+' with:" ), this );
+ m_replace_int_char_val = new TQLineEdit( this );
m_replace_int_char_val->setEnabled( false );
- connect( m_replace_int_char, SIGNAL( toggled( bool ) ), m_replace_int_char_val, SLOT( setEnabled( bool ) ) );
+ connect( m_replace_int_char, TQT_SIGNAL( toggled( bool ) ), m_replace_int_char_val, TQT_SLOT( setEnabled( bool ) ) );
- QGridLayout *l0 = new QGridLayout(this, 6, 2, 10, 10);
+ QGridLayout *l0 = new TQGridLayout(this, 6, 2, 10, 10);
l0->setColStretch(1, 1);
l0->setRowStretch(5, 1);
l0->addWidget(m_namelabel, 0, 0);
@@ -61,7 +61,7 @@ ConfGeneral::ConfGeneral(QWidget *parent, const char *name)
l0->addWidget(m_company, 1, 1);
l0->addWidget(m_number, 2, 1);
l0->addMultiCellWidget( sep, 3, 3, 0, 1 );
- QHBoxLayout *l1 = new QHBoxLayout( this, 0, 10 );
+ TQHBoxLayout *l1 = new TQHBoxLayout( this, 0, 10 );
l0->addMultiCellLayout( l1, 4, 4, 0, 1 );
l1->addWidget( m_replace_int_char );
l1->addWidget( m_replace_int_char_val );
diff --git a/kdeprint/kdeprintfax/confgeneral.h b/kdeprint/kdeprintfax/confgeneral.h
index 5f88106d8..46c54c2a5 100644
--- a/kdeprint/kdeprintfax/confgeneral.h
+++ b/kdeprint/kdeprintfax/confgeneral.h
@@ -21,7 +21,7 @@
#ifndef CONFGENERAL_H
#define CONFGENERAL_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QLineEdit;
class QCheckBox;
@@ -29,15 +29,15 @@ class QCheckBox;
class ConfGeneral : public QWidget
{
public:
- ConfGeneral(QWidget *parent = 0, const char *name = 0);
+ ConfGeneral(TQWidget *parent = 0, const char *name = 0);
void load();
void save();
private:
QLineEdit *m_name, *m_company, *m_number;
- QCheckBox *m_replace_int_char;
- QLineEdit *m_replace_int_char_val;
+ TQCheckBox *m_replace_int_char;
+ TQLineEdit *m_replace_int_char_val;
};
#endif
diff --git a/kdeprint/kdeprintfax/configdlg.cpp b/kdeprint/kdeprintfax/configdlg.cpp
index 669d8c200..3ede8cab7 100644
--- a/kdeprint/kdeprintfax/configdlg.cpp
+++ b/kdeprint/kdeprintfax/configdlg.cpp
@@ -24,11 +24,11 @@
#include "confsystem.h"
#include "conffilters.h"
-#include <qvbox.h>
+#include <tqvbox.h>
#include <klocale.h>
#include <kiconloader.h>
-ConfigDlg::ConfigDlg(QWidget *parent, const char *name)
+ConfigDlg::ConfigDlg(TQWidget *parent, const char *name)
: KDialogBase(IconList, i18n("Configuration"), Ok|Cancel, Ok, parent, name, true)
{
QVBox *page1 = addVBoxPage(i18n("Personal"), i18n("Personal Settings"), DesktopIcon("kdmconfig"));
@@ -62,7 +62,7 @@ void ConfigDlg::save()
m_filters->save();
}
-bool ConfigDlg::configure(QWidget *parent)
+bool ConfigDlg::configure(TQWidget *parent)
{
ConfigDlg dlg(parent);
dlg.load();
diff --git a/kdeprint/kdeprintfax/configdlg.h b/kdeprint/kdeprintfax/configdlg.h
index f4bba762d..1e312b57b 100644
--- a/kdeprint/kdeprintfax/configdlg.h
+++ b/kdeprint/kdeprintfax/configdlg.h
@@ -31,10 +31,10 @@ class ConfFilters;
class ConfigDlg : public KDialogBase
{
public:
- static bool configure(QWidget *parent = 0);
+ static bool configure(TQWidget *parent = 0);
protected:
- ConfigDlg(QWidget *parent = 0, const char *name = 0);
+ ConfigDlg(TQWidget *parent = 0, const char *name = 0);
void load();
void save();
diff --git a/kdeprint/kdeprintfax/confsystem.cpp b/kdeprint/kdeprintfax/confsystem.cpp
index 02ee7e66d..51ea326c8 100644
--- a/kdeprint/kdeprintfax/confsystem.cpp
+++ b/kdeprint/kdeprintfax/confsystem.cpp
@@ -21,10 +21,10 @@
#include "confsystem.h"
#include "defcmds.h"
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcombobox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -38,43 +38,43 @@
#define MGETTY_ID 2
#define OTHER_ID 3
-ConfSystem::ConfSystem(QWidget *parent, const char *name)
-: QWidget(parent, name)
+ConfSystem::ConfSystem(TQWidget *parent, const char *name)
+: TQWidget(parent, name)
{
- m_system = new QComboBox(this);
+ m_system = new TQComboBox(this);
m_system->insertItem("EFax");
m_system->insertItem("HylaFax");
m_system->insertItem("Mgetty-sendfax");
m_system->insertItem( "Other" );
- m_command = new QLineEdit(this);
- QLabel *syslabel = new QLabel(i18n("F&ax system:"), this);
- QLabel *cmdlabel = new QLabel(i18n("Co&mmand:"), this);
+ m_command = new TQLineEdit(this);
+ QLabel *syslabel = new TQLabel(i18n("F&ax system:"), this);
+ QLabel *cmdlabel = new TQLabel(i18n("Co&mmand:"), this);
syslabel->setBuddy(m_system);
cmdlabel->setBuddy(m_command);
- connect(m_system, SIGNAL(activated(int)), SLOT(slotSystemChanged(int)));
+ connect(m_system, TQT_SIGNAL(activated(int)), TQT_SLOT(slotSystemChanged(int)));
m_current = 0;
m_system->setCurrentItem(m_current);
- QWidget *m_dummy1 = new QWidget(this), *m_dummy2 = new QWidget(this);
- m_server = new QLineEdit(m_dummy1);
- m_device = new QComboBox(m_dummy2);
- QLabel *srvlabel = new QLabel(i18n("Fax &server (if any):"), m_dummy1);
- QLabel *devlabel = new QLabel(i18n("&Fax/Modem device:"), m_dummy2);
+ QWidget *m_dummy1 = new TQWidget(this), *m_dummy2 = new TQWidget(this);
+ m_server = new TQLineEdit(m_dummy1);
+ m_device = new TQComboBox(m_dummy2);
+ QLabel *srvlabel = new TQLabel(i18n("Fax &server (if any):"), m_dummy1);
+ QLabel *devlabel = new TQLabel(i18n("&Fax/Modem device:"), m_dummy2);
srvlabel->setBuddy(m_server);
devlabel->setBuddy(m_device);
m_device->insertItem(i18n("Standard Modem Port"));
for (int i=0; i<10; i++)
m_device->insertItem(i18n("Serial Port #%1").arg(i));
m_device->insertItem( i18n( "Other" ) );
- connect( m_device, SIGNAL( activated( int ) ), SLOT( slotDeviceChanged( int ) ) );
- m_device_edit = new QLineEdit( m_dummy2 );
+ connect( m_device, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotDeviceChanged( int ) ) );
+ m_device_edit = new TQLineEdit( m_dummy2 );
slotDeviceChanged( 0 );
KSeparator *sep = new KSeparator(this);
sep->setMinimumHeight(10);
- QVBoxLayout *l0 = new QVBoxLayout(this, 10, 10);
- QGridLayout *l1 = new QGridLayout(0, 2, 2, 0, 10);
+ QVBoxLayout *l0 = new TQVBoxLayout(this, 10, 10);
+ QGridLayout *l1 = new TQGridLayout(0, 2, 2, 0, 10);
l0->addLayout(l1);
l1->setColStretch(1, 1);
l1->addWidget(syslabel, 0, 0);
@@ -85,10 +85,10 @@ ConfSystem::ConfSystem(QWidget *parent, const char *name)
l0->addWidget(m_dummy1);
l0->addWidget(m_dummy2);
l0->addStretch(1);
- QHBoxLayout *l4 = new QHBoxLayout(m_dummy1, 0, 10);
+ QHBoxLayout *l4 = new TQHBoxLayout(m_dummy1, 0, 10);
l4->addWidget(srvlabel, 0);
l4->addWidget(m_server, 1);
- QGridLayout *l5 = new QGridLayout( m_dummy2, 2, 2, 0, 10 );
+ QGridLayout *l5 = new TQGridLayout( m_dummy2, 2, 2, 0, 10 );
l5->setColStretch( 1, 1 );
l5->addWidget(devlabel, 0, 0);
l5->addWidget(m_device, 0, 1);
@@ -102,7 +102,7 @@ void ConfSystem::load()
m_commands << conf->readPathEntry("EFax", defaultCommand(efax_default_cmd));
m_commands << conf->readPathEntry("HylaFax", defaultCommand(hylafax_default_cmd));
m_commands << conf->readPathEntry("Mgetty", defaultCommand(mgetty_default_cmd));
- m_commands << conf->readPathEntry( "Other", QString::null );
+ m_commands << conf->readPathEntry( "Other", TQString::null );
QString v = conf->readEntry("System", "efax");
if (v == "mgetty") m_current = MGETTY_ID;
else if (v == "hylafax") m_current = HYLAFAX_ID;
@@ -158,10 +158,10 @@ void ConfSystem::save()
}
conf->setGroup("Fax");
if ( m_device->currentItem() != ( m_device->count()-1 ) )
- conf->writeEntry("Device", m_device->currentItem() == 0 ? QString("modem") : QString("ttyS%1").arg(m_device->currentItem()-1));
+ conf->writeEntry("Device", m_device->currentItem() == 0 ? TQString("modem") : TQString("ttyS%1").arg(m_device->currentItem()-1));
else
{
- QString dev = m_device_edit->text();
+ TQString dev = m_device_edit->text();
// strip leading "/dev/"
if ( dev.startsWith( "/dev/" ) )
dev = dev.mid( 5 );
diff --git a/kdeprint/kdeprintfax/confsystem.h b/kdeprint/kdeprintfax/confsystem.h
index 202e5f7a0..4e83d6ff9 100644
--- a/kdeprint/kdeprintfax/confsystem.h
+++ b/kdeprint/kdeprintfax/confsystem.h
@@ -21,8 +21,8 @@
#ifndef CONFSYSTEM_H
#define CONFSYSTEM_H
-#include <qwidget.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
class QLineEdit;
class QComboBox;
@@ -31,7 +31,7 @@ class ConfSystem : public QWidget
{
Q_OBJECT
public:
- ConfSystem(QWidget *parent = 0, const char *name = 0);
+ ConfSystem(TQWidget *parent = 0, const char *name = 0);
void load();
void save();
diff --git a/kdeprint/kdeprintfax/defcmds.cpp b/kdeprint/kdeprintfax/defcmds.cpp
index b9fc8beee..09631b51d 100644
--- a/kdeprint/kdeprintfax/defcmds.cpp
+++ b/kdeprint/kdeprintfax/defcmds.cpp
@@ -19,10 +19,10 @@
#include "defcmds.h"
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kstandarddirs.h>
-QString defaultCommand(const QString& cmd)
+TQString defaultCommand(const TQString& cmd)
{
QString str(cmd);
QRegExp r("%exe_(\\w+)");
diff --git a/kdeprint/kdeprintfax/defcmds.h b/kdeprint/kdeprintfax/defcmds.h
index cf9131e86..f76094709 100644
--- a/kdeprint/kdeprintfax/defcmds.h
+++ b/kdeprint/kdeprintfax/defcmds.h
@@ -21,12 +21,12 @@
#ifndef DEFCMDS_H
#define DEFCMDS_H
-#include <qstring.h>
+#include <tqstring.h>
#define efax_default_cmd "%exe_fax %user_{NAME=\"@@\"} %dev_{DEV=@@} PAGE=%page %from_{FROM=\"@@\"} %res_{?\?-l} send %number %files"
#define hylafax_default_cmd "%exe_sendfax %cover_{?\?-n} %server_h %res_{-m?\?-l} %subject_r %time_a %enterprise_x %comment_c %email_f %from_W %page_s -d %name_{@@@}%number %files"
#define mgetty_default_cmd "%exe_faxspool %user_F %email_f %name_D %time_t %number %files %res_{?\?-n} %cover_{?\?-C -}"
-QString defaultCommand(const QString& cmd);
+TQString defaultCommand(const TQString& cmd);
#endif
diff --git a/kdeprint/kdeprintfax/faxab.cpp b/kdeprint/kdeprintfax/faxab.cpp
index 28ba4e5c8..ebd6b9cb2 100644
--- a/kdeprint/kdeprintfax/faxab.cpp
+++ b/kdeprint/kdeprintfax/faxab.cpp
@@ -20,11 +20,11 @@
#include "faxab.h"
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kpushbutton.h>
#include <klistview.h>
-#include <qheader.h>
+#include <tqheader.h>
#include <klocale.h>
#include <kabc/stdaddressbook.h>
#include <kmessagebox.h>
@@ -34,26 +34,26 @@
#include <kglobal.h>
#include <kconfig.h>
-FaxAB::FaxAB(QWidget *parent, const char *name)
+FaxAB::FaxAB(TQWidget *parent, const char *name)
: KDialog(parent, name, true)
{
m_list = new KListView( this );
m_list->addColumn( i18n( "Name" ) );
m_list->addColumn( i18n( "Fax Number" ) );
m_list->header()->setStretchEnabled( true, 0 );
- QLabel *m_listlabel = new QLabel(i18n("Entries:"), this);
+ QLabel *m_listlabel = new TQLabel(i18n("Entries:"), this);
m_ok = new KPushButton(KStdGuiItem::ok(), this);
QPushButton *m_cancel = new KPushButton(KStdGuiItem::cancel(), this);
QPushButton *m_ab = new KPushButton(KGuiItem(i18n("&Edit Addressbook"), "contents"), this);
- connect(m_ok, SIGNAL(clicked()), SLOT(accept()));
- connect(m_cancel, SIGNAL(clicked()), SLOT(reject()));
- connect(m_ab, SIGNAL(clicked()), SLOT(slotEditAb()));
+ connect(m_ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
+ connect(m_cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
+ connect(m_ab, TQT_SIGNAL(clicked()), TQT_SLOT(slotEditAb()));
m_ok->setDefault(true);
- QVBoxLayout *l0 = new QVBoxLayout(this, 10, 10);
+ QVBoxLayout *l0 = new TQVBoxLayout(this, 10, 10);
l0->addWidget( m_listlabel );
l0->addWidget( m_list );
- QHBoxLayout *l2 = new QHBoxLayout(0, 0, 10);
+ QHBoxLayout *l2 = new TQHBoxLayout(0, 0, 10);
l0->addLayout(l2, 0);
l2->addWidget(m_ab, 0);
l2->addStretch(1);
@@ -62,11 +62,11 @@ FaxAB::FaxAB(QWidget *parent, const char *name)
KConfig *conf = KGlobal::config();
conf->setGroup( "General" );
- QSize defsize( 400, 200 );
+ TQSize defsize( 400, 200 );
resize( conf->readSizeEntry( "ABSize", &defsize ) );
initialize();
- connect(KABC::StdAddressBook::self(), SIGNAL(addressBookChanged(AddressBook*)), SLOT(slotAbChanged(AddressBook*)));
+ connect(KABC::StdAddressBook::self(), TQT_SIGNAL(addressBookChanged(AddressBook*)), TQT_SLOT(slotAbChanged(AddressBook*)));
}
FaxAB::~FaxAB()
@@ -86,7 +86,7 @@ void FaxAB::initialize()
{
KABC::PhoneNumber::List numbers = (*it).phoneNumbers();
KABC::PhoneNumber::List faxNumbers;
- for (QValueList<KABC::PhoneNumber>::Iterator nit=numbers.begin(); nit!=numbers.end(); ++nit)
+ for (TQValueList<KABC::PhoneNumber>::Iterator nit=numbers.begin(); nit!=numbers.end(); ++nit)
{
if (((*nit).type() & KABC::PhoneNumber::Fax) && !(*nit).number().isEmpty())
faxNumbers << ( *nit );
@@ -102,7 +102,7 @@ void FaxAB::initialize()
entry.m_name = ( *it ).formattedName();
else
{
- QString key = ( *it ).familyName();
+ TQString key = ( *it ).familyName();
if ( !( *it ).givenName().isEmpty() )
{
if ( !key.isEmpty() )
@@ -119,9 +119,9 @@ void FaxAB::initialize()
if (m_entries.count() > 0)
{
- for (QMap<QString,FaxABEntry>::ConstIterator it=m_entries.begin(); it!=m_entries.end(); ++it)
+ for (TQMap<TQString,FaxABEntry>::ConstIterator it=m_entries.begin(); it!=m_entries.end(); ++it)
{
- QCheckListItem *item = new QCheckListItem( m_list, it.key(), QCheckListItem::CheckBox );
+ TQCheckListItem *item = new TQCheckListItem( m_list, it.key(), TQCheckListItem::CheckBox );
item->setText( 1, ( *it ).m_number.number() );
item->setText( 2, ( *it ).m_enterprise );
}
@@ -142,7 +142,7 @@ void FaxAB::slotAbChanged(AddressBook*)
initialize();
}
-bool FaxAB::getEntry(QStringList& number, QStringList& name, QStringList& enterprise, QWidget *parent)
+bool FaxAB::getEntry(TQStringList& number, TQStringList& name, TQStringList& enterprise, TQWidget *parent)
{
FaxAB kab(parent);
if (!kab.isValid())
@@ -152,7 +152,7 @@ bool FaxAB::getEntry(QStringList& number, QStringList& name, QStringList& enterp
}
if (kab.exec())
{
- QListViewItemIterator it( kab.m_list, QListViewItemIterator::Checked );
+ TQListViewItemIterator it( kab.m_list, TQListViewItemIterator::Checked );
while ( it.current() )
{
number << it.current()->text( 1 );
@@ -174,18 +174,18 @@ bool FaxAB::getEntry(QStringList& number, QStringList& name, QStringList& enterp
return false;
}
-bool FaxAB::getEntryByNumber(const QString& number, QString& name, QString& enterprise)
+bool FaxAB::getEntryByNumber(const TQString& number, TQString& name, TQString& enterprise)
{
KABC::AddressBook *bk = KABC::StdAddressBook::self();
for (KABC::AddressBook::Iterator it=bk->begin(); it!=bk->end(); ++it)
{
KABC::PhoneNumber::List numbers = (*it).phoneNumbers();
QStringList filteredNumbers;
- for (QValueList<KABC::PhoneNumber>::Iterator nit=numbers.begin(); nit!=numbers.end(); ++nit)
+ for (TQValueList<KABC::PhoneNumber>::Iterator nit=numbers.begin(); nit!=numbers.end(); ++nit)
{
if (((*nit).type() & KABC::PhoneNumber::Fax) )
{
- QString strippedNumber;
+ TQString strippedNumber;
for (uint i = 0; i < (*nit).number().length(); ++i)
if ((*nit).number()[i].isDigit() || ( *nit ).number()[ i ] == '+')
strippedNumber.append((*nit).number()[i]);
diff --git a/kdeprint/kdeprintfax/faxab.h b/kdeprint/kdeprintfax/faxab.h
index c72662055..03c5532fe 100644
--- a/kdeprint/kdeprintfax/faxab.h
+++ b/kdeprint/kdeprintfax/faxab.h
@@ -22,8 +22,8 @@
#define FAXAB_H
#include <kdialog.h>
-#include <qmap.h>
-#include <qstringlist.h>
+#include <tqmap.h>
+#include <tqstringlist.h>
#include <kabc/phonenumber.h>
class KListView;
@@ -34,12 +34,12 @@ class FaxAB : public KDialog
{
Q_OBJECT
public:
- FaxAB(QWidget *parent = 0, const char *name = 0);
+ FaxAB(TQWidget *parent = 0, const char *name = 0);
~FaxAB();
bool isValid();
- static bool getEntry(QStringList& number, QStringList& name, QStringList& enterprise, QWidget *parent = 0);
- static bool getEntryByNumber(const QString& number, QString& name, QString& enterprise);
+ static bool getEntry(TQStringList& number, TQStringList& name, TQStringList& enterprise, TQWidget *parent = 0);
+ static bool getEntryByNumber(const TQString& number, TQString& name, TQString& enterprise);
protected slots:
void slotEditAb();
@@ -51,14 +51,14 @@ protected:
private:
struct FaxABEntry
{
- QString m_name;
+ TQString m_name;
KABC::PhoneNumber m_number;
- QString m_enterprise;
+ TQString m_enterprise;
};
KListView* m_list;
- QMap<QString,FaxABEntry> m_entries;
- QPushButton* m_ok;
+ TQMap<TQString,FaxABEntry> m_entries;
+ TQPushButton* m_ok;
};
#endif
diff --git a/kdeprint/kdeprintfax/faxctrl.cpp b/kdeprint/kdeprintfax/faxctrl.cpp
index 4cb5f3bc7..bbd8fce59 100644
--- a/kdeprint/kdeprintfax/faxctrl.cpp
+++ b/kdeprint/kdeprintfax/faxctrl.cpp
@@ -23,17 +23,17 @@
#include "defcmds.h"
#include <ktextedit.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <kpushbutton.h>
-#include <qlayout.h>
-#include <qregexp.h>
+#include <tqlayout.h>
+#include <tqregexp.h>
#include <kprinter.h>
-#include <qsimplerichtext.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qvaluestack.h>
-#include <qstylesheet.h>
+#include <tqsimplerichtext.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqvaluestack.h>
+#include <tqstylesheet.h>
#include <kprocess.h>
#include <kglobal.h>
@@ -57,51 +57,51 @@
/** \brief Return a string for the page size.
*
- * @param size the page size, which is actually of type @c QPrinter::PageSize
+ * @param size the page size, which is actually of type @c TQPrinter::PageSize
* @return a pointer to a static string for the name of the page size.
*/
char const* pageSizeText(int size)
{
switch(size)
{
- case QPrinter::A4: return "a4";
- case QPrinter::Legal: return "legal";
- case QPrinter::Letter: return "letter";
+ case TQPrinter::A4: return "a4";
+ case TQPrinter::Legal: return "legal";
+ case TQPrinter::Letter: return "letter";
default: return "letter";
}
}
/** \brief Return the default page size.
*/
-static QString pageSize()
+static TQString pageSize()
{
KConfig *conf = KGlobal::config();
conf->setGroup("Fax");
return conf->readEntry("Page", pageSizeText(KGlobal::locale()->pageSize()));
}
-static QString stripNumber( const QString& s )
+static TQString stripNumber( const TQString& s )
{
KConfig *conf = KGlobal::config();
conf->setGroup( "Personal" );
// removes any non-numeric character, except ('+','*','#') (hope it's supported by faxing tools)
- QString strip_s = s;
- strip_s.replace( QRegExp( "[^\\d+*#]" ), "" );
+ TQString strip_s = s;
+ strip_s.replace( TQRegExp( "[^\\d+*#]" ), "" );
if ( strip_s.find( '+' ) != -1 && conf->readBoolEntry( "ReplaceIntChar", false ) )
strip_s.replace( "+", conf->readEntry( "ReplaceIntCharVal" ) );
return strip_s;
}
-static QString tagList( int n, ... )
+static TQString tagList( int n, ... )
{
- QString t;
+ TQString t;
va_list ap;
va_start( ap, n );
for ( int i=0; i<n; i++ )
{
- QString tag = va_arg( ap, const char* );
+ TQString tag = va_arg( ap, const char* );
tag.append( "(_(\\w|\\{[^\\}]*\\}))?" );
if ( t.isEmpty() )
t = tag;
@@ -130,9 +130,9 @@ static QString tagList( int n, ... )
* @param value the Boolean value to control the processing
* @return the new value of the tag
*/
-static QString processTag( const QString& match, bool value)
+static TQString processTag( const TQString& match, bool value)
{
- QString v;
+ TQString v;
int p = match.find( '_' );
if ( p != -1 && match[ p+1 ] == '{' )
{
@@ -159,9 +159,9 @@ static QString processTag( const QString& match, bool value)
return v;
}
-static QString processTag( const QString& match, const QString& value )
+static TQString processTag( const TQString& match, const TQString& value )
{
- QString v;
+ TQString v;
int p = match.find( '_' );
if ( p != -1 )
{
@@ -183,25 +183,25 @@ static QString processTag( const QString& match, const QString& value )
return v;
}
-static bool isTag( const QString& m, const QString& t )
+static bool isTag( const TQString& m, const TQString& t )
{
return ( m == t || m.startsWith( t+"_" ) );
}
-static QString replaceTags( const QString& s, const QString& tags, KdeprintFax *fax = NULL, const KdeprintFax::FaxItem& item = KdeprintFax::FaxItem() )
+static TQString replaceTags( const TQString& s, const TQString& tags, KdeprintFax *fax = NULL, const KdeprintFax::FaxItem& item = KdeprintFax::FaxItem() )
{
// unquote variables (they will be replaced with quoted values later)
- QValueStack<bool> stack;
+ TQValueStack<bool> stack;
KConfig *conf = KGlobal::config();
- QString cmd = s;
+ TQString cmd = s;
bool issinglequote=false;
bool isdoublequote=false;
- QRegExp re_noquote("(\\$\\(|\\)|\\(|\"|'|\\\\|`|"+tags+")");
- QRegExp re_singlequote("('|"+tags+")");
- QRegExp re_doublequote("(\\$\\(|\"|\\\\|`|"+tags+")");
+ TQRegExp re_noquote("(\\$\\(|\\)|\\(|\"|'|\\\\|`|"+tags+")");
+ TQRegExp re_singlequote("('|"+tags+")");
+ TQRegExp re_doublequote("(\\$\\(|\"|\\\\|`|"+tags+")");
for ( int i = re_noquote.search(cmd);
i != -1;
i = (issinglequote?re_singlequote.search(cmd,i)
@@ -245,7 +245,7 @@ static QString replaceTags( const QString& s, const QString& tags, KdeprintFax *
{
// Replace all `...` with safer $(...)
cmd.replace (i, 1, "$(");
- QRegExp re_backticks("(`|\\\\`|\\\\\\\\|\\\\\\$)");
+ TQRegExp re_backticks("(`|\\\\`|\\\\\\\\|\\\\\\$)");
for ( int i2=re_backticks.search(cmd,i+2);
i2!=-1;
i2=re_backticks.search(cmd,i2)
@@ -266,7 +266,7 @@ static QString replaceTags( const QString& s, const QString& tags, KdeprintFax *
}
else
{
- QString match, v;
+ TQString match, v;
// get match
if (issinglequote)
@@ -291,7 +291,7 @@ static QString replaceTags( const QString& s, const QString& tags, KdeprintFax *
if (v.isEmpty())
v = getenv("FAXSERVER");
if (v.isEmpty())
- v = QString::fromLatin1("localhost");
+ v = TQString::fromLatin1("localhost");
v = processTag( match, v );
}
else if (isTag( match, "%page" ))
@@ -351,15 +351,15 @@ static QString replaceTags( const QString& s, const QString& tags, KdeprintFax *
return cmd;
}
-FaxCtrl::FaxCtrl(QWidget *parent, const char *name)
-: QObject(parent, name)
+FaxCtrl::FaxCtrl(TQWidget *parent, const char *name)
+: TQObject(parent, name)
{
m_process = new KProcess();
m_process->setUseShell(true);
- connect(m_process, SIGNAL(receivedStdout(KProcess*,char*,int)), SLOT(slotReceivedStdout(KProcess*,char*,int)));
- connect(m_process, SIGNAL(receivedStderr(KProcess*,char*,int)), SLOT(slotReceivedStdout(KProcess*,char*,int)));
- connect(m_process, SIGNAL(processExited(KProcess*)), SLOT(slotProcessExited(KProcess*)));
- connect(this, SIGNAL(faxSent(bool)), SLOT(cleanTempFiles()));
+ connect(m_process, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), TQT_SLOT(slotReceivedStdout(KProcess*,char*,int)));
+ connect(m_process, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), TQT_SLOT(slotReceivedStdout(KProcess*,char*,int)));
+ connect(m_process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotProcessExited(KProcess*)));
+ connect(this, TQT_SIGNAL(faxSent(bool)), TQT_SLOT(cleanTempFiles()));
m_logview = 0;
}
@@ -378,7 +378,7 @@ bool FaxCtrl::send(KdeprintFax *f)
// replace tags common to all fax "operations"
m_command = replaceTags( m_command, tagList( 11, "%dev", "%server", "%page", "%res", "%user", "%from", "%email", "%comment", "%time", "%subject", "%cover" ), f );
- m_log = QString::null;
+ m_log = TQString::null;
m_filteredfiles.clear();
cleanTempFiles();
m_files = f->files();
@@ -394,7 +394,7 @@ void FaxCtrl::slotReceivedStdout(KProcess*, char *buffer, int len)
{
QCString str(buffer, len);
kdDebug() << "Received stdout: " << str << endl;
- addLog(QString(str));
+ addLog(TQString(str));
}
void FaxCtrl::slotProcessExited(KProcess*)
@@ -424,18 +424,18 @@ void FaxCtrl::slotProcessExited(KProcess*)
}
}
-QString FaxCtrl::faxCommand()
+TQString FaxCtrl::faxCommand()
{
KConfig *conf = KGlobal::config();
conf->setGroup("System");
QString sys = conf->readPathEntry("System", "efax");
- QString cmd;
+ TQString cmd;
if (sys == "hylafax")
cmd = conf->readPathEntry("HylaFax", hylafax_default_cmd);
else if (sys == "mgetty")
cmd = conf->readPathEntry("Mgetty", mgetty_default_cmd);
else if ( sys == "other" )
- cmd = conf->readPathEntry( "Other", QString::null );
+ cmd = conf->readPathEntry( "Other", TQString::null );
else
cmd = conf->readPathEntry("EFax", efax_default_cmd);
if (cmd.startsWith("%exe_"))
@@ -449,7 +449,7 @@ void FaxCtrl::sendFax()
{
// replace %files tag
QString filestr;
- for (QStringList::ConstIterator it=m_filteredfiles.begin(); it!=m_filteredfiles.end(); ++it)
+ for (TQStringList::ConstIterator it=m_filteredfiles.begin(); it!=m_filteredfiles.end(); ++it)
filestr += (quote(*it)+" ");
m_command.replace("%files", filestr);
}
@@ -461,7 +461,7 @@ void FaxCtrl::sendFax()
addLogTitle( i18n( "Sending fax to %1 (%2)" ).arg( item.number ).arg( item.name ) );
- QString cmd = replaceTags( m_command, tagList( 4, "%number", "%name", "%enterprise", "%rawnumber" ), NULL, item );
+ TQString cmd = replaceTags( m_command, tagList( 4, "%number", "%name", "%enterprise", "%rawnumber" ), NULL, item );
m_process->clearArguments();
*m_process << cmd;
addLog(i18n("Sending to fax using: %1").arg(cmd));
@@ -491,7 +491,7 @@ void FaxCtrl::filter()
m_tempfiles.append(tmp);
m_process->clearArguments();
*m_process << locate("data","kdeprintfax/anytops") << "-m" << KProcess::quote(locate("data","kdeprintfax/faxfilters"))
- << QString::fromLatin1("--mime=%1").arg(mimeType)
+ << TQString::fromLatin1("--mime=%1").arg(mimeType)
<< "-p" << pageSize()
<< KProcess::quote(m_files[0]) << KProcess::quote(tmp);
if (!m_process->start(KProcess::NotifyOnExit, KProcess::AllOutput))
@@ -514,31 +514,31 @@ bool FaxCtrl::abort()
return false;
}
-void FaxCtrl::viewLog(QWidget *)
+void FaxCtrl::viewLog(TQWidget *)
{
if (!m_logview)
{
- QWidget *topView = new QWidget(0, "LogView", WType_TopLevel|WStyle_DialogBorder|WDestructiveClose);
+ QWidget *topView = new TQWidget(0, "LogView", WType_TopLevel|WStyle_DialogBorder|WDestructiveClose);
m_logview = new KTextEdit(topView);
m_logview->setTextFormat( Qt::LogText );
- m_logview->setWordWrap( QTextEdit::WidgetWidth );
+ m_logview->setWordWrap( TQTextEdit::WidgetWidth );
m_logview->setPaper( Qt::white );
//m_logview->setReadOnly(true);
- //m_logview->setWordWrap(QTextEdit::NoWrap);
+ //m_logview->setWordWrap(TQTextEdit::NoWrap);
QPushButton *m_clear = new KPushButton(KStdGuiItem::clear(), topView);
QPushButton *m_close = new KPushButton(KStdGuiItem::close(), topView);
- QPushButton *m_print = new KPushButton( KStdGuiItem::print(), topView );
- QPushButton *m_save = new KPushButton( KStdGuiItem::saveAs(), topView );
+ TQPushButton *m_print = new KPushButton( KStdGuiItem::print(), topView );
+ TQPushButton *m_save = new KPushButton( KStdGuiItem::saveAs(), topView );
m_close->setDefault(true);
- connect(m_clear, SIGNAL(clicked()), SLOT(slotClearLog()));
- connect(m_close, SIGNAL(clicked()), SLOT(slotCloseLog()));
- connect(m_logview, SIGNAL(destroyed()), SLOT(slotCloseLog()));
- connect( m_print, SIGNAL( clicked() ), SLOT( slotPrintLog() ) );
- connect( m_save, SIGNAL( clicked() ), SLOT( slotSaveLog() ) );
+ connect(m_clear, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearLog()));
+ connect(m_close, TQT_SIGNAL(clicked()), TQT_SLOT(slotCloseLog()));
+ connect(m_logview, TQT_SIGNAL(destroyed()), TQT_SLOT(slotCloseLog()));
+ connect( m_print, TQT_SIGNAL( clicked() ), TQT_SLOT( slotPrintLog() ) );
+ connect( m_save, TQT_SIGNAL( clicked() ), TQT_SLOT( slotSaveLog() ) );
- QVBoxLayout *l0 = new QVBoxLayout(topView, 10, 10);
+ QVBoxLayout *l0 = new TQVBoxLayout(topView, 10, 10);
l0->addWidget(m_logview);
- QHBoxLayout *l1 = new QHBoxLayout(0, 0, 10);
+ QHBoxLayout *l1 = new TQHBoxLayout(0, 0, 10);
l0->addLayout(l1);
l1->addStretch(1);
l1->addWidget( m_save );
@@ -557,16 +557,16 @@ void FaxCtrl::viewLog(QWidget *)
}
}
-void FaxCtrl::addLogTitle( const QString& s )
+void FaxCtrl::addLogTitle( const TQString& s )
{
- QString t( s );
+ TQString t( s );
t.prepend( '\n' ).append( '\n' );
addLog( t, true );
}
-void FaxCtrl::addLog(const QString& s, bool isTitle)
+void FaxCtrl::addLog(const TQString& s, bool isTitle)
{
- QString t = QStyleSheet::escape(s);
+ TQString t = TQStyleSheet::escape(s);
if ( isTitle )
t.prepend( "<font color=red><b>" ).append( "</b></font>" );
m_log.append( t + '\n' );
@@ -574,7 +574,7 @@ void FaxCtrl::addLog(const QString& s, bool isTitle)
m_logview->append(t);
}
-QString FaxCtrl::faxSystem()
+TQString FaxCtrl::faxSystem()
{
KConfig *conf = KGlobal::config();
conf->setGroup("System");
@@ -585,14 +585,14 @@ QString FaxCtrl::faxSystem()
void FaxCtrl::cleanTempFiles()
{
- for (QStringList::ConstIterator it=m_tempfiles.begin(); it!=m_tempfiles.end(); ++it)
- QFile::remove(*it);
+ for (TQStringList::ConstIterator it=m_tempfiles.begin(); it!=m_tempfiles.end(); ++it)
+ TQFile::remove(*it);
m_tempfiles.clear();
}
void FaxCtrl::slotClearLog()
{
- m_log = QString::null;
+ m_log = TQString::null;
if (m_logview)
m_logview->clear();
}
@@ -604,7 +604,7 @@ void FaxCtrl::slotCloseLog()
{
QTextEdit *view = m_logview;
m_logview = 0;
- if (obj && obj->inherits("QPushButton"))
+ if (obj && obj->inherits("TQPushButton"))
delete view->parentWidget();
kdDebug() << "slotClose()" << endl;
}
@@ -619,17 +619,17 @@ void FaxCtrl::slotPrintLog()
printer.setDocFileName( "faxlog" );
if ( printer.setup( m_logview->topLevelWidget(), i18n( "Fax Log" ) ) )
{
- QPainter painter( &printer );
- QPaintDeviceMetrics metric( &printer );
- QRect body( 0, 0, metric.width(), metric.height() ), view( body );
- //QString txt = m_logview->text();
- QString txt = m_log;
+ TQPainter painter( &printer );
+ TQPaintDeviceMetrics metric( &printer );
+ TQRect body( 0, 0, metric.width(), metric.height() ), view( body );
+ //TQString txt = m_logview->text();
+ TQString txt = m_log;
txt.replace( '\n', "<br>" );
txt.prepend( "<h2>" + i18n( "KDEPrint Fax Tool Log" ) + "</h2>" );
kdDebug() << "Log: " << txt << endl;
- QSimpleRichText richText( txt, m_logview->font() );
+ TQSimpleRichText richText( txt, m_logview->font() );
richText.setWidth( &painter, body.width() );
do
@@ -649,13 +649,13 @@ void FaxCtrl::slotSaveLog()
{
if ( m_logview )
{
- QString filename = KFileDialog::getSaveFileName( QString::null, QString::null, m_logview );
+ TQString filename = KFileDialog::getSaveFileName( TQString::null, TQString::null, m_logview );
if ( !filename.isEmpty() )
{
- QFile f( filename );
+ TQFile f( filename );
if ( f.open( IO_WriteOnly ) )
{
- QTextStream t( &f );
+ TQTextStream t( &f );
t << i18n( "KDEPrint Fax Tool Log" ) << endl;
t << m_logview->text() << endl;
f.close();
diff --git a/kdeprint/kdeprintfax/faxctrl.h b/kdeprint/kdeprintfax/faxctrl.h
index d3d8086a9..0b8ed1de0 100644
--- a/kdeprint/kdeprintfax/faxctrl.h
+++ b/kdeprint/kdeprintfax/faxctrl.h
@@ -21,9 +21,9 @@
#ifndef FAXCTRL_H
#define FAXCTRL_H
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include "kdeprintfax.h"
@@ -34,17 +34,17 @@ class FaxCtrl : public QObject
{
Q_OBJECT
public:
- FaxCtrl(QWidget *parent = 0, const char *name = 0);
+ FaxCtrl(TQWidget *parent = 0, const char *name = 0);
~FaxCtrl();
bool send(KdeprintFax *f);
bool abort();
- void viewLog(QWidget *parent = 0);
- QString faxSystem();
- QString faxCommand();
+ void viewLog(TQWidget *parent = 0);
+ TQString faxSystem();
+ TQString faxCommand();
signals:
- void message(const QString&);
+ void message(const TQString&);
void faxSent(bool);
protected slots:
@@ -59,8 +59,8 @@ protected slots:
protected:
void filter();
void sendFax();
- void addLog(const QString&, bool = false);
- void addLogTitle( const QString& );
+ void addLog(const TQString&, bool = false);
+ void addLogTitle( const TQString& );
private:
KProcess *m_process;
diff --git a/kdeprint/kdeprintfax/filterdlg.cpp b/kdeprint/kdeprintfax/filterdlg.cpp
index 563c37a7d..ea9a88ce9 100644
--- a/kdeprint/kdeprintfax/filterdlg.cpp
+++ b/kdeprint/kdeprintfax/filterdlg.cpp
@@ -21,23 +21,23 @@
#include "filterdlg.h"
#include "filterdlg.moc"
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
-FilterDlg::FilterDlg(QWidget *parent, const char *name)
+FilterDlg::FilterDlg(TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Filter Parameters"), Ok|Cancel, Ok)
{
- QWidget *w = new QWidget(this);
+ QWidget *w = new TQWidget(this);
- m_mime = new QLineEdit(w);
- m_cmd = new QLineEdit(w);
- QLabel *m_mimelabel = new QLabel(i18n("MIME type:"), w);
- QLabel *m_cmdlabel = new QLabel(i18n("Command:"), w);
+ m_mime = new TQLineEdit(w);
+ m_cmd = new TQLineEdit(w);
+ QLabel *m_mimelabel = new TQLabel(i18n("MIME type:"), w);
+ QLabel *m_cmdlabel = new TQLabel(i18n("Command:"), w);
- QGridLayout *l0 = new QGridLayout(w, 2, 2, 10, 5);
+ QGridLayout *l0 = new TQGridLayout(w, 2, 2, 10, 5);
l0->setColStretch(1, 1);
l0->addWidget(m_mimelabel, 0, 0);
l0->addWidget(m_cmdlabel, 1, 0);
@@ -47,8 +47,8 @@ FilterDlg::FilterDlg(QWidget *parent, const char *name)
setMainWidget(w);
m_mime->setFocus();
resize(300, 100);
- connect(m_mime, SIGNAL(textChanged ( const QString & )),this, SLOT(slotTextFilterChanged()));
- connect(m_cmd, SIGNAL(textChanged ( const QString & )),this, SLOT(slotTextFilterChanged()));
+ connect(m_mime, TQT_SIGNAL(textChanged ( const TQString & )),this, TQT_SLOT(slotTextFilterChanged()));
+ connect(m_cmd, TQT_SIGNAL(textChanged ( const TQString & )),this, TQT_SLOT(slotTextFilterChanged()));
slotTextFilterChanged();
}
@@ -57,7 +57,7 @@ void FilterDlg::slotTextFilterChanged( )
enableButtonOK(!m_mime->text().isEmpty() && !m_cmd->text().isEmpty());
}
-bool FilterDlg::doIt(QWidget *parent, QString *mime, QString *cmd)
+bool FilterDlg::doIt(TQWidget *parent, TQString *mime, TQString *cmd)
{
FilterDlg dlg(parent);
if (mime) dlg.m_mime->setText(*mime);
diff --git a/kdeprint/kdeprintfax/filterdlg.h b/kdeprint/kdeprintfax/filterdlg.h
index f1010a2c6..e080393ae 100644
--- a/kdeprint/kdeprintfax/filterdlg.h
+++ b/kdeprint/kdeprintfax/filterdlg.h
@@ -29,9 +29,9 @@ class FilterDlg : public KDialogBase
{
Q_OBJECT
public:
- FilterDlg(QWidget *parent = 0, const char *name = 0);
+ FilterDlg(TQWidget *parent = 0, const char *name = 0);
- static bool doIt(QWidget *parent = 0, QString* mime = 0, QString *cmd = 0);
+ static bool doIt(TQWidget *parent = 0, TQString* mime = 0, TQString *cmd = 0);
protected slots:
void slotTextFilterChanged();
private:
diff --git a/kdeprint/kdeprintfax/kdeprintfax.cpp b/kdeprint/kdeprintfax/kdeprintfax.cpp
index e10416bef..a5f66992b 100644
--- a/kdeprint/kdeprintfax/kdeprintfax.cpp
+++ b/kdeprint/kdeprintfax/kdeprintfax.cpp
@@ -23,15 +23,15 @@
#include "faxctrl.h"
#include "configdlg.h"
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qtextedit.h>
-#include <qdatetimeedit.h>
-#include <qcombobox.h>
-#include <qtooltip.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqtextedit.h>
+#include <tqdatetimeedit.h>
+#include <tqcombobox.h>
+#include <tqtooltip.h>
#include <kapplication.h>
#include <kstdaction.h>
@@ -40,7 +40,7 @@
#include <kaction.h>
#include <klistbox.h>
#include <klistview.h>
-#include <qheader.h>
+#include <tqheader.h>
#include <klocale.h>
#include <kiconloader.h>
#include <kio/netaccess.h>
@@ -57,29 +57,29 @@
#include <kurldrag.h>
#include <kdebug.h>
-KdeprintFax::KdeprintFax(QWidget *parent, const char *name)
+KdeprintFax::KdeprintFax(TQWidget *parent, const char *name)
: KMainWindow(parent, name)
{
m_faxctrl = new FaxCtrl(this);
m_quitAfterSend = false;
- connect(m_faxctrl, SIGNAL(message(const QString&)), SLOT(slotMessage(const QString&)));
- connect(m_faxctrl, SIGNAL(faxSent(bool)), SLOT(slotFaxSent(bool)));
+ connect(m_faxctrl, TQT_SIGNAL(message(const TQString&)), TQT_SLOT(slotMessage(const TQString&)));
+ connect(m_faxctrl, TQT_SIGNAL(faxSent(bool)), TQT_SLOT(slotFaxSent(bool)));
- QWidget *mainw = new QWidget(this);
+ QWidget *mainw = new TQWidget(this);
setCentralWidget(mainw);
m_files = new KListBox(mainw);
- connect( m_files, SIGNAL( currentChanged( QListBoxItem* ) ), SLOT( slotCurrentChanged() ) );
+ connect( m_files, TQT_SIGNAL( currentChanged( TQListBoxItem* ) ), TQT_SLOT( slotCurrentChanged() ) );
m_upbtn = new KPushButton( mainw );
m_upbtn->setIconSet( SmallIconSet( "up" ) );
- QToolTip::add( m_upbtn, i18n( "Move up" ) );
- connect( m_upbtn, SIGNAL( clicked() ), SLOT( slotMoveUp() ) );
+ TQToolTip::add( m_upbtn, i18n( "Move up" ) );
+ connect( m_upbtn, TQT_SIGNAL( clicked() ), TQT_SLOT( slotMoveUp() ) );
m_upbtn->setEnabled( false );
m_downbtn = new KPushButton( mainw );
m_downbtn->setIconSet( SmallIconSet( "down" ) );
- QToolTip::add( m_downbtn, i18n( "Move down" ) );
- connect( m_downbtn, SIGNAL( clicked() ), SLOT( slotMoveDown() ) );
+ TQToolTip::add( m_downbtn, i18n( "Move down" ) );
+ connect( m_downbtn, TQT_SIGNAL( clicked() ), TQT_SLOT( slotMoveDown() ) );
m_downbtn->setEnabled( false );
- QLabel *m_filelabel = new QLabel(i18n("F&iles:"), mainw);
+ QLabel *m_filelabel = new TQLabel(i18n("F&iles:"), mainw);
m_filelabel->setBuddy(m_files);
KSeparator*m_line = new KSeparator( KSeparator::HLine, mainw);
KSeparator *m_line2 = new KSeparator( KSeparator::HLine, mainw );
@@ -88,54 +88,54 @@ KdeprintFax::KdeprintFax(QWidget *parent, const char *name)
m_numbers->addColumn( i18n("Name") );
m_numbers->addColumn( i18n("Enterprise") );
m_numbers->header()->setStretchEnabled( true );
- m_numbers->setSelectionMode( QListView::Extended );
- connect( m_numbers, SIGNAL( selectionChanged() ), SLOT( slotFaxSelectionChanged() ) );
- connect( m_numbers, SIGNAL( executed( QListViewItem* ) ), SLOT( slotFaxExecuted( QListViewItem* ) ) );
+ m_numbers->setSelectionMode( TQListView::Extended );
+ connect( m_numbers, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotFaxSelectionChanged() ) );
+ connect( m_numbers, TQT_SIGNAL( executed( TQListViewItem* ) ), TQT_SLOT( slotFaxExecuted( TQListViewItem* ) ) );
m_newbtn = new KPushButton( mainw );
m_newbtn->setPixmap( SmallIcon( "edit" ) );
- QToolTip::add( m_newbtn, i18n( "Add fax number" ) );
- connect( m_newbtn, SIGNAL( clicked() ), SLOT( slotFaxAdd() ) );
+ TQToolTip::add( m_newbtn, i18n( "Add fax number" ) );
+ connect( m_newbtn, TQT_SIGNAL( clicked() ), TQT_SLOT( slotFaxAdd() ) );
m_abbtn = new KPushButton( mainw );
m_abbtn->setPixmap( SmallIcon( "kaddressbook" ) );
- QToolTip::add( m_abbtn, i18n( "Add fax number from addressbook" ) );
- connect( m_abbtn, SIGNAL( clicked() ), SLOT( slotKab() ) );
+ TQToolTip::add( m_abbtn, i18n( "Add fax number from addressbook" ) );
+ connect( m_abbtn, TQT_SIGNAL( clicked() ), TQT_SLOT( slotKab() ) );
m_delbtn = new KPushButton( mainw );
m_delbtn->setIconSet( SmallIconSet( "edittrash" ) );
- QToolTip::add( m_delbtn, i18n( "Remove fax number" ) );
+ TQToolTip::add( m_delbtn, i18n( "Remove fax number" ) );
m_delbtn->setEnabled( false );
- connect( m_delbtn, SIGNAL( clicked() ), SLOT( slotFaxRemove() ) );
- QLabel *m_commentlabel = new QLabel(i18n("&Comment:"), mainw);
+ connect( m_delbtn, TQT_SIGNAL( clicked() ), TQT_SLOT( slotFaxRemove() ) );
+ QLabel *m_commentlabel = new TQLabel(i18n("&Comment:"), mainw);
KSystemTray *m_tray = new KSystemTray(this);
m_tray->setPixmap(SmallIcon("kdeprintfax"));
m_tray->show();
- m_comment = new QTextEdit(mainw);
+ m_comment = new TQTextEdit(mainw);
// I don't understand why anyone would want to turn off word wrap. It makes
// the text hard to read and write. It provides no benefit. Therefore,
// I commented out the next line. [Ray Lischner]
-// m_comment->setWordWrap(QTextEdit::NoWrap);
+// m_comment->setWordWrap(TQTextEdit::NoWrap);
m_comment->setLineWidth(1);
m_commentlabel->setBuddy(m_comment);
- QLabel *m_timelabel = new QLabel(i18n("Sched&ule:"), mainw);
- m_timecombo = new QComboBox(mainw);
+ QLabel *m_timelabel = new TQLabel(i18n("Sched&ule:"), mainw);
+ m_timecombo = new TQComboBox(mainw);
m_timecombo->insertItem(i18n("Now"));
m_timecombo->insertItem(i18n("At Specified Time"));
m_timecombo->setCurrentItem(0);
m_timelabel->setBuddy(m_timecombo);
m_time = new QTimeEdit(mainw);
- m_time->setTime(QTime::currentTime());
+ m_time->setTime(TQTime::currentTime());
m_time->setEnabled(false);
- connect(m_timecombo, SIGNAL(activated(int)), SLOT(slotTimeComboActivated(int)));
- m_cover = new QCheckBox(i18n("Send Co&ver Sheet"), mainw);
- connect(m_cover, SIGNAL(toggled(bool)), SLOT(slotCoverToggled(bool)));
- m_subject = new QLineEdit( mainw );
- QLabel *m_subjectlabel = new QLabel( i18n( "Su&bject:" ), mainw );
+ connect(m_timecombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotTimeComboActivated(int)));
+ m_cover = new TQCheckBox(i18n("Send Co&ver Sheet"), mainw);
+ connect(m_cover, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotCoverToggled(bool)));
+ m_subject = new TQLineEdit( mainw );
+ TQLabel *m_subjectlabel = new TQLabel( i18n( "Su&bject:" ), mainw );
m_subjectlabel->setBuddy( m_subject );
- QGridLayout *l0 = new QGridLayout(mainw, 10, 2, 10, 5);
+ QGridLayout *l0 = new TQGridLayout(mainw, 10, 2, 10, 5);
l0->setColStretch(1,1);
l0->addWidget(m_filelabel, 0, 0, Qt::AlignLeft|Qt::AlignTop);
- QHBoxLayout *l2 = new QHBoxLayout( 0, 0, 10 );
- QVBoxLayout *l3 = new QVBoxLayout( 0, 0, 5 );
+ TQHBoxLayout *l2 = new TQHBoxLayout( 0, 0, 10 );
+ TQVBoxLayout *l3 = new TQVBoxLayout( 0, 0, 5 );
l0->addLayout( l2, 0, 1 );
l2->addWidget( m_files );
l2->addLayout( l3 );
@@ -145,8 +145,8 @@ KdeprintFax::KdeprintFax(QWidget *parent, const char *name)
l3->addStretch( 1 );
l0->addMultiCellWidget(m_line, 1, 1, 0, 1);
l0->addRowSpacing(1, 10);
- QHBoxLayout *l5 = new QHBoxLayout( 0, 0, 10 );
- QVBoxLayout *l6 = new QVBoxLayout( 0, 0, 5 );
+ TQHBoxLayout *l5 = new TQHBoxLayout( 0, 0, 10 );
+ TQVBoxLayout *l6 = new TQVBoxLayout( 0, 0, 5 );
l0->addMultiCellLayout( l5, 2, 4, 0, 1 );
l5->addWidget( m_numbers );
l5->addLayout( l6 );
@@ -162,7 +162,7 @@ KdeprintFax::KdeprintFax(QWidget *parent, const char *name)
l0->addWidget(m_commentlabel, 8, 0, Qt::AlignTop|Qt::AlignLeft);
l0->addWidget(m_comment, 8, 1);
l0->addWidget(m_timelabel, 9, 0);
- QHBoxLayout *l1 = new QHBoxLayout(0, 0, 5);
+ QHBoxLayout *l1 = new TQHBoxLayout(0, 0, 5);
l0->addLayout(l1, 9, 1);
l1->addWidget(m_timecombo, 1);
l1->addWidget(m_time, 0);
@@ -188,23 +188,23 @@ KdeprintFax::~KdeprintFax()
void KdeprintFax::initActions()
{
- new KAction(i18n("&Add File..."), "filenew", Qt::Key_Insert, this, SLOT(slotAdd()), actionCollection(), "file_add");
- new KAction(i18n("&Remove File"), "remove", Qt::Key_Delete, this, SLOT(slotRemove()), actionCollection(), "file_remove");
- new KAction(i18n("&Send Fax"), "connect_established", Qt::Key_Return, this, SLOT(slotFax()), actionCollection(), "fax_send");
- new KAction(i18n("A&bort"), "stop", Qt::Key_Escape, this, SLOT(slotAbort()), actionCollection(), "fax_stop");
- new KAction(i18n("A&ddress Book"), "kaddressbook", Qt::CTRL+Qt::Key_A, this, SLOT(slotKab()), actionCollection(), "fax_ab");
- new KAction(i18n("V&iew Log"), "contents", Qt::CTRL+Qt::Key_L, this, SLOT(slotViewLog()), actionCollection(), "fax_log");
- new KAction(i18n("Vi&ew File"), "filefind", Qt::CTRL+Qt::Key_O, this, SLOT(slotView()), actionCollection(), "file_view");
- new KAction( i18n( "&New Fax Recipient..." ), "edit", Qt::CTRL+Qt::Key_N, this, SLOT( slotFaxAdd() ), actionCollection(), "fax_add" );
+ new KAction(i18n("&Add File..."), "filenew", Qt::Key_Insert, this, TQT_SLOT(slotAdd()), actionCollection(), "file_add");
+ new KAction(i18n("&Remove File"), "remove", Qt::Key_Delete, this, TQT_SLOT(slotRemove()), actionCollection(), "file_remove");
+ new KAction(i18n("&Send Fax"), "connect_established", Qt::Key_Return, this, TQT_SLOT(slotFax()), actionCollection(), "fax_send");
+ new KAction(i18n("A&bort"), "stop", Qt::Key_Escape, this, TQT_SLOT(slotAbort()), actionCollection(), "fax_stop");
+ new KAction(i18n("A&ddress Book"), "kaddressbook", Qt::CTRL+Qt::Key_A, this, TQT_SLOT(slotKab()), actionCollection(), "fax_ab");
+ new KAction(i18n("V&iew Log"), "contents", Qt::CTRL+Qt::Key_L, this, TQT_SLOT(slotViewLog()), actionCollection(), "fax_log");
+ new KAction(i18n("Vi&ew File"), "filefind", Qt::CTRL+Qt::Key_O, this, TQT_SLOT(slotView()), actionCollection(), "file_view");
+ new KAction( i18n( "&New Fax Recipient..." ), "edit", Qt::CTRL+Qt::Key_N, this, TQT_SLOT( slotFaxAdd() ), actionCollection(), "fax_add" );
- KStdAction::quit(this, SLOT(slotQuit()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(slotQuit()), actionCollection());
setStandardToolBarMenuEnabled(true);
- KStdAction::showMenubar(this, SLOT(slotToggleMenuBar()), actionCollection());
- KStdAction::preferences(this, SLOT(slotConfigure()), actionCollection());
- KStdAction::keyBindings(guiFactory(), SLOT(configureShortcuts()),
+ KStdAction::showMenubar(this, TQT_SLOT(slotToggleMenuBar()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(slotConfigure()), actionCollection());
+ KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
actionCollection());
actionCollection()->action("fax_stop")->setEnabled(false);
- connect(actionCollection()->action("file_remove"), SIGNAL(enabled(bool)), actionCollection()->action("file_view"), SLOT(setEnabled(bool)));
+ connect(actionCollection()->action("file_remove"), TQT_SIGNAL(enabled(bool)), actionCollection()->action("file_view"), TQT_SLOT(setEnabled(bool)));
actionCollection()->action("file_remove")->setEnabled(false);
createGUI();
@@ -218,7 +218,7 @@ void KdeprintFax::slotToggleMenuBar()
void KdeprintFax::slotAdd()
{
- KURL url = KFileDialog::getOpenURL(QString::null, QString::null, this);
+ KURL url = KFileDialog::getOpenURL(TQString::null, TQString::null, this);
if (!url.isEmpty())
addURL(url);
}
@@ -267,7 +267,7 @@ void KdeprintFax::slotKab()
if (FaxAB::getEntry(number, name, enterprise, this))
{
for ( unsigned int i = 0; i<number.count(); i++ )
- new QListViewItem( m_numbers, number[ i ], name[ i ], enterprise[ i ] );
+ new TQListViewItem( m_numbers, number[ i ], name[ i ], enterprise[ i ] );
}
}
@@ -284,11 +284,11 @@ void KdeprintFax::addURL(KURL url)
KMessageBox::error(this, i18n("Unable to retrieve %1.").arg(url.prettyURL()));
}
-void KdeprintFax::setPhone(QString phone)
+void KdeprintFax::setPhone(TQString phone)
{
- QString name, enterprise;
+ TQString name, enterprise;
FaxAB::getEntryByNumber(phone, name, enterprise);
- new QListViewItem( m_numbers, phone, name, enterprise );
+ new TQListViewItem( m_numbers, phone, name, enterprise );
}
void KdeprintFax::sendFax( bool quitAfterSend )
@@ -297,12 +297,12 @@ void KdeprintFax::sendFax( bool quitAfterSend )
m_quitAfterSend = quitAfterSend;
}
-void KdeprintFax::dragEnterEvent(QDragEnterEvent *e)
+void KdeprintFax::dragEnterEvent(TQDragEnterEvent *e)
{
e->accept(KURLDrag::canDecode(e));
}
-void KdeprintFax::dropEvent(QDropEvent *e)
+void KdeprintFax::dropEvent(TQDropEvent *e)
{
KURL::List l;
if (KURLDrag::decode(e, l))
@@ -312,7 +312,7 @@ void KdeprintFax::dropEvent(QDropEvent *e)
}
}
-QStringList KdeprintFax::files()
+TQStringList KdeprintFax::files()
{
QStringList l;
for (uint i=0; i<m_files->count(); i++)
@@ -327,9 +327,9 @@ int KdeprintFax::faxCount() const
}
/*
-QListViewItem* KdeprintFax::faxItem( int i ) const
+TQListViewItem* KdeprintFax::faxItem( int i ) const
{
- QListViewItem *item = m_numbers->firstChild();
+ TQListViewItem *item = m_numbers->firstChild();
while ( i && item && item->nextSibling() )
{
item = item->nextSibling();
@@ -340,29 +340,29 @@ QListViewItem* KdeprintFax::faxItem( int i ) const
return item;
}
-QString KdeprintFax::number( int i ) const
+TQString KdeprintFax::number( int i ) const
{
- QListViewItem *item = faxItem( i );
- return ( item ? item->text( 0 ) : QString::null );
+ TQListViewItem *item = faxItem( i );
+ return ( item ? item->text( 0 ) : TQString::null );
}
-QString KdeprintFax::name( int i ) const
+TQString KdeprintFax::name( int i ) const
{
- QListViewItem *item = faxItem( i );
- return ( item ? item->text( 1 ) : QString::null );
+ TQListViewItem *item = faxItem( i );
+ return ( item ? item->text( 1 ) : TQString::null );
}
-QString KdeprintFax::enterprise( int i ) const
+TQString KdeprintFax::enterprise( int i ) const
{
- QListViewItem *item = faxItem( i );
- return ( item ? item->text( 2 ) : QString::null );
+ TQListViewItem *item = faxItem( i );
+ return ( item ? item->text( 2 ) : TQString::null );
}
*/
KdeprintFax::FaxItemList KdeprintFax::faxList() const
{
FaxItemList list;
- QListViewItemIterator it( m_numbers );
+ TQListViewItemIterator it( m_numbers );
while ( it.current() )
{
FaxItem item;
@@ -375,7 +375,7 @@ KdeprintFax::FaxItemList KdeprintFax::faxList() const
return list;
}
-QString KdeprintFax::comment() const
+TQString KdeprintFax::comment() const
{
return m_comment->text();
}
@@ -385,12 +385,12 @@ bool KdeprintFax::cover() const
return m_cover->isChecked();
}
-QString KdeprintFax::subject() const
+TQString KdeprintFax::subject() const
{
return m_subject->text();
}
-void KdeprintFax::slotMessage(const QString& msg)
+void KdeprintFax::slotMessage(const TQString& msg)
{
m_msglabel->setText(msg);
}
@@ -407,7 +407,7 @@ void KdeprintFax::slotFaxSent(bool status)
else {
if (!status)
KMessageBox::error(this, i18n("Fax error: see log message for more information."));
- slotMessage(QString::null);
+ slotMessage(TQString::null);
}
}
@@ -429,7 +429,7 @@ void KdeprintFax::updateState()
if ( !m_cover->isEnabled() )
m_cover->setChecked(false);
m_comment->setEnabled(cmd.find("%comment") != -1 && m_cover->isChecked());
- //m_comment->setPaper(m_comment->isEnabled() ? colorGroup().brush(QColorGroup::Base) : colorGroup().brush(QColorGroup::Background));
+ //m_comment->setPaper(m_comment->isEnabled() ? colorGroup().brush(TQColorGroup::Base) : colorGroup().brush(TQColorGroup::Background));
if (!m_comment->isEnabled())
{
m_comment->setText("");
@@ -465,10 +465,10 @@ void KdeprintFax::slotTimeComboActivated(int ID)
m_time->setEnabled(ID == 1);
}
-QString KdeprintFax::time() const
+TQString KdeprintFax::time() const
{
if (!m_time->isEnabled())
- return QString::null;
+ return TQString::null;
return m_time->time().toString("hh:mm");
}
@@ -477,7 +477,7 @@ void KdeprintFax::slotMoveUp()
int index = m_files->currentItem();
if ( index > 0 )
{
- QListBoxItem *item = m_files->item( index );
+ TQListBoxItem *item = m_files->item( index );
m_files->takeItem( item );
m_files->insertItem( item, index-1 );
m_files->setCurrentItem( index-1 );
@@ -489,7 +489,7 @@ void KdeprintFax::slotMoveDown()
int index = m_files->currentItem();
if ( index >= 0 && index < ( int )m_files->count()-1 )
{
- QListBoxItem *item = m_files->item( index );
+ TQListBoxItem *item = m_files->item( index );
m_files->takeItem( item );
m_files->insertItem( item, index+1 );
m_files->setCurrentItem( index+1 );
@@ -514,14 +514,14 @@ void KdeprintFax::slotCurrentChanged()
void KdeprintFax::slotFaxSelectionChanged()
{
- QListViewItemIterator it( m_numbers, QListViewItemIterator::Selected );
+ TQListViewItemIterator it( m_numbers, TQListViewItemIterator::Selected );
m_delbtn->setEnabled( it.current() != NULL );
}
void KdeprintFax::slotFaxRemove()
{
- QListViewItemIterator it( m_numbers, QListViewItemIterator::Selected );
- QPtrList<QListViewItem> items;
+ TQListViewItemIterator it( m_numbers, TQListViewItemIterator::Selected );
+ TQPtrList<TQListViewItem> items;
items.setAutoDelete( true );
while ( it.current() )
{
@@ -535,18 +535,18 @@ void KdeprintFax::slotFaxRemove()
void KdeprintFax::slotFaxAdd()
{
- QString number, name, enterprise;
+ TQString number, name, enterprise;
if ( manualFaxDialog( number, name, enterprise ) )
{
- new QListViewItem( m_numbers, number, name, enterprise );
+ new TQListViewItem( m_numbers, number, name, enterprise );
}
}
-void KdeprintFax::slotFaxExecuted( QListViewItem *item )
+void KdeprintFax::slotFaxExecuted( TQListViewItem *item )
{
if ( item )
{
- QString number = item->text( 0 ), name = item->text( 1 ), enterprise = item->text( 2 );
+ TQString number = item->text( 0 ), name = item->text( 1 ), enterprise = item->text( 2 );
if ( manualFaxDialog( number, name, enterprise ) )
{
item->setText( 0, number );
@@ -556,22 +556,22 @@ void KdeprintFax::slotFaxExecuted( QListViewItem *item )
}
}
-bool KdeprintFax::manualFaxDialog( QString& number, QString& name, QString& enterprise )
+bool KdeprintFax::manualFaxDialog( TQString& number, TQString& name, TQString& enterprise )
{
/* dialog construction */
KDialogBase dlg( this, "manualFaxDialog", true, i18n( "Fax Number" ), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true );
- QWidget *mainw = new QWidget( &dlg );
- QLabel *lab0 = new QLabel( i18n( "Enter recipient fax properties." ), mainw );
- QLabel *lab1 = new QLabel( i18n( "&Number:" ), mainw );
- QLabel *lab2 = new QLabel( i18n( "N&ame:" ), mainw );
- QLabel *lab3 = new QLabel( i18n( "&Enterprise:" ), mainw );
- QLineEdit *edit_number = new QLineEdit( number, mainw );
- QLineEdit *edit_name = new QLineEdit( name, mainw );
- QLineEdit *edit_enterprise = new QLineEdit( enterprise, mainw );
+ TQWidget *mainw = new TQWidget( &dlg );
+ TQLabel *lab0 = new TQLabel( i18n( "Enter recipient fax properties." ), mainw );
+ TQLabel *lab1 = new TQLabel( i18n( "&Number:" ), mainw );
+ TQLabel *lab2 = new TQLabel( i18n( "N&ame:" ), mainw );
+ TQLabel *lab3 = new TQLabel( i18n( "&Enterprise:" ), mainw );
+ TQLineEdit *edit_number = new TQLineEdit( number, mainw );
+ TQLineEdit *edit_name = new TQLineEdit( name, mainw );
+ TQLineEdit *edit_enterprise = new TQLineEdit( enterprise, mainw );
lab1->setBuddy( edit_number );
lab2->setBuddy( edit_name );
lab3->setBuddy( edit_enterprise );
- QGridLayout *l0 = new QGridLayout( mainw, 5, 2, 0, 5 );
+ TQGridLayout *l0 = new TQGridLayout( mainw, 5, 2, 0, 5 );
l0->setColStretch( 1, 1 );
l0->addMultiCellWidget( lab0, 0, 0, 0, 1 );
l0->setRowSpacing( 1, 10 );
diff --git a/kdeprint/kdeprintfax/kdeprintfax.h b/kdeprint/kdeprintfax/kdeprintfax.h
index 795521e82..95f64d443 100644
--- a/kdeprint/kdeprintfax/kdeprintfax.h
+++ b/kdeprint/kdeprintfax/kdeprintfax.h
@@ -42,28 +42,28 @@ class KdeprintFax : public KMainWindow
public:
struct FaxItem
{
- QString number;
- QString name;
- QString enterprise;
+ TQString number;
+ TQString name;
+ TQString enterprise;
};
- typedef QValueList<FaxItem> FaxItemList;
- typedef QValueList<FaxItem>::ConstIterator FaxItemListIterator;
+ typedef TQValueList<FaxItem> FaxItemList;
+ typedef TQValueList<FaxItem>::ConstIterator FaxItemListIterator;
- KdeprintFax(QWidget *parent = 0, const char *name = 0);
+ KdeprintFax(TQWidget *parent = 0, const char *name = 0);
~KdeprintFax();
void addURL(KURL url);
- void setPhone(QString phone);
+ void setPhone(TQString phone);
void sendFax( bool quitAfterSend );
- QStringList files();
+ TQStringList files();
int faxCount() const;
- //QString number( int i = 0 ) const;
- //QString name( int i = 0 ) const;
- //QString enterprise( int i = 0 ) const;
+ //TQString number( int i = 0 ) const;
+ //TQString name( int i = 0 ) const;
+ //TQString enterprise( int i = 0 ) const;
FaxItemList faxList() const;
- QString comment() const;
- QString time() const;
- QString subject() const;
+ TQString comment() const;
+ TQString time() const;
+ TQString subject() const;
bool cover() const;
protected slots:
@@ -73,7 +73,7 @@ protected slots:
void slotRemove();
void slotFax();
void slotAbort();
- void slotMessage(const QString&);
+ void slotMessage(const TQString&);
void slotFaxSent(bool);
void slotViewLog();
void slotConfigure();
@@ -86,16 +86,16 @@ protected slots:
void slotFaxSelectionChanged();
void slotFaxRemove();
void slotFaxAdd();
- void slotFaxExecuted( QListViewItem* );
+ void slotFaxExecuted( TQListViewItem* );
void slotCoverToggled(bool toggle);
protected:
void initActions();
- void dragEnterEvent(QDragEnterEvent*);
- void dropEvent(QDropEvent*);
+ void dragEnterEvent(TQDragEnterEvent*);
+ void dropEvent(TQDropEvent*);
void updateState();
- bool manualFaxDialog( QString& number, QString& name, QString& enterprise );
- //QListViewItem* faxItem( int i = 0 ) const;
+ bool manualFaxDialog( TQString& number, TQString& name, TQString& enterprise );
+ //TQListViewItem* faxItem( int i = 0 ) const;
private:
KListBox *m_files;
@@ -107,8 +107,8 @@ private:
QLabel *m_msglabel;
QTimeEdit *m_time;
QComboBox *m_timecombo;
- QPushButton *m_upbtn, *m_downbtn;
- QPushButton *m_newbtn, *m_abbtn, *m_delbtn;
+ TQPushButton *m_upbtn, *m_downbtn;
+ TQPushButton *m_newbtn, *m_abbtn, *m_delbtn;
bool m_quitAfterSend;
};
diff --git a/kdeprint/kdeprintfax/main.cpp b/kdeprint/kdeprintfax/main.cpp
index a4dd3030f..c1a92fd12 100644
--- a/kdeprint/kdeprintfax/main.cpp
+++ b/kdeprint/kdeprintfax/main.cpp
@@ -20,13 +20,13 @@
#include "kdeprintfax.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <kapplication.h>
-QString debugFlag;
+TQString debugFlag;
int oneShotFlag = false;
static const char description[] =
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
for (int i=0;i<args->count();i++)
w->addURL(args->url(i));
- QString phone = args->getOption( "phone" );
+ TQString phone = args->getOption( "phone" );
if( !phone.isEmpty() ) {
w->setPhone( phone );
}