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