kmail

KMail::SearchWindow Class Reference

#include <searchwindow.h>

Inheritance diagram for KMail::SearchWindow:

KDialogBase KXMLGUIClient KDialog

List of all members.


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 67 of file 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 updateCreateButton (const QString &)
void renameSearchFolder ()
void openSearchFolder ()
void folderInvalidated (KMFolder *)
virtual bool slotShowMsg (QListViewItem *)
virtual void updateContextMenuActions ()
virtual void slotContextMenuRequested (QListViewItem *, const QPoint &, 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 *, Q_UINT32 serNum)
void enableGUI ()
void setEnabledSearchButton (bool)

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *)
virtual void closeEvent (QCloseEvent *)

Protected Attributes

bool mStopped
bool mCloseRequested
int mFetchingInProgress
int mSortColumn
SortOrder mSortOrder
QGuardedPtr< KMFolderSearch > mFolder
QTimer * mTimer
QRadioButton * mChkbxAllFolders
QRadioButton * mChkbxSpecificFolders
KMail::FolderRequestermCbxFolders
QPushButton * mBtnSearch
QPushButton * mBtnStop
QCheckBox * mChkSubFolders
KListViewmLbxMatches
QLabel * mSearchFolderLbl
QLineEdit * mSearchFolderEdt
QPushButton * mSearchFolderBtn
QPushButton * mSearchFolderOpenBtn
KStatusBarmStatusBar
QWidget * mLastFocus
QMap< int, KMFolder * > mMenuToFolder
KActionmReplyAction
KActionmReplyAllAction
KActionmReplyListAction
KActionmSaveAsAction
KActionmForwardInlineAction
KActionmForwardAttachedAction
KActionmForwardDigestAction
KActionmRedirectAction
KActionmPrintAction
KActionmClearAction
KActionmSaveAtchAction
KActionmCopyAction
KActionmCutAction
KActionMenumForwardActionMenu
QValueList< QGuardedPtr
< KMFolder > > 
mFolders
KMMainWidget * mKMMainWidget
KMSearchPatternEditmPatternEdit
KMSearchPatternmSearchPattern

Static Protected Attributes

static const int MSGID_COLUMN = 4

Constructor & Destructor Documentation

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

Creates a new search window.

Parameters:
parent The parent widget.
name The (widget) name of the dialog.
curFolder The folder which will be pre-selected as the base folder of search operations.
modal Whether the dialog is to be shown modal.

Definition at line 109 of file searchwindow.cpp.


Member Function Documentation

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

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

Parameters:
curFolder The folder to use as the new base for searches.

Definition at line 455 of file searchwindow.cpp.

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 712 of file searchwindow.cpp.

KMMessage * KMail::SearchWindow::message (  ) 

Provides access to the currently selected message.

Returns:
the currently selected message.

Definition at line 728 of file searchwindow.cpp.

void KMail::SearchWindow::updStatus ( void   )  [protected, virtual, slot]

Update status line widget.

Definition at line 398 of file searchwindow.cpp.

void KMail::SearchWindow::searchDone (  )  [protected, virtual, slot]

GUI cleanup after search.

Definition at line 538 of file searchwindow.cpp.

void KMail::SearchWindow::keyPressEvent ( QKeyEvent *  evt  )  [protected, virtual]

Reimplemented to react to Escape.

Reimplemented from KDialogBase.

Definition at line 435 of file searchwindow.cpp.

void KMail::SearchWindow::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

Reimplemented to stop searching when the window is closed.

Reimplemented from KDialogBase.

Definition at line 614 of file searchwindow.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys