summaryrefslogtreecommitdiffstats
path: root/knode/knmainwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/knmainwidget.cpp')
-rw-r--r--knode/knmainwidget.cpp380
1 files changed, 190 insertions, 190 deletions
diff --git a/knode/knmainwidget.cpp b/knode/knmainwidget.cpp
index e4d91e812..0697a919e 100644
--- a/knode/knmainwidget.cpp
+++ b/knode/knmainwidget.cpp
@@ -13,8 +13,8 @@
*/
#include "knmainwidget.h"
-#include <qhbox.h>
-#include <qlayout.h>
+#include <tqhbox.h>
+#include <tqlayout.h>
#include <ktoolbar.h>
#include <kinputdialog.h>
@@ -70,7 +70,7 @@ using namespace KNode;
KNGlobals knGlobals;
-KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* parent,
+KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, TQWidget* parent,
const char* name )
: DCOPObject("KNodeIface"), KDockArea( parent, name ),
b_lockui( false ), m_GUIClient( client )
@@ -84,7 +84,7 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
//------------------------------- </CONFIG> ----------------------------------
//-------------------------------- <GUI> ------------------------------------
- QAccel *accel = new QAccel( this );
+ TQAccel *accel = new TQAccel( this );
initStatusBar();
//setup splitter behavior
@@ -106,9 +106,9 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
//setView(a_rtDock);
setMainDockWidget(a_rtDock);
- connect(a_rtDock, SIGNAL(iMBeingClosed()), SLOT(slotArticleDockHidden()));
- connect(a_rtDock, SIGNAL(hasUndocked()), SLOT(slotArticleDockHidden()));
- connect( mArticleViewer, SIGNAL(focusChangeRequest(QWidget*)), SLOT(slotDockWidgetFocusChangeRequest(QWidget*)) );
+ connect(a_rtDock, TQT_SIGNAL(iMBeingClosed()), TQT_SLOT(slotArticleDockHidden()));
+ connect(a_rtDock, TQT_SIGNAL(hasUndocked()), TQT_SLOT(slotArticleDockHidden()));
+ connect( mArticleViewer, TQT_SIGNAL(focusChangeRequest(TQWidget*)), TQT_SLOT(slotDockWidgetFocusChangeRequest(TQWidget*)) );
//collection view
c_olDock = createDockWidget("group_view", UserIcon("group"), 0,
@@ -123,22 +123,22 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
c_olDock->setWidget(c_olView);
c_olDock->manualDock(a_rtDock, KDockWidget::DockLeft, 3000);
- connect(c_olDock, SIGNAL(iMBeingClosed()), SLOT(slotGroupDockHidden()));
- connect(c_olDock, SIGNAL(hasUndocked()), SLOT(slotGroupDockHidden()));
- connect(c_olView, SIGNAL(focusChangeRequest(QWidget *)), SLOT(slotDockWidgetFocusChangeRequest(QWidget *)));
- connect(c_olView, SIGNAL(selectionChanged(QListViewItem*)),
- SLOT(slotCollectionSelected(QListViewItem*)));
- connect(c_olView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- SLOT(slotCollectionRMB(KListView*, QListViewItem*, const QPoint&)));
- connect(c_olView, SIGNAL(folderDrop(QDropEvent*, KNCollectionViewItem*)),
- SLOT(slotCollectionViewDrop(QDropEvent*, KNCollectionViewItem*)));
- connect(c_olView, SIGNAL(itemRenamed(QListViewItem*)),
- SLOT(slotCollectionRenamed(QListViewItem*)));
-
- accel->connectItem( accel->insertItem(Key_Up), mArticleViewer, SLOT(scrollUp()) );
- accel->connectItem( accel->insertItem(Key_Down), mArticleViewer, SLOT(scrollDown()) );
- accel->connectItem( accel->insertItem(Key_Prior), mArticleViewer, SLOT(scrollPrior()) );
- accel->connectItem( accel->insertItem(Key_Next), mArticleViewer, SLOT(scrollNext()) );
+ connect(c_olDock, TQT_SIGNAL(iMBeingClosed()), TQT_SLOT(slotGroupDockHidden()));
+ connect(c_olDock, TQT_SIGNAL(hasUndocked()), TQT_SLOT(slotGroupDockHidden()));
+ connect(c_olView, TQT_SIGNAL(focusChangeRequest(TQWidget *)), TQT_SLOT(slotDockWidgetFocusChangeRequest(TQWidget *)));
+ connect(c_olView, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
+ TQT_SLOT(slotCollectionSelected(TQListViewItem*)));
+ connect(c_olView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ TQT_SLOT(slotCollectionRMB(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(c_olView, TQT_SIGNAL(folderDrop(TQDropEvent*, KNCollectionViewItem*)),
+ TQT_SLOT(slotCollectionViewDrop(TQDropEvent*, KNCollectionViewItem*)));
+ connect(c_olView, TQT_SIGNAL(itemRenamed(TQListViewItem*)),
+ TQT_SLOT(slotCollectionRenamed(TQListViewItem*)));
+
+ accel->connectItem( accel->insertItem(Key_Up), mArticleViewer, TQT_SLOT(scrollUp()) );
+ accel->connectItem( accel->insertItem(Key_Down), mArticleViewer, TQT_SLOT(scrollDown()) );
+ accel->connectItem( accel->insertItem(Key_Prior), mArticleViewer, TQT_SLOT(scrollPrior()) );
+ accel->connectItem( accel->insertItem(Key_Next), mArticleViewer, TQT_SLOT(scrollNext()) );
//header view
h_drDock = createDockWidget("header_view", SmallIcon("text_block"), 0,
@@ -148,8 +148,8 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
}
header = new KDockWidgetHeader(h_drDock, "headerDockHeader");
h_drDock->setHeader(header);
- QWidget *dummy = new QWidget(h_drDock);
- QVBoxLayout *vlay = new QVBoxLayout(dummy);
+ TQWidget *dummy = new TQWidget(h_drDock);
+ TQVBoxLayout *vlay = new TQVBoxLayout(dummy);
h_drView = new KNHeaderView( dummy, "hdrView" );
header->setDragPanel(new KNDockWidgetHeaderDrag(h_drView, header, h_drDock));
h_drDock->setWidget(dummy);
@@ -157,7 +157,7 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
q_uicksearch = new KToolBar(dummy, "search toolbar");
KAction *resetQuickSearch = new KAction( i18n( "Reset Quick Search" ),
- QApplication::reverseLayout()
+ TQApplication::reverseLayout()
? "clear_left"
: "locationbar_erase",
0, actionCollection(),
@@ -167,29 +167,29 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
"Resets the quick search so that "
"all messages are shown again." ) );
- QLabel *lbl = new QLabel(i18n("&Search:"), q_uicksearch, "kde toolbar widget");
+ TQLabel *lbl = new TQLabel(i18n("&Search:"), q_uicksearch, "kde toolbar widget");
s_earchLineEdit = new KListViewSearchLine(q_uicksearch, h_drView, "KListViewSearchLine");
q_uicksearch->setStretchableWidget(s_earchLineEdit);
lbl->setBuddy(s_earchLineEdit);
- connect( resetQuickSearch, SIGNAL( activated() ), s_earchLineEdit, SLOT( clear() ));
+ connect( resetQuickSearch, TQT_SIGNAL( activated() ), s_earchLineEdit, TQT_SLOT( clear() ));
vlay->addWidget(q_uicksearch);
vlay->addWidget(h_drView);
- connect(h_drDock, SIGNAL(iMBeingClosed()), SLOT(slotHeaderDockHidden()));
- connect(h_drDock, SIGNAL(hasUndocked()), SLOT(slotHeaderDockHidden()));
- connect(h_drView, SIGNAL(focusChangeRequest(QWidget *)),
- SLOT(slotDockWidgetFocusChangeRequest(QWidget *)));
- connect(h_drView, SIGNAL(itemSelected(QListViewItem*)),
- SLOT(slotArticleSelected(QListViewItem*)));
- connect(h_drView, SIGNAL(selectionChanged()),
- SLOT(slotArticleSelectionChanged()));
- connect(h_drView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- SLOT(slotArticleRMB(KListView*, QListViewItem*, const QPoint&)));
- connect(h_drView, SIGNAL(doubleClick(QListViewItem *)),
- SLOT(slotOpenArticle(QListViewItem *)));
- connect(h_drView, SIGNAL(sortingChanged(int)),
- SLOT(slotHdrViewSortingChanged(int)));
+ connect(h_drDock, TQT_SIGNAL(iMBeingClosed()), TQT_SLOT(slotHeaderDockHidden()));
+ connect(h_drDock, TQT_SIGNAL(hasUndocked()), TQT_SLOT(slotHeaderDockHidden()));
+ connect(h_drView, TQT_SIGNAL(focusChangeRequest(TQWidget *)),
+ TQT_SLOT(slotDockWidgetFocusChangeRequest(TQWidget *)));
+ connect(h_drView, TQT_SIGNAL(itemSelected(TQListViewItem*)),
+ TQT_SLOT(slotArticleSelected(TQListViewItem*)));
+ connect(h_drView, TQT_SIGNAL(selectionChanged()),
+ TQT_SLOT(slotArticleSelectionChanged()));
+ connect(h_drView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ TQT_SLOT(slotArticleRMB(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(h_drView, TQT_SIGNAL(doubleClick(TQListViewItem *)),
+ TQT_SLOT(slotOpenArticle(TQListViewItem *)));
+ connect(h_drView, TQT_SIGNAL(sortingChanged(int)),
+ TQT_SLOT(slotHdrViewSortingChanged(int)));
//actions
initActions();
@@ -200,7 +200,7 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
//Network
n_etAccess = knGlobals.netAccess();
- connect(n_etAccess, SIGNAL(netActive(bool)), this, SLOT(slotNetworkActive(bool)));
+ connect(n_etAccess, TQT_SIGNAL(netActive(bool)), this, TQT_SLOT(slotNetworkActive(bool)));
//Filter Manager
f_ilManager = knGlobals.filterManager();
@@ -225,8 +225,8 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
// Score Manager
s_coreManager = knGlobals.scoringManager();
- //connect(s_coreManager, SIGNAL(changedRules()), SLOT(slotReScore()));
- connect(s_coreManager, SIGNAL(finishedEditing()), SLOT(slotReScore()));
+ //connect(s_coreManager, TQT_SIGNAL(changedRules()), TQT_SLOT(slotReScore()));
+ connect(s_coreManager, TQT_SIGNAL(finishedEditing()), TQT_SLOT(slotReScore()));
// Memory Manager
m_emManager = knGlobals.memoryManager();
@@ -245,7 +245,7 @@ KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, QWidget* par
// set the keyboard focus indicator on the first item in the Collection View
if( c_olView->firstChild() ) {
- QListViewItem *i = c_olView->firstChild();
+ TQListViewItem *i = c_olView->firstChild();
bool open = i->isOpen();
c_olView->setActive( i );
i->setOpen( open );
@@ -307,15 +307,15 @@ void KNMainWidget::initStatusBar()
//statusbar
KMainWindow *mainWin = dynamic_cast<KMainWindow*>(topLevelWidget());
KStatusBar *sb = mainWin ? mainWin->statusBar() : 0;
- s_tatusFilter = new KRSqueezedTextLabel( QString::null, sb );
+ s_tatusFilter = new KRSqueezedTextLabel( TQString::null, sb );
s_tatusFilter->setAlignment( AlignLeft | AlignVCenter );
- s_tatusGroup = new KRSqueezedTextLabel( QString::null, sb );
+ s_tatusGroup = new KRSqueezedTextLabel( TQString::null, sb );
s_tatusGroup->setAlignment( AlignLeft | AlignVCenter );
}
//================================== GUI =================================
-void KNMainWidget::setStatusMsg(const QString& text, int id)
+void KNMainWidget::setStatusMsg(const TQString& text, int id)
{
KMainWindow *mainWin = dynamic_cast<KMainWindow*>(topLevelWidget());
KStatusBar *bar = mainWin ? mainWin->statusBar() : 0;
@@ -340,7 +340,7 @@ void KNMainWidget::setStatusMsg(const QString& text, int id)
}
-void KNMainWidget::setStatusHelpMsg(const QString& text)
+void KNMainWidget::setStatusHelpMsg(const TQString& text)
{
KMainWindow *mainWin = dynamic_cast<KMainWindow*>(topLevelWidget());
KStatusBar *bar = mainWin ? mainWin->statusBar() : 0;
@@ -351,7 +351,7 @@ void KNMainWidget::setStatusHelpMsg(const QString& text)
void KNMainWidget::updateCaption()
{
- QString newCaption=i18n("KDE News Reader");
+ TQString newCaption=i18n("KDE News Reader");
if (g_rpManager->currentGroup()) {
newCaption = g_rpManager->currentGroup()->name();
if (g_rpManager->currentGroup()->status()==KNGroup::moderated)
@@ -431,23 +431,23 @@ void KNMainWidget::secureProcessEvents()
}
-QSize KNMainWidget::sizeHint() const
+TQSize KNMainWidget::sizeHint() const
{
- return QSize(759,478); // default optimized for 800x600
+ return TQSize(759,478); // default optimized for 800x600
}
void KNMainWidget::openURL(const KURL &url)
{
kdDebug(5003) << k_funcinfo << url << endl;
- QString host = url.host();
+ TQString host = url.host();
unsigned short int port = url.port();
KNNntpAccount *acc=0;
if (url.url().left(7) == "news://") {
// lets see if we already have an account for this host...
- QValueList<KNNntpAccount*>::Iterator it;
+ TQValueList<KNNntpAccount*>::Iterator it;
for ( it = a_ccManager->begin(); it != a_ccManager->end(); ++it ) {
if ( (*it)->server().lower() == host.lower() && ( port==0 || (*it)->port() == port ) ) {
acc = *it;
@@ -487,10 +487,10 @@ void KNMainWidget::openURL(const KURL &url)
bool isMID=(url.url().contains('@')==1);
if (!isMID) {
- QString groupname=url.path(-1);
+ TQString groupname=url.path(-1);
while(groupname.startsWith("/"))
groupname.remove(0,1);
- QListViewItem *item=0;
+ TQListViewItem *item=0;
if(groupname.isEmpty())
item=acc->listItem();
else {
@@ -512,7 +512,7 @@ void KNMainWidget::openURL(const KURL &url)
c_olView->setActive( item );
}
} else {
- QString groupname = url.url().mid( url.protocol().length()+1 );
+ TQString groupname = url.url().mid( url.protocol().length()+1 );
KNGroup *g = g_rpManager->currentGroup();
if (g == 0)
g = g_rpManager->firstGroupOfAccount(acc);
@@ -520,7 +520,7 @@ void KNMainWidget::openURL(const KURL &url)
if (g) {
if(!KNArticleWindow::raiseWindowForArticle(groupname.latin1())) { //article not yet opened
KNRemoteArticle *a=new KNRemoteArticle(g);
- QString messageID = "<"+groupname+">";
+ TQString messageID = "<"+groupname+">";
a->messageID()->from7BitString(messageID.latin1());
KNArticleWindow *awin=new KNArticleWindow(a);
awin->show();
@@ -551,117 +551,117 @@ void KNMainWidget::initActions()
//navigation
a_ctNavNextArt = new KAction( KGuiItem(i18n("&Next Article"), "next",
i18n("Go to next article")), "N;Right", h_drView,
- SLOT(nextArticle()), actionCollection(), "go_nextArticle" );
+ TQT_SLOT(nextArticle()), actionCollection(), "go_nextArticle" );
a_ctNavPrevArt = new KAction( KGuiItem(i18n("&Previous Article"), "previous",
i18n("Go to previous article")), "P;Left" , h_drView,
- SLOT(prevArticle()), actionCollection(), "go_prevArticle" );
+ TQT_SLOT(prevArticle()), actionCollection(), "go_prevArticle" );
a_ctNavNextUnreadArt = new KAction(i18n("Next Unread &Article"), "1rightarrow", ALT+SHIFT+Key_Space , this,
- SLOT(slotNavNextUnreadArt()), actionCollection(), "go_nextUnreadArticle");
+ TQT_SLOT(slotNavNextUnreadArt()), actionCollection(), "go_nextUnreadArticle");
a_ctNavNextUnreadThread = new KAction(i18n("Next Unread &Thread"),"2rightarrow", SHIFT+Key_Space , this,
- SLOT(slotNavNextUnreadThread()), actionCollection(), "go_nextUnreadThread");
+ TQT_SLOT(slotNavNextUnreadThread()), actionCollection(), "go_nextUnreadThread");
a_ctNavNextGroup = new KAction(i18n("Ne&xt Group"), "down", Key_Plus , c_olView,
- SLOT(nextGroup()), actionCollection(), "go_nextGroup");
+ TQT_SLOT(nextGroup()), actionCollection(), "go_nextGroup");
a_ctNavPrevGroup = new KAction(i18n("Pre&vious Group"), "up", Key_Minus , c_olView,
- SLOT(prevGroup()), actionCollection(), "go_prevGroup");
+ TQT_SLOT(prevGroup()), actionCollection(), "go_prevGroup");
a_ctNavReadThrough = new KAction(i18n("Read &Through Articles"), Key_Space , this,
- SLOT(slotNavReadThrough()), actionCollection(), "go_readThrough");
+ TQT_SLOT(slotNavReadThrough()), actionCollection(), "go_readThrough");
a_ctNavReadThrough->plugAccel(a_ccel);
- QAccel *accel = new QAccel( this );
+ TQAccel *accel = new TQAccel( this );
new KAction( i18n("Focus on Next Folder"), CTRL+Key_Right, c_olView,
- SLOT(incCurrentFolder()), actionCollection(), "inc_current_folder" );
+ TQT_SLOT(incCurrentFolder()), actionCollection(), "inc_current_folder" );
accel->connectItem(accel->insertItem(CTRL+Key_Right),
- c_olView, SLOT(incCurrentFolder()));
+ c_olView, TQT_SLOT(incCurrentFolder()));
new KAction( i18n("Focus on Previous Folder"), CTRL+Key_Left, c_olView,
- SLOT(decCurrentFolder()), actionCollection(), "dec_current_folder" );
+ TQT_SLOT(decCurrentFolder()), actionCollection(), "dec_current_folder" );
accel->connectItem(accel->insertItem(CTRL+Key_Left),
- c_olView, SLOT(decCurrentFolder()));
+ c_olView, TQT_SLOT(decCurrentFolder()));
new KAction( i18n("Select Folder with Focus"), CTRL+Key_Space, c_olView,
- SLOT(selectCurrentFolder()), actionCollection(), "select_current_folder" );
+ TQT_SLOT(selectCurrentFolder()), actionCollection(), "select_current_folder" );
accel->connectItem(accel->insertItem(CTRL+Key_Space),
- c_olView, SLOT(selectCurrentFolder()));
+ c_olView, TQT_SLOT(selectCurrentFolder()));
new KAction( i18n("Focus on Next Article"), ALT+Key_Right, h_drView,
- SLOT(incCurrentArticle()), actionCollection(), "inc_current_article" );
+ TQT_SLOT(incCurrentArticle()), actionCollection(), "inc_current_article" );
accel->connectItem( accel->insertItem(ALT+Key_Right),
- h_drView, SLOT(incCurrentArticle()) );
+ h_drView, TQT_SLOT(incCurrentArticle()) );
new KAction( i18n("Focus on Previous Article"), ALT+Key_Left, h_drView,
- SLOT(decCurrentArticle()), actionCollection(), "dec_current_article" );
+ TQT_SLOT(decCurrentArticle()), actionCollection(), "dec_current_article" );
accel->connectItem( accel->insertItem(ALT+Key_Left),
- h_drView, SLOT(decCurrentArticle()) );
+ h_drView, TQT_SLOT(decCurrentArticle()) );
new KAction( i18n("Select Article with Focus"), ALT+Key_Space, h_drView,
- SLOT(selectCurrentArticle()), actionCollection(), "select_current_article" );
+ TQT_SLOT(selectCurrentArticle()), actionCollection(), "select_current_article" );
accel->connectItem( accel->insertItem(ALT+Key_Space),
- h_drView, SLOT(selectCurrentArticle()) );
+ h_drView, TQT_SLOT(selectCurrentArticle()) );
//collection-view - accounts
a_ctAccProperties = new KAction(i18n("Account &Properties"), "configure", 0, this,
- SLOT(slotAccProperties()), actionCollection(), "account_properties");
+ TQT_SLOT(slotAccProperties()), actionCollection(), "account_properties");
a_ctAccRename = new KAction(i18n("&Rename Account"), "text", 0, this,
- SLOT(slotAccRename()), actionCollection(), "account_rename");
+ TQT_SLOT(slotAccRename()), actionCollection(), "account_rename");
a_ctAccSubscribe = new KAction(i18n("&Subscribe to Newsgroups..."), "news_subscribe", 0, this,
- SLOT(slotAccSubscribe()), actionCollection(), "account_subscribe");
+ TQT_SLOT(slotAccSubscribe()), actionCollection(), "account_subscribe");
a_ctAccExpireAll = new KAction(i18n("&Expire All Groups"), 0, this,
- SLOT(slotAccExpireAll()), actionCollection(), "account_expire_all");
+ TQT_SLOT(slotAccExpireAll()), actionCollection(), "account_expire_all");
a_ctAccGetNewHdrs = new KAction(i18n("&Get New Articles in All Groups"), "mail_get", 0, this,
- SLOT(slotAccGetNewHdrs()), actionCollection(), "account_dnlHeaders");
+ TQT_SLOT(slotAccGetNewHdrs()), actionCollection(), "account_dnlHeaders");
a_ctAccGetNewHdrsAll = new KAction(i18n("&Get New Articles in All Accounts"), "mail_get_all", 0, this,
- SLOT(slotAccGetNewHdrsAll()), actionCollection(), "account_dnlAllHeaders");
+ TQT_SLOT(slotAccGetNewHdrsAll()), actionCollection(), "account_dnlAllHeaders");
a_ctAccDelete = new KAction(i18n("&Delete Account"), "editdelete", 0, this,
- SLOT(slotAccDelete()), actionCollection(), "account_delete");
+ TQT_SLOT(slotAccDelete()), actionCollection(), "account_delete");
a_ctAccPostNewArticle = new KAction(i18n("&Post to Newsgroup..."), "mail_new", CTRL+Key_N, this,
- SLOT(slotAccPostNewArticle()), actionCollection(), "article_postNew");
+ TQT_SLOT(slotAccPostNewArticle()), actionCollection(), "article_postNew");
//collection-view - groups
a_ctGrpProperties = new KAction(i18n("Group &Properties"), "configure", 0, this,
- SLOT(slotGrpProperties()), actionCollection(), "group_properties");
+ TQT_SLOT(slotGrpProperties()), actionCollection(), "group_properties");
a_ctGrpRename = new KAction(i18n("Rename &Group"), "text", 0, this,
- SLOT(slotGrpRename()), actionCollection(), "group_rename");
+ TQT_SLOT(slotGrpRename()), actionCollection(), "group_rename");
a_ctGrpGetNewHdrs = new KAction(i18n("&Get New Articles"), "mail_get" , 0, this,
- SLOT(slotGrpGetNewHdrs()), actionCollection(), "group_dnlHeaders");
+ TQT_SLOT(slotGrpGetNewHdrs()), actionCollection(), "group_dnlHeaders");
a_ctGrpExpire = new KAction(i18n("E&xpire Group"), "wizard", 0, this,
- SLOT(slotGrpExpire()), actionCollection(), "group_expire");
+ TQT_SLOT(slotGrpExpire()), actionCollection(), "group_expire");
a_ctGrpReorganize = new KAction(i18n("Re&organize Group"), 0, this,
- SLOT(slotGrpReorganize()), actionCollection(), "group_reorg");
+ TQT_SLOT(slotGrpReorganize()), actionCollection(), "group_reorg");
a_ctGrpUnsubscribe = new KAction(i18n("&Unsubscribe From Group"), "news_unsubscribe", 0, this,
- SLOT(slotGrpUnsubscribe()), actionCollection(), "group_unsubscribe");
+ TQT_SLOT(slotGrpUnsubscribe()), actionCollection(), "group_unsubscribe");
a_ctGrpSetAllRead = new KAction(i18n("Mark All as &Read"), "goto", 0, this,
- SLOT(slotGrpSetAllRead()), actionCollection(), "group_allRead");
+ TQT_SLOT(slotGrpSetAllRead()), actionCollection(), "group_allRead");
a_ctGrpSetAllUnread = new KAction(i18n("Mark All as U&nread"), 0, this,
- SLOT(slotGrpSetAllUnread()), actionCollection(), "group_allUnread");
+ TQT_SLOT(slotGrpSetAllUnread()), actionCollection(), "group_allUnread");
a_ctGrpSetUnread = new KAction(i18n("Mark Last as Unr&ead..."), 0, this,
- SLOT(slotGrpSetUnread()), actionCollection(), "group_unread");
+ TQT_SLOT(slotGrpSetUnread()), actionCollection(), "group_unread");
(void) new KAction( i18n("&Configure KNode..."),
"configure", 0, this,
- SLOT(slotSettings()), actionCollection(),
+ TQT_SLOT(slotSettings()), actionCollection(),
"knode_configure_knode" );
//collection-view - folder
a_ctFolNew = new KAction(i18n("&New Folder"), "folder_new", 0, this,
- SLOT(slotFolNew()), actionCollection(), "folder_new");
+ TQT_SLOT(slotFolNew()), actionCollection(), "folder_new");
a_ctFolNewChild = new KAction(i18n("New &Subfolder"), "folder_new", 0, this,
- SLOT(slotFolNewChild()), actionCollection(), "folder_newChild");
+ TQT_SLOT(slotFolNewChild()), actionCollection(), "folder_newChild");
a_ctFolDelete = new KAction(i18n("&Delete Folder"), "editdelete", 0, this,
- SLOT(slotFolDelete()), actionCollection(), "folder_delete");
+ TQT_SLOT(slotFolDelete()), actionCollection(), "folder_delete");
a_ctFolRename = new KAction(i18n("&Rename Folder"), "text", 0, this,
- SLOT(slotFolRename()), actionCollection(), "folder_rename");
+ TQT_SLOT(slotFolRename()), actionCollection(), "folder_rename");
a_ctFolCompact = new KAction(i18n("C&ompact Folder"), "wizard", 0, this,
- SLOT(slotFolCompact()), actionCollection(), "folder_compact");
+ TQT_SLOT(slotFolCompact()), actionCollection(), "folder_compact");
a_ctFolCompactAll = new KAction(i18n("Co&mpact All Folders"), 0, this,
- SLOT(slotFolCompactAll()), actionCollection(), "folder_compact_all");
+ TQT_SLOT(slotFolCompactAll()), actionCollection(), "folder_compact_all");
a_ctFolEmpty = new KAction(i18n("&Empty Folder"), 0, this,
- SLOT(slotFolEmpty()), actionCollection(), "folder_empty");
+ TQT_SLOT(slotFolEmpty()), actionCollection(), "folder_empty");
a_ctFolMboxImport = new KAction(i18n("&Import MBox Folder..."), 0, this,
- SLOT(slotFolMBoxImport()), actionCollection(), "folder_MboxImport");
+ TQT_SLOT(slotFolMBoxImport()), actionCollection(), "folder_MboxImport");
a_ctFolMboxExport = new KAction(i18n("E&xport as MBox Folder..."), 0, this,
- SLOT(slotFolMBoxExport()), actionCollection(), "folder_MboxExport");
+ TQT_SLOT(slotFolMBoxExport()), actionCollection(), "folder_MboxExport");
//header-view - list-handling
a_ctArtSortHeaders = new KSelectAction(i18n("S&ort"), 0, actionCollection(), "view_Sort");
- QStringList items;
+ TQStringList items;
items += i18n("By &Subject");
items += i18n("By S&ender");
items += i18n("By S&core");
@@ -669,9 +669,9 @@ void KNMainWidget::initActions()
items += i18n("By &Date");
a_ctArtSortHeaders->setItems(items);
a_ctArtSortHeaders->setShortcutConfigurable(false);
- connect(a_ctArtSortHeaders, SIGNAL(activated(int)), this, SLOT(slotArtSortHeaders(int)));
- a_ctArtSortHeadersKeyb = new KAction(i18n("Sort"), QString::null, Key_F7 , this,
- SLOT(slotArtSortHeadersKeyb()), actionCollection(), "view_Sort_Keyb");
+ connect(a_ctArtSortHeaders, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotArtSortHeaders(int)));
+ a_ctArtSortHeadersKeyb = new KAction(i18n("Sort"), TQString::null, Key_F7 , this,
+ TQT_SLOT(slotArtSortHeadersKeyb()), actionCollection(), "view_Sort_Keyb");
a_ctArtSortHeadersKeyb->plugAccel(a_ccel);
a_ctArtFilter = new KNFilterSelectAction(i18n("&Filter"), "filter",
actionCollection(), "view_Filter");
@@ -679,86 +679,86 @@ void KNMainWidget::initActions()
a_ctArtFilterKeyb = new KAction(i18n("Filter"), Key_F6, actionCollection(), "view_Filter_Keyb");
a_ctArtFilterKeyb->plugAccel(a_ccel);
a_ctArtSearch = new KAction(i18n("&Search Articles..."),"mail_find" , Key_F4 , this,
- SLOT(slotArtSearch()), actionCollection(), "article_search");
+ TQT_SLOT(slotArtSearch()), actionCollection(), "article_search");
a_ctArtRefreshList = new KAction(i18n("&Refresh List"),"reload", KStdAccel::shortcut(KStdAccel::Reload), this,
- SLOT(slotArtRefreshList()), actionCollection(), "view_Refresh");
+ TQT_SLOT(slotArtRefreshList()), actionCollection(), "view_Refresh");
a_ctArtCollapseAll = new KAction(i18n("&Collapse All Threads"), 0 , this,
- SLOT(slotArtCollapseAll()), actionCollection(), "view_CollapseAll");
+ TQT_SLOT(slotArtCollapseAll()), actionCollection(), "view_CollapseAll");
a_ctArtExpandAll = new KAction(i18n("E&xpand All Threads"), 0 , this,
- SLOT(slotArtExpandAll()), actionCollection(), "view_ExpandAll");
+ TQT_SLOT(slotArtExpandAll()), actionCollection(), "view_ExpandAll");
a_ctArtToggleThread = new KAction(i18n("&Toggle Subthread"), Key_T, this,
- SLOT(slotArtToggleThread()), actionCollection(), "thread_toggle");
+ TQT_SLOT(slotArtToggleThread()), actionCollection(), "thread_toggle");
a_ctArtToggleShowThreads = new KToggleAction(i18n("Show T&hreads"), 0 , this,
- SLOT(slotArtToggleShowThreads()), actionCollection(), "view_showThreads");
+ TQT_SLOT(slotArtToggleShowThreads()), actionCollection(), "view_showThreads");
a_ctArtToggleShowThreads->setCheckedState(i18n("Hide T&hreads"));
a_ctArtToggleShowThreads->setChecked(c_fgManager->readNewsGeneral()->showThreads());
//header-view - remote articles
a_ctArtSetArtRead = new KAction(i18n("Mark as &Read"), Key_D , this,
- SLOT(slotArtSetArtRead()), actionCollection(), "article_read");
+ TQT_SLOT(slotArtSetArtRead()), actionCollection(), "article_read");
a_ctArtSetArtUnread = new KAction(i18n("Mar&k as Unread"), Key_U , this,
- SLOT(slotArtSetArtUnread()), actionCollection(), "article_unread");
+ TQT_SLOT(slotArtSetArtUnread()), actionCollection(), "article_unread");
a_ctArtSetThreadRead = new KAction(i18n("Mark &Thread as Read"), CTRL+Key_D , this,
- SLOT(slotArtSetThreadRead()), actionCollection(), "thread_read");
+ TQT_SLOT(slotArtSetThreadRead()), actionCollection(), "thread_read");
a_ctArtSetThreadUnread = new KAction(i18n("Mark T&hread as Unread"), CTRL+Key_U , this,
- SLOT(slotArtSetThreadUnread()), actionCollection(), "thread_unread");
+ TQT_SLOT(slotArtSetThreadUnread()), actionCollection(), "thread_unread");
a_ctArtOpenNewWindow = new KAction(i18n("Open in Own &Window"), "window_new", Key_O , this,
- SLOT(slotArtOpenNewWindow()), actionCollection(), "article_ownWindow");
+ TQT_SLOT(slotArtOpenNewWindow()), actionCollection(), "article_ownWindow");
// scoring
a_ctScoresEdit = new KAction(i18n("&Edit Scoring Rules..."), "edit", CTRL+Key_E, this,
- SLOT(slotScoreEdit()), actionCollection(), "scoreedit");
+ TQT_SLOT(slotScoreEdit()), actionCollection(), "scoreedit");
a_ctReScore = new KAction(i18n("Recalculate &Scores"), 0, this,
- SLOT(slotReScore()),actionCollection(),"rescore");
+ TQT_SLOT(slotReScore()),actionCollection(),"rescore");
a_ctScoreLower = new KAction(i18n("&Lower Score for Author..."), CTRL+Key_L, this,
- SLOT(slotScoreLower()), actionCollection(), "scorelower");
+ TQT_SLOT(slotScoreLower()), actionCollection(), "scorelower");
a_ctScoreRaise = new KAction(i18n("&Raise Score for Author..."), CTRL+Key_I, this,
- SLOT(slotScoreRaise()),actionCollection(),"scoreraise");
+ TQT_SLOT(slotScoreRaise()),actionCollection(),"scoreraise");
a_ctArtToggleIgnored = new KAction(i18n("&Ignore Thread"), "bottom", Key_I , this,
- SLOT(slotArtToggleIgnored()), actionCollection(), "thread_ignore");
+ TQT_SLOT(slotArtToggleIgnored()), actionCollection(), "thread_ignore");
a_ctArtToggleWatched = new KAction(i18n("&Watch Thread"), "top", Key_W , this,
- SLOT(slotArtToggleWatched()), actionCollection(), "thread_watch");
+ TQT_SLOT(slotArtToggleWatched()), actionCollection(), "thread_watch");
//header-view local articles
a_ctArtSendOutbox = new KAction(i18n("Sen&d Pending Messages"), "mail_send", 0, this,
- SLOT(slotArtSendOutbox()), actionCollection(), "net_sendPending");
+ TQT_SLOT(slotArtSendOutbox()), actionCollection(), "net_sendPending");
a_ctArtDelete = new KAction(i18n("&Delete Article"), "editdelete", Key_Delete, this,
- SLOT(slotArtDelete()), actionCollection(), "article_delete");
+ TQT_SLOT(slotArtDelete()), actionCollection(), "article_delete");
a_ctArtSendNow = new KAction(i18n("Send &Now"),"mail_send", 0 , this,
- SLOT(slotArtSendNow()), actionCollection(), "article_sendNow");
+ TQT_SLOT(slotArtSendNow()), actionCollection(), "article_sendNow");
a_ctArtEdit = new KAction(i18n("edit article","&Edit Article..."), "edit", Key_E , this,
- SLOT(slotArtEdit()), actionCollection(), "article_edit");
+ TQT_SLOT(slotArtEdit()), actionCollection(), "article_edit");
//network
a_ctNetCancel = new KAction(i18n("Stop &Network"),"stop",0, this,
- SLOT(slotNetCancel()), actionCollection(), "net_stop");
+ TQT_SLOT(slotNetCancel()), actionCollection(), "net_stop");
a_ctNetCancel->setEnabled(false);
a_ctFetchArticleWithID = new KAction(i18n("&Fetch Article with ID..."), 0, this,
- SLOT(slotFetchArticleWithID()), actionCollection(), "fetch_article_with_id");
+ TQT_SLOT(slotFetchArticleWithID()), actionCollection(), "fetch_article_with_id");
a_ctFetchArticleWithID->setEnabled(false);
a_ctToggleGroupView = new KToggleAction(i18n("Show &Group View"), CTRL+Key_G, this,
- SLOT(slotToggleGroupView()), actionCollection(), "settings_show_groupView");
+ TQT_SLOT(slotToggleGroupView()), actionCollection(), "settings_show_groupView");
a_ctToggleGroupView->setCheckedState(i18n("Hide &Group View"));
a_ctToggleHeaderView = new KToggleAction(i18n("Show &Header View"), CTRL+Key_H, this,
- SLOT(slotToggleHeaderView()), actionCollection(), "settings_show_headerView");
+ TQT_SLOT(slotToggleHeaderView()), actionCollection(), "settings_show_headerView");
a_ctToggleHeaderView->setCheckedState(i18n("Hide &Header View"));
a_ctToggleArticleViewer = new KToggleAction(i18n("Show &Article Viewer"), CTRL+Key_J, this,
- SLOT(slotToggleArticleViewer()), actionCollection(), "settings_show_articleViewer");
+ TQT_SLOT(slotToggleArticleViewer()), actionCollection(), "settings_show_articleViewer");
a_ctToggleArticleViewer->setCheckedState(i18n("Hide &Article Viewer"));
- a_ctToggleQuickSearch = new KToggleAction(i18n("Show Quick Search"), QString::null, this,
- SLOT(slotToggleQuickSearch()), actionCollection(), "settings_show_quickSearch");
+ a_ctToggleQuickSearch = new KToggleAction(i18n("Show Quick Search"), TQString::null, this,
+ TQT_SLOT(slotToggleQuickSearch()), actionCollection(), "settings_show_quickSearch");
a_ctToggleQuickSearch->setCheckedState(i18n("Hide Quick Search"));
a_ctSwitchToGroupView = new KAction(i18n("Switch to Group View"), Key_G , this,
- SLOT(slotSwitchToGroupView()), actionCollection(), "switch_to_group_view");
+ TQT_SLOT(slotSwitchToGroupView()), actionCollection(), "switch_to_group_view");
a_ctSwitchToGroupView->plugAccel(a_ccel);
a_ctSwitchToHeaderView = new KAction(i18n("Switch to Header View"), Key_H , this,
- SLOT(slotSwitchToHeaderView()), actionCollection(), "switch_to_header_view");
+ TQT_SLOT(slotSwitchToHeaderView()), actionCollection(), "switch_to_header_view");
a_ctSwitchToHeaderView->plugAccel(a_ccel);
a_ctSwitchToArticleViewer = new KAction(i18n("Switch to Article Viewer"), Key_J , this,
- SLOT(slotSwitchToArticleViewer()), actionCollection(), "switch_to_article_viewer");
+ TQT_SLOT(slotSwitchToArticleViewer()), actionCollection(), "switch_to_article_viewer");
a_ctSwitchToArticleViewer->plugAccel(a_ccel);
}
@@ -766,16 +766,16 @@ bool KNMainWidget::firstStart()
{
KConfig *conf=knGlobals.config();
conf->setGroup("GENERAL");
- QString ver = conf->readEntry("Version");
+ TQString ver = conf->readEntry("Version");
if(!ver.isEmpty())
return false;
KConfig emailConf("emaildefaults");
emailConf.setGroup("Defaults");
- QString group = emailConf.readEntry("Profile","Default");
+ TQString group = emailConf.readEntry("Profile","Default");
- emailConf.setGroup(QString("PROFILE_%1").arg(group));
+ emailConf.setGroup(TQString("PROFILE_%1").arg(group));
KNConfig::Identity *id=knGlobals.configManager()->identity();
id->setName(emailConf.readEntry("FullName"));
id->setEmail(emailConf.readEntry("EmailAddress").latin1());
@@ -841,7 +841,7 @@ bool KNMainWidget::requestShutdown()
if( a_rtFactory->jobsPending() &&
KMessageBox::No==KMessageBox::warningYesNo(this, i18n(
"KNode is currently sending articles. If you quit now you might lose these \
-articles.\nDo you want to quit anyway?"), QString::null, KStdGuiItem::quit(), KStdGuiItem::cancel())
+articles.\nDo you want to quit anyway?"), TQString::null, KStdGuiItem::quit(), KStdGuiItem::cancel())
)
return false;
@@ -901,13 +901,13 @@ bool KNMainWidget::queryClose()
}
-void KNMainWidget::showEvent(QShowEvent *)
+void KNMainWidget::showEvent(TQShowEvent *)
{
slotCheckDockWidgetStatus();
}
-void KNMainWidget::fontChange( const QFont & )
+void KNMainWidget::fontChange( const TQFont & )
{
a_rtFactory->configChanged();
ArticleWidget::configChanged();
@@ -915,19 +915,19 @@ void KNMainWidget::fontChange( const QFont & )
}
-void KNMainWidget::paletteChange( const QPalette & )
+void KNMainWidget::paletteChange( const TQPalette & )
{
ArticleWidget::configChanged();
configChanged();
}
-bool KNMainWidget::eventFilter(QObject *o, QEvent *e)
+bool KNMainWidget::eventFilter(TQObject *o, TQEvent *e)
{
- if (((e->type() == QEvent::KeyPress) ||
- (e->type() == QEvent::KeyRelease) ||
- (e->type() == QEvent::Accel) ||
- (e->type() == QEvent::AccelOverride)) &&
+ if (((e->type() == TQEvent::KeyPress) ||
+ (e->type() == TQEvent::KeyRelease) ||
+ (e->type() == TQEvent::Accel) ||
+ (e->type() == TQEvent::AccelOverride)) &&
b_lockui)
return true;
return KDockArea::eventFilter(o, e);
@@ -939,7 +939,7 @@ void KNMainWidget::getSelectedArticles(KNArticle::List &l)
if(!g_rpManager->currentGroup() && !f_olManager->currentFolder())
return;
- for(QListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
+ for(TQListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
if(i->isSelected() || (static_cast<KNHdrViewItem*>(i)->isActive()))
l.append( static_cast<KNArticle*> ((static_cast<KNHdrViewItem*>(i))->art) );
}
@@ -949,7 +949,7 @@ void KNMainWidget::getSelectedArticles(KNRemoteArticle::List &l)
{
if(!g_rpManager->currentGroup()) return;
- for(QListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
+ for(TQListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
if(i->isSelected() || (static_cast<KNHdrViewItem*>(i)->isActive()))
l.append( static_cast<KNRemoteArticle*> ((static_cast<KNHdrViewItem*>(i))->art) );
}
@@ -958,7 +958,7 @@ void KNMainWidget::getSelectedArticles(KNRemoteArticle::List &l)
void KNMainWidget::getSelectedThreads(KNRemoteArticle::List &l)
{
KNRemoteArticle *art;
- for(QListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
+ for(TQListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
if(i->isSelected() || (static_cast<KNHdrViewItem*>(i)->isActive())) {
art=static_cast<KNRemoteArticle*> ((static_cast<KNHdrViewItem*>(i))->art);
// ignore the article if it is already in the list
@@ -973,7 +973,7 @@ void KNMainWidget::getSelectedArticles( KNLocalArticle::List &l )
{
if(!f_olManager->currentFolder()) return;
- for(QListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
+ for(TQListViewItem *i=h_drView->firstChild(); i; i=i->itemBelow())
if(i->isSelected() || (static_cast<KNHdrViewItem*>(i)->isActive()))
l.append( static_cast<KNLocalArticle*> ((static_cast<KNHdrViewItem*>(i))->art) );
}
@@ -981,7 +981,7 @@ void KNMainWidget::getSelectedArticles( KNLocalArticle::List &l )
void KNMainWidget::closeCurrentThread()
{
- QListViewItem *item = h_drView->currentItem();
+ TQListViewItem *item = h_drView->currentItem();
if (item) {
while (item->parent())
item = item->parent();
@@ -991,9 +991,9 @@ void KNMainWidget::closeCurrentThread()
}
}
-void KNMainWidget::slotArticleSelected(QListViewItem *i)
+void KNMainWidget::slotArticleSelected(TQListViewItem *i)
{
- kdDebug(5003) << "KNMainWidget::slotArticleSelected(QListViewItem *i)" << endl;
+ kdDebug(5003) << "KNMainWidget::slotArticleSelected(TQListViewItem *i)" << endl;
if(b_lockui)
return;
KNArticle *selectedArticle=0;
@@ -1053,9 +1053,9 @@ void KNMainWidget::slotArticleSelectionChanged()
}
-void KNMainWidget::slotCollectionSelected(QListViewItem *i)
+void KNMainWidget::slotCollectionSelected(TQListViewItem *i)
{
- kdDebug(5003) << "KNMainWidget::slotCollectionSelected(QListViewItem *i)" << endl;
+ kdDebug(5003) << "KNMainWidget::slotCollectionSelected(TQListViewItem *i)" << endl;
if(b_lockui)
return;
KNCollection *c=0;
@@ -1172,9 +1172,9 @@ void KNMainWidget::slotCollectionSelected(QListViewItem *i)
}
-void KNMainWidget::slotCollectionRenamed(QListViewItem *i)
+void KNMainWidget::slotCollectionRenamed(TQListViewItem *i)
{
- kdDebug(5003) << "KNMainWidget::slotCollectionRenamed(QListViewItem *i)" << endl;
+ kdDebug(5003) << "KNMainWidget::slotCollectionRenamed(TQListViewItem *i)" << endl;
if (i) {
(static_cast<KNCollectionViewItem*>(i))->coll->setName(i->text(0));
@@ -1187,7 +1187,7 @@ void KNMainWidget::slotCollectionRenamed(QListViewItem *i)
}
-void KNMainWidget::slotCollectionViewDrop(QDropEvent* e, KNCollectionViewItem* after)
+void KNMainWidget::slotCollectionViewDrop(TQDropEvent* e, KNCollectionViewItem* after)
{
kdDebug(5003) << "KNMainWidget::slotCollectionViewDrop() : type = " << e->format(0) << endl;
@@ -1201,7 +1201,7 @@ void KNMainWidget::slotCollectionViewDrop(QDropEvent* e, KNCollectionViewItem* a
}
else if(dest && e->provides("x-knode-drag/article")) {
if(f_olManager->currentFolder()) {
- if (e->action() == QDropEvent::Move) {
+ if (e->action() == TQDropEvent::Move) {
KNLocalArticle::List l;
getSelectedArticles(l);
a_rtManager->moveIntoFolder(l, dest);
@@ -1220,17 +1220,17 @@ void KNMainWidget::slotCollectionViewDrop(QDropEvent* e, KNCollectionViewItem* a
}
-void KNMainWidget::slotArticleRMB(KListView*, QListViewItem *i, const QPoint &p)
+void KNMainWidget::slotArticleRMB(KListView*, TQListViewItem *i, const TQPoint &p)
{
if(b_lockui)
return;
if(i) {
- QPopupMenu *popup;
+ TQPopupMenu *popup;
if( (static_cast<KNHdrViewItem*>(i))->art->type()==KMime::Base::ATremote) {
- popup = static_cast<QPopupMenu *>(factory()->container("remote_popup", m_GUIClient));
+ popup = static_cast<TQPopupMenu *>(factory()->container("remote_popup", m_GUIClient));
} else {
- popup = static_cast<QPopupMenu *>(factory()->container("local_popup", m_GUIClient));
+ popup = static_cast<TQPopupMenu *>(factory()->container("local_popup", m_GUIClient));
}
if ( popup )
@@ -1239,28 +1239,28 @@ void KNMainWidget::slotArticleRMB(KListView*, QListViewItem *i, const QPoint &p)
}
-void KNMainWidget::slotCollectionRMB(KListView*, QListViewItem *i, const QPoint &p)
+void KNMainWidget::slotCollectionRMB(KListView*, TQListViewItem *i, const TQPoint &p)
{
if(b_lockui)
return;
if(i) {
if( (static_cast<KNCollectionViewItem*>(i))->coll->type()==KNCollection::CTgroup) {
- QPopupMenu *popup = static_cast<QPopupMenu *>(factory()->container("group_popup", m_GUIClient));
+ TQPopupMenu *popup = static_cast<TQPopupMenu *>(factory()->container("group_popup", m_GUIClient));
if ( popup )
popup->popup(p);
} else if ((static_cast<KNCollectionViewItem*>(i))->coll->type()==KNCollection::CTfolder) {
if (static_cast<KNFolder*>(static_cast<KNCollectionViewItem*>(i)->coll)->isRootFolder()) {
- QPopupMenu *popup = static_cast<QPopupMenu *>(factory()->container("root_folder_popup", m_GUIClient));
+ TQPopupMenu *popup = static_cast<TQPopupMenu *>(factory()->container("root_folder_popup", m_GUIClient));
if ( popup )
popup->popup(p);
} else {
- QPopupMenu *popup = static_cast<QPopupMenu *>(factory()->container("folder_popup", m_GUIClient));
+ TQPopupMenu *popup = static_cast<TQPopupMenu *>(factory()->container("folder_popup", m_GUIClient));
if ( popup )
popup->popup(p);
}
} else {
- QPopupMenu *popup = static_cast<QPopupMenu *>(factory()->container("account_popup", m_GUIClient));
+ TQPopupMenu *popup = static_cast<TQPopupMenu *>(factory()->container("account_popup", m_GUIClient));
if ( popup )
popup->popup( p );
}
@@ -1268,7 +1268,7 @@ void KNMainWidget::slotCollectionRMB(KListView*, QListViewItem *i, const QPoint
}
-void KNMainWidget::slotOpenArticle(QListViewItem *item)
+void KNMainWidget::slotOpenArticle(TQListViewItem *item)
{
if(b_lockui)
return;
@@ -1327,7 +1327,7 @@ void KNMainWidget::slotArticleDockHidden()
}
-void KNMainWidget::slotDockWidgetFocusChangeRequest(QWidget *w)
+void KNMainWidget::slotDockWidgetFocusChangeRequest(TQWidget *w)
{
if ( w == mArticleViewer ) {
if (c_olView->isVisible()) {
@@ -1448,7 +1448,7 @@ void KNMainWidget::slotAccDelete()
void KNMainWidget::slotAccGetNewHdrsAll()
{
- QValueList<KNNntpAccount*>::Iterator it;
+ TQValueList<KNNntpAccount*>::Iterator it;
for ( it = a_ccManager->begin(); it != a_ccManager->end(); ++it )
g_rpManager->checkAll( *it );
}
@@ -1511,7 +1511,7 @@ void KNMainWidget::slotGrpUnsubscribe()
kdDebug(5003) << "KNMainWidget::slotGrpUnsubscribe()" << endl;
if(g_rpManager->currentGroup()) {
if(KMessageBox::Yes==KMessageBox::questionYesNo(knGlobals.topWidget,
- i18n("Do you really want to unsubscribe from %1?").arg(g_rpManager->currentGroup()->groupname()), QString::null, i18n("Unsubscribe"), KStdGuiItem::cancel()))
+ i18n("Do you really want to unsubscribe from %1?").arg(g_rpManager->currentGroup()->groupname()), TQString::null, i18n("Unsubscribe"), KStdGuiItem::cancel()))
if (g_rpManager->unsubscribeGroup(g_rpManager->currentGroup()))
slotCollectionSelected(0);
}
@@ -1945,10 +1945,10 @@ void KNMainWidget::slotFetchArticleWithID()
FetchArticleIdDlg *dlg = new FetchArticleIdDlg(this, "messageid" );
if (dlg->exec()) {
- QString id = dlg->messageId().simplifyWhiteSpace();
- if (id.find(QRegExp("*@*",false,true))!=-1) {
- if (id.find(QRegExp("<*>",false,true))==-1) // add "<>" when necessary
- id = QString("<%1>").arg(id);
+ TQString id = dlg->messageId().simplifyWhiteSpace();
+ if (id.find(TQRegExp("*@*",false,true))!=-1) {
+ if (id.find(TQRegExp("<*>",false,true))==-1) // add "<>" when necessary
+ id = TQString("<%1>").arg(id);
if(!KNArticleWindow::raiseWindowForArticle(id.latin1())) { //article not yet opened
KNRemoteArticle *a=new KNRemoteArticle(g_rpManager->currentGroup());
@@ -2043,27 +2043,27 @@ KXMLGUIFactory* KNMainWidget::factory() const
//--------------------------------
-FetchArticleIdDlg::FetchArticleIdDlg(QWidget *parent, const char */*name*/ )
+FetchArticleIdDlg::FetchArticleIdDlg(TQWidget *parent, const char */*name*/ )
:KDialogBase(parent, 0, true, i18n("Fetch Article with ID"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok)
{
- QHBox *page = makeHBoxMainWidget();
+ TQHBox *page = makeHBoxMainWidget();
- QLabel *label = new QLabel(i18n("&Message-ID:"),page);
+ TQLabel *label = new TQLabel(i18n("&Message-ID:"),page);
edit = new KLineEdit(page);
label->setBuddy(edit);
edit->setFocus();
enableButtonOK( false );
setButtonOK( i18n("&Fetch") );
- connect( edit, SIGNAL(textChanged( const QString & )), this, SLOT(slotTextChanged(const QString & )));
- KNHelper::restoreWindowSize("fetchArticleWithID", this, QSize(325,66));
+ connect( edit, TQT_SIGNAL(textChanged( const TQString & )), this, TQT_SLOT(slotTextChanged(const TQString & )));
+ KNHelper::restoreWindowSize("fetchArticleWithID", this, TQSize(325,66));
}
-QString FetchArticleIdDlg::messageId() const
+TQString FetchArticleIdDlg::messageId() const
{
return edit->text();
}
-void FetchArticleIdDlg::slotTextChanged(const QString &_text )
+void FetchArticleIdDlg::slotTextChanged(const TQString &_text )
{
enableButtonOK( !_text.isEmpty() );
}