haiku/src/apps/terminal/FindWindow.h
Ingo Weinhold e8cbd8db5d Use the handy B_CLOSE_ON_ESCAPE flag instead of fishing for the escape key in
DispatchMessage().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 17:02:21 +00:00

52 lines
1.2 KiB
C++

/*
* Copyright 2007, Haiku, Inc.
* Copyright 2003-2004 Kian Duffy, myob@users.sourceforge.net
* Parts Copyright 1998-1999 Kazuho Okui and Takashi Murai.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef FINDDLG_H_INCLUDED
#define FINDDLG_H_INCLUDED
#include <Messenger.h>
#include <Window.h>
const ulong MSG_FIND = 'msgf';
const ulong MSG_FIND_START = 'msac';
const ulong MSG_FIND_CLOSED = 'mfcl';
class BTextControl;
class BRadioButton;
class BBox;
class BCheckBox;
class FindWindow : public BWindow {
public:
FindWindow (BRect frame, BMessenger messenger, BString &str,
bool findSelection, bool matchWord, bool matchCase, bool forwardSearch);
virtual ~FindWindow();
virtual void Quit();
virtual void MessageReceived(BMessage *msg);
private:
void _SendFindMessage();
private:
BView *fFindView;
BTextControl *fFindLabel;
BRadioButton *fTextRadio;
BRadioButton *fSelectionRadio;
BBox *fSeparator;
BCheckBox *fForwardSearchBox;
BCheckBox *fMatchCaseBox;
BCheckBox *fMatchWordBox;
BButton *fFindButton;
BString *fFindString;
BMessenger fFindDlgMessenger;
};
#endif // FINDDLG_H_INCLUDED