summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/ui')
-rw-r--r--klinkstatus/src/ui/celltooltip.cpp14
-rw-r--r--klinkstatus/src/ui/celltooltip.h6
-rw-r--r--klinkstatus/src/ui/documentrootdialog.cpp30
-rw-r--r--klinkstatus/src/ui/documentrootdialog.h14
-rw-r--r--klinkstatus/src/ui/klshistorycombo.cpp40
-rw-r--r--klinkstatus/src/ui/klshistorycombo.h6
-rw-r--r--klinkstatus/src/ui/resultssearchbar.cpp76
-rw-r--r--klinkstatus/src/ui/resultssearchbar.h10
-rw-r--r--klinkstatus/src/ui/resultview.cpp18
-rw-r--r--klinkstatus/src/ui/resultview.h34
-rw-r--r--klinkstatus/src/ui/sessionwidget.cpp102
-rw-r--r--klinkstatus/src/ui/sessionwidget.h18
-rw-r--r--klinkstatus/src/ui/settings/configidentificationdialog.cpp6
-rw-r--r--klinkstatus/src/ui/settings/configidentificationdialog.h2
-rw-r--r--klinkstatus/src/ui/tablelinkstatus.cpp166
-rw-r--r--klinkstatus/src/ui/tablelinkstatus.h64
-rw-r--r--klinkstatus/src/ui/tabwidgetsession.cpp54
-rw-r--r--klinkstatus/src/ui/tabwidgetsession.h12
-rw-r--r--klinkstatus/src/ui/treeview.cpp110
-rw-r--r--klinkstatus/src/ui/treeview.h40
20 files changed, 411 insertions, 411 deletions
diff --git a/klinkstatus/src/ui/celltooltip.cpp b/klinkstatus/src/ui/celltooltip.cpp
index b449cbce..b02b7f83 100644
--- a/klinkstatus/src/ui/celltooltip.cpp
+++ b/klinkstatus/src/ui/celltooltip.cpp
@@ -21,19 +21,19 @@
#include "celltooltip.h"
#include "tablelinkstatus.h"
-#include <qscrollview.h>
+#include <tqscrollview.h>
#include <iostream>
using namespace std;
-CellToolTip::CellToolTip ( TableLinkstatus * table, QToolTipGroup * group)
- : QToolTip(table->viewport(), group), table_(table)
+CellToolTip::CellToolTip ( TableLinkstatus * table, TQToolTipGroup * group)
+ : TQToolTip(table->viewport(), group), table_(table)
{}
-void CellToolTip::maybeTip ( const QPoint & p )
+void CellToolTip::maybeTip ( const TQPoint & p )
{
- QPoint cp = table_->viewportToContents(p);
+ TQPoint cp = table_->viewportToContents(p);
int row = table_->rowAt(cp.y());
int col = table_->columnAt(cp.x());
@@ -43,9 +43,9 @@ void CellToolTip::maybeTip ( const QPoint & p )
if(col == 0 || !table_->textFitsInCell(row, col))
{
TableItem* item = table_->myItem(row, col);
- QString tip_string = item->toolTip();
+ TQString tip_string = item->toolTip();
- QRect cr = table_->cellGeometry( row, col );
+ TQRect cr = table_->cellGeometry( row, col );
cr.moveTopLeft( table_->contentsToViewport( cr.topLeft() ) );
tip(cr, tip_string);
diff --git a/klinkstatus/src/ui/celltooltip.h b/klinkstatus/src/ui/celltooltip.h
index 33136ceb..24303adb 100644
--- a/klinkstatus/src/ui/celltooltip.h
+++ b/klinkstatus/src/ui/celltooltip.h
@@ -21,7 +21,7 @@
#ifndef CELLTOOLTIP_H
#define CELLTOOLTIP_H
-#include <qtooltip.h>
+#include <tqtooltip.h>
class TableLinkstatus;
@@ -30,11 +30,11 @@ class CellToolTip: public QToolTip
{
public:
- CellToolTip ( TableLinkstatus * table, QToolTipGroup * group = 0 );
+ CellToolTip ( TableLinkstatus * table, TQToolTipGroup * group = 0 );
protected:
- virtual void maybeTip ( const QPoint & p );
+ virtual void maybeTip ( const TQPoint & p );
private:
diff --git a/klinkstatus/src/ui/documentrootdialog.cpp b/klinkstatus/src/ui/documentrootdialog.cpp
index c2ed3e7d..8c55519e 100644
--- a/klinkstatus/src/ui/documentrootdialog.cpp
+++ b/klinkstatus/src/ui/documentrootdialog.cpp
@@ -23,21 +23,21 @@
#include <klocale.h>
#include <kurl.h>
-#include <qstring.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqstring.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-DocumentRootDialog::DocumentRootDialog(QWidget *parent, QString const& url)
+DocumentRootDialog::DocumentRootDialog(TQWidget *parent, TQString const& url)
: KDialogBase(parent, "DocumentRootDialog", true, "Choose a Document Root",
KDialogBase::Ok, KDialogBase::Ok, true),
m_url(url)
{
- QWidget* page = new QWidget(this);
+ TQWidget* page = new TQWidget(this);
setMainWidget(page);
- QVBoxLayout* topLayout = new QVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* topLayout = new TQVBoxLayout(page, 0, spacingHint());
- QLabel* label = new QLabel(i18n("As you are using a protocol different than HTTP, \nthere is no way to guess where the document root is, \nin order to resolve relative URLs like the ones started with \"/\".\n\nPlease specify one:"), page);
+ TQLabel* label = new TQLabel(i18n("As you are using a protocol different than HTTP, \nthere is no way to guess where the document root is, \nin order to resolve relative URLs like the ones started with \"/\".\n\nPlease specify one:"), page);
topLayout->addWidget(label);
m_urlRequester = new KURLRequester(page);
@@ -53,12 +53,12 @@ DocumentRootDialog::DocumentRootDialog(QWidget *parent, QString const& url)
m_urlRequester->setMode(KFile::Directory);
// enableButtonOK(false);
- connect(m_urlRequester, SIGNAL(textChanged (const QString &)),
- this, SLOT(slotTextChanged (const QString &)));
- connect(m_urlRequester, SIGNAL(returnPressed (const QString &)),
- this, SLOT(slotReturnPressed (const QString &)));
- connect(m_urlRequester, SIGNAL(urlSelected (const QString &)),
- this, SLOT(slotTextChanged (const QString &)));
+ connect(m_urlRequester, TQT_SIGNAL(textChanged (const TQString &)),
+ this, TQT_SLOT(slotTextChanged (const TQString &)));
+ connect(m_urlRequester, TQT_SIGNAL(returnPressed (const TQString &)),
+ this, TQT_SLOT(slotReturnPressed (const TQString &)));
+ connect(m_urlRequester, TQT_SIGNAL(urlSelected (const TQString &)),
+ this, TQT_SLOT(slotTextChanged (const TQString &)));
}
DocumentRootDialog::~DocumentRootDialog()
@@ -66,12 +66,12 @@ DocumentRootDialog::~DocumentRootDialog()
saveDialogSize("klinkstatus", true);
}
-void DocumentRootDialog::slotReturnPressed( const QString & )
+void DocumentRootDialog::slotReturnPressed( const TQString & )
{
slotOk();
}
-void DocumentRootDialog::slotTextChanged( const QString & s)
+void DocumentRootDialog::slotTextChanged( const TQString & s)
{
KURL url(s);
enableButtonOK(!s.isEmpty() && url.isValid());
diff --git a/klinkstatus/src/ui/documentrootdialog.h b/klinkstatus/src/ui/documentrootdialog.h
index 52696727..09657851 100644
--- a/klinkstatus/src/ui/documentrootdialog.h
+++ b/klinkstatus/src/ui/documentrootdialog.h
@@ -31,27 +31,27 @@ class DocumentRootDialog : public KDialogBase
{
Q_OBJECT
public:
- DocumentRootDialog(QWidget *parent, QString const& url);
+ DocumentRootDialog(TQWidget *parent, TQString const& url);
~DocumentRootDialog();
- void setUrl(const QString& theValue) { m_url = theValue; }
- QString url() const { return m_url; }
+ void setUrl(const TQString& theValue) { m_url = theValue; }
+ TQString url() const { return m_url; }
protected:
- virtual void closeEvent (QCloseEvent*) {}
+ virtual void closeEvent (TQCloseEvent*) {}
protected slots:
virtual void reject() {}
virtual void slotOk();
private slots:
- void slotTextChanged(const QString &);
- void slotReturnPressed(const QString &);
+ void slotTextChanged(const TQString &);
+ void slotReturnPressed(const TQString &);
private:
KURLRequester* m_urlRequester;
- QString m_url;
+ TQString m_url;
};
#endif
diff --git a/klinkstatus/src/ui/klshistorycombo.cpp b/klinkstatus/src/ui/klshistorycombo.cpp
index 36deb385..10fc7900 100644
--- a/klinkstatus/src/ui/klshistorycombo.cpp
+++ b/klinkstatus/src/ui/klshistorycombo.cpp
@@ -24,7 +24,7 @@
bool KLSHistoryCombo::items_saved_ = false;
-KLSHistoryCombo::KLSHistoryCombo(QWidget *parent, const char *name)
+KLSHistoryCombo::KLSHistoryCombo(TQWidget *parent, const char *name)
: KHistoryCombo(parent, name)
{
setMaxCount(KLSConfig::maxCountComboUrl());
@@ -32,8 +32,8 @@ KLSHistoryCombo::KLSHistoryCombo(QWidget *parent, const char *name)
setDuplicatesEnabled(false);
setAutoCompletion(false);
- connect(this, SIGNAL(activated(const QString& )),
- this, SLOT(addToHistory(const QString& )));
+ connect(this, TQT_SIGNAL(activated(const TQString& )),
+ this, TQT_SLOT(addToHistory(const TQString& )));
}
KLSHistoryCombo::~KLSHistoryCombo()
@@ -49,7 +49,7 @@ void KLSHistoryCombo::saveItems()
if(items_saved_)
return;
- QStringList items = historyItems();
+ TQStringList items = historyItems();
KLSConfig::setComboUrlHistory(items);
KLSConfig::writeConfig();
@@ -61,7 +61,7 @@ void KLSHistoryCombo::loadItems()
{
clear();
- QStringList items = KLSConfig::comboUrlHistory();
+ TQStringList items = KLSConfig::comboUrlHistory();
bool block = signalsBlocked();
blockSignals( true );
@@ -74,17 +74,17 @@ void KLSHistoryCombo::loadItems()
setCompletionMode(KGlobalSettings::completionMode());
}
-bool KLSHistoryCombo::eventFilter( QObject *o, QEvent *ev )
+bool KLSHistoryCombo::eventFilter( TQObject *o, TQEvent *ev )
{
// Handle Ctrl+Del/Backspace etc better than the Qt widget, which always
// jumps to the next whitespace.
- QLineEdit *edit = lineEdit();
+ TQLineEdit *edit = lineEdit();
if ( o == edit )
{
int type = ev->type();
- if ( type == QEvent::KeyPress )
+ if ( type == TQEvent::KeyPress )
{
- QKeyEvent *e = static_cast<QKeyEvent *>( ev );
+ TQKeyEvent *e = static_cast<TQKeyEvent *>( ev );
if ( e->key() == Key_Return || e->key() == Key_Enter )
{
@@ -106,7 +106,7 @@ bool KLSHistoryCombo::eventFilter( QObject *o, QEvent *ev )
}
}
- else if ( type == QEvent::MouseButtonDblClick )
+ else if ( type == TQEvent::MouseButtonDblClick )
{
edit->selectAll();
return true;
@@ -121,17 +121,17 @@ bool KLSHistoryCombo::eventFilter( QObject *o, QEvent *ev )
the next [/#?:], which makes more sense for URLs. The list of
chars that will stop the cursor are '/', '.', '?', '#', ':'.
*/
-void KLSHistoryCombo::selectWord(QKeyEvent *e)
+void KLSHistoryCombo::selectWord(TQKeyEvent *e)
{
- QLineEdit* edit = lineEdit();
- QString text = edit->text();
+ TQLineEdit* edit = lineEdit();
+ TQString text = edit->text();
int pos = edit->cursorPosition();
int pos_old = pos;
int count = 0;
// TODO: make these a parameter when in kdelibs/kdeui...
- QValueList<QChar> chars;
- chars << QChar('/') << QChar('.') << QChar('?') << QChar('#') << QChar(':');
+ TQValueList<TQChar> chars;
+ chars << TQChar('/') << TQChar('.') << TQChar('?') << TQChar('#') << TQChar(':');
bool allow_space_break = true;
if( e->key() == Key_Left || e->key() == Key_Backspace )
@@ -152,9 +152,9 @@ void KLSHistoryCombo::selectWord(QKeyEvent *e)
else if( e->key() == Key_Backspace )
{
edit->cursorForward(false, 1-count);
- QString text = edit->text();
+ TQString text = edit->text();
int pos_to_right = edit->text().length() - pos_old;
- QString cut = text.left(edit->cursorPosition()) + text.right(pos_to_right);
+ TQString cut = text.left(edit->cursorPosition()) + text.right(pos_to_right);
edit->setText(cut);
edit->setCursorPosition(pos_old-count+1);
}
@@ -181,10 +181,10 @@ void KLSHistoryCombo::selectWord(QKeyEvent *e)
else if( e->key() == Key_Delete )
{
edit->cursorForward(false, -count-1);
- QString text = edit->text();
+ TQString text = edit->text();
int pos_to_right = text.length() - pos - 1;
- QString cut = text.left(pos_old) +
- (pos_to_right > 0 ? text.right(pos_to_right) : QString() );
+ TQString cut = text.left(pos_old) +
+ (pos_to_right > 0 ? text.right(pos_to_right) : TQString() );
edit->setText(cut);
edit->setCursorPosition(pos_old);
}
diff --git a/klinkstatus/src/ui/klshistorycombo.h b/klinkstatus/src/ui/klshistorycombo.h
index ab990a1e..1215c3d9 100644
--- a/klinkstatus/src/ui/klshistorycombo.h
+++ b/klinkstatus/src/ui/klshistorycombo.h
@@ -24,7 +24,7 @@ class KLSHistoryCombo : public KHistoryCombo
Q_OBJECT
public:
- KLSHistoryCombo(QWidget* parent, const char* name);
+ KLSHistoryCombo(TQWidget* parent, const char* name);
~KLSHistoryCombo();
void init();
@@ -32,8 +32,8 @@ public:
void saveItems();
protected:
- virtual bool eventFilter(QObject* o, QEvent* ev);
- void selectWord(QKeyEvent* e);
+ virtual bool eventFilter(TQObject* o, TQEvent* ev);
+ void selectWord(TQKeyEvent* e);
private:
static bool items_saved_;
diff --git a/klinkstatus/src/ui/resultssearchbar.cpp b/klinkstatus/src/ui/resultssearchbar.cpp
index 7f772b54..11ec6134 100644
--- a/klinkstatus/src/ui/resultssearchbar.cpp
+++ b/klinkstatus/src/ui/resultssearchbar.cpp
@@ -27,15 +27,15 @@
#include <kstandarddirs.h>
#include <kdebug.h>
-#include <qapplication.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qstring.h>
-#include <qtimer.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qlayout.h>
+#include <tqapplication.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqlayout.h>
class ResultsSearchBar::ResultsSearchBarPrivate
@@ -45,50 +45,50 @@ public:
: layout(0), searchLine(0), searchCombo(0), delay(400), m_lastComboIndex(0)
{}
- QString searchText;
- QTimer timer;
- QHBoxLayout* layout;
+ TQString searchText;
+ TQTimer timer;
+ TQHBoxLayout* layout;
KLineEdit* searchLine;
KComboBox* searchCombo;
int delay;
int m_lastComboIndex;
};
-ResultsSearchBar::ResultsSearchBar(QWidget* parent, const char* name)
- : QWidget(parent, name), d(new ResultsSearchBar::ResultsSearchBarPrivate)
+ResultsSearchBar::ResultsSearchBar(TQWidget* parent, const char* name)
+ : TQWidget(parent, name), d(new ResultsSearchBar::ResultsSearchBarPrivate)
{
- setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
- d->layout = new QHBoxLayout(this);
+ d->layout = new TQHBoxLayout(this);
d->layout->setMargin(2);
d->layout->setSpacing(5);
- QToolButton* clearButton = new QToolButton(this);
- clearButton->setIconSet(SmallIconSet(QApplication::reverseLayout() ? "clear_left" : "locationbar_erase"));
+ TQToolButton* clearButton = new TQToolButton(this);
+ clearButton->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase"));
clearButton->setAutoRaise(true);
d->layout->addWidget(clearButton);
- QLabel* searchLabel = new QLabel(this);
+ TQLabel* searchLabel = new TQLabel(this);
searchLabel->setText(i18n("S&earch:"));
d->layout->addWidget(searchLabel);
d->searchLine = new KLineEdit(this, "searchline");
- connect(d->searchLine, SIGNAL(textChanged(const QString &)),
- this, SLOT(slotSearchStringChanged(const QString &)));
+ connect(d->searchLine, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(slotSearchStringChanged(const TQString &)));
searchLabel->setBuddy(d->searchLine);
d->layout->addWidget(d->searchLine);
- QLabel* statusLabel = new QLabel(this);
+ TQLabel* statusLabel = new TQLabel(this);
statusLabel->setText( i18n("Status:") );
d->layout->addWidget(statusLabel);
d->searchCombo = new KComboBox(this, "searchcombo");
- QPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small);
- QPixmap iconGood = KGlobal::iconLoader()->loadIcon("ok", KIcon::Small);
- QPixmap iconBroken = KGlobal::iconLoader()->loadIcon("no", KIcon::Small);
- QPixmap iconMalformed = KGlobal::iconLoader()->loadIcon("bug", KIcon::Small);
- QPixmap iconUndetermined = KGlobal::iconLoader()->loadIcon("help", KIcon::Small);
+ TQPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small);
+ TQPixmap iconGood = KGlobal::iconLoader()->loadIcon("ok", KIcon::Small);
+ TQPixmap iconBroken = KGlobal::iconLoader()->loadIcon("no", KIcon::Small);
+ TQPixmap iconMalformed = KGlobal::iconLoader()->loadIcon("bug", KIcon::Small);
+ TQPixmap iconUndetermined = KGlobal::iconLoader()->loadIcon("help", KIcon::Small);
d->searchCombo->insertItem(iconAll, i18n("All Links"));
d->searchCombo->insertItem(iconGood, i18n("Good Links"));
@@ -97,17 +97,17 @@ ResultsSearchBar::ResultsSearchBar(QWidget* parent, const char* name)
d->searchCombo->insertItem(iconUndetermined, i18n("Undetermined Links"));
d->layout->addWidget(d->searchCombo);
- QToolTip::add(clearButton, i18n("Clear filter"));
- QToolTip::add( d->searchLine, i18n("Enter the terms to filter the result link list"));
- QToolTip::add( d->searchCombo, i18n("Choose what kind of link status to show in result list"));
+ TQToolTip::add(clearButton, i18n("Clear filter"));
+ TQToolTip::add( d->searchLine, i18n("Enter the terms to filter the result link list"));
+ TQToolTip::add( d->searchCombo, i18n("Choose what kind of link status to show in result list"));
- connect(clearButton, SIGNAL( clicked() ),
- this, SLOT(slotClearSearch()) );
+ connect(clearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT(slotClearSearch()) );
- connect(d->searchCombo, SIGNAL(activated(int)),
- this, SLOT(slotSearchComboChanged(int)));
+ connect(d->searchCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSearchComboChanged(int)));
- connect(&(d->timer), SIGNAL(timeout()), this, SLOT(slotActivateSearch()));
+ connect(&(d->timer), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotActivateSearch()));
}
ResultsSearchBar::~ResultsSearchBar()
@@ -116,7 +116,7 @@ ResultsSearchBar::~ResultsSearchBar()
d = 0;
}
-QString const& ResultsSearchBar::text() const
+TQString const& ResultsSearchBar::text() const
{
return d->searchText;
}
@@ -152,7 +152,7 @@ void ResultsSearchBar::slotSetStatus(int status)
d->searchCombo->setCurrentItem(status);
}
-void ResultsSearchBar::slotSetText(const QString& text)
+void ResultsSearchBar::slotSetText(const TQString& text)
{
d->searchLine->setText(text);
}
@@ -170,7 +170,7 @@ void ResultsSearchBar::slotSearchComboChanged(int index)
d->timer.start(200, true);
}
-void ResultsSearchBar::slotSearchStringChanged(const QString& search)
+void ResultsSearchBar::slotSearchStringChanged(const TQString& search)
{
if(d->timer.isActive())
d->timer.stop();
diff --git a/klinkstatus/src/ui/resultssearchbar.h b/klinkstatus/src/ui/resultssearchbar.h
index 67d30a99..16d254c7 100644
--- a/klinkstatus/src/ui/resultssearchbar.h
+++ b/klinkstatus/src/ui/resultssearchbar.h
@@ -21,7 +21,7 @@
#ifndef RESULTSSEARCHBAR_H
#define RESULTSSEARCHBAR_H
-#include <qstring.h>
+#include <tqstring.h>
#include "resultview.h"
#include "../engine/linkfilter.h"
@@ -34,10 +34,10 @@ class ResultsSearchBar : public QWidget
{
Q_OBJECT
public:
- ResultsSearchBar(QWidget *parent = 0, const char *name = 0);
+ ResultsSearchBar(TQWidget *parent = 0, const char *name = 0);
~ResultsSearchBar();
- QString const& text() const;
+ TQString const& text() const;
int status() const;
void setDelay(int ms);
@@ -52,11 +52,11 @@ signals:
public slots:
void slotClearSearch();
void slotSetStatus(int status);
- void slotSetText(const QString& text);
+ void slotSetText(const TQString& text);
private slots:
- void slotSearchStringChanged(const QString& search);
+ void slotSearchStringChanged(const TQString& search);
void slotSearchComboChanged(int index);
void slotActivateSearch();
diff --git a/klinkstatus/src/ui/resultview.cpp b/klinkstatus/src/ui/resultview.cpp
index 4078bfca..737b901b 100644
--- a/klinkstatus/src/ui/resultview.cpp
+++ b/klinkstatus/src/ui/resultview.cpp
@@ -12,17 +12,17 @@
#include "resultview.h"
#include "../engine/linkstatus.h"
-#include <qpainter.h>
-#include <qcolor.h>
+#include <tqpainter.h>
+#include <tqcolor.h>
#include <klocale.h>
#include <kurl.h>
#include <kiconloader.h>
-const QString ResultView::URL_LABEL = "URL";
-const QString ResultView::STATUS_LABEL = "Status";
-const QString ResultView::MARKUP_LABEL = "Markup";
-const QString ResultView::LINK_LABEL_LABEL = "Label";
+const TQString ResultView::URL_LABEL = "URL";
+const TQString ResultView::STATUS_LABEL = "Status";
+const TQString ResultView::MARKUP_LABEL = "Markup";
+const TQString ResultView::LINK_LABEL_LABEL = "Label";
// ******************************* ResultView ********************************
@@ -40,7 +40,7 @@ ResultView::ResultView()
ResultView::~ResultView()
{}
-void ResultView::setColumns(QStringList const& columns)
+void ResultView::setColumns(TQStringList const& columns)
{
Q_ASSERT(columns.size() != 0);
@@ -129,7 +129,7 @@ LinkStatus const* ResultViewItem::linkStatus() const
return ls_;
}
-QColor const& ResultViewItem::textStatusColor() const
+TQColor const& ResultViewItem::textStatusColor() const
{
if(linkStatus()->errorOccurred())
{
@@ -148,7 +148,7 @@ QColor const& ResultViewItem::textStatusColor() const
else
{
- QString status_code(QString::number(linkStatus()->httpHeader().statusCode()));
+ TQString status_code(TQString::number(linkStatus()->httpHeader().statusCode()));
if(status_code[0] == '0')
{
diff --git a/klinkstatus/src/ui/resultview.h b/klinkstatus/src/ui/resultview.h
index e6d3e789..43a52427 100644
--- a/klinkstatus/src/ui/resultview.h
+++ b/klinkstatus/src/ui/resultview.h
@@ -21,9 +21,9 @@
#ifndef RESULTVIEW_H
#define RESULTVIEW_H
-#include <qvaluevector.h>
-#include <qpopupmenu.h>
-#include <qstringlist.h>
+#include <tqvaluevector.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
class KURL;
@@ -38,10 +38,10 @@ class ResultView
{
public:
- static const QString URL_LABEL;
- static const QString STATUS_LABEL;
- static const QString MARKUP_LABEL;
- static const QString LINK_LABEL_LABEL;
+ static const TQString URL_LABEL;
+ static const TQString STATUS_LABEL;
+ static const TQString MARKUP_LABEL;
+ static const TQString LINK_LABEL_LABEL;
enum Status {
none = 0,
@@ -60,7 +60,7 @@ public:
virtual void showAll() = 0;
//virtual void ensureCellVisible(int row, int col) = 0;
- virtual void setColumns(QStringList const& columns);
+ virtual void setColumns(TQStringList const& columns);
static bool displayableWithStatus(LinkStatus const* ls, Status const& status);
int numberOfColumns() const { return number_of_columns_; }
@@ -73,11 +73,11 @@ public:
protected:
//virtual bool textFitsInCell(int row, int col) const = 0;
virtual bool isEmpty() const = 0;
- virtual void loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root = false) = 0;
+ virtual void loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root = false) = 0;
protected slots:
- //virtual void slotPopupContextMenu(int row, int col, const QPoint& pos) = 0;
+ //virtual void slotPopupContextMenu(int row, int col, const TQPoint& pos) = 0;
virtual void slotCopyUrlToClipboard() const = 0;
virtual void slotCopyParentUrlToClipboard() const = 0;
virtual void slotCopyCellTextToClipboard() const = 0;
@@ -88,13 +88,13 @@ protected slots:
virtual void slotViewParentUrlInBrowser() = 0;
protected:
- QStringList columns_;
+ TQStringList columns_;
int col_status_;
int col_label_;
int col_url_;
int col_markup_; // optional
- QPopupMenu context_table_menu_;
- QPopupMenu* sub_menu_;
+ TQPopupMenu context_table_menu_;
+ TQPopupMenu* sub_menu_;
CellToolTip* cell_tip_;
private:
@@ -112,14 +112,14 @@ public:
virtual void setColumnIndex(int i);
virtual int columnIndex() const;
- virtual QString toolTip() const = 0;
+ virtual TQString toolTip() const = 0;
LinkStatus const* linkStatus() const;
protected:
- QColor const& textStatusColor() const;
- virtual void paint( QPainter *p, const QColorGroup &cg,
- const QRect &cr, bool selected ) = 0;
+ TQColor const& textStatusColor() const;
+ virtual void paint( TQPainter *p, const TQColorGroup &cg,
+ const TQRect &cr, bool selected ) = 0;
virtual void setText() = 0;
virtual void setPixmap() = 0;
diff --git a/klinkstatus/src/ui/sessionwidget.cpp b/klinkstatus/src/ui/sessionwidget.cpp
index da128070..f729ca3e 100644
--- a/klinkstatus/src/ui/sessionwidget.cpp
+++ b/klinkstatus/src/ui/sessionwidget.cpp
@@ -35,18 +35,18 @@
#include <kstandarddirs.h>
#include <kio/netaccess.h>
-#include <qevent.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qstringlist.h>
-#include <qbuttongroup.h>
-#include <qtoolbutton.h>
-#include <qregexp.h>
+#include <tqevent.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqstringlist.h>
+#include <tqbuttongroup.h>
+#include <tqtoolbutton.h>
+#include <tqregexp.h>
#include "sessionwidget.h"
#include "tablelinkstatus.h"
@@ -66,7 +66,7 @@
SessionWidget::SessionWidget(int max_simultaneous_connections, int time_out,
- QWidget* parent, const char* name, WFlags f)
+ TQWidget* parent, const char* name, WFlags f)
: SessionWidgetBase(parent, name, f), search_manager_(0),
action_manager_(ActionManager::getInstance()),
ready_(true), to_start_(false), to_pause_(false), to_stop_(false),
@@ -81,13 +81,13 @@ SessionWidget::SessionWidget(int max_simultaneous_connections, int time_out,
init();
slotLoadSettings();
- connect(combobox_url, SIGNAL( textChanged ( const QString & ) ),
- this, SLOT( slotEnableCheckButton( const QString & ) ) );
+ connect(combobox_url, TQT_SIGNAL( textChanged ( const TQString & ) ),
+ this, TQT_SLOT( slotEnableCheckButton( const TQString & ) ) );
- connect(tree_view, SIGNAL( clicked ( QListViewItem * ) ),
- this, SLOT( showBottomStatusLabel( QListViewItem * ) ) );
+ connect(tree_view, TQT_SIGNAL( clicked ( TQListViewItem * ) ),
+ this, TQT_SLOT( showBottomStatusLabel( TQListViewItem * ) ) );
- connect(&bottom_status_timer_, SIGNAL(timeout()), this, SLOT(clearBottomStatusLabel()) );
+ connect(&bottom_status_timer_, TQT_SIGNAL(timeout()), this, TQT_SLOT(clearBottomStatusLabel()) );
}
SessionWidget::~SessionWidget()
@@ -105,16 +105,16 @@ void SessionWidget::init()
toolButton_clear_combo->setIconSet(SmallIconSet("locationbar_erase"));
pushbutton_url->setIconSet(KGlobal::iconLoader()->loadIconSet("fileopen", KIcon::Small));
- QPixmap pixMap = KGlobal::iconLoader()->loadIcon("fileopen", KIcon::Small);
+ TQPixmap pixMap = KGlobal::iconLoader()->loadIcon("fileopen", KIcon::Small);
pushbutton_url->setFixedSize(pixMap.width() + 8, pixMap.height() + 8);
- connect(pushbutton_url, SIGNAL(clicked()), this, SLOT(slotChooseUrlDialog()));
+ connect(pushbutton_url, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotChooseUrlDialog()));
resultsSearchBar->hide();
start_search_action_ = static_cast<KToggleAction*> (action_manager_->action("start_search"));
- connect(resultsSearchBar, SIGNAL(signalSearch(LinkMatcher)),
- this, SLOT(slotApplyFilter(LinkMatcher)));
+ connect(resultsSearchBar, TQT_SIGNAL(signalSearch(LinkMatcher)),
+ this, TQT_SLOT(slotApplyFilter(LinkMatcher)));
}
void SessionWidget::slotLoadSettings(bool modify_current_widget_settings)
@@ -154,23 +154,23 @@ void SessionWidget::newSearchManager()
this, "search_manager");
Q_ASSERT(search_manager_);
- connect(search_manager_, SIGNAL(signalRootChecked(const LinkStatus *, LinkChecker *)),
- this, SLOT(slotRootChecked(const LinkStatus *, LinkChecker *)));
- connect(search_manager_, SIGNAL(signalLinkChecked(const LinkStatus *, LinkChecker *)),
- this, SLOT(slotLinkChecked(const LinkStatus *, LinkChecker *)));
- connect(search_manager_, SIGNAL(signalSearchFinished()),
- this, SLOT(slotSearchFinished()));
- connect(search_manager_, SIGNAL(signalSearchPaused()),
- this, SLOT(slotSearchPaused()));
- connect(search_manager_, SIGNAL(signalAddingLevelTotalSteps(uint)),
- this, SLOT(slotAddingLevelTotalSteps(uint)));
- connect(search_manager_, SIGNAL(signalAddingLevelProgress()),
- this, SLOT(slotAddingLevelProgress()));
- connect(search_manager_, SIGNAL(signalLinksToCheckTotalSteps(uint)),
- this, SLOT(slotLinksToCheckTotalSteps(uint)));
+ connect(search_manager_, TQT_SIGNAL(signalRootChecked(const LinkStatus *, LinkChecker *)),
+ this, TQT_SLOT(slotRootChecked(const LinkStatus *, LinkChecker *)));
+ connect(search_manager_, TQT_SIGNAL(signalLinkChecked(const LinkStatus *, LinkChecker *)),
+ this, TQT_SLOT(slotLinkChecked(const LinkStatus *, LinkChecker *)));
+ connect(search_manager_, TQT_SIGNAL(signalSearchFinished()),
+ this, TQT_SLOT(slotSearchFinished()));
+ connect(search_manager_, TQT_SIGNAL(signalSearchPaused()),
+ this, TQT_SLOT(slotSearchPaused()));
+ connect(search_manager_, TQT_SIGNAL(signalAddingLevelTotalSteps(uint)),
+ this, TQT_SLOT(slotAddingLevelTotalSteps(uint)));
+ connect(search_manager_, TQT_SIGNAL(signalAddingLevelProgress()),
+ this, TQT_SLOT(slotAddingLevelProgress()));
+ connect(search_manager_, TQT_SIGNAL(signalLinksToCheckTotalSteps(uint)),
+ this, TQT_SLOT(slotLinksToCheckTotalSteps(uint)));
}
-void SessionWidget::setColumns(QStringList const& colunas)
+void SessionWidget::setColumns(TQStringList const& colunas)
{
tree_view->setColumns(colunas);
}
@@ -192,7 +192,7 @@ SearchManager const* SessionWidget::getSearchManager() const
return search_manager_;
}
-void SessionWidget::slotEnableCheckButton(const QString & s)
+void SessionWidget::slotEnableCheckButton(const TQString & s)
{
if(!(stopped_ && !pendingActions()))
return;
@@ -251,7 +251,7 @@ void SessionWidget::slotCheck()
if(!url.protocol().startsWith("http"))
{
- QString documentRootHint = url.directory().isEmpty() ? "/" : url.directory();
+ TQString documentRootHint = url.directory().isEmpty() ? "/" : url.directory();
DocumentRootDialog dialog(this, documentRootHint);
dialog.exec();
search_manager_->setDocumentRoot(KURL::fromPathOrURL(dialog.url()));
@@ -319,7 +319,7 @@ void SessionWidget::slotCheck()
slotSetTimeElapsed();
}
-void SessionWidget::keyPressEvent ( QKeyEvent* e )
+void SessionWidget::keyPressEvent ( TQKeyEvent* e )
{
if( e->key() == Qt::Key_Return &&
( combobox_url->hasFocus() ||
@@ -488,12 +488,12 @@ void SessionWidget::slotSearchPaused()
emit signalSearchPaused();
}
-void SessionWidget::insertUrlAtCombobox(QString const& url)
+void SessionWidget::insertUrlAtCombobox(TQString const& url)
{
combobox_url->addToHistory(url);
}
-void SessionWidget::showBottomStatusLabel(QListViewItem* item)
+void SessionWidget::showBottomStatusLabel(TQListViewItem* item)
{
kdDebug(23100) << "SessionWidget::showBottomStatusLabel" << endl;
@@ -503,13 +503,13 @@ void SessionWidget::showBottomStatusLabel(QListViewItem* item)
TreeViewItem* _item = tree_view->myItem(item);
if(_item)
{
- QString status = _item->linkStatus()->statusText();
+ TQString status = _item->linkStatus()->statusText();
textlabel_status->setText(status);
if(textlabel_status->sizeHint().width() > textlabel_status->maximumWidth())
- QToolTip::add(textlabel_status, status);
+ TQToolTip::add(textlabel_status, status);
else
- QToolTip::remove(textlabel_status);
+ TQToolTip::remove(textlabel_status);
bottom_status_timer_.stop();
bottom_status_timer_.start(5 * 1000, true);
@@ -683,12 +683,12 @@ void SessionWidget::slotApplyFilter(LinkMatcher link_matcher)
void SessionWidget::slotExportAsHTML( )
{
- KURL url = KFileDialog::getSaveURL(QString::null,"text/html", 0, i18n("Export Results as HTML"));
+ KURL url = KFileDialog::getSaveURL(TQString::null,"text/html", 0, i18n("Export Results as HTML"));
if(url.isEmpty())
return;
- QString filename;
+ TQString filename;
KTempFile tmp; // ### only used for network export
if(url.isLocalFile())
@@ -699,13 +699,13 @@ void SessionWidget::slotExportAsHTML( )
KSaveFile *savefile = new KSaveFile(filename);
if(savefile->status() == 0) // ok
{
- QTextStream *outputStream = savefile->textStream();
- outputStream->setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream *outputStream = savefile->textStream();
+ outputStream->setEncoding(TQTextStream::UnicodeUTF8);
- QString xslt_doc = FileManager::read(locate("appdata", "styles/results_stylesheet.xsl"));
+ TQString xslt_doc = FileManager::read(locate("appdata", "styles/results_stylesheet.xsl"));
XSLT xslt(xslt_doc);
// kdDebug(23100) << search_manager_->toXML() << endl;
- QString html_ouptut = xslt.transform(search_manager_->toXML());
+ TQString html_ouptut = xslt.transform(search_manager_->toXML());
(*outputStream) << html_ouptut << endl;
savefile->close();
diff --git a/klinkstatus/src/ui/sessionwidget.h b/klinkstatus/src/ui/sessionwidget.h
index af525a08..6b5e631d 100644
--- a/klinkstatus/src/ui/sessionwidget.h
+++ b/klinkstatus/src/ui/sessionwidget.h
@@ -29,8 +29,8 @@ class TableItem;
class ActionManager;
class LinkMatcher;
-#include <qtimer.h>
-#include <qstring.h>
+#include <tqtimer.h>
+#include <tqstring.h>
class QStringList;
class QListViewItem;
@@ -49,11 +49,11 @@ class SessionWidget: public SessionWidgetBase
public:
SessionWidget(int max_simultaneous_connections = 3, int time_out = 50,
- QWidget* parent = 0, const char* name = 0, WFlags f = 0);
+ TQWidget* parent = 0, const char* name = 0, WFlags f = 0);
~SessionWidget();
- void setColumns(QStringList const& colunas);
+ void setColumns(TQStringList const& colunas);
void setUrl(KURL const& url);
bool treeDisplay() const { return tree_display_; }
@@ -95,13 +95,13 @@ private slots:
virtual void slotCancel() {} // FIXME hack
//virtual void slotSuggestDomain(bool toogle);
- void slotEnableCheckButton(const QString &);
+ void slotEnableCheckButton(const TQString &);
void slotRootChecked(LinkStatus const* linkstatus, LinkChecker * anal);
void slotLinkChecked(LinkStatus const* linkstatus, LinkChecker * anal);
void slotSearchFinished();
void slotSearchPaused();
/** Shows the status of the clicked URL (row) for 5 seconds */
- void showBottomStatusLabel(QListViewItem* item);
+ void showBottomStatusLabel(TQListViewItem* item);
void clearBottomStatusLabel();
void slotSetTimeElapsed();
void newSearchManager();
@@ -116,9 +116,9 @@ private slots:
private:
- virtual void keyPressEvent ( QKeyEvent* e );
+ virtual void keyPressEvent ( TQKeyEvent* e );
bool validFields();
- void insertUrlAtCombobox(QString const& url);
+ void insertUrlAtCombobox(TQString const& url);
void init();
void saveCurrentCheckSettings();
bool pendingActions() const;
@@ -136,7 +136,7 @@ private:
bool paused_;
bool stopped_;
- QTimer bottom_status_timer_;
+ TQTimer bottom_status_timer_;
int max_simultaneous_connections_;
int time_out_;
bool tree_display_; // tree/flat result display
diff --git a/klinkstatus/src/ui/settings/configidentificationdialog.cpp b/klinkstatus/src/ui/settings/configidentificationdialog.cpp
index 3dcd1239..f2675d81 100644
--- a/klinkstatus/src/ui/settings/configidentificationdialog.cpp
+++ b/klinkstatus/src/ui/settings/configidentificationdialog.cpp
@@ -24,12 +24,12 @@
#include <kpushbutton.h>
#include <klineedit.h>
-#include <qstring.h>
+#include <tqstring.h>
#include "../cfg/klsconfig.h"
-ConfigIdentificationDialog::ConfigIdentificationDialog(QWidget *parent, const char *name)
+ConfigIdentificationDialog::ConfigIdentificationDialog(TQWidget *parent, const char *name)
: ConfigIdentificationDialogUi(parent, name)
{
if(KLSConfig::userAgent().isEmpty())
@@ -37,7 +37,7 @@ ConfigIdentificationDialog::ConfigIdentificationDialog(QWidget *parent, const ch
slotDefaultUA();
}
- connect(buttonDefault, SIGNAL(clicked()), this, SLOT(slotDefaultUA()));
+ connect(buttonDefault, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDefaultUA()));
}
diff --git a/klinkstatus/src/ui/settings/configidentificationdialog.h b/klinkstatus/src/ui/settings/configidentificationdialog.h
index e75a65a6..8bc0fa64 100644
--- a/klinkstatus/src/ui/settings/configidentificationdialog.h
+++ b/klinkstatus/src/ui/settings/configidentificationdialog.h
@@ -30,7 +30,7 @@ class ConfigIdentificationDialog : public ConfigIdentificationDialogUi
{
Q_OBJECT
public:
- ConfigIdentificationDialog(QWidget *parent = 0, const char *name = 0);
+ ConfigIdentificationDialog(TQWidget *parent = 0, const char *name = 0);
~ConfigIdentificationDialog();
private slots:
diff --git a/klinkstatus/src/ui/tablelinkstatus.cpp b/klinkstatus/src/ui/tablelinkstatus.cpp
index 695365a9..66cd06be 100644
--- a/klinkstatus/src/ui/tablelinkstatus.cpp
+++ b/klinkstatus/src/ui/tablelinkstatus.cpp
@@ -23,12 +23,12 @@
#include "../parser/url.h"
#include "../global.h"
-#include <qmemarray.h>
-#include <qtooltip.h>
-#include <qpixmap.h>
-#include <qclipboard.h>
-#include <qpainter.h>
-#include <qprocess.h>
+#include <tqmemarray.h>
+#include <tqtooltip.h>
+#include <tqpixmap.h>
+#include <tqclipboard.h>
+#include <tqpainter.h>
+#include <tqprocess.h>
#include <kapplication.h>
#include <kstandarddirs.h>
@@ -46,18 +46,18 @@
*/
-TableLinkstatus::TableLinkstatus(QWidget * parent, const char * name,
+TableLinkstatus::TableLinkstatus(TQWidget * parent, const char * name,
int column_index_status,
int column_index_label,
int column_index_URL)
- : QTable(parent, name),
+ : TQTable(parent, name),
ResultView(column_index_status, column_index_label, column_index_URL)
//context_table_menu_(this, "context_table_menu")
{
setShowGrid(false);
setSorting(false);
- setSelectionMode(QTable::NoSelection);
- setFocusStyle(QTable::FollowStyle);
+ setSelectionMode(TQTable::NoSelection);
+ setFocusStyle(TQTable::FollowStyle);
setReadOnly(true);
verticalHeader()->hide();
@@ -65,10 +65,10 @@ TableLinkstatus::TableLinkstatus(QWidget * parent, const char * name,
cell_tip_ = new CellToolTip(this);
- sub_menu_ = new QPopupMenu(this, "sub_menu_referrers");
+ sub_menu_ = new TQPopupMenu(this, "sub_menu_referrers");
- connect(this, SIGNAL( contextMenuRequested ( int, int, const QPoint& )),
- this, SLOT( slotPopupContextMenu( int, int, const QPoint&)) );
+ connect(this, TQT_SIGNAL( contextMenuRequested ( int, int, const TQPoint& )),
+ this, TQT_SLOT( slotPopupContextMenu( int, int, const TQPoint&)) );
}
TableLinkstatus::~TableLinkstatus()
@@ -76,14 +76,14 @@ TableLinkstatus::~TableLinkstatus()
delete cell_tip_;
}
-void TableLinkstatus::setColumns(QStringList const& columns)
+void TableLinkstatus::setColumns(TQStringList const& columns)
{
ResultView::setColumns(columns);
removeColunas();
setNumCols(columns.size());
- QHeader* horizontal_header = horizontalHeader();
+ TQHeader* horizontal_header = horizontalHeader();
for(uint i = 0; i != columns.size(); ++i)
{
if(i == 0)
@@ -116,11 +116,11 @@ vector<TableItem*> TableLinkstatus::generateRowOfTableItems(LinkStatus const* li
vector<TableItem*> items;
int column = 1;
- TableItem* item1 = new TableItemStatus(this, QTableItem::Never,
+ TableItem* item1 = new TableItemStatus(this, TQTableItem::Never,
linkstatus, column++);
- TableItem* item2 = new TableItemNome(this, QTableItem::Never,
+ TableItem* item2 = new TableItemNome(this, TQTableItem::Never,
linkstatus, column++);
- TableItem* item3 = new TableItemURL(this, QTableItem::Never,
+ TableItem* item3 = new TableItemURL(this, TQTableItem::Never,
linkstatus, column++);
items.push_back(item1);
items.push_back(item2);
@@ -158,7 +158,7 @@ void TableLinkstatus::insereLinha(vector<TableItem*> items)
void TableLinkstatus::clear()
{
- QMemArray<int> linhas(numRows());
+ TQMemArray<int> linhas(numRows());
for(uint i = 0; i != linhas.size(); ++i)
linhas[i] = i + 1;
@@ -169,7 +169,7 @@ void TableLinkstatus::clear()
void TableLinkstatus::removeColunas()
{
- QMemArray<int> columns(numCols());
+ TQMemArray<int> columns(numCols());
for(uint i = 0; i != columns.size(); ++i)
columns[i] = i + 1;
@@ -204,7 +204,7 @@ void TableLinkstatus::mostraPorStatusCode(int status_code)
for(int i = 0; i != numRows(); ++i)
{
int row = i + 1;
- QTableItem* _item = myItem(row, col_status_);
+ TQTableItem* _item = myItem(row, col_status_);
if(status_code != _item->text().toInt())
hideRow(row);
@@ -222,15 +222,15 @@ void TableLinkstatus::ensureCellVisible(int row, int col)
{
// table viewport is at the bottom
if(rowPos(row - 1) <= (contentsY() + visibleHeight()))
- QTable::ensureCellVisible(row, col);
+ TQTable::ensureCellVisible(row, col);
}
bool TableLinkstatus::textFitsInCell(int row, int col) const
{
- QTableItem* itm(myItem(row, col));
+ TQTableItem* itm(myItem(row, col));
Q_ASSERT(itm);
- QSize size_hint(itm->sizeHint());
+ TQSize size_hint(itm->sizeHint());
int visible_width = 0;
if(col == numCols() - 1)
@@ -251,37 +251,37 @@ bool TableLinkstatus::isEmpty() const
TableItem* TableLinkstatus::myItem(int row, int col) const
{
- TableItem* _item = dynamic_cast<TableItem*> (QTable::item(row, col));
+ TableItem* _item = dynamic_cast<TableItem*> (TQTable::item(row, col));
Q_ASSERT(_item);
return _item;
}
-void TableLinkstatus::slotPopupContextMenu(int r, int w, const QPoint& pos)
+void TableLinkstatus::slotPopupContextMenu(int r, int w, const TQPoint& pos)
{
TableItem* table_item = myItem(r, w);
if(table_item)
{
- QValueVector<KURL> referrers = table_item->linkStatus()->referrers();
+ TQValueVector<KURL> referrers = table_item->linkStatus()->referrers();
loadContextTableMenu(referrers, table_item->linkStatus()->isRoot());
context_table_menu_.popup(pos);
}
}
-void TableLinkstatus::loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root)
+void TableLinkstatus::loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root)
{
context_table_menu_.clear();
sub_menu_->clear();
if(!is_root)
{
- sub_menu_->insertItem(i18n("All"), this, SLOT(slotEditReferrersWithQuanta()));
+ sub_menu_->insertItem(i18n("All"), this, TQT_SLOT(slotEditReferrersWithQuanta()));
sub_menu_->insertSeparator();
for(uint i = 0; i != referrers.size(); ++i)
{
sub_menu_->insertItem(referrers[i].prettyURL());
}
- connect(sub_menu_, SIGNAL(activated(int)), this, SLOT(slotEditReferrerWithQuanta(int)));
+ connect(sub_menu_, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotEditReferrerWithQuanta(int)));
context_table_menu_.insertItem(SmallIconSet("fileopen"), i18n("Edit Referrer with Quanta"),
sub_menu_);
@@ -293,27 +293,27 @@ void TableLinkstatus::loadContextTableMenu(QValueVector<KURL> const& referrers,
}
context_table_menu_.insertItem(SmallIconSet("fileopen"), i18n("Open URL"),
- this, SLOT(slotViewUrlInBrowser()));
+ this, TQT_SLOT(slotViewUrlInBrowser()));
context_table_menu_.insertItem(SmallIconSet("fileopen"), i18n("Open Referrer URL"),
- this, SLOT(slotViewParentUrlInBrowser()));
+ this, TQT_SLOT(slotViewParentUrlInBrowser()));
context_table_menu_.insertSeparator();
context_table_menu_.insertItem(SmallIconSet("editcopy"), i18n("Copy URL"),
- this, SLOT(slotCopyUrlToClipboard()));
+ this, TQT_SLOT(slotCopyUrlToClipboard()));
context_table_menu_.insertItem(SmallIconSet("editcopy"), i18n("Copy Referrer URL"),
- this, SLOT(slotCopyParentUrlToClipboard()));
+ this, TQT_SLOT(slotCopyParentUrlToClipboard()));
context_table_menu_.insertItem(SmallIconSet("editcopy"), i18n("Copy Cell Text"),
- this, SLOT(slotCopyCellTextToClipboard()));
+ this, TQT_SLOT(slotCopyCellTextToClipboard()));
}
void TableLinkstatus::slotCopyUrlToClipboard() const
{
TableItem* _item = myItem(currentRow(), currentColumn());
- QString content(_item->linkStatus()->absoluteUrl().prettyURL());
+ TQString content(_item->linkStatus()->absoluteUrl().prettyURL());
QClipboard* cb = kapp->clipboard();
cb->setText(content);
}
@@ -321,14 +321,14 @@ void TableLinkstatus::slotCopyUrlToClipboard() const
void TableLinkstatus::slotCopyParentUrlToClipboard() const
{
TableItem* _item = myItem(currentRow(), currentColumn());
- QString content(_item->linkStatus()->parent()->absoluteUrl().prettyURL());
+ TQString content(_item->linkStatus()->parent()->absoluteUrl().prettyURL());
QClipboard* cb = kapp->clipboard();
cb->setText(content);
}
void TableLinkstatus::slotCopyCellTextToClipboard() const
{
- QString cell_text(text(currentRow(), currentColumn()));
+ TQString cell_text(text(currentRow(), currentColumn()));
QClipboard* cb = kapp->clipboard();
cb->setText(cell_text);
}
@@ -336,7 +336,7 @@ void TableLinkstatus::slotCopyCellTextToClipboard() const
void TableLinkstatus::slotEditReferrersWithQuanta()
{
TableItem* _item = myItem(currentRow(), currentColumn());
- QValueVector<KURL> referrers = _item->linkStatus()->referrers();
+ TQValueVector<KURL> referrers = _item->linkStatus()->referrers();
if(Global::isQuantaAvailableViaDCOP())
{
@@ -345,7 +345,7 @@ void TableLinkstatus::slotEditReferrersWithQuanta()
}
else
{
- QStringList list_urls;
+ TQStringList list_urls;
for(uint i = 0; i != referrers.size(); ++i)
list_urls.append(referrers[i].url());
@@ -369,7 +369,7 @@ void TableLinkstatus::slotEditReferrerWithQuanta(int id)
index -= 2; // The list of referrers starts on index = 2
TableItem* _item = myItem(currentRow(), currentColumn());
- QValueVector<KURL> referrers = _item->linkStatus()->referrers();
+ TQValueVector<KURL> referrers = _item->linkStatus()->referrers();
Q_ASSERT(index >= 0 && (uint)index < referrers.size());
slotEditReferrerWithQuanta(referrers[index]);
@@ -377,7 +377,7 @@ void TableLinkstatus::slotEditReferrerWithQuanta(int id)
void TableLinkstatus::slotEditReferrerWithQuanta(KURL const& url)
{
- QString filePath = url.url();
+ TQString filePath = url.url();
if(Global::isQuantaAvailableViaDCOP())
{
@@ -386,13 +386,13 @@ void TableLinkstatus::slotEditReferrerWithQuanta(KURL const& url)
if(!success)
{
- QString message = i18n("<qt>File <b>%1</b> cannot be opened. Might be a DCOP problem.</qt>").arg(filePath);
+ TQString message = i18n("<qt>File <b>%1</b> cannot be opened. Might be a DCOP problem.</qt>").arg(filePath);
KMessageBox::error(parentWidget(), message);
}
}
else
{
- QStringList args(url.url());
+ TQStringList args(url.url());
Global::openQuanta(args);
}
}
@@ -438,10 +438,10 @@ void TableLinkstatus::slotViewParentUrlInBrowser()
*/
-TableItem::TableItem(QTable* table, EditType et,
+TableItem::TableItem(TQTable* table, EditType et,
LinkStatus const* linkstatus,
int column_index, int alignment)
- : QTableItem(table, et, ""), ResultViewItem(linkstatus, column_index),
+ : TQTableItem(table, et, ""), ResultViewItem(linkstatus, column_index),
/*ls_((LinkStatus*)linkstatus),
column_index_(column_index),*/ alignment_(alignment)
{
@@ -483,7 +483,7 @@ LinkStatus const* const TableItem::linkStatus() const
return ls_;
}
-QColor const& TableItem::textStatusColor() const
+TQColor const& TableItem::textStatusColor() const
{
if(linkStatus()->errorOccurred())
{
@@ -503,7 +503,7 @@ QColor const& TableItem::textStatusColor() const
else
{
- QString status_code(QString::number(linkStatus()->httpHeader().statusCode()));
+ TQString status_code(TQString::number(linkStatus()->httpHeader().statusCode()));
if(status_code[0] == '0')
{
@@ -537,7 +537,7 @@ QColor const& TableItem::textStatusColor() const
*/
-TableItemURL::TableItemURL(QTable* table, EditType et,
+TableItemURL::TableItemURL(TQTable* table, EditType et,
LinkStatus const* linkstatus, int column_index)
: TableItem(table, et, linkstatus, column_index)
{
@@ -549,41 +549,41 @@ void TableItemURL::setText()
if(linkStatus()->node() && linkStatus()->malformed())
{
if(linkStatus()->node()->url().isEmpty())
- QTableItem::setText( linkStatus()->node()->content().simplifyWhiteSpace() );
+ TQTableItem::setText( linkStatus()->node()->content().simplifyWhiteSpace() );
else
- QTableItem::setText( linkStatus()->node()->url() );
+ TQTableItem::setText( linkStatus()->node()->url() );
}
else
{
KURL url = linkStatus()->absoluteUrl();
- QTableItem::setText(::convertToLocal(linkStatus()));
+ TQTableItem::setText(::convertToLocal(linkStatus()));
}
}
void TableItemURL::setPixmap()
{}
-QString TableItemURL::toolTip() const
+TQString TableItemURL::toolTip() const
{
return text(); // Pode parecer repeticao mas nao eh... Ver construtor
}
-void TableItemURL::paint( QPainter *p, const QColorGroup &cg,
- const QRect &cr, bool selected )
+void TableItemURL::paint( TQPainter *p, const TQColorGroup &cg,
+ const TQRect &cr, bool selected )
{
// Get a color to draw the text
- QColorGroup m_cg(cg);
- QColor color(textStatusColor());
- m_cg.setColor(QColorGroup::Text, color);
+ TQColorGroup m_cg(cg);
+ TQColor color(textStatusColor());
+ m_cg.setColor(TQColorGroup::Text, color);
- QTableItem::paint(p, m_cg, cr, selected);
+ TQTableItem::paint(p, m_cg, cr, selected);
}
-QColor const& TableItemURL::textStatusColor() const
+TQColor const& TableItemURL::textStatusColor() const
{
// TODO clean this code
- QString status_code(QString::number(linkStatus()->httpHeader().statusCode()));
+ TQString status_code(TQString::number(linkStatus()->httpHeader().statusCode()));
if(linkStatus()->errorOccurred())
{
@@ -614,7 +614,7 @@ QColor const& TableItemURL::textStatusColor() const
*/
-TableItemStatus::TableItemStatus(QTable* table, EditType et,
+TableItemStatus::TableItemStatus(TQTable* table, EditType et,
LinkStatus const* linkstatus, int column_index)
: TableItem(table, et, linkstatus, column_index)
{
@@ -629,7 +629,7 @@ void TableItemStatus::setText()
linkStatus()->status() == "OK" ||
linkStatus()->status() == "304")
{
- QTableItem::setText("");
+ TQTableItem::setText("");
}
else
{
@@ -642,8 +642,8 @@ void TableItemStatus::setText()
}
*/
//Q_ASSERT(linkStatus()->httpHeader().statusCode() != 0); //<------------------------------------------------------------
- //QTableItem::setText( QString::number(linkStatus()->httpHeader().statusCode()) );
- QTableItem::setText( linkStatus()->status() );
+ //TQTableItem::setText( TQString::number(linkStatus()->httpHeader().statusCode()) );
+ TQTableItem::setText( linkStatus()->status() );
}
}
@@ -654,25 +654,25 @@ void TableItemStatus::setPixmap()
if(linkStatus()->error().contains(i18n( "Timeout" )))
{
- QTableItem::setPixmap(SmallIcon("kalarm"));
+ TQTableItem::setPixmap(SmallIcon("kalarm"));
}
else if(linkStatus()->error() == i18n( "Malformed" ))
{
- QTableItem::setPixmap(SmallIcon("bug"));
+ TQTableItem::setPixmap(SmallIcon("bug"));
}
else
{
- QTableItem::setPixmap(SmallIcon("no"));
+ TQTableItem::setPixmap(SmallIcon("no"));
}
}
else if(linkStatus()->status() == "304")
- QTableItem::setPixmap(UserIcon("304"));
+ TQTableItem::setPixmap(UserIcon("304"));
else if(linkStatus()->status() == "OK")
- QTableItem::setPixmap(SmallIcon("ok"));
+ TQTableItem::setPixmap(SmallIcon("ok"));
}
-QString TableItemStatus::toolTip() const
+TQString TableItemStatus::toolTip() const
{
if(linkStatus()->errorOccurred() ||
linkStatus()->absoluteUrl().hasRef() ||
@@ -685,12 +685,12 @@ QString TableItemStatus::toolTip() const
return i18n("%1").arg(linkStatus()->httpHeader().reasonPhrase());
}
-void TableItemStatus::paint( QPainter *p, const QColorGroup &cg,
- const QRect &cr, bool selected )
+void TableItemStatus::paint( TQPainter *p, const TQColorGroup &cg,
+ const TQRect &cr, bool selected )
{
p->fillRect( 0, 0, cr.width(), cr.height(),
- selected ? cg.brush( QColorGroup::Highlight )
- : cg.brush( QColorGroup::Base ) );
+ selected ? cg.brush( TQColorGroup::Highlight )
+ : cg.brush( TQColorGroup::Base ) );
int w = cr.width();
int h = cr.height();
@@ -705,11 +705,11 @@ void TableItemStatus::paint( QPainter *p, const QColorGroup &cg,
}
// Get a color to draw the text
- QColorGroup m_cg(cg);
- QColor color(textStatusColor());
- m_cg.setColor(QColorGroup::Text, color);
+ TQColorGroup m_cg(cg);
+ TQColor color(textStatusColor());
+ m_cg.setColor(TQColorGroup::Text, color);
- //QTableItem::paint(p, m_cg, cr, selected);
+ //TQTableItem::paint(p, m_cg, cr, selected);
if ( selected )
p->setPen( m_cg.highlightedText() );
@@ -725,7 +725,7 @@ void TableItemStatus::paint( QPainter *p, const QColorGroup &cg,
*/
-TableItemNome::TableItemNome(QTable* table, EditType et,
+TableItemNome::TableItemNome(TQTable* table, EditType et,
LinkStatus const* linkstatus, int column_index)
: TableItem(table, et, linkstatus, column_index)
{
@@ -734,15 +734,15 @@ TableItemNome::TableItemNome(QTable* table, EditType et,
void TableItemNome::setText()
{
- QString label(linkStatus()->label());
+ TQString label(linkStatus()->label());
if(!label.isNull())
- QTableItem::setText(label.simplifyWhiteSpace());
+ TQTableItem::setText(label.simplifyWhiteSpace());
}
void TableItemNome::setPixmap()
{}
-QString TableItemNome::toolTip() const
+TQString TableItemNome::toolTip() const
{
return text(); // Pode parecer repeticao mas nao eh... Ver construtor
}
diff --git a/klinkstatus/src/ui/tablelinkstatus.h b/klinkstatus/src/ui/tablelinkstatus.h
index 0b3f2cf2..cb003209 100644
--- a/klinkstatus/src/ui/tablelinkstatus.h
+++ b/klinkstatus/src/ui/tablelinkstatus.h
@@ -21,11 +21,11 @@
#ifndef TABLE_LINKSTATUS_H
#define TABLE_LINKSTATUS_H
-#include <qtable.h>
-#include <qstring.h>
-#include <qcolor.h>
-#include <qpopupmenu.h>
-#include <qvaluevector.h>
+#include <tqtable.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqpopupmenu.h>
+#include <tqvaluevector.h>
class QStringList;
class KURL;
@@ -43,18 +43,18 @@ int const STATUS_COLUMN_WIDTH = 50;
class TableItem;
-class TableLinkstatus: public QTable, public ResultView
+class TableLinkstatus: public TQTable, public ResultView
{
Q_OBJECT
public:
- TableLinkstatus(QWidget * parent = 0, const char * name = 0,
+ TableLinkstatus(TQWidget * parent = 0, const char * name = 0,
int column_index_status = 1,
int column_index_label = 2,
int column_index_URL = 3);
~TableLinkstatus();
- virtual void setColumns(QStringList const& columns);
+ virtual void setColumns(TQStringList const& columns);
/* Insere uma nova entrada no fim da tabela */
virtual void insertResult(LinkStatus const* linkstatus);
@@ -66,7 +66,7 @@ public:
virtual void showAll();
- /* Specialization of QTable::ensureCellVisible */
+ /* Specialization of TQTable::ensureCellVisible */
virtual void ensureCellVisible(int row, int col);
virtual bool textFitsInCell(int row, int col) const;
@@ -76,7 +76,7 @@ public:
private slots:
- virtual void slotPopupContextMenu(int row, int col, const QPoint& pos);
+ virtual void slotPopupContextMenu(int row, int col, const TQPoint& pos);
virtual void slotCopyUrlToClipboard() const;
virtual void slotCopyParentUrlToClipboard() const;
virtual void slotCopyCellTextToClipboard() const;
@@ -85,7 +85,7 @@ private slots:
virtual void slotEditReferrerWithQuanta(KURL const& url);
virtual void slotViewUrlInBrowser();
virtual void slotViewParentUrlInBrowser();
- virtual void loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root = false);
+ virtual void loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root = false);
private:
@@ -98,17 +98,17 @@ private:
int col_label_;
int col_url_;
CellToolTip* cell_tip_;
- QPopupMenu context_table_menu_;
- QPopupMenu* sub_menu_;
+ TQPopupMenu context_table_menu_;
+ TQPopupMenu* sub_menu_;
*/
};
-class TableItem: public QTableItem, public ResultViewItem
+class TableItem: public TQTableItem, public ResultViewItem
{
public:
- TableItem(QTable* table, EditType et,
+ TableItem(TQTable* table, EditType et,
LinkStatus const* linkstatus,
int column_index, int alignment = Qt::AlignLeft);
virtual ~TableItem();
@@ -119,14 +119,14 @@ public:
void setAlignment(int aFlags);
virtual int alignment() const;
- virtual QString toolTip() const = 0;
+ virtual TQString toolTip() const = 0;
//LinkStatus const* const linkStatus() const;
protected:
- //QColor const& textStatusColor() const;
- virtual void paint( QPainter *p, const QColorGroup &cg,
- const QRect &cr, bool selected );
+ //TQColor const& textStatusColor() const;
+ virtual void paint( TQPainter *p, const TQColorGroup &cg,
+ const TQRect &cr, bool selected );
virtual void setText() = 0;
virtual void setPixmap() = 0;
@@ -142,18 +142,18 @@ class TableItemURL: public TableItem
{
public:
- TableItemURL(QTable* table, EditType et,
+ TableItemURL(TQTable* table, EditType et,
LinkStatus const* linkstatus, int column_index = 3);
//virtual ~TableItemURL(){};
- virtual QString toolTip() const;
+ virtual TQString toolTip() const;
protected:
virtual void setText();
virtual void setPixmap();
- virtual void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected );
- QColor const& textStatusColor() const;
+ virtual void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected );
+ TQColor const& textStatusColor() const;
};
@@ -161,17 +161,17 @@ class TableItemStatus: public TableItem
{
public:
- TableItemStatus(QTable* table, EditType et,
+ TableItemStatus(TQTable* table, EditType et,
LinkStatus const* linkstatus, int column_index = 1);
//virtual ~TableItemStatus(){};
- virtual QString toolTip() const;
+ virtual TQString toolTip() const;
protected:
virtual void setText();
virtual void setPixmap();
- virtual void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected );
+ virtual void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected );
};
@@ -179,24 +179,24 @@ class TableItemNome: public TableItem
{
public:
- TableItemNome(QTable* table, EditType et,
+ TableItemNome(TQTable* table, EditType et,
LinkStatus const* linkstatus, int column_index = 2);
//virtual ~TableItemNome(){};
- virtual QString toolTip() const;
+ virtual TQString toolTip() const;
protected:
virtual void setText();
virtual void setPixmap();
- //virtual void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected );
+ //virtual void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected );
};
-inline void TableItem::paint( QPainter *p, const QColorGroup &cg,
- const QRect &cr, bool selected )
+inline void TableItem::paint( TQPainter *p, const TQColorGroup &cg,
+ const TQRect &cr, bool selected )
{
- QTableItem::paint(p, cg, cr, selected);
+ TQTableItem::paint(p, cg, cr, selected);
}
#endif
diff --git a/klinkstatus/src/ui/tabwidgetsession.cpp b/klinkstatus/src/ui/tabwidgetsession.cpp
index 9d9033a7..d692486a 100644
--- a/klinkstatus/src/ui/tabwidgetsession.cpp
+++ b/klinkstatus/src/ui/tabwidgetsession.cpp
@@ -24,13 +24,13 @@
#include "../engine/searchmanager.h"
#include "../actionmanager.h"
-#include <qtoolbutton.h>
-#include <qcursor.h>
-#include <qtooltip.h>
-#include <qpushbutton.h>
-#include <qpixmap.h>
-#include <qiconset.h>
-#include <qstringlist.h>
+#include <tqtoolbutton.h>
+#include <tqcursor.h>
+#include <tqtooltip.h>
+#include <tqpushbutton.h>
+#include <tqpixmap.h>
+#include <tqiconset.h>
+#include <tqstringlist.h>
#include <kapplication.h>
#include <kstandarddirs.h>
@@ -42,10 +42,10 @@
#include <kiconloader.h>
-TabWidgetSession::TabWidgetSession(QWidget* parent, const char* name, WFlags f)
+TabWidgetSession::TabWidgetSession(TQWidget* parent, const char* name, WFlags f)
: KTabWidget(parent, name, f) // tabs_ is initialized with size 17
{
- setFocusPolicy(QTabWidget::NoFocus);
+ setFocusPolicy(TQTabWidget::NoFocus);
setMargin(0);
setTabReorderingEnabled(true);
setHoverCloseButton(true);
@@ -53,23 +53,23 @@ TabWidgetSession::TabWidgetSession(QWidget* parent, const char* name, WFlags f)
tabs_.setAutoDelete(false);
- QToolButton* tabs_new = new QToolButton(this);
- tabs_new->setAccel(QKeySequence("Ctrl+N"));
- connect(tabs_new, SIGNAL(clicked()), this, SLOT(slotNewSession()));
+ TQToolButton* tabs_new = new TQToolButton(this);
+ tabs_new->setAccel(TQKeySequence("Ctrl+N"));
+ connect(tabs_new, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewSession()));
tabs_new->setIconSet(SmallIconSet("tab_new_raised"));
tabs_new->adjustSize();
- QToolTip::add(tabs_new, i18n("Open new tab"));
+ TQToolTip::add(tabs_new, i18n("Open new tab"));
setCornerWidget(tabs_new, TopLeft);
- tabs_close_ = new QToolButton(this);
- tabs_close_->setAccel(QKeySequence("Ctrl+W"));
- connect(tabs_close_, SIGNAL(clicked()), this, SLOT(closeSession()));
+ tabs_close_ = new TQToolButton(this);
+ tabs_close_->setAccel(TQKeySequence("Ctrl+W"));
+ connect(tabs_close_, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeSession()));
tabs_close_->setIconSet(SmallIconSet("tab_remove"));
tabs_close_->adjustSize();
- QToolTip::add(tabs_close_, i18n("Close the current tab"));
+ TQToolTip::add(tabs_close_, i18n("Close the current tab"));
setCornerWidget(tabs_close_, TopRight);
- connect(this, SIGNAL(currentChanged(QWidget*)), this, SLOT(slotCurrentChanged(QWidget*)));
+ connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(slotCurrentChanged(TQWidget*)));
}
TabWidgetSession::~TabWidgetSession()
@@ -108,7 +108,7 @@ SessionWidget* TabWidgetSession::getEmptySession() const
}
// Remember to use count() and not size()
-QIntDict<SessionWidget> const& TabWidgetSession::sessions() const
+TQIntDict<SessionWidget> const& TabWidgetSession::sessions() const
{
return tabs_;
}
@@ -117,10 +117,10 @@ SessionWidget* TabWidgetSession::newSession()
{
// TODO: settings: number of connections, timeout
SessionWidget* session_widget = newSessionWidget();
- connect(session_widget, SIGNAL(signalUpdateTabLabel(const LinkStatus *, SessionWidget*)),
- this, SLOT(updateTabLabel(const LinkStatus *, SessionWidget*)));
+ connect(session_widget, TQT_SIGNAL(signalUpdateTabLabel(const LinkStatus *, SessionWidget*)),
+ this, TQT_SLOT(updateTabLabel(const LinkStatus *, SessionWidget*)));
- insertTab(session_widget, i18n("Session") + i18n(QString::number(count() + 1).ascii()));
+ insertTab(session_widget, i18n("Session") + i18n(TQString::number(count() + 1).ascii()));
tabs_.insert(count() - 1, session_widget);
Q_ASSERT(tabs_[count() - 1]);
@@ -149,9 +149,9 @@ void TabWidgetSession::closeSession()
SessionWidget* TabWidgetSession::newSessionWidget()
{
SessionWidget* session_widget = new SessionWidget(KLSConfig::maxConnectionsNumber(),
- KLSConfig::timeOut(), this, QString("session_widget-" + count()));
+ KLSConfig::timeOut(), this, TQString("session_widget-" + count()));
- QStringList columns;
+ TQStringList columns;
columns.push_back(TreeView::URL_LABEL);
columns.push_back(TreeView::STATUS_LABEL);
@@ -168,7 +168,7 @@ SessionWidget* TabWidgetSession::newSessionWidget()
void TabWidgetSession::updateTabLabel(LinkStatus const* linkstatus, SessionWidget* page)
{
- QString label;
+ TQString label;
KURL url = linkstatus->absoluteUrl();
if(linkstatus->hasHtmlDocTitle())
@@ -187,7 +187,7 @@ void TabWidgetSession::updateTabLabel(LinkStatus const* linkstatus, SessionWidge
}
changeTab(page, KCharsets::resolveEntities(label));
- setTabIconSet(page, QIconSet(KMimeType::pixmapForURL(url)));
+ setTabIconSet(page, TQIconSet(KMimeType::pixmapForURL(url)));
}
void TabWidgetSession::slotLoadSettings()
@@ -210,7 +210,7 @@ void TabWidgetSession::setUrl(KURL const& url)
currentSession()->setUrl(url);
}
-void TabWidgetSession::slotCurrentChanged(QWidget* /*page*/)
+void TabWidgetSession::slotCurrentChanged(TQWidget* /*page*/)
{
tabs_close_->setEnabled(count() > 1);
diff --git a/klinkstatus/src/ui/tabwidgetsession.h b/klinkstatus/src/ui/tabwidgetsession.h
index 616c8173..90b755b6 100644
--- a/klinkstatus/src/ui/tabwidgetsession.h
+++ b/klinkstatus/src/ui/tabwidgetsession.h
@@ -23,7 +23,7 @@
#include <ktabwidget.h>
#include <kurl.h>
-#include <qintdict.h>
+#include <tqintdict.h>
class QToolButton;
class SessionWidget;
@@ -40,7 +40,7 @@ class TabWidgetSession : public KTabWidget
Q_OBJECT
public:
- TabWidgetSession(QWidget * parent = 0, const char * name = 0, WFlags f = 0);
+ TabWidgetSession(TQWidget * parent = 0, const char * name = 0, WFlags f = 0);
~TabWidgetSession();
/** Set the URL in the current session widget */
@@ -50,7 +50,7 @@ public:
bool emptySessionsExist() const;
/** Returns the first empty session it finds */
SessionWidget* getEmptySession() const;
- QIntDict<SessionWidget> const& sessions() const;
+ TQIntDict<SessionWidget> const& sessions() const;
public slots:
@@ -72,14 +72,14 @@ public slots:
void slotExportAsHTML();
private slots:
- void slotCurrentChanged(QWidget* page);
+ void slotCurrentChanged(TQWidget* page);
private:
SessionWidget* newSessionWidget();
private:
- QIntDict<SessionWidget> tabs_;
- QToolButton* tabs_close_;
+ TQIntDict<SessionWidget> tabs_;
+ TQToolButton* tabs_close_;
};
#endif
diff --git a/klinkstatus/src/ui/treeview.cpp b/klinkstatus/src/ui/treeview.cpp
index 7ad92d8e..14e0e12a 100644
--- a/klinkstatus/src/ui/treeview.cpp
+++ b/klinkstatus/src/ui/treeview.cpp
@@ -28,9 +28,9 @@
#include <dcopclient.h>
#include <kcharsets.h>
-#include <qvaluevector.h>
-#include <qheader.h>
-#include <qclipboard.h>
+#include <tqvaluevector.h>
+#include <tqheader.h>
+#include <tqclipboard.h>
#include "treeview.h"
#include "../global.h"
@@ -39,7 +39,7 @@
#include "../cfg/klsconfig.h"
-TreeView::TreeView(QWidget *parent, const char *name)
+TreeView::TreeView(TQWidget *parent, const char *name)
: KListView(parent, name),
ResultView(),
current_column_(0)
@@ -50,12 +50,12 @@ TreeView::TreeView(QWidget *parent, const char *name)
setShowSortIndicator(true);
//setFocusPolicy( WheelFocus );
setRootIsDecorated(KLSConfig::displayTreeView());
-// setResizeMode(QListView::LastColumn);
+// setResizeMode(TQListView::LastColumn);
- sub_menu_ = new QPopupMenu(this, "sub_menu_referrers");
+ sub_menu_ = new TQPopupMenu(this, "sub_menu_referrers");
- connect(this, SIGNAL( rightButtonClicked ( QListViewItem *, const QPoint &, int )),
- this, SLOT( slotPopupContextMenu( QListViewItem *, const QPoint &, int )) );
+ connect(this, TQT_SIGNAL( rightButtonClicked ( TQListViewItem *, const TQPoint &, int )),
+ this, TQT_SLOT( slotPopupContextMenu( TQListViewItem *, const TQPoint &, int )) );
}
@@ -64,7 +64,7 @@ TreeView::~TreeView()
saveLayout(KLSConfig::self()->config(), "klinkstatus");
}
-void TreeView::setColumns(QStringList const& columns)
+void TreeView::setColumns(TQStringList const& columns)
{
ResultView::setColumns(columns);
removeColunas();
@@ -73,7 +73,7 @@ void TreeView::setColumns(QStringList const& columns)
for(uint i = 0; i != columns.size(); ++i)
{
addColumn(i18n(columns[i]));
- setColumnWidthMode(i, QListView::Manual);
+ setColumnWidthMode(i, TQListView::Manual);
}
setColumnAlignment(col_status_ - 1, Qt::AlignCenter);
@@ -85,10 +85,10 @@ void TreeView::resetColumns()
{
setColumnWidth(col_url_ - 1, (int)(0.45 * width()));
- setResizeMode(QListView::LastColumn); // fit to the window
+ setResizeMode(TQListView::LastColumn); // fit to the window
// resize again
- setColumnWidthMode(col_label_ - 1, QListView::Manual);
- setResizeMode(QListView::NoColumn);
+ setColumnWidthMode(col_label_ - 1, TQListView::Manual);
+ setResizeMode(TQListView::NoColumn);
}
double TreeView::columnsWidth() const
@@ -116,7 +116,7 @@ void TreeView::removeColunas()
void TreeView::show(ResultView::Status const& status)
{
- QListViewItemIterator it(static_cast<KListView*> (this));
+ TQListViewItemIterator it(static_cast<KListView*> (this));
while(it.current())
{
TreeViewItem* item = myItem(it.current());
@@ -155,7 +155,7 @@ void TreeView::show(ResultView::Status const& status)
void TreeView::show(LinkMatcher link_matcher)
{
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
while(it.current())
{
TreeViewItem* item = myItem(it.current());
@@ -172,7 +172,7 @@ void TreeView::show(LinkMatcher link_matcher)
void TreeView::showAll()
{
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
while(it.current())
{
it.current()->setVisible(true);
@@ -181,9 +181,9 @@ void TreeView::showAll()
}
}
-void TreeView::ensureRowVisible(const QListViewItem * i, bool tree_display)
+void TreeView::ensureRowVisible(const TQListViewItem * i, bool tree_display)
{
- QScrollBar* vertical_scroll_bar = verticalScrollBar();
+ TQScrollBar* vertical_scroll_bar = verticalScrollBar();
if(tree_display ||
vertical_scroll_bar->value() > (vertical_scroll_bar->maxValue() - vertical_scroll_bar->lineStep()))
@@ -195,21 +195,21 @@ bool TreeView::isEmpty() const
return !childCount();
}
-void TreeView::resizeEvent(QResizeEvent *e)
+void TreeView::resizeEvent(TQResizeEvent *e)
{
KListView::resizeEvent(e);
resetColumns();
clipper()->repaint();
}
-void TreeView::slotPopupContextMenu(QListViewItem* item, const QPoint& pos, int col)
+void TreeView::slotPopupContextMenu(TQListViewItem* item, const TQPoint& pos, int col)
{
current_column_ = col;
TreeViewItem* tree_item = myItem(item);
if(tree_item)
{
- QValueVector<KURL> referrers = tree_item->linkStatus()->referrers();
+ TQValueVector<KURL> referrers = tree_item->linkStatus()->referrers();
loadContextTableMenu(referrers, tree_item->linkStatus()->isRoot());
context_table_menu_.popup(pos);
}
@@ -218,7 +218,7 @@ void TreeView::slotPopupContextMenu(QListViewItem* item, const QPoint& pos, int
void TreeView::slotCopyUrlToClipboard() const
{
TreeViewItem* _item = myItem(currentItem());
- QString content(_item->linkStatus()->absoluteUrl().prettyURL());
+ TQString content(_item->linkStatus()->absoluteUrl().prettyURL());
QClipboard* cb = kapp->clipboard();
cb->setText(content);
}
@@ -226,7 +226,7 @@ void TreeView::slotCopyUrlToClipboard() const
void TreeView::slotCopyParentUrlToClipboard() const
{
TreeViewItem* _item = myItem(currentItem());
- QString content(_item->linkStatus()->parent()->absoluteUrl().prettyURL());
+ TQString content(_item->linkStatus()->parent()->absoluteUrl().prettyURL());
QClipboard* cb = kapp->clipboard();
cb->setText(content);
}
@@ -234,7 +234,7 @@ void TreeView::slotCopyParentUrlToClipboard() const
void TreeView::slotCopyCellTextToClipboard() const
{
TreeViewItem* _item = myItem(currentItem());
- QString cell_text(_item->text(current_column_));
+ TQString cell_text(_item->text(current_column_));
QClipboard* cb = kapp->clipboard();
cb->setText(cell_text);
}
@@ -242,7 +242,7 @@ void TreeView::slotCopyCellTextToClipboard() const
void TreeView::slotEditReferrersWithQuanta()
{
TreeViewItem* _item = myItem(currentItem());
- QValueVector<KURL> referrers = _item->linkStatus()->referrers();
+ TQValueVector<KURL> referrers = _item->linkStatus()->referrers();
if(Global::isQuantaAvailableViaDCOP())
{
@@ -251,7 +251,7 @@ void TreeView::slotEditReferrersWithQuanta()
}
else
{
- QStringList list_urls;
+ TQStringList list_urls;
for(uint i = 0; i != referrers.size(); ++i)
list_urls.append(referrers[i].url());
@@ -275,7 +275,7 @@ void TreeView::slotEditReferrerWithQuanta(int id)
index -= 2; // The list of referrers starts on index = 2
TreeViewItem* _item = myItem(currentItem());
- QValueVector<KURL> referrers = _item->linkStatus()->referrers();
+ TQValueVector<KURL> referrers = _item->linkStatus()->referrers();
Q_ASSERT(index >= 0 && (uint)index < referrers.size());
slotEditReferrerWithQuanta(referrers[index]);
@@ -283,7 +283,7 @@ void TreeView::slotEditReferrerWithQuanta(int id)
void TreeView::slotEditReferrerWithQuanta(KURL const& url)
{
- QString filePath = url.url();
+ TQString filePath = url.url();
if(Global::isQuantaAvailableViaDCOP())
{
@@ -292,13 +292,13 @@ void TreeView::slotEditReferrerWithQuanta(KURL const& url)
if(!success)
{
- QString message = i18n("<qt>File <b>%1</b> cannot be opened. Might be a DCOP problem.</qt>").arg(filePath);
+ TQString message = i18n("<qt>File <b>%1</b> cannot be opened. Might be a DCOP problem.</qt>").arg(filePath);
KMessageBox::error(parentWidget(), message);
}
}
else
{
- QStringList args(url.url());
+ TQStringList args(url.url());
Global::openQuanta(args);
}
}
@@ -338,21 +338,21 @@ void TreeView::slotViewParentUrlInBrowser()
}
}
-void TreeView::loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root)
+void TreeView::loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root)
{
context_table_menu_.clear();
sub_menu_->clear();
if(!is_root)
{
- sub_menu_->insertItem(i18n("All"), this, SLOT(slotEditReferrersWithQuanta()));
+ sub_menu_->insertItem(i18n("All"), this, TQT_SLOT(slotEditReferrersWithQuanta()));
sub_menu_->insertSeparator();
for(uint i = 0; i != referrers.size(); ++i)
{
sub_menu_->insertItem(referrers[i].prettyURL());
}
- connect(sub_menu_, SIGNAL(activated(int)), this, SLOT(slotEditReferrerWithQuanta(int)));
+ connect(sub_menu_, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotEditReferrerWithQuanta(int)));
context_table_menu_.insertItem(SmallIconSet("edit"), i18n("Edit Referrer with Quanta"),
sub_menu_);
@@ -365,24 +365,24 @@ void TreeView::loadContextTableMenu(QValueVector<KURL> const& referrers, bool is
}
context_table_menu_.insertItem(SmallIconSet("fileopen"), i18n("Open URL"),
- this, SLOT(slotViewUrlInBrowser()));
+ this, TQT_SLOT(slotViewUrlInBrowser()));
context_table_menu_.insertItem(/*SmallIconSet("fileopen"), */i18n("Open Referrer URL"),
- this, SLOT(slotViewParentUrlInBrowser()));
+ this, TQT_SLOT(slotViewParentUrlInBrowser()));
context_table_menu_.insertSeparator();
context_table_menu_.insertItem(SmallIconSet("editcopy"), i18n("Copy URL"),
- this, SLOT(slotCopyUrlToClipboard()));
+ this, TQT_SLOT(slotCopyUrlToClipboard()));
context_table_menu_.insertItem(/*SmallIconSet("editcopy"), */i18n("Copy Referrer URL"),
- this, SLOT(slotCopyParentUrlToClipboard()));
+ this, TQT_SLOT(slotCopyParentUrlToClipboard()));
context_table_menu_.insertItem(/*SmallIconSet("editcopy"), */i18n("Copy Cell Text"),
- this, SLOT(slotCopyCellTextToClipboard()));
+ this, TQT_SLOT(slotCopyCellTextToClipboard()));
}
-TreeViewItem* TreeView::myItem(QListViewItem* item) const
+TreeViewItem* TreeView::myItem(TQListViewItem* item) const
{
TreeViewItem* _item = dynamic_cast<TreeViewItem*> (item);
Q_ASSERT(_item);
@@ -392,7 +392,7 @@ TreeViewItem* TreeView::myItem(QListViewItem* item) const
/* ******************************* TreeViewItem ******************************* */
-TreeViewItem::TreeViewItem(TreeView* parent, QListViewItem* after,
+TreeViewItem::TreeViewItem(TreeView* parent, TQListViewItem* after,
LinkStatus const* linkstatus)
: KListViewItem(parent, after),
last_child_(0), root_(parent)
@@ -400,7 +400,7 @@ TreeViewItem::TreeViewItem(TreeView* parent, QListViewItem* after,
init(linkstatus);
}
-TreeViewItem::TreeViewItem(TreeView* root, QListViewItem* listview_item, QListViewItem* after,
+TreeViewItem::TreeViewItem(TreeView* root, TQListViewItem* listview_item, TQListViewItem* after,
LinkStatus const* linkstatus)
: KListViewItem(listview_item, after),
last_child_(0), root_(root)
@@ -433,18 +433,18 @@ void TreeViewItem::init(LinkStatus const* linkstatus)
}
}
-void TreeViewItem::setLastChild(QListViewItem* last_child)
+void TreeViewItem::setLastChild(TQListViewItem* last_child)
{
Q_ASSERT(last_child);
last_child_ = last_child;
}
-QListViewItem* TreeViewItem::lastChild() const
+TQListViewItem* TreeViewItem::lastChild() const
{
return last_child_;
}
-QString TreeViewItem::key(int column, bool) const
+TQString TreeViewItem::key(int column, bool) const
{
// FIXME magic numbers
switch(column)
@@ -461,14 +461,14 @@ LinkStatus const* TreeViewItem::linkStatus() const
return column_items_[0].linkStatus();
}
-void TreeViewItem::paintCell(QPainter * p, const QColorGroup & cg, int column, int width, int align)
+void TreeViewItem::paintCell(TQPainter * p, const TQColorGroup & cg, int column, int width, int align)
{
TreeColumnViewItem item = column_items_[column];
// Get a color to draw the text
- QColorGroup m_cg(cg);
- QColor color(item.textStatusColor());
- m_cg.setColor(QColorGroup::Text, color);
+ TQColorGroup m_cg(cg);
+ TQColor color(item.textStatusColor());
+ m_cg.setColor(TQColorGroup::Text, color);
KListViewItem::paintCell(p, m_cg, column, width, align);
@@ -507,7 +507,7 @@ LinkStatus const* TreeColumnViewItem::linkStatus() const
return ls_;
}
-QColor const& TreeColumnViewItem::textStatusColor() const
+TQColor const& TreeColumnViewItem::textStatusColor() const
{
if(columnIndex() == root_->urlColumnIndex() || columnIndex() == root_->statusColumnIndex())
{
@@ -537,7 +537,7 @@ QColor const& TreeColumnViewItem::textStatusColor() const
}
-QString TreeColumnViewItem::text(int column) const
+TQString TreeColumnViewItem::text(int column) const
{
Q_ASSERT(column > 0);
@@ -559,19 +559,19 @@ QString TreeColumnViewItem::text(int column) const
}
else if(column == root_->statusColumnIndex())
{
- return QString();
+ return TQString();
}
else if(column == root_->labelColumnIndex())
{
- QString label(linkStatus()->label());
+ TQString label(linkStatus()->label());
if(!label.isNull())
return label.simplifyWhiteSpace();
}
- return QString();
+ return TQString();
}
-QPixmap TreeColumnViewItem::pixmap(int column) const
+TQPixmap TreeColumnViewItem::pixmap(int column) const
{
Q_ASSERT(column > 0);
@@ -602,7 +602,7 @@ QPixmap TreeColumnViewItem::pixmap(int column) const
return SmallIcon("help");
}
- return QPixmap();
+ return TQPixmap();
}
diff --git a/klinkstatus/src/ui/treeview.h b/klinkstatus/src/ui/treeview.h
index eef34ff8..4d67c4f4 100644
--- a/klinkstatus/src/ui/treeview.h
+++ b/klinkstatus/src/ui/treeview.h
@@ -23,18 +23,18 @@ class LinkMatcher;
@author Paulo Moura Guedes
TreeView and TreeViewItem and currently a little messes up in its API
because of ResultView. ResultView class was to be the base interface to
-a QTable and a QListView, but the APIs are a little diferent... then I realize
-that a QTable view isn't needed at all so some day I will clean this up.
+a TQTable and a TQListView, but the APIs are a little diferent... then I realize
+that a TQTable view isn't needed at all so some day I will clean this up.
*/
class TreeView : public KListView, public ResultView
{
Q_OBJECT
public:
- TreeView(QWidget *parent = 0, const char *name = 0);
+ TreeView(TQWidget *parent = 0, const char *name = 0);
~TreeView();
- virtual void setColumns(QStringList const& columns);
+ virtual void setColumns(TQStringList const& columns);
virtual void clear();
void removeColunas();
virtual void show(ResultView::Status const& status);
@@ -48,17 +48,17 @@ public:
except if the user scrolls the view up (like Konsole).
If tree_view, it follows always the last link inserted.
*/
- void ensureRowVisible(const QListViewItem * i, bool tree_display);
+ void ensureRowVisible(const TQListViewItem * i, bool tree_display);
virtual bool isEmpty() const;
- TreeViewItem* myItem(QListViewItem* item) const;
+ TreeViewItem* myItem(TQListViewItem* item) const;
protected:
- virtual void resizeEvent(QResizeEvent *e);
+ virtual void resizeEvent(TQResizeEvent *e);
private slots:
- void slotPopupContextMenu(QListViewItem *, const QPoint &, int);
+ void slotPopupContextMenu(TQListViewItem *, const TQPoint &, int);
virtual void slotCopyUrlToClipboard() const;
virtual void slotCopyParentUrlToClipboard() const;
virtual void slotCopyCellTextToClipboard() const;
@@ -67,7 +67,7 @@ private slots:
virtual void slotEditReferrerWithQuanta(KURL const& url);
virtual void slotViewUrlInBrowser();
virtual void slotViewParentUrlInBrowser();
- virtual void loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root = false);
+ virtual void loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root = false);
private:
void resetColumns();
@@ -90,27 +90,27 @@ class TreeViewItem: public KListViewItem
{
public:
- TreeViewItem(TreeView* parent, QListViewItem* after,
+ TreeViewItem(TreeView* parent, TQListViewItem* after,
LinkStatus const* linkstatus);
- TreeViewItem(TreeView* root, QListViewItem* parent_item, QListViewItem* after,
+ TreeViewItem(TreeView* root, TQListViewItem* parent_item, TQListViewItem* after,
LinkStatus const* linkstatus);
virtual ~TreeViewItem();
- void setLastChild(QListViewItem* last_child);
- QListViewItem* lastChild() const;
+ void setLastChild(TQListViewItem* last_child);
+ TQListViewItem* lastChild() const;
- QString key(int column, bool) const;
+ TQString key(int column, bool) const;
LinkStatus const* linkStatus() const;
protected:
- virtual void paintCell(QPainter * p, const QColorGroup & cg, int column, int width, int align);
+ virtual void paintCell(TQPainter * p, const TQColorGroup & cg, int column, int width, int align);
private:
void init(LinkStatus const* linkstatus);
private:
- QValueVector<TreeColumnViewItem> column_items_;
- QListViewItem* last_child_;
+ TQValueVector<TreeColumnViewItem> column_items_;
+ TQListViewItem* last_child_;
TreeView* root_;
};
@@ -129,9 +129,9 @@ public:
//void setColumnIndex(int i);
int columnIndex() const;
LinkStatus const* linkStatus() const;
- QColor const& textStatusColor() const;
- QString text(int column) const;
- QPixmap pixmap(int column) const;
+ TQColor const& textStatusColor() const;
+ TQString text(int column) const;
+ TQPixmap pixmap(int column) const;
private:
TreeView* root_;