BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / terminal / FindWindow.h
blobf2b6e3cf7acffcc052aec2698abb495510b291aa
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
11 #include <Messenger.h>
12 #include <Window.h>
15 const ulong MSG_FIND = 'msgf';
16 const ulong MSG_FIND_START = 'msac';
17 const ulong MSG_FIND_CLOSED = 'mfcl';
20 class BTextControl;
21 class BRadioButton;
22 class BCheckBox;
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();
32 virtual void MessageReceived(BMessage* msg);
33 virtual void Quit();
35 private:
36 void _SendFindMessage();
38 private:
39 BTextControl* fFindLabel;
40 BRadioButton* fTextRadio;
42 BCheckBox* fForwardSearchBox;
43 BCheckBox* fMatchCaseBox;
44 BCheckBox* fMatchWordBox;
45 BButton* fFindButton;
47 BMessenger fFindDlgMessenger;
50 #endif // FINDDLG_H_INCLUDED