1 #ifndef REPLACE_WINDOW_H 2 #define REPLACE_WINDOW_H 3 4 #include <Window.h> 5 #include <Rect.h> 6 #include <Handler.h> 7 #include <String.h> 8 #include <Message.h> 9 #include <View.h> 10 #include <TextControl.h> 11 #include <CheckBox.h> 12 #include <Button.h> 13 14 class ReplaceWindow : public BWindow { 15 public: 16 ReplaceWindow(BRect frame, BHandler *_handler,BString *searchString, 17 BString *replaceString, bool *caseState, bool *wrapState, bool *backState); 18 19 virtual void MessageReceived(BMessage* message); 20 virtual void DispatchMessage(BMessage* message, BHandler *handler); 21 22 23 private: 24 void ExtractToMsg(BMessage *message); 25 void ChangeUi(); 26 BView *fReplaceView; 27 BTextControl *fSearchString; 28 BTextControl *fReplaceString; 29 BCheckBox *fCaseSensBox; 30 BCheckBox *fWrapBox; 31 BCheckBox *fBackSearchBox; 32 BCheckBox *fAllWindowsBox; 33 BButton *fReplaceButton; 34 BButton *fReplaceAllButton; 35 BButton *fCancelButton; 36 BHandler *fHandler; 37 bool fUichange; 38 }; 39 40 #endif 41 42