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)
virtual ~SearchWindow ()
void activateFolder (KMFolder *curFolder)
KMMessageList selectedMessages ()
KMMessagemessage ()

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 ()
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< KMFolderSearchmFolder
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
KActionMenumForwardActionMenu
QValueList< QGuardedPtr< KMFolder > > mFolders
KMMainWidgetmKMMainWidget
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 64 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 397 of file searchwindow.cpp.

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

Reimplemented to stop searching when the window is closed.

Reimplemented from KDialogBase.

Definition at line 556 of file searchwindow.cpp.

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

Reimplemented to react to Escape.

Reimplemented from KDialogBase.

Definition at line 377 of file searchwindow.cpp.

KMMessage * KMail::SearchWindow::message (  ) 

Provides access to the currently selected message.

Returns:
the currently selected message.

Definition at line 670 of file searchwindow.cpp.

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

GUI cleanup after search.

Definition at line 480 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 654 of file searchwindow.cpp.

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

Update status line widget.

Definition at line 340 of file searchwindow.cpp.


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