xref: /haiku/src/apps/diskprobe/FindWindow.h (revision b55a57da7173b9af0432bd3e148d03f06161d036)
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 
34 		void SetTarget(BMessenger &target);
35 
36 	private:
37 		BMessenger		fTarget;
38 		FindTextView	*fTextView;
39 		BCheckBox		*fCaseCheckBox;
40 		BMenu			*fMenu;
41 };
42 
43 #endif	/* FIND_WINDOW_H */
44