diff options
Diffstat (limited to 'ksirc/servercontroller.cpp')
-rw-r--r-- | ksirc/servercontroller.cpp | 250 |
1 files changed, 125 insertions, 125 deletions
diff --git a/ksirc/servercontroller.cpp b/ksirc/servercontroller.cpp index 0b03d1ab..0e7892b9 100644 --- a/ksirc/servercontroller.cpp +++ b/ksirc/servercontroller.cpp @@ -13,14 +13,14 @@ new_connection(): Creates popup asking for new connection - new_ksircprocess(QString): + new_ksircprocess(TQString): Args: - QString: new server name or IP to connect to. + TQString: new server name or IP to connect to. Action: Creates a new sirc process and window !default connected to the server. Does nothing if a server connection already exists. - add_toplevel(QString parent, QString child): + add_toplevel(TQString parent, TQString child): Args: parent: the server name that the new channel is being joined on child: the new channel name @@ -28,7 +28,7 @@ Adds "child" to the list of joined channles in the main window. Always call this on new window creation! - delete_toplevel(QString parent, QString child): + delete_toplevel(TQString parent, TQString child): Args: parent: the server name of which channel is closing child: the channle that is closing. IFF Emtpy, parent is @@ -40,7 +40,7 @@ new_channel: Creates popup asking for new channel name - new_toplevel(QString str): + new_toplevel(TQString str): Args: str: name of the new channel to be created Action: @@ -48,7 +48,7 @@ list and join the requested channel. Does nothing if nothing is selected in the tree list. - recvChangeChanel(QString parent, QString old, QString new): + recvChangeChanel(TQString parent, TQString old, TQString new): Args: parent: parent server connection old: the old name for the window @@ -78,8 +78,8 @@ #include <stdlib.h> #include "objFinder.h" -#include <qlabel.h> -#include <qregexp.h> +#include <tqlabel.h> +#include <tqregexp.h> #include <kmenubar.h> #include <kconfig.h> @@ -98,7 +98,7 @@ #include <kglobalaccel.h> #include <kstdguiitem.h> -#include <qfile.h> +#include <tqfile.h> #include "displayMgrSDI.h" #include "displayMgrMDI.h" @@ -116,7 +116,7 @@ DisplayMgr *displayMgr; servercontroller *servercontroller::s_self = 0; -servercontroller::servercontroller( QWidget*, const char* name ) +servercontroller::servercontroller( TQWidget*, const char* name ) : KMainWindow( 0, name ) { we_are_exiting = false; @@ -139,43 +139,43 @@ servercontroller::servercontroller( QWidget*, const char* name ) break; } - sci = new scInside(this, QCString(name) + "_mainview"); + sci = new scInside(this, TQCString(name) + "_mainview"); setCentralWidget(sci); - sci->setFrameStyle(QFrame::Box | QFrame::Raised); + sci->setFrameStyle(TQFrame::Box | TQFrame::Raised); ConnectionTree = sci->ConnectionTree; - connect(ConnectionTree, SIGNAL(clicked( QListViewItem * )), - this, SLOT(WindowSelected(QListViewItem *))); + connect(ConnectionTree, TQT_SIGNAL(clicked( TQListViewItem * )), + this, TQT_SLOT(WindowSelected(TQListViewItem *))); setFrameBorderWidth(5); - QPopupMenu *file = new QPopupMenu(this, QCString(name) + "_menu_file"); - KStdAction::quit(this, SLOT(endksirc()), actionCollection())->plug(file); + TQPopupMenu *file = new TQPopupMenu(this, TQCString(name) + "_menu_file"); + KStdAction::quit(this, TQT_SLOT(endksirc()), actionCollection())->plug(file); #ifndef NDEBUG - file->insertItem(i18n("Dump Object Tree"), this, SLOT(dump_obj())); - file->insertItem(i18n("Server Debug Window"), this, SLOT(server_debug())); + file->insertItem(i18n("Dump Object Tree"), this, TQT_SLOT(dump_obj())); + file->insertItem(i18n("Server Debug Window"), this, TQT_SLOT(server_debug())); #endif MenuBar->insertItem(i18n("&File"), file); - connections = new QPopupMenu(this, QCString(name) + "_menu_connections"); + connections = new TQPopupMenu(this, TQCString(name) + "_menu_connections"); - server_id = connections->insertItem(i18n("&New Server..."), this, SLOT(new_connection()), Key_F2 ); - join_id = connections->insertItem(i18n("&Join Channel..."), this, SLOT(new_channel()), Key_F3 ); + server_id = connections->insertItem(i18n("&New Server..."), this, TQT_SLOT(new_connection()), Key_F2 ); + join_id = connections->insertItem(i18n("&Join Channel..."), this, TQT_SLOT(new_channel()), Key_F3 ); connections->insertSeparator(); - connections->insertItem(i18n("&Do Autoconnect..."), this, SLOT(start_autoconnect_check())); + connections->insertItem(i18n("&Do Autoconnect..."), this, TQT_SLOT(start_autoconnect_check())); connections->setItemEnabled(join_id, FALSE); MenuBar->insertItem(i18n("&Connections"), connections); - options = new QPopupMenu(this, QCString(name) + "_menu_options"); + options = new TQPopupMenu(this, TQCString(name) + "_menu_options"); options->setCheckable(TRUE); options->insertItem(SmallIcon( "filter" ), i18n("&Filter Rule Editor..."), - this, SLOT(filter_rule_editor())); + this, TQT_SLOT(filter_rule_editor())); options->insertSeparator(); - KStdAction::configureNotifications(this, SLOT(notification_prefs()), actionCollection())->plug(options); + KStdAction::configureNotifications(this, TQT_SLOT(notification_prefs()), actionCollection())->plug(options); - KStdAction::preferences(this, SLOT(general_prefs()), actionCollection())->plug(options); + KStdAction::preferences(this, TQT_SLOT(general_prefs()), actionCollection())->plug(options); MenuBar->insertItem(i18n("&Settings"), options); @@ -188,7 +188,7 @@ servercontroller::servercontroller( QWidget*, const char* name ) "when in docked mode, since you don't need to click on the " "dock icon."), ALT+CTRL+Key_C, KKey::QtWIN+CTRL+Key_C, this, - SLOT(new_connection())); + TQT_SLOT(new_connection())); open_toplevels = 0; @@ -239,41 +239,41 @@ void servercontroller::checkDocking() void servercontroller::new_connection() { open_ksirc *w = new open_ksirc(); // Create new ksirc popup - connect(w, SIGNAL(open_ksircprocess(KSircServer &)), // connected ok to process - this, SLOT(new_ksircprocess(KSircServer &))); // start + connect(w, TQT_SIGNAL(open_ksircprocess(KSircServer &)), // connected ok to process + this, TQT_SLOT(new_ksircprocess(KSircServer &))); // start w->exec(); // show the sucker! delete w; } void servercontroller::new_ksircprocess(KSircServer &kss) { - QString server_id; + TQString server_id; int id = 1; if(kss.server().isEmpty()) // nothing entered, nothing done return; server_id = kss.server(); while(proc_list[server_id]){ // if it already exists, quit - server_id = QString("%1 %2").arg(kss.server()).arg(id++); + server_id = TQString("%1 %2").arg(kss.server()).arg(id++); } // Insert new base - QListViewItem *rootItem = new QListViewItem( ConnectionTree, server_id ); + TQListViewItem *rootItem = new TQListViewItem( ConnectionTree, server_id ); rootItem->setPixmap( 0, pic_server ); rootItem->setOpen( true ); // We do no_channel here since proc emits the signal in the // constructor, and we can't connect to before then, so we have to // do the dirty work here. - ProcMessage(server_id, ProcCommand::addTopLevel, QString("no_channel")); + ProcMessage(server_id, ProcCommand::addTopLevel, TQString("no_channel")); - KSircProcess *proc = new KSircProcess(server_id, kss, 0, (QString(name()) + "_" + server_id + "_ksp").ascii() ); // Create proc + KSircProcess *proc = new KSircProcess(server_id, kss, 0, (TQString(name()) + "_" + server_id + "_ksp").ascii() ); // Create proc //this->insertChild(proc); // Add it to out inheritance tree so we can retreive child widgets from it. objFinder::insert(proc); proc_list.insert(server_id, proc); // Add proc to hash - connect(proc, SIGNAL(ProcMessage(QString, int, QString)), - this, SLOT(ProcMessage(QString, int, QString))); - connect(this, SIGNAL(ServMessage(QString, int, QString)), - proc, SLOT(ServMessage(QString, int, QString))); + connect(proc, TQT_SIGNAL(ProcMessage(TQString, int, TQString)), + this, TQT_SLOT(ProcMessage(TQString, int, TQString))); + connect(this, TQT_SIGNAL(ServMessage(TQString, int, TQString)), + proc, TQT_SLOT(ServMessage(TQString, int, TQString))); if(!ConnectionTree->currentItem()){ // If nothing's highlighted ConnectionTree->setCurrentItem(rootItem); // highlight it. @@ -286,8 +286,8 @@ void servercontroller::new_ksircprocess(KSircServer &kss) void servercontroller::new_channel() { - QString server; - QListViewItem *citem = ConnectionTree->currentItem(); // get item + TQString server; + TQListViewItem *citem = ConnectionTree->currentItem(); // get item if(citem){ // if it exist, ie something is highlighted, continue if(proc_list[citem->text(0)]){ // If it's a match with a server, ok server = citem->text(0); @@ -303,10 +303,10 @@ void servercontroller::new_channel() if(server.isEmpty()) return; - KSircChannel ci(server, QString::null); + KSircChannel ci(server, TQString::null); NewWindowDialog w(ci); - connect(&w, SIGNAL(openTopLevel(const KSircChannel &)), - this, SLOT(new_toplevel(const KSircChannel &))); + connect(&w, TQT_SIGNAL(openTopLevel(const KSircChannel &)), + this, TQT_SLOT(new_toplevel(const KSircChannel &))); w.exec(); } @@ -330,8 +330,8 @@ void servercontroller::ToggleAutoCreate() void servercontroller::general_prefs() { KSPrefs *kp = new KSPrefs(); - connect(kp, SIGNAL(update(int)), - this, SLOT(configChange())); + connect(kp, TQT_SIGNAL(update(int)), + this, TQT_SLOT(configChange())); kp->resize(550, 450); kp->show(); } @@ -349,9 +349,9 @@ void servercontroller::dump_obj() } void servercontroller::server_debug() { - QListViewItem *citem = ConnectionTree->currentItem(); // get item + TQListViewItem *citem = ConnectionTree->currentItem(); // get item if(citem){ // if it exist, ie something is highlighted, continue - QString server; + TQString server; if(proc_list[citem->text(0)]){ // If it's a match with a server, ok server = citem->text(0); } @@ -373,12 +373,12 @@ void servercontroller::server_debug() void servercontroller::filter_rule_editor() { FilterRuleEditor *fe = new FilterRuleEditor(); - connect(fe, SIGNAL(destroyed()), - this, SLOT(slot_filters_update())); + connect(fe, TQT_SIGNAL(destroyed()), + this, TQT_SLOT(slot_filters_update())); fe->show(); } -void servercontroller::font_update(const QFont &font) +void servercontroller::font_update(const TQFont &font) { ksopts->defaultFont = font; /* configChange(); */ @@ -386,12 +386,12 @@ void servercontroller::font_update(const QFont &font) KConfig *kConfig = kapp->config(); kConfig->setGroup("GlobalOptions"); kConfig->sync(); - QApplication::setFont( font, true, "KSirc::TextView" ); + TQApplication::setFont( font, true, "KSirc::TextView" ); } void servercontroller::configChange() { - QDictIterator<KSircProcess> it( proc_list ); + TQDictIterator<KSircProcess> it( proc_list ); while(it.current()){ it.current()->filters_update(); it.current()->getWindowList()["!all"]->control_message(REREAD_CONFIG, ""); @@ -401,10 +401,10 @@ void servercontroller::configChange() m_kga->updateConnections(); } -void servercontroller::ProcMessage(QString server, int command, QString args) +void servercontroller::ProcMessage(TQString server, int command, TQString args) { - QListViewItem *serverItem = 0L; - QListViewItem *item = ConnectionTree->firstChild(); + TQListViewItem *serverItem = 0L; + TQListViewItem *item = ConnectionTree->firstChild(); while ( item ) { if ( !item->parent() && item->text(0) == server ) { serverItem = item; @@ -428,7 +428,7 @@ void servercontroller::ProcMessage(QString server, int command, QString args) // Args == nick comming on/offline. case ProcCommand::nickOffline: { - QListViewItem *online_item = findChild(serverItem, i18n("Online")); + TQListViewItem *online_item = findChild(serverItem, i18n("Online")); if(online_item){ item = findChild(online_item, args); delete item; @@ -442,9 +442,9 @@ void servercontroller::ProcMessage(QString server, int command, QString args) } case ProcCommand::nickOnline: { - QListViewItem *online_item = findChild(serverItem, i18n("Online")); + TQListViewItem *online_item = findChild(serverItem, i18n("Online")); if(!online_item){ - online_item = new QListViewItem(serverItem, i18n("Online")); + online_item = new TQListViewItem(serverItem, i18n("Online")); online_item->setPixmap( 0, pic_gf ); online_item->setOpen( true ); } @@ -454,7 +454,7 @@ void servercontroller::ProcMessage(QString server, int command, QString args) delete item; } } - item = new QListViewItem(online_item, args); + item = new TQListViewItem(online_item, args); item->setPixmap( 0, pic_run ); if(ksopts->runDocked && ksopts->dockPopups) KPassivePopup::message(i18n("%1 just came online on %2").arg(args).arg(server), dockWidget); @@ -490,7 +490,7 @@ void servercontroller::ProcMessage(QString server, int command, QString args) if(args[0] == '!') args.remove(0, 1); // If the first char is !, it's control, remove it // add a new child item with parent as it's parent - item = new QListViewItem( serverItem, args ); + item = new TQListViewItem( serverItem, args ); item->setPixmap( 0, pic_ppl ); open_toplevels++; @@ -543,7 +543,7 @@ void servercontroller::ProcMessage(QString server, int command, QString args) item = findChild( serverItem, old_s ); delete item; - item = new QListViewItem( serverItem, new_s ); + item = new TQListViewItem( serverItem, new_s ); item->setPixmap( 0, pic_ppl ); delete[] new_s; @@ -578,7 +578,7 @@ void servercontroller::ProcMessage(QString server, int command, QString args) void servercontroller::slot_filters_update() { - emit ServMessage(QString(), ServCommand::updateFilters, QString()); + emit ServMessage(TQString(), ServCommand::updateFilters, TQString()); } void servercontroller::saveGlobalProperties(KConfig *ksc) @@ -589,7 +589,7 @@ void servercontroller::saveGlobalProperties(KConfig *ksc) // Ignore all !<name> windows - QString group = ksc->group(); + TQString group = ksc->group(); ksc->setGroup( "KSircSession" ); SessionConfigMap::ConstIterator it = m_sessionConfig.begin(); @@ -597,15 +597,15 @@ void servercontroller::saveGlobalProperties(KConfig *ksc) ChannelSessionInfoList infoList = *it; - QStringList channels; - QString port = "6667"; - QStringList desktops; + TQStringList channels; + TQString port = "6667"; + TQStringList desktops; for ( ChannelSessionInfoList::ConstIterator sessionInfoIt = infoList.begin(); sessionInfoIt != infoList.end(); ++sessionInfoIt ) { channels << ( *sessionInfoIt ).name; port = ( *sessionInfoIt ).port; - desktops << QString::number( ( *sessionInfoIt ).desktop ); + desktops << TQString::number( ( *sessionInfoIt ).desktop ); } KConfigGroup( ksc, "KSircSession" ).writeEntry( it.key(), channels ); @@ -621,7 +621,7 @@ void servercontroller::saveGlobalProperties(KConfig *ksc) void servercontroller::readGlobalProperties(KConfig *ksc) { - QString group = ksc->group(); + TQString group = ksc->group(); // ksc == K Session Config @@ -631,22 +631,22 @@ void servercontroller::readGlobalProperties(KConfig *ksc) // commented in for testing... ksc->setGroup( "KSircSession" ); - QMap<QString,QString> keyMap = ksc->entryMap( ksc->group() ); - QMap<QString,QString>::Iterator it = keyMap.begin(); + TQMap<TQString,TQString> keyMap = ksc->entryMap( ksc->group() ); + TQMap<TQString,TQString>::Iterator it = keyMap.begin(); while(it != keyMap.end()) { - QString server = it.key(); - QString port = KConfigGroup( ksc, "KSircSessionPort" ).readEntry( server ); + TQString server = it.key(); + TQString port = KConfigGroup( ksc, "KSircSessionPort" ).readEntry( server ); // debug("%s", it.key().latin1()); KSircServer kss(server, port); new_ksircprocess( kss ); // sets up proc_list - QStringList channels = ksc->readListEntry( server ); + TQStringList channels = ksc->readListEntry( server ); - QStringList desktops = KConfigGroup( ksc, "KSircSessionDesktopNumbers" ).readListEntry( server ); + TQStringList desktops = KConfigGroup( ksc, "KSircSessionDesktopNumbers" ).readListEntry( server ); for(uint i = 0; i < channels.count(); i++){ - QString channel = channels[ i ]; + TQString channel = channels[ i ]; proc_list[ server ]->new_toplevel( KSircChannel(server, channel), true ); @@ -654,7 +654,7 @@ void servercontroller::readGlobalProperties(KConfig *ksc) if ( !topLevel || !topLevel->isTopLevel() ) continue; - QStringList::ConstIterator desktopNumberIt = desktops.at( i ); + TQStringList::ConstIterator desktopNumberIt = desktops.at( i ); if ( desktopNumberIt == desktops.end() ) continue; @@ -669,7 +669,7 @@ void servercontroller::readGlobalProperties(KConfig *ksc) ++it; } - QRect geom; + TQRect geom; // ksc->setGroup("ServerController"); // bool docked = ksc->readBoolEntry("Docked", FALSE); @@ -687,11 +687,11 @@ void servercontroller::readGlobalProperties(KConfig *ksc) void servercontroller::saveSessionConfig() { - QDictIterator<KSircProcess> ksp(proc_list); + TQDictIterator<KSircProcess> ksp(proc_list); for (; ksp.current(); ++ksp ) { ChannelSessionInfoList channels; - QDictIterator<KSircMessageReceiver> ksm(ksp.current()->getWindowList()); + TQDictIterator<KSircMessageReceiver> ksm(ksp.current()->getWindowList()); for (; ksm.current(); ++ksm ) if(ksm.currentKey()[0] != '!') { // Ignore !ksm's (system created) ChannelSessionInfo sessionInfo; @@ -714,20 +714,20 @@ void servercontroller::saveSessionConfig() } } -void servercontroller::showEvent( QShowEvent *e ) +void servercontroller::showEvent( TQShowEvent *e ) { - QWidget::showEvent( e ); + TQWidget::showEvent( e ); if ( !e->spontaneous() ) saveDockingStatus(); } -void servercontroller::hideEvent( QHideEvent * ) +void servercontroller::hideEvent( TQHideEvent * ) { /* - QWidget::hideEvent( e ); + TQWidget::hideEvent( e ); if ( !e->spontaneous() ) saveDockingStatus(); - if(QWidget::isMinimized()){ + if(TQWidget::isMinimized()){ hide(); KWin::setState(winId(), NET::SkipTaskbar); } @@ -750,27 +750,27 @@ void servercontroller::endksirc(){ exit(0); } -void servercontroller::closeEvent( QCloseEvent *e ) +void servercontroller::closeEvent( TQCloseEvent *e ) { we_are_exiting = true; saveSessionConfig(); KMainWindow::closeEvent( e ); } -void servercontroller::WindowSelected(QListViewItem *item) +void servercontroller::WindowSelected(TQListViewItem *item) { if ( !item ) return; - QListViewItem *parent_server = item->parent(); + TQListViewItem *parent_server = item->parent(); if(!parent_server) return; - QString txt = QString(parent_server->text(0)) + "_" + item->text(0) + "_toplevel"; - QWidget *obj = dynamic_cast<QWidget *>( objFinder::find(txt.utf8(), "KSircTopLevel")); + TQString txt = TQString(parent_server->text(0)) + "_" + item->text(0) + "_toplevel"; + TQWidget *obj = dynamic_cast<TQWidget *>( objFinder::find(txt.utf8(), "KSircTopLevel")); if(obj == 0x0){ - txt =QString(parent_server->text(0)) + "_!" + item->text(0) + "_toplevel"; - obj = dynamic_cast<QWidget *>( objFinder::find(txt.utf8(), "KSircTopLevel")); + txt =TQString(parent_server->text(0)) + "_!" + item->text(0) + "_toplevel"; + obj = dynamic_cast<TQWidget *>( objFinder::find(txt.utf8(), "KSircTopLevel")); } if(obj != 0x0){ @@ -782,14 +782,14 @@ void servercontroller::WindowSelected(QListViewItem *item) } -QListViewItem * servercontroller::findChild( QListViewItem *parent, - const QString& text ) +TQListViewItem * servercontroller::findChild( TQListViewItem *parent, + const TQString& text ) { if ( !parent || parent->childCount() == 0 ) { return 0L; } - QListViewItem *item = parent->firstChild(); + TQListViewItem *item = parent->firstChild(); while ( item ) { if ( item->text(0) == text ) { return item; @@ -800,13 +800,13 @@ QListViewItem * servercontroller::findChild( QListViewItem *parent, return 0L; } -void servercontroller::increaseNotificationCount(const QString& reason, const QString& text) +void servercontroller::increaseNotificationCount(const TQString& reason, const TQString& text) { dockWidget->startBlink(reason, text); m_notificationCount++; } -void servercontroller::decreaseNotificationCount(QString reason) +void servercontroller::decreaseNotificationCount(TQString reason) { m_notificationCount--; if ( m_notificationCount == 0 ) @@ -821,8 +821,8 @@ void servercontroller::decreaseNotificationCount(QString reason) void servercontroller::resetNotification() { m_notificationCount = 0; - dockWidget->stopBlink(QString::null, true); - QDictIterator<KSircProcess> it( proc_list ); + dockWidget->stopBlink(TQString::null, true); + TQDictIterator<KSircProcess> it( proc_list ); while(it.current()){ it.current()->filters_update(); it.current()->getWindowList()["!all"]->control_message(RESET_NOTIF, ""); @@ -840,21 +840,21 @@ void servercontroller::do_autoconnect() KConfig *conf = kapp->config(); conf->setGroup("AutoConnect"); - QStringList servers = conf->readListEntry("Servers"); + TQStringList servers = conf->readListEntry("Servers"); servers.sort(); - QStringList::ConstIterator ser = servers.begin(); + TQStringList::ConstIterator ser = servers.begin(); loop = 0; for( ; ser != servers.end(); ser++){ if(loop++ == stime){ stime++; - QString server = *ser; - QString port = "6667"; + TQString server = *ser; + TQString port = "6667"; bool usessl = false; - QString pass = QString::null; + TQString pass = TQString::null; - QRegExp rx("(.+) \\(SSL\\)(.*)"); + TQRegExp rx("(.+) \\(SSL\\)(.*)"); if(rx.search(server) >= 0){ server = rx.cap(1) + rx.cap(3); usessl = true; @@ -880,23 +880,23 @@ void servercontroller::do_autoconnect() ser = servers.begin(); for( ; ser != servers.end(); ser++){ - QStringList channels = conf->readListEntry(*ser); + TQStringList channels = conf->readListEntry(*ser); if(channels.empty() == FALSE){ channels.sort(); - QStringList::ConstIterator chan = channels.begin(); + TQStringList::ConstIterator chan = channels.begin(); for(; chan != channels.end(); chan++){ if(loop++ == ctime){ ctime++; - QString channel = *chan; - QString key = QString::null; - QRegExp crx("(.+) \\(key: (\\S+)\\)"); + TQString channel = *chan; + TQString key = TQString::null; + TQRegExp crx("(.+) \\(key: (\\S+)\\)"); if(crx.search(channel) >= 0){ channel = crx.cap(1); key = crx.cap(2); } - QString server = *ser; + TQString server = *ser; - QRegExp rx("^([^ :]+)"); + TQRegExp rx("^([^ :]+)"); if(rx.search(server) >= 0){ server = rx.cap(1); } @@ -916,8 +916,8 @@ void servercontroller::do_autoconnect() } void servercontroller::start_autoconnect() { - at = new QTimer(this); - connect(at, SIGNAL(timeout()), this, SLOT(do_autoconnect())); + at = new TQTimer(this); + connect(at, TQT_SIGNAL(timeout()), this, TQT_SLOT(do_autoconnect())); at->start(250, FALSE); } @@ -925,36 +925,36 @@ void servercontroller::start_autoconnect_check() { KConfig *conf = kapp->config(); conf->setGroup("AutoConnect"); - QStringList servers = conf->readListEntry("Servers"); + TQStringList servers = conf->readListEntry("Servers"); if(servers.count() == 0){ KSPrefs *kp = new KSPrefs(); - connect(kp, SIGNAL(update(int)), - this, SLOT(configChange())); + connect(kp, TQT_SIGNAL(update(int)), + this, TQT_SLOT(configChange())); kp->resize(550, 450); kp->showPage(7); /* Show auto connect page */ kp->show(); } else { - at = new QTimer(this); - connect(at, SIGNAL(timeout()), this, SLOT(do_autoconnect())); + at = new TQTimer(this); + connect(at, TQT_SIGNAL(timeout()), this, TQT_SLOT(do_autoconnect())); at->start(250, FALSE); } } -scInside::scInside ( QWidget * parent, const char * name, WFlags +scInside::scInside ( TQWidget * parent, const char * name, WFlags f ) - : QFrame(parent, name, f) + : TQFrame(parent, name, f) { - ASConn = new QLabel(i18n("Active server connections:"), this, "servercontroller_label"); - QFont asfont = ASConn->font(); + ASConn = new TQLabel(i18n("Active server connections:"), this, "servercontroller_label"); + TQFont asfont = ASConn->font(); asfont.setBold(TRUE); ASConn->setFont(asfont); ConnectionTree = new KListView(this, "connectiontree"); - ConnectionTree->addColumn(QString::null); + ConnectionTree->addColumn(TQString::null); ConnectionTree->setRootIsDecorated( true ); ConnectionTree->setSorting( 0 ); ConnectionTree->header()->hide(); @@ -966,9 +966,9 @@ scInside::~scInside() delete ConnectionTree; } -void scInside::resizeEvent ( QResizeEvent *e ) +void scInside::resizeEvent ( TQResizeEvent *e ) { - QFrame::resizeEvent(e); + TQFrame::resizeEvent(e); ASConn->setGeometry(10,10, width() - 20, ASConn->fontMetrics().height()+5); ConnectionTree->setGeometry(10, 10 + ASConn->height(), |