xref: /haiku/src/apps/terminal/FindWindow.h (revision b8ded2f89783a220c7b3019d48266a682cc79158)
1 /*
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.
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 BTextControl;
21 class BRadioButton;
22 class BCheckBox;
23 
24 
25 class FindWindow : public BWindow {
26 public:
27 							FindWindow (BMessenger messenger, const BString& str,
28 								bool findSelection, bool matchWord,
29 								bool matchCase, bool forwardSearch);
30 	virtual					~FindWindow();
31 
32 	virtual	void			MessageReceived(BMessage* msg);
33 	virtual	void			Quit();
34 
35 private:
36 			void			_SendFindMessage();
37 
38 private:
39 			BTextControl*	fFindLabel;
40 			BRadioButton*	fTextRadio;
41 
42 			BCheckBox*		fForwardSearchBox;
43 			BCheckBox*		fMatchCaseBox;
44 			BCheckBox*		fMatchWordBox;
45 			BButton*		fFindButton;
46 
47 			BMessenger		fFindDlgMessenger;
48 };
49 
50 #endif	// FINDDLG_H_INCLUDED
51