2 * Copyright 2007-2013 Haiku, Inc. All rights reserved.
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.
7 #ifndef FINDDLG_H_INCLUDED
8 #define FINDDLG_H_INCLUDED
11 #include <Messenger.h>
15 const ulong MSG_FIND
= 'msgf';
16 const ulong MSG_FIND_START
= 'msac';
17 const ulong MSG_FIND_CLOSED
= 'mfcl';
25 class FindWindow
: public BWindow
{
27 FindWindow (BMessenger messenger
, const BString
& str
,
28 bool findSelection
, bool matchWord
,
29 bool matchCase
, bool forwardSearch
);
30 virtual ~FindWindow();
32 virtual void MessageReceived(BMessage
* msg
);
36 void _SendFindMessage();
39 BTextControl
* fFindLabel
;
40 BRadioButton
* fTextRadio
;
42 BCheckBox
* fForwardSearchBox
;
43 BCheckBox
* fMatchCaseBox
;
44 BCheckBox
* fMatchWordBox
;
47 BMessenger fFindDlgMessenger
;
50 #endif // FINDDLG_H_INCLUDED