|
|
|
@ -22,7 +22,7 @@ using KMail::ActionScheduler;
|
|
|
|
|
#include "messagecopyhelper.h"
|
|
|
|
|
using KMail::MessageCopyHelper;
|
|
|
|
|
#include "broadcaststatus.h"
|
|
|
|
|
using KPIM::BroadcastqStatus;
|
|
|
|
|
using KPIM::BroadcastStatus;
|
|
|
|
|
#include "progressmanager.h"
|
|
|
|
|
using KPIM::ProgressManager;
|
|
|
|
|
using KPIM::ProgressItem;
|
|
|
|
@ -719,7 +719,7 @@ void KMHeaders::setFolder( KMFolder *aFolder, bool forceJumpToUnread )
|
|
|
|
|
disconnect(mFolder, TQT_SIGNAL(closed()),
|
|
|
|
|
this, TQT_SLOT(folderClosed()));
|
|
|
|
|
disconnect( mFolder, TQT_SIGNAL( statusMsg( const TQString& ) ),
|
|
|
|
|
BroadcastqStatus::instance(), TQT_SLOT( seStatusMsg( const TQString& ) ) );
|
|
|
|
|
BroadcastStatus::instance(), TQT_SLOT( seStatusMsg( const TQString& ) ) );
|
|
|
|
|
disconnect(mFolder, TQT_SIGNAL(viewConfigChanged()), this, TQT_SLOT(reset()));
|
|
|
|
|
writeSortOrder();
|
|
|
|
|
mFolder->close("kmheaders");
|
|
|
|
@ -752,7 +752,7 @@ void KMHeaders::setFolder( KMFolder *aFolder, bool forceJumpToUnread )
|
|
|
|
|
connect(mFolder, TQT_SIGNAL(closed()),
|
|
|
|
|
this, TQT_SLOT(folderClosed()));
|
|
|
|
|
connect(mFolder, TQT_SIGNAL(statusMsg(const TQString&)),
|
|
|
|
|
BroadcastqStatus::instance(), TQT_SLOT( seStatusMsg( const TQString& ) ) );
|
|
|
|
|
BroadcastStatus::instance(), TQT_SLOT( seStatusMsg( const TQString& ) ) );
|
|
|
|
|
connect(mFolder, TQT_SIGNAL(numUnreadMsgsChanged(KMFolder*)),
|
|
|
|
|
this, TQT_SLOT(setFolderInfotqStatus()));
|
|
|
|
|
connect(mFolder, TQT_SIGNAL(viewConfigChanged()), this, TQT_SLOT(reset()));
|
|
|
|
@ -1403,7 +1403,7 @@ void KMHeaders::setFolderInfotqStatus ()
|
|
|
|
|
: i18n( "0 messages" ); // no need for "0 unread" to be added here
|
|
|
|
|
if ( mFolder->isReadOnly() )
|
|
|
|
|
str = i18n("%1 = n messages, m unread.", "%1 Folder is read-only.").tqarg( str );
|
|
|
|
|
BroadcastqStatus::instance()->seStatusMsg(str);
|
|
|
|
|
BroadcastStatus::instance()->seStatusMsg(str);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
@ -1452,7 +1452,7 @@ void KMHeaders::applyFiltersOnMsg()
|
|
|
|
|
progressItem->updateProgress();
|
|
|
|
|
TQString statusMsg = i18n("Filtering message %1 of %2");
|
|
|
|
|
statusMsg = statusMsg.tqarg( msgCount ).tqarg( msgCountToFilter );
|
|
|
|
|
KPIM::BroadcastqStatus::instance()->seStatusMsg( statusMsg );
|
|
|
|
|
KPIM::BroadcastStatus::instance()->seStatusMsg( statusMsg );
|
|
|
|
|
KApplication::kApplication()->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 50 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1523,7 +1523,7 @@ void KMHeaders::deleteMsg ()
|
|
|
|
|
this, TQT_SLOT( slotMoveCompleted( KMCommand * ) ) );
|
|
|
|
|
command->start();
|
|
|
|
|
|
|
|
|
|
BroadcastqStatus::instance()->seStatusMsg("");
|
|
|
|
|
BroadcastStatus::instance()->seStatusMsg("");
|
|
|
|
|
// triggerUpdate();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1620,7 +1620,7 @@ void KMHeaders::slotMoveCompleted( KMCommand *command )
|
|
|
|
|
if ( command->result() == KMCommand::OK ) {
|
|
|
|
|
// make sure the current item is shown
|
|
|
|
|
makeHeaderVisible();
|
|
|
|
|
BroadcastqStatus::instance()->seStatusMsg(
|
|
|
|
|
BroadcastStatus::instance()->seStatusMsg(
|
|
|
|
|
deleted ? i18n("Messages deleted successfully.") : i18n("Messages moved successfully") );
|
|
|
|
|
} else {
|
|
|
|
|
/* The move failed or the user canceled it; reset the state of all
|
|
|
|
@ -1643,10 +1643,10 @@ void KMHeaders::slotMoveCompleted( KMCommand *command )
|
|
|
|
|
}
|
|
|
|
|
triggerUpdate();
|
|
|
|
|
if ( command->result() == KMCommand::Failed )
|
|
|
|
|
BroadcastqStatus::instance()->seStatusMsg(
|
|
|
|
|
BroadcastStatus::instance()->seStatusMsg(
|
|
|
|
|
deleted ? i18n("Deleting messages failed.") : i18n("Moving messages failed.") );
|
|
|
|
|
else
|
|
|
|
|
BroadcastqStatus::instance()->seStatusMsg(
|
|
|
|
|
BroadcastStatus::instance()->seStatusMsg(
|
|
|
|
|
deleted ? i18n("Deleting messages canceled.") : i18n("Moving messages canceled.") );
|
|
|
|
|
}
|
|
|
|
|
mOwner->updateMessageActions();
|
|
|
|
@ -2135,7 +2135,7 @@ void KMHeaders::highlightMessage(TQListViewItem* lvi, bool markitread)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BroadcastqStatus::instance()->seStatusMsg("");
|
|
|
|
|
BroadcastStatus::instance()->seStatusMsg("");
|
|
|
|
|
if (markitread && idx >= 0) setMsgRead(idx);
|
|
|
|
|
mItems[idx]->irefresh();
|
|
|
|
|
mItems[idx]->tqrepaint();
|
|
|
|
|