summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/sessionwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/ui/sessionwidget.cpp')
-rw-r--r--klinkstatus/src/ui/sessionwidget.cpp102
1 files changed, 51 insertions, 51 deletions
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();