1 /* 2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 ** Distributed under the terms of the Haiku 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 FindTextView; 13 class BCheckBox; 14 15 16 enum find_mode { 17 kAsciiMode, 18 kHexMode 19 }; 20 21 22 class FindWindow : public BWindow { 23 public: 24 FindWindow(BRect rect, BMessage &previous, BMessenger &target, 25 const BMessage *settings = NULL); 26 virtual ~FindWindow(); 27 28 virtual void WindowActivated(bool active); 29 virtual void MessageReceived(BMessage *message); 30 virtual bool QuitRequested(); 31 32 void SetTarget(BMessenger &target); 33 34 private: 35 BMessenger fTarget; 36 FindTextView *fTextView; 37 BCheckBox *fCaseCheckBox; 38 BMenu *fMenu; 39 }; 40 41 #endif /* FIND_WINDOW_H */ 42