xref: /haiku/src/apps/stylededit/FindWindow.h (revision a3e794ae459fec76826407f8ba8c94cd3535f128)
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 
20 
21 class FindWindow : public BWindow {
22 	public:
23 						FindWindow(BRect frame, BHandler* handler,
24 							BString* searchString, bool caseState,
25 							bool wrapState, bool backState);
26 
27 		virtual void	MessageReceived(BMessage* message);
28 		virtual void	DispatchMessage(BMessage* message, BHandler* handler);
29 		virtual	bool	QuitRequested();
30 		virtual void	Show();
31 
32 	private:
33 		void			_SendMessage();
34 
35 		BTextControl	*fSearchString;
36 		BCheckBox		*fCaseSensBox;
37 		BCheckBox		*fWrapBox;
38 		BCheckBox		*fBackSearchBox;
39 		BButton			*fCancelButton;
40 		BButton			*fSearchButton;
41 
42 		BHandler		*fHandler;
43 };
44 
45 #endif	// FIND_WINDOW_H
46 
47