mirror of
https://review.haiku-os.org/haiku
synced 2025-02-12 00:28:19 +01:00
DispatchMessage(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32419 a95241bf-73f2-0310-859d-f6bbb57e9c96
52 lines
1.2 KiB
C++
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
|