summaryrefslogtreecommitdiffstats
path: root/knode/knmainwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /knode/knmainwidget.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/knmainwidget.cpp')
-rw-r--r--knode/knmainwidget.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/knode/knmainwidget.cpp b/knode/knmainwidget.cpp
index 6686d3f01..8da3b97ee 100644
--- a/knode/knmainwidget.cpp
+++ b/knode/knmainwidget.cpp
@@ -34,7 +34,7 @@
#include "broadcaststatus.h"
#include "krsqueezedtextlabel.h"
#include "recentaddresses.h"
-using KPIM::BroadcasStatus;
+using KPIM::BroadcastqStatus;
using KRecentAddress::RecentAddresses;
//GUI
@@ -70,9 +70,9 @@ using namespace KNode;
KNGlobals knGlobals;
-KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, TQWidget* parent,
+KNMainWidget::KNMainWidget( KXMLGUIClient* client, bool detachable, TQWidget* tqparent,
const char* name )
- : DCOPObject("KNodeIface"), KDockArea( parent, name ),
+ : DCOPObject("KNodeIface"), KDockArea( tqparent, name ),
b_lockui( false ), m_GUIClient( client )
{
knGlobals.top=this;
@@ -307,9 +307,9 @@ void KNMainWidget::iniStatusBar()
//statusbar
KMainWindow *mainWin = dynamic_cast<KMainWindow*>(tqtopLevelWidget());
KStatusBar *sb = mainWin ? mainWin->statusBar() : 0;
- s_tatusFilter = new KRSqueezedTextLabel( TQString::null, sb );
+ s_tatusFilter = new KRSqueezedTextLabel( TQString(), sb );
s_tatusFilter->tqsetAlignment( AlignLeft | AlignVCenter );
- s_tatusGroup = new KRSqueezedTextLabel( TQString::null, sb );
+ s_tatusGroup = new KRSqueezedTextLabel( TQString(), sb );
s_tatusGroup->tqsetAlignment( AlignLeft | AlignVCenter );
}
@@ -324,13 +324,13 @@ void KNMainWidget::seStatusMsg(const TQString& text, int id)
bar->clear();
if (text.isEmpty() && (id==SB_MAIN)) {
if (knGlobals.netAccess()->currentMsg().isEmpty())
- BroadcasStatus::instance()->seStatusMsg(i18n(" Ready"));
+ BroadcastqStatus::instance()->seStatusMsg(i18n(" Ready"));
else
- BroadcasStatus::instance()->seStatusMsg(knGlobals.netAccess()->currentMsg());
+ BroadcastqStatus::instance()->seStatusMsg(knGlobals.netAccess()->currentMsg());
} else {
switch(id) {
case SB_MAIN:
- BroadcasStatus::instance()->seStatusMsg(text); break;
+ BroadcastqStatus::instance()->seStatusMsg(text); break;
case SB_GROUP:
s_tatusGroup->setText(text); break;
case SB_FILTER:
@@ -670,7 +670,7 @@ void KNMainWidget::initActions()
a_ctArtSortHeaders->setItems(items);
a_ctArtSortHeaders->setShortcutConfigurable(false);
connect(a_ctArtSortHeaders, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotArtSortHeaders(int)));
- a_ctArtSortHeadersKeyb = new KAction(i18n("Sort"), TQString::null, Key_F7 , this,
+ a_ctArtSortHeadersKeyb = new KAction(i18n("Sort"), TQString(), Key_F7 , this,
TQT_SLOT(slotArtSortHeadersKeyb()), actionCollection(), "view_Sort_Keyb");
a_ctArtSortHeadersKeyb->plugAccel(a_ccel);
a_ctArtFilter = new KNFilterSelectAction(i18n("&Filter"), "filter",
@@ -678,7 +678,7 @@ void KNMainWidget::initActions()
a_ctArtFilter->setShortcutConfigurable(false);
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,
+ a_ctArtSearch = new KAction(i18n("&Search Articles..."),"mail_tqfind" , Key_F4 , this,
TQT_SLOT(slotArtSearch()), actionCollection(), "article_search");
a_ctArtRefreshList = new KAction(i18n("&Refresh List"),"reload", KStdAccel::shortcut(KStdAccel::Reload), this,
TQT_SLOT(slotArtRefreshList()), actionCollection(), "view_Refresh");
@@ -748,7 +748,7 @@ void KNMainWidget::initActions()
a_ctToggleArticleViewer = new KToggleAction(i18n("Show &Article Viewer"), CTRL+Key_J, this,
TQT_SLOT(slotToggleArticleViewer()), actionCollection(), "settings_show_articleViewer");
a_ctToggleArticleViewer->setCheckedState(i18n("Hide &Article Viewer"));
- a_ctToggleQuickSearch = new KToggleAction(i18n("Show Quick Search"), TQString::null, this,
+ a_ctToggleQuickSearch = new KToggleAction(i18n("Show Quick Search"), TQString(), 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,
@@ -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?"), TQString::null, KStdGuiItem::quit(), KStdGuiItem::cancel())
+articles.\nDo you want to quit anyway?"), TQString(), KStdGuiItem::quit(), KStdGuiItem::cancel())
)
return false;
@@ -903,7 +903,7 @@ bool KNMainWidget::queryClose()
void KNMainWidget::showEvent(TQShowEvent *)
{
- slotCheckDockWidgeStatus();
+ slotCheckDockWidgetqStatus();
}
@@ -963,7 +963,7 @@ void KNMainWidget::getSelectedThreads(KNRemoteArticle::List &l)
art=static_cast<KNRemoteArticle*> ((static_cast<KNHdrViewItem*>(i))->art);
// ignore the article if it is already in the list
// (multiple aritcles are selected in one thread)
- if ( l.find(art) == l.end() )
+ if ( l.tqfind(art) == l.end() )
art->thread(l);
}
}
@@ -983,8 +983,8 @@ void KNMainWidget::closeCurrentThread()
{
TQListViewItem *item = h_drView->currentItem();
if (item) {
- while (item->parent())
- item = item->parent();
+ while (item->tqparent())
+ item = item->tqparent();
h_drView->setCurrentItem(item);
item->setOpen(false);
h_drView->ensureItemVisible(item);
@@ -1301,7 +1301,7 @@ void KNMainWidget::slotNetworkActive(bool b)
}
-void KNMainWidget::slotCheckDockWidgeStatus()
+void KNMainWidget::slotCheckDockWidgetqStatus()
{
a_ctToggleGroupView->setChecked(c_olDock->isVisible());
a_ctToggleArticleViewer->setChecked(a_rtDock->isVisible());
@@ -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()), TQString::null, i18n("Unsubscribe"), KStdGuiItem::cancel()))
+ i18n("Do you really want to unsubscribe from %1?").arg(g_rpManager->currentGroup()->groupname()), TQString(), i18n("Unsubscribe"), KStdGuiItem::cancel()))
if (g_rpManager->unsubscribeGroup(g_rpManager->currentGroup()))
slotCollectionSelected(0);
}
@@ -1588,7 +1588,7 @@ void KNMainWidget::slotFolDelete()
KMessageBox::sorry(knGlobals.topWidget, i18n("You cannot delete a standard folder."));
else if( KMessageBox::Continue==KMessageBox::warningContinueCancel(knGlobals.topWidget,
- i18n("Do you really want to delete this folder and all its children?"),"",KGuiItem(i18n("&Delete"),"editdelete")) ) {
+ i18n("Do you really want to delete this folder and all its tqchildren?"),"",KGuiItem(i18n("&Delete"),"editdelete")) ) {
if(!f_olManager->deleteFolder(f_olManager->currentFolder()))
KMessageBox::sorry(knGlobals.topWidget,
@@ -1946,8 +1946,8 @@ void KNMainWidget::slotFetchArticleWithID()
if (dlg->exec()) {
TQString id = dlg->messageId().simplifyWhiteSpace();
- if (id.find(TQRegExp("*@*",false,true))!=-1) {
- if (id.find(TQRegExp("<*>",false,true))==-1) // add "<>" when necessary
+ if (id.tqfind(TQRegExp("*@*",false,true))!=-1) {
+ if (id.tqfind(TQRegExp("<*>",false,true))==-1) // add "<>" when necessary
id = TQString("<%1>").arg(id);
if(!KNArticleWindow::raiseWindowForArticle(id.latin1())) { //article not yet opened
@@ -1966,7 +1966,7 @@ void KNMainWidget::slotFetchArticleWithID()
void KNMainWidget::slotToggleGroupView()
{
c_olDock->changeHideShowState();
- slotCheckDockWidgeStatus();
+ slotCheckDockWidgetqStatus();
}
@@ -1977,19 +1977,19 @@ void KNMainWidget::slotToggleHeaderView()
if ( !h_drDock->isDockBackPossible() ) {
h_drDock->manualDock( a_rtDock, KDockWidget::DockTop );
h_drDock->makeDockVisible();
- slotCheckDockWidgeStatus();
+ slotCheckDockWidgetqStatus();
return;
}
h_drDock->changeHideShowState();
- slotCheckDockWidgeStatus();
+ slotCheckDockWidgetqStatus();
}
void KNMainWidget::slotToggleArticleViewer()
{
a_rtDock->changeHideShowState();
- slotCheckDockWidgeStatus();
+ slotCheckDockWidgetqStatus();
}
void KNMainWidget::slotToggleQuickSearch()
@@ -2043,8 +2043,8 @@ KXMLGUIFactory* KNMainWidget::factory() const
//--------------------------------
-FetchArticleIdDlg::FetchArticleIdDlg(TQWidget *parent, const char */*name*/ )
- :KDialogBase(parent, 0, true, i18n("Fetch Article with ID"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok)
+FetchArticleIdDlg::FetchArticleIdDlg(TQWidget *tqparent, const char */*name*/ )
+ :KDialogBase(tqparent, 0, true, i18n("Fetch Article with ID"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok)
{
TQHBox *page = makeHBoxMainWidget();