xref: /haiku/src/apps/diskprobe/FindWindow.h (revision 71452e98334eaac603bf542d159e24788a46bebb)
1 /*
2  * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef FIND_WINDOW_H
6 #define FIND_WINDOW_H
7 
8 
9 #include <Window.h>
10 #include <Messenger.h>
11 
12 class BCheckBox;
13 class BMenu;
14 
15 class FindTextView;
16 
17 
18 enum find_mode {
19 	kAsciiMode,
20 	kHexMode
21 };
22 
23 
24 class FindWindow : public BWindow {
25 	public:
26 		FindWindow(BRect rect, BMessage &previous, BMessenger &target,
27 			const BMessage *settings = NULL);
28 		virtual ~FindWindow();
29 
30 		virtual void WindowActivated(bool active);
31 		virtual void MessageReceived(BMessage *message);
32 		virtual bool QuitRequested();
33 		virtual void Show();
34 
35 		void SetTarget(BMessenger &target);
36 
37 	private:
38 		BMessenger		fTarget;
39 		FindTextView	*fTextView;
40 		BCheckBox		*fCaseCheckBox;
41 		BMenu			*fMenu;
42 };
43 
44 #endif	/* FIND_WINDOW_H */
45