diff options
Diffstat (limited to 'apps/ktorrent/ktorrent.cpp')
-rw-r--r-- | apps/ktorrent/ktorrent.cpp | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/apps/ktorrent/ktorrent.cpp b/apps/ktorrent/ktorrent.cpp index 191e6ce..b187c74 100644 --- a/apps/ktorrent/ktorrent.cpp +++ b/apps/ktorrent/ktorrent.cpp @@ -117,11 +117,11 @@ KTorrent::KTorrent() { setHidden(true); //setToolviewStyle(KMdi::TextAndIcon); - connect(this,TQT_SIGNAL(widgetChanged(TQWidget*)),this,TQT_SLOT(currentTabChanged(TQWidget*))); + connect(this,TQ_SIGNAL(widgetChanged(TQWidget*)),this,TQ_SLOT(currentTabChanged(TQWidget*))); m_view_man = new ViewManager(this); m_group_view = new kt::GroupView(m_view_man,actionCollection()); - connect(m_group_view,TQT_SIGNAL(openNewTab(kt::Group*)),this,TQT_SLOT(openView(kt::Group*))); + connect(m_group_view,TQ_SIGNAL(openNewTab(kt::Group*)),this,TQ_SLOT(openView(kt::Group*))); m_pref = new KTorrentPreferences(*this); @@ -137,26 +137,26 @@ KTorrent::KTorrent() TQToolButton* tb = new TQToolButton(m_activeTabWidget); tb->setIconSet(SmallIcon("tab_new")); tb->adjustSize(); - connect(tb,TQT_SIGNAL(clicked()),this,TQT_SLOT(openDefaultView())); + connect(tb,TQ_SIGNAL(clicked()),this,TQ_SLOT(openDefaultView())); m_activeTabWidget->setCornerWidget(tb, TopLeft); - connect(m_group_view,TQT_SIGNAL(currentGroupChanged( kt::Group* )), - this,TQT_SLOT(groupChanged(kt::Group*))); + connect(m_group_view,TQ_SIGNAL(currentGroupChanged( kt::Group* )), + this,TQ_SLOT(groupChanged(kt::Group*))); - connect(m_group_view,TQT_SIGNAL(groupRenamed(kt::Group*)), - this,TQT_SLOT(groupRenamed(kt::Group*))); + connect(m_group_view,TQ_SIGNAL(groupRenamed(kt::Group*)), + this,TQ_SLOT(groupRenamed(kt::Group*))); - connect(m_group_view,TQT_SIGNAL(groupRemoved(kt::Group*)), - this,TQT_SLOT(groupRemoved(kt::Group*))); + connect(m_group_view,TQ_SIGNAL(groupRemoved(kt::Group*)), + this,TQ_SLOT(groupRemoved(kt::Group*))); - connect(m_core,TQT_SIGNAL(torrentAdded(kt::TorrentInterface* )), - m_view_man,TQT_SLOT(addTorrent(kt::TorrentInterface* ))); + connect(m_core,TQ_SIGNAL(torrentAdded(kt::TorrentInterface* )), + m_view_man,TQ_SLOT(addTorrent(kt::TorrentInterface* ))); - connect(m_core,TQT_SIGNAL(torrentRemoved(kt::TorrentInterface* )), - m_view_man,TQT_SLOT(removeTorrent(kt::TorrentInterface* ))); + connect(m_core,TQ_SIGNAL(torrentRemoved(kt::TorrentInterface* )), + m_view_man,TQ_SLOT(removeTorrent(kt::TorrentInterface* ))); - connect(m_core, TQT_SIGNAL(torrentRemoved( kt::TorrentInterface* )), - m_group_view, TQT_SLOT(onTorrentRemoved( kt::TorrentInterface* ))); + connect(m_core, TQ_SIGNAL(torrentRemoved( kt::TorrentInterface* )), + m_group_view, TQ_SLOT(onTorrentRemoved( kt::TorrentInterface* ))); m_statusInfo = new KSqueezedTextLabel(this); m_statusSpeed = new TQLabel(this); @@ -191,7 +191,7 @@ KTorrent::KTorrent() m_core->loadTorrents(); m_core->loadPlugins(); - connect(&m_gui_update_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updatedStats())); + connect(&m_gui_update_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(updatedStats())); //Apply GUI update interval int val = 500; switch(Settings::guiUpdateInterval()) @@ -243,7 +243,7 @@ KTorrent::KTorrent() m_statusbarAction->setChecked(!statusbar_hidden); MaximizeLimits(); - connect(&m_status_msg_expire,TQT_SIGNAL(timeout()),this,TQT_SLOT(statusBarMsgExpired())); + connect(&m_status_msg_expire,TQ_SIGNAL(timeout()),this,TQ_SLOT(statusBarMsgExpired())); m_view_man->updateActions(); } @@ -270,36 +270,36 @@ void KTorrent::openView(kt::Group* g) addTabPage(v,g->groupIcon(),v->caption(),m_view_man); - connect(v,TQT_SIGNAL(currentChanged(kt::TorrentInterface* )), - this,TQT_SLOT(currentTorrentChanged(kt::TorrentInterface* ))); + connect(v,TQ_SIGNAL(currentChanged(kt::TorrentInterface* )), + this,TQ_SLOT(currentTorrentChanged(kt::TorrentInterface* ))); - connect(v,TQT_SIGNAL(wantToRemove(kt::TorrentInterface*,bool )), - m_core,TQT_SLOT(remove(kt::TorrentInterface*,bool ))); + connect(v,TQ_SIGNAL(wantToRemove(kt::TorrentInterface*,bool )), + m_core,TQ_SLOT(remove(kt::TorrentInterface*,bool ))); - connect(v->listView(),TQT_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)), - this,TQT_SLOT(urlDropped(TQDropEvent*,TQListViewItem*))); + connect(v->listView(),TQ_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)), + this,TQ_SLOT(urlDropped(TQDropEvent*,TQListViewItem*))); - connect(v,TQT_SIGNAL(wantToStart( kt::TorrentInterface* )), - m_core,TQT_SLOT(start( kt::TorrentInterface* ))); + connect(v,TQ_SIGNAL(wantToStart( kt::TorrentInterface* )), + m_core,TQ_SLOT(start( kt::TorrentInterface* ))); - connect(v,TQT_SIGNAL(wantToStop( kt::TorrentInterface*, bool )), - m_core,TQT_SLOT(stop( kt::TorrentInterface*, bool ))); + connect(v,TQ_SIGNAL(wantToStop( kt::TorrentInterface*, bool )), + m_core,TQ_SLOT(stop( kt::TorrentInterface*, bool ))); - connect(v,TQT_SIGNAL(needsDataCheck( kt::TorrentInterface* )), - m_core,TQT_SLOT(doDataCheck( kt::TorrentInterface* ))); + connect(v,TQ_SIGNAL(needsDataCheck( kt::TorrentInterface* )), + m_core,TQ_SLOT(doDataCheck( kt::TorrentInterface* ))); - connect(v,TQT_SIGNAL(updateActions( int )), - this,TQT_SLOT(onUpdateActions( int ))); + connect(v,TQ_SIGNAL(updateActions( int )), + this,TQ_SLOT(onUpdateActions( int ))); //connect Core queue() with queue() from KTView. - connect(v, TQT_SIGNAL(queue( kt::TorrentInterface* )), - m_core, TQT_SLOT(queue( kt::TorrentInterface* ))); + connect(v, TQ_SIGNAL(queue( kt::TorrentInterface* )), + m_core, TQ_SLOT(queue( kt::TorrentInterface* ))); - connect(v,TQT_SIGNAL(updateGroupsSubMenu(TDEPopupMenu*)), - m_group_view,TQT_SLOT(updateGroupsSubMenu(TDEPopupMenu*))); + connect(v,TQ_SIGNAL(updateGroupsSubMenu(TDEPopupMenu*)), + m_group_view,TQ_SLOT(updateGroupsSubMenu(TDEPopupMenu*))); - connect(v,TQT_SIGNAL(groupsSubMenuItemActivated(KTorrentView*, const TQString&)), - m_group_view,TQT_SLOT(onGroupsSubMenuItemActivated(KTorrentView*, const TQString&))); + connect(v,TQ_SIGNAL(groupsSubMenuItemActivated(KTorrentView*, const TQString&)), + m_group_view,TQ_SLOT(onGroupsSubMenuItemActivated(KTorrentView*, const TQString&))); if (m_core) { @@ -497,68 +497,68 @@ void KTorrent::currentTorrentChanged(kt::TorrentInterface* tc) void KTorrent::setupActions() { - KStdAction::openNew(this,TQT_SLOT(fileNew()),actionCollection()); - KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection()); - KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); + KStdAction::openNew(this,TQ_SLOT(fileNew()),actionCollection()); + KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection()); + KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection()); - KStdAction::paste(kapp,TQT_SLOT(paste()),actionCollection()); + KStdAction::paste(kapp,TQ_SLOT(paste()),actionCollection()); - m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection()); - m_menubarAction = KStdAction::showMenubar(this, TQT_SLOT(optionsShowMenubar()), actionCollection()); + m_statusbarAction = KStdAction::showStatusbar(this, TQ_SLOT(optionsShowStatusbar()), actionCollection()); + m_menubarAction = KStdAction::showMenubar(this, TQ_SLOT(optionsShowMenubar()), actionCollection()); - KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection()); - KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection()); + KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()), actionCollection()); + KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()), actionCollection()); - TDEAction* pref = KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); + TDEAction* pref = KStdAction::preferences(this, TQ_SLOT(optionsPreferences()), actionCollection()); m_start = new TDEAction( - i18n("to start", "Start"), "ktstart",0,this, TQT_SLOT(startDownload()), + i18n("to start", "Start"), "ktstart",0,this, TQ_SLOT(startDownload()), actionCollection(), "Start"); m_stop = new TDEAction( - i18n("to stop", "Stop"), "ktstop",0,this, TQT_SLOT(stopDownload()), + i18n("to stop", "Stop"), "ktstop",0,this, TQ_SLOT(stopDownload()), actionCollection(), "Stop"); m_remove = new TDEAction( - i18n("Remove"), "ktremove",0,this, TQT_SLOT(removeDownload()), + i18n("Remove"), "ktremove",0,this, TQ_SLOT(removeDownload()), actionCollection(), "Remove"); m_startall = new TDEAction( - i18n("to start all", "Start All"), "ktstart_all",0,this, TQT_SLOT(startAllDownloadsCurrentView()), + i18n("to start all", "Start All"), "ktstart_all",0,this, TQ_SLOT(startAllDownloadsCurrentView()), actionCollection(), "Start all"); - m_startall_systray = new TDEAction(i18n("to start all", "Start All"), "ktstart_all",0,this, TQT_SLOT(startAllDownloads()),actionCollection()); + m_startall_systray = new TDEAction(i18n("to start all", "Start All"), "ktstart_all",0,this, TQ_SLOT(startAllDownloads()),actionCollection()); m_stopall = new TDEAction( - i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQT_SLOT(stopAllDownloadsCurrentView()), + i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQ_SLOT(stopAllDownloadsCurrentView()), actionCollection(), "Stop all"); - m_stopall_systray = new TDEAction(i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQT_SLOT(stopAllDownloads()),actionCollection()); + m_stopall_systray = new TDEAction(i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQ_SLOT(stopAllDownloads()),actionCollection()); m_pasteurl = new TDEAction( - i18n("to paste torrent URL", "Paste Torrent URL..."), "ktstart",0,this, TQT_SLOT(torrentPaste()), + i18n("to paste torrent URL", "Paste Torrent URL..."), "ktstart",0,this, TQ_SLOT(torrentPaste()), actionCollection(), "paste_url"); m_queuemgr = new TDEAction( i18n("to open Queue Manager", "Open Queue Manager..."), - "ktqueuemanager", 0, this, TQT_SLOT(queueManagerShow()), + "ktqueuemanager", 0, this, TQ_SLOT(queueManagerShow()), actionCollection(), "Queue manager"); m_queueaction = new TDEAction( i18n("Enqueue/Dequeue"), - "player_playlist", 0, m_view_man, TQT_SLOT(queueAction()), + "player_playlist", 0, m_view_man, TQ_SLOT(queueAction()), actionCollection(), "queue_action"); m_ipfilter = new TDEAction( i18n("IPFilter"), - "filter", 0, this, TQT_SLOT(showIPFilter()), + "filter", 0, this, TQ_SLOT(showIPFilter()), actionCollection(), "ipfilter_action"); m_datacheck = new TDEAction( i18n("Check Data Integrity"), - TQString(),0,m_view_man,TQT_SLOT(checkDataIntegrity()),actionCollection(),"check_data"); + TQString(),0,m_view_man,TQ_SLOT(checkDataIntegrity()),actionCollection(),"check_data"); - m_find = KStdAction::find(this,TQT_SLOT(find()),actionCollection()); + m_find = KStdAction::find(this,TQ_SLOT(find()),actionCollection()); //Plug actions to systemtray context menu m_startall_systray->plug(m_systray_icon->contextMenu()); @@ -720,7 +720,7 @@ void KTorrent::optionsConfigureToolbars() saveMainWindowSettings(TDEGlobal::config()); #endif KEditToolbar dlg(factory()); - connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(newToolbarConfig())); + connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(newToolbarConfig())); dlg.exec(); } |