kmail

#include <searchwindow.h>

Public Member Functions

 SearchWindow (KMMainWidget *parent, const char *name=0, KMFolder *curFolder=0, bool modal=false)
void activateFolder (KMFolder *curFolder)
KMMessageList selectedMessages ()
KMMessagemessage ()
void setSearchPattern (const KMSearchPattern &pattern)

Protected Slots

virtual void updStatus (void)
virtual void slotClose ()
virtual void slotSearch ()
virtual void slotStop ()
void scheduleRename (const TQString &)
void renameSearchFolder ()
void openSearchFolder ()
void folderInvalidated (KMFolder *)
virtual bool slotShowMsg (TQListViewItem *)
void slotViewSelectedMsg ()
virtual bool slotViewMsg (TQListViewItem *)
void slotCurrentChanged (TQListViewItem *)
virtual void updateContextMenuActions ()
virtual void slotContextMenuRequested (TQListViewItem *, const TQPoint &, int)
virtual void copySelectedToFolder (int menuId)
virtual void moveSelectedToFolder (int menuId)
virtual void slotFolderActivated ()
void slotClearSelection ()
void slotReplyToMsg ()
void slotReplyAllToMsg ()
void slotReplyListToMsg ()
void slotForwardInlineMsg ()
void slotForwardAttachedMsg ()
void slotForwardDigestMsg ()
void slotRedirectMsg ()
void slotSaveMsg ()
void slotSaveAttachments ()
void slotPrintMsg ()
void slotCopyMsgs ()
void slotCutMsgs ()
virtual void searchDone ()
virtual void slotAddMsg (int idx)
virtual void slotRemoveMsg (KMFolder *, TQ_UINT32 serNum)
void enableGUI ()
void setEnabledSearchButton (bool)

Protected Member Functions

virtual void keyPressEvent (TQKeyEvent *)
virtual void closeEvent (TQCloseEvent *)

Protected Attributes

bool mStopped
bool mCloseRequested
int mFetchingInProgress
int mSortColumn
SortOrder mSortOrder
TQGuardedPtr< KMFolderSearch > mFolder
TQTimer * mTimer
TQRadioButton * mChkbxAllFolders
TQRadioButton * mChkbxSpecificFolders
KMail::FolderRequestermCbxFolders
TQPushButton * mBtnSearch
TQPushButton * mBtnStop
TQCheckBox * mChkSubFolders
TDEListView * mLbxMatches
TQLabel * mSearchFolderLbl
TQLineEdit * mSearchFolderEdt
TQPushButton * mSearchFolderOpenBtn
TQPushButton * mSearchResultOpenBtn
KStatusBar * mStatusBar
TQWidget * mLastFocus
TQMap< int, KMFolder * > mMenuToFolder
TDEAction * mReplyAction
TDEAction * mReplyAllAction
TDEAction * mReplyListAction
TDEAction * mSaveAsAction
TDEAction * mForwardInlineAction
TDEAction * mForwardAttachedAction
TDEAction * mForwardDigestAction
TDEAction * mRedirectAction
TDEAction * mPrintAction
TDEAction * mClearAction
TDEAction * mSaveAtchAction
TDEAction * mCopyAction
TDEAction * mCutAction
TDEActionMenu * mForwardActionMenu
TQValueList< TQGuardedPtr< KMFolder > > mFolders
TQTimer mRenameTimer
KMMainWidget * mKMMainWidget
KMSearchPatternEditmPatternEdit
KMSearchPatternmSearchPattern

Static Protected Attributes

static const int MSGID_COLUMN = 4

Detailed Description

The SearchWindow class provides a dialog for triggering a search on folders and storing that search as a search folder.

It shows the search results in a listview and allows triggering of operations such as printing or moving on them.

Definition at line 68 of file searchwindow.h.

Constructor & Destructor Documentation

◆ SearchWindow()

KMail::SearchWindow::SearchWindow ( KMMainWidget * parent,
const char * name = 0,
KMFolder * curFolder = 0,
bool modal = false )

Creates a new search window.

Parameters
parentThe parent widget.
nameThe (widget) name of the dialog.
curFolderThe folder which will be pre-selected as the base folder of search operations.
modalWhether the dialog is to be shown modal.

Definition at line 109 of file searchwindow.cpp.

◆ ~SearchWindow()

KMail::SearchWindow::~SearchWindow ( )
virtual

Definition at line 367 of file searchwindow.cpp.

Member Function Documentation

◆ activateFolder()

void KMail::SearchWindow::activateFolder ( KMFolder * curFolder)

Changes the base folder for search operations to a different folder.

Parameters
curFolderThe folder to use as the new base for searches.

Definition at line 454 of file searchwindow.cpp.

◆ closeEvent()

void KMail::SearchWindow::closeEvent ( TQCloseEvent * e)
protectedvirtual

Reimplemented to stop searching when the window is closed.

Definition at line 613 of file searchwindow.cpp.

◆ copySelectedToFolder

void KMail::SearchWindow::copySelectedToFolder ( int menuId)
protectedvirtualslot

Definition at line 795 of file searchwindow.cpp.

◆ enableGUI

void KMail::SearchWindow::enableGUI ( )
protectedslot

Definition at line 735 of file searchwindow.cpp.

◆ folderInvalidated

void KMail::SearchWindow::folderInvalidated ( KMFolder * folder)
protectedslot

Definition at line 668 of file searchwindow.cpp.

◆ keyPressEvent()

void KMail::SearchWindow::keyPressEvent ( TQKeyEvent * evt)
protectedvirtual

Reimplemented to react to Escape.

Definition at line 434 of file searchwindow.cpp.

◆ message()

KMMessage * KMail::SearchWindow::message ( )

Provides access to the currently selected message.

Returns
the currently selected message.

Definition at line 767 of file searchwindow.cpp.

◆ moveSelectedToFolder

void KMail::SearchWindow::moveSelectedToFolder ( int menuId)
protectedvirtualslot

Definition at line 783 of file searchwindow.cpp.

◆ openSearchFolder

void KMail::SearchWindow::openSearchFolder ( )
protectedslot

Definition at line 659 of file searchwindow.cpp.

◆ renameSearchFolder

void KMail::SearchWindow::renameSearchFolder ( )
protectedslot

Definition at line 639 of file searchwindow.cpp.

◆ scheduleRename

void KMail::SearchWindow::scheduleRename ( const TQString & s)
protectedslot

Definition at line 627 of file searchwindow.cpp.

◆ searchDone

void KMail::SearchWindow::searchDone ( )
protectedvirtualslot

GUI cleanup after search.

Definition at line 535 of file searchwindow.cpp.

◆ selectedMessages()

KMMessageList KMail::SearchWindow::selectedMessages ( )

Provides access to the list of currently selected message in the listview.

Returns
The list of currenty selected search result messages.

Definition at line 751 of file searchwindow.cpp.

◆ setEnabledSearchButton

void KMail::SearchWindow::setEnabledSearchButton ( bool )
protectedslot

Definition at line 387 of file searchwindow.cpp.

◆ setSearchPattern()

void KMail::SearchWindow::setSearchPattern ( const KMSearchPattern & pattern)

Definition at line 956 of file searchwindow.cpp.

◆ slotAddMsg

void KMail::SearchWindow::slotAddMsg ( int idx)
protectedvirtualslot

Definition at line 552 of file searchwindow.cpp.

◆ slotClearSelection

void KMail::SearchWindow::slotClearSelection ( )
protectedslot

Definition at line 863 of file searchwindow.cpp.

◆ slotClose

void KMail::SearchWindow::slotClose ( )
protectedvirtualslot

Definition at line 606 of file searchwindow.cpp.

◆ slotContextMenuRequested

void KMail::SearchWindow::slotContextMenuRequested ( TQListViewItem * lvi,
const TQPoint & ,
int  )
protectedvirtualslot

Definition at line 822 of file searchwindow.cpp.

◆ slotCopyMsgs

void KMail::SearchWindow::slotCopyMsgs ( )
protectedslot

Definition at line 943 of file searchwindow.cpp.

◆ slotCurrentChanged

void KMail::SearchWindow::slotCurrentChanged ( TQListViewItem * item)
protectedslot

Definition at line 729 of file searchwindow.cpp.

◆ slotCutMsgs

void KMail::SearchWindow::slotCutMsgs ( )
protectedslot

Definition at line 949 of file searchwindow.cpp.

◆ slotFolderActivated

void KMail::SearchWindow::slotFolderActivated ( )
protectedvirtualslot

Definition at line 448 of file searchwindow.cpp.

◆ slotForwardAttachedMsg

void KMail::SearchWindow::slotForwardAttachedMsg ( )
protectedslot

Definition at line 897 of file searchwindow.cpp.

◆ slotForwardDigestMsg

void KMail::SearchWindow::slotForwardDigestMsg ( )
protectedslot

Definition at line 904 of file searchwindow.cpp.

◆ slotForwardInlineMsg

void KMail::SearchWindow::slotForwardInlineMsg ( )
protectedslot

Definition at line 890 of file searchwindow.cpp.

◆ slotPrintMsg

void KMail::SearchWindow::slotPrintMsg ( )
protectedslot

Definition at line 937 of file searchwindow.cpp.

◆ slotRedirectMsg

void KMail::SearchWindow::slotRedirectMsg ( )
protectedslot

Definition at line 911 of file searchwindow.cpp.

◆ slotRemoveMsg

void KMail::SearchWindow::slotRemoveMsg ( KMFolder * ,
TQ_UINT32 serNum )
protectedvirtualslot

Definition at line 581 of file searchwindow.cpp.

◆ slotReplyAllToMsg

void KMail::SearchWindow::slotReplyAllToMsg ( )
protectedslot

Definition at line 876 of file searchwindow.cpp.

◆ slotReplyListToMsg

void KMail::SearchWindow::slotReplyListToMsg ( )
protectedslot

Definition at line 883 of file searchwindow.cpp.

◆ slotReplyToMsg

void KMail::SearchWindow::slotReplyToMsg ( )
protectedslot

Definition at line 869 of file searchwindow.cpp.

◆ slotSaveAttachments

void KMail::SearchWindow::slotSaveAttachments ( )
protectedslot

Definition at line 928 of file searchwindow.cpp.

◆ slotSaveMsg

void KMail::SearchWindow::slotSaveMsg ( )
protectedslot

Definition at line 918 of file searchwindow.cpp.

◆ slotSearch

void KMail::SearchWindow::slotSearch ( )
protectedvirtualslot

Definition at line 461 of file searchwindow.cpp.

◆ slotShowMsg

bool KMail::SearchWindow::slotShowMsg ( TQListViewItem * item)
protectedvirtualslot

Definition at line 701 of file searchwindow.cpp.

◆ slotStop

void KMail::SearchWindow::slotStop ( )
protectedvirtualslot

Definition at line 597 of file searchwindow.cpp.

◆ slotViewMsg

bool KMail::SearchWindow::slotViewMsg ( TQListViewItem * item)
protectedvirtualslot

Definition at line 718 of file searchwindow.cpp.

◆ slotViewSelectedMsg

void KMail::SearchWindow::slotViewSelectedMsg ( )
protectedslot

Definition at line 712 of file searchwindow.cpp.

◆ updateContextMenuActions

void KMail::SearchWindow::updateContextMenuActions ( )
protectedvirtualslot

Definition at line 807 of file searchwindow.cpp.

◆ updStatus

void KMail::SearchWindow::updStatus ( void )
protectedvirtualslot

Update status line widget.

Definition at line 397 of file searchwindow.cpp.

Member Data Documentation

◆ mBtnSearch

TQPushButton* KMail::SearchWindow::mBtnSearch
protected

Definition at line 169 of file searchwindow.h.

◆ mBtnStop

TQPushButton* KMail::SearchWindow::mBtnStop
protected

Definition at line 170 of file searchwindow.h.

◆ mCbxFolders

KMail::FolderRequester* KMail::SearchWindow::mCbxFolders
protected

Definition at line 168 of file searchwindow.h.

◆ mChkbxAllFolders

TQRadioButton* KMail::SearchWindow::mChkbxAllFolders
protected

Definition at line 166 of file searchwindow.h.

◆ mChkbxSpecificFolders

TQRadioButton* KMail::SearchWindow::mChkbxSpecificFolders
protected

Definition at line 167 of file searchwindow.h.

◆ mChkSubFolders

TQCheckBox* KMail::SearchWindow::mChkSubFolders
protected

Definition at line 171 of file searchwindow.h.

◆ mClearAction

TDEAction * KMail::SearchWindow::mClearAction
protected

Definition at line 182 of file searchwindow.h.

◆ mCloseRequested

bool KMail::SearchWindow::mCloseRequested
protected

Definition at line 158 of file searchwindow.h.

◆ mCopyAction

TDEAction * KMail::SearchWindow::mCopyAction
protected

Definition at line 183 of file searchwindow.h.

◆ mCutAction

TDEAction * KMail::SearchWindow::mCutAction
protected

Definition at line 183 of file searchwindow.h.

◆ mFetchingInProgress

int KMail::SearchWindow::mFetchingInProgress
protected

Definition at line 159 of file searchwindow.h.

◆ mFolder

TQGuardedPtr<KMFolderSearch> KMail::SearchWindow::mFolder
protected

Definition at line 162 of file searchwindow.h.

◆ mFolders

TQValueList<TQGuardedPtr<KMFolder> > KMail::SearchWindow::mFolders
protected

Definition at line 185 of file searchwindow.h.

◆ mForwardActionMenu

TDEActionMenu* KMail::SearchWindow::mForwardActionMenu
protected

Definition at line 184 of file searchwindow.h.

◆ mForwardAttachedAction

TDEAction * KMail::SearchWindow::mForwardAttachedAction
protected

Definition at line 181 of file searchwindow.h.

◆ mForwardDigestAction

TDEAction * KMail::SearchWindow::mForwardDigestAction
protected

Definition at line 181 of file searchwindow.h.

◆ mForwardInlineAction

TDEAction * KMail::SearchWindow::mForwardInlineAction
protected

Definition at line 181 of file searchwindow.h.

◆ mKMMainWidget

KMMainWidget* KMail::SearchWindow::mKMMainWidget
protected

Definition at line 189 of file searchwindow.h.

◆ mLastFocus

TQWidget* KMail::SearchWindow::mLastFocus
protected

Definition at line 178 of file searchwindow.h.

◆ mLbxMatches

TDEListView* KMail::SearchWindow::mLbxMatches
protected

Definition at line 172 of file searchwindow.h.

◆ mMenuToFolder

TQMap<int,KMFolder*> KMail::SearchWindow::mMenuToFolder
protected

Definition at line 179 of file searchwindow.h.

◆ mPatternEdit

KMSearchPatternEdit* KMail::SearchWindow::mPatternEdit
protected

Definition at line 190 of file searchwindow.h.

◆ mPrintAction

TDEAction * KMail::SearchWindow::mPrintAction
protected

Definition at line 182 of file searchwindow.h.

◆ mRedirectAction

TDEAction * KMail::SearchWindow::mRedirectAction
protected

Definition at line 182 of file searchwindow.h.

◆ mRenameTimer

TQTimer KMail::SearchWindow::mRenameTimer
protected

Definition at line 186 of file searchwindow.h.

◆ mReplyAction

TDEAction* KMail::SearchWindow::mReplyAction
protected

Definition at line 180 of file searchwindow.h.

◆ mReplyAllAction

TDEAction * KMail::SearchWindow::mReplyAllAction
protected

Definition at line 180 of file searchwindow.h.

◆ mReplyListAction

TDEAction * KMail::SearchWindow::mReplyListAction
protected

Definition at line 180 of file searchwindow.h.

◆ mSaveAsAction

TDEAction * KMail::SearchWindow::mSaveAsAction
protected

Definition at line 180 of file searchwindow.h.

◆ mSaveAtchAction

TDEAction * KMail::SearchWindow::mSaveAtchAction
protected

Definition at line 182 of file searchwindow.h.

◆ mSearchFolderEdt

TQLineEdit* KMail::SearchWindow::mSearchFolderEdt
protected

Definition at line 174 of file searchwindow.h.

◆ mSearchFolderLbl

TQLabel* KMail::SearchWindow::mSearchFolderLbl
protected

Definition at line 173 of file searchwindow.h.

◆ mSearchFolderOpenBtn

TQPushButton* KMail::SearchWindow::mSearchFolderOpenBtn
protected

Definition at line 175 of file searchwindow.h.

◆ mSearchPattern

KMSearchPattern* KMail::SearchWindow::mSearchPattern
protected

Definition at line 191 of file searchwindow.h.

◆ mSearchResultOpenBtn

TQPushButton* KMail::SearchWindow::mSearchResultOpenBtn
protected

Definition at line 176 of file searchwindow.h.

◆ MSGID_COLUMN

const int KMail::SearchWindow::MSGID_COLUMN = 4
staticprotected

Definition at line 193 of file searchwindow.h.

◆ mSortColumn

int KMail::SearchWindow::mSortColumn
protected

Definition at line 160 of file searchwindow.h.

◆ mSortOrder

SortOrder KMail::SearchWindow::mSortOrder
protected

Definition at line 161 of file searchwindow.h.

◆ mStatusBar

KStatusBar* KMail::SearchWindow::mStatusBar
protected

Definition at line 177 of file searchwindow.h.

◆ mStopped

bool KMail::SearchWindow::mStopped
protected

Definition at line 157 of file searchwindow.h.

◆ mTimer

TQTimer* KMail::SearchWindow::mTimer
protected

Definition at line 163 of file searchwindow.h.


The documentation for this class was generated from the following files: