1 /* 2 * Copyright 2007, Haiku, Inc. 3 * Copyright 2003-2004 Kian Duffy, myob@users.sourceforge.net 4 * Parts Copyright 1998-1999 Kazuho Okui and Takashi Murai. 5 * All rights reserved. Distributed under the terms of the MIT license. 6 */ 7 #ifndef FINDDLG_H_INCLUDED 8 #define FINDDLG_H_INCLUDED 9 10 11 #include <Messenger.h> 12 #include <Window.h> 13 14 15 const ulong MSG_FIND = 'msgf'; 16 const ulong MSG_FIND_START = 'msac'; 17 const ulong MSG_FIND_CLOSED = 'mfcl'; 18 19 20 class FindWindow : public BWindow { 21 public: 22 FindWindow (BRect frame, BMessenger messenger, BString &str, 23 bool findSelection, bool matchWord, bool matchCase, bool forwardSearch); 24 virtual ~FindWindow(); 25 26 virtual void Quit(); 27 virtual void MessageReceived(BMessage *msg); 28 29 private: 30 void _SendFindMessage(); 31 32 private: 33 BView *fFindView; 34 BTextControl *fFindLabel; 35 BRadioButton *fTextRadio; 36 BRadioButton *fSelectionRadio; 37 BBox *fSeparator; 38 BCheckBox *fForwardSearchBox; 39 BCheckBox *fMatchCaseBox; 40 BCheckBox *fMatchWordBox; 41 BButton *fFindButton; 42 43 BString *fFindString; 44 BMessenger fFindDlgMessenger; 45 }; 46 47 #endif // FINDDLG_H_INCLUDED 48