xref: /haiku/src/apps/stylededit/ReplaceWindow.h (revision 16d5c24e533eb14b7b8a99ee9f3ec9ba66335b1e)
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 REPLACE_WINDOW_H
10 #define REPLACE_WINDOW_H
11 
12 
13 #include <Window.h>
14 
15 
16 class BView;
17 class BString;
18 class BButton;
19 class BHandler;
20 class BMessage;
21 class BCheckBox;
22 class BTextControl;
23 
24 
25 class ReplaceWindow : public BWindow {
26 	public:
27 						ReplaceWindow(BRect frame, BHandler *_handler,
28 							BString *searchString, BString *replaceString,
29 							bool caseState, bool wrapState, bool backState);
30 
31 		virtual void	MessageReceived(BMessage* message);
32 		virtual void	DispatchMessage(BMessage* message, BHandler *handler);
33 
34 	private:
35 		void 			_SendMessage(uint32 what);
36 		void 			_ChangeUI();
37 
38 		BView 			*fReplaceView;
39 		BTextControl	*fSearchString;
40 		BTextControl	*fReplaceString;
41 		BCheckBox		*fCaseSensBox;
42 		BCheckBox		*fWrapBox;
43 		BCheckBox		*fBackSearchBox;
44 		BCheckBox		*fAllWindowsBox;
45 		BButton			*fReplaceButton;
46 		BButton			*fReplaceAllButton;
47 		BButton			*fCancelButton;
48 		BHandler		*fHandler;
49 		bool			fUIchange;
50 };
51 
52 #endif	// REPLACE_WINDOW_H
53 
54