21 #ifndef searchwindow_h
22 #define searchwindow_h
24 #include <tqvaluelist.h>
25 #include <tqptrlist.h>
26 #include <tqstringlist.h>
27 #include <tqguardedptr.h>
30 #include <kdialogbase.h>
31 #include <kxmlguiclient.h>
55 class FolderRequester;
58 typedef TQPtrList<KMMsgBase> KMMessageList;
68 class SearchWindow:
public KDialogBase,
virtual public KXMLGUIClient
83 KMFolder *curFolder=0,
bool modal=
false );
110 virtual void slotClose();
111 virtual void slotSearch();
112 virtual void slotStop();
113 void scheduleRename(
const TQString &);
114 void renameSearchFolder();
115 void openSearchFolder();
117 virtual bool slotShowMsg( TQListViewItem * );
118 void slotViewSelectedMsg();
119 virtual bool slotViewMsg( TQListViewItem * );
120 void slotCurrentChanged( TQListViewItem * );
121 virtual void updateContextMenuActions();
122 virtual void slotContextMenuRequested( TQListViewItem*,
const TQPoint &,
int );
123 virtual void copySelectedToFolder(
int menuId );
124 virtual void moveSelectedToFolder(
int menuId );
125 virtual void slotFolderActivated();
126 void slotClearSelection();
127 void slotReplyToMsg();
128 void slotReplyAllToMsg();
129 void slotReplyListToMsg();
130 void slotForwardInlineMsg();
131 void slotForwardAttachedMsg();
132 void slotForwardDigestMsg();
133 void slotRedirectMsg();
135 void slotSaveAttachments();
142 virtual void slotAddMsg(
int idx);
143 virtual void slotRemoveMsg(
KMFolder *, TQ_UINT32 serNum);
146 void setEnabledSearchButton(
bool);
158 bool mCloseRequested;
159 int mFetchingInProgress;
161 SortOrder mSortOrder;
162 TQGuardedPtr<KMFolderSearch> mFolder;
166 TQRadioButton *mChkbxAllFolders;
167 TQRadioButton *mChkbxSpecificFolders;
169 TQPushButton *mBtnSearch;
170 TQPushButton *mBtnStop;
171 TQCheckBox *mChkSubFolders;
172 TDEListView* mLbxMatches;
173 TQLabel *mSearchFolderLbl;
174 TQLineEdit *mSearchFolderEdt;
175 TQPushButton *mSearchFolderOpenBtn;
176 TQPushButton *mSearchResultOpenBtn;
177 KStatusBar* mStatusBar;
178 TQWidget* mLastFocus;
179 TQMap<int,KMFolder*> mMenuToFolder;
180 TDEAction *mReplyAction, *mReplyAllAction, *mReplyListAction, *mSaveAsAction,
181 *mForwardInlineAction, *mForwardAttachedAction, *mForwardDigestAction,
182 *mRedirectAction, *mPrintAction, *mClearAction, *mSaveAtchAction,
183 *mCopyAction, *mCutAction;
184 TDEActionMenu *mForwardActionMenu;
185 TQValueList<TQGuardedPtr<KMFolder> > mFolders;
186 TQTimer mRenameTimer;
189 KMMainWidget* mKMMainWidget;
193 static const int MSGID_COLUMN;
196 KMMessage *indexToMessage( TQListViewItem *item );
This widget is intended to be used in the filter configuration as well as in the message search dialo...
This class is an abstraction of a search over messages.
A widget that contains a KLineEdit which shows the current folder and a button that fires a KMFolderS...
The SearchWindow class provides a dialog for triggering a search on folders and storing that search a...
virtual void searchDone()
GUI cleanup after search.
KMMessage * message()
Provides access to the currently selected message.
virtual void updStatus(void)
Update status line widget.
virtual void keyPressEvent(TQKeyEvent *)
Reimplemented to react to Escape.
SearchWindow(KMMainWidget *parent, const char *name=0, KMFolder *curFolder=0, bool modal=false)
Creates a new search window.
virtual void closeEvent(TQCloseEvent *)
Reimplemented to stop searching when the window is closed.
KMMessageList selectedMessages()
Provides access to the list of currently selected message in the listview.
void activateFolder(KMFolder *curFolder)
Changes the base folder for search operations to a different folder.