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