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 REPLACE_WINDOW_H 10 #define REPLACE_WINDOW_H 11 12 13 #include <Window.h> 14 15 16 class BString; 17 class BButton; 18 class BHandler; 19 class BMessage; 20 class BCheckBox; 21 class BTextControl; 22 23 24 class ReplaceWindow : public BWindow { 25 public: 26 ReplaceWindow(BRect frame, BHandler* _handler, 27 BString* searchString, BString* replaceString, 28 bool caseState, bool wrapState, bool backState); 29 30 virtual void MessageReceived(BMessage* message); 31 virtual void DispatchMessage(BMessage* message, BHandler* handler); 32 virtual void Show(); 33 34 private: 35 void _SendMessage(uint32 what); 36 void _ChangeUI(); 37 38 BTextControl *fSearchString; 39 BTextControl *fReplaceString; 40 BCheckBox *fCaseSensBox; 41 BCheckBox *fWrapBox; 42 BCheckBox *fBackSearchBox; 43 BCheckBox *fAllWindowsBox; 44 BButton *fReplaceButton; 45 BButton *fReplaceAllButton; 46 BButton *fCancelButton; 47 BHandler *fHandler; 48 bool fUIchange; 49 }; 50 51 #endif // REPLACE_WINDOW_H 52 53