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 FIND_WINDOW_H 10 #define FIND_WINDOW_H 11 12 13 #include <Window.h> 14 15 16 class BButton; 17 class BCheckBox; 18 class BTextControl; 19 20 21 class FindWindow : public BWindow { 22 public: 23 FindWindow(BRect frame, BHandler* handler, BString *searchString, 24 bool caseState, bool wrapState, bool backState); 25 26 virtual void MessageReceived(BMessage* message); 27 virtual void DispatchMessage(BMessage* message, BHandler* handler); 28 29 private: 30 void _SendMessage(); 31 32 BTextControl *fSearchString; 33 BCheckBox *fCaseSensBox; 34 BCheckBox *fWrapBox; 35 BCheckBox *fBackSearchBox; 36 BButton *fCancelButton; 37 BButton *fSearchButton; 38 39 BHandler *fHandler; 40 }; 41 42 #endif // FIND_WINDOW_H 43 44