xref: /haiku/src/apps/stylededit/FindWindow.h (revision 893988af824e65e49e55f517b157db8386e8002b)
1 /*
2  * Copyright 2002-2006, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Mattias Sundblad
7  *		Andrew Bachmann
8  */
9 #ifndef FIND_WINDOW_H
10 #define FIND_WINDOW_H
11 
12 
13 #include <Window.h>
14 
15 
16 class BButton;
17 class BCheckBox;
18 class BTextControl;
19 class BView;
20 
21 
22 class FindWindow : public BWindow {
23 	public:
24 						FindWindow(BRect frame, BHandler* handler, BString *searchString,
25 							bool caseState, bool wrapState, bool backState);
26 
27 		virtual void	MessageReceived(BMessage* message);
28 		virtual void	DispatchMessage(BMessage* message, BHandler* handler);
29 
30 	private:
31 		void			_SendMessage();
32 
33 		BView 			*fFindView;
34 		BTextControl	*fSearchString;
35 		BCheckBox		*fCaseSensBox;
36 		BCheckBox		*fWrapBox;
37 		BCheckBox		*fBackSearchBox;
38 		BButton			*fCancelButton;
39 		BButton			*fSearchButton;
40 
41 		BHandler		*fHandler;
42 };
43 
44 #endif	// FIND_WINDOW_H
45 
46