2001-08-01 10:55:03 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/msw/fdrepdlg.h
|
|
|
|
// Purpose: wxGenericFindReplaceDialog class
|
|
|
|
// Author: Markus Greither
|
|
|
|
// Modified by:
|
|
|
|
// Created: 25/05/2001
|
2009-01-11 06:58:34 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) wxWidgets team
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-08-01 10:55:03 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-25 16:49:40 -04:00
|
|
|
#ifndef _WX_GENERIC_FDREPDLG_H_
|
|
|
|
#define _WX_GENERIC_FDREPDLG_H_
|
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxCheckBox;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxRadioBox;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
2001-08-01 10:55:03 -04:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGenericFindReplaceDialog: dialog for searching / replacing text
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
|
2001-08-01 10:55:03 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGenericFindReplaceDialog() { Init(); }
|
|
|
|
|
|
|
|
wxGenericFindReplaceDialog(wxWindow *parent,
|
|
|
|
wxFindReplaceData *data,
|
|
|
|
const wxString& title,
|
|
|
|
int style = 0)
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
|
|
|
|
(void)Create(parent, data, title, style);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxFindReplaceData *data,
|
|
|
|
const wxString& title,
|
|
|
|
int style = 0);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
void SendEvent(const wxEventType& evtType);
|
|
|
|
|
|
|
|
void OnFind(wxCommandEvent& event);
|
|
|
|
void OnReplace(wxCommandEvent& event);
|
|
|
|
void OnReplaceAll(wxCommandEvent& event);
|
|
|
|
void OnCancel(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnUpdateFindUI(wxUpdateUIEvent& event);
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
|
|
|
|
|
|
|
wxCheckBox *m_chkCase,
|
|
|
|
*m_chkWord;
|
|
|
|
|
|
|
|
wxRadioBox *m_radioDir;
|
|
|
|
|
|
|
|
wxTextCtrl *m_textFind,
|
|
|
|
*m_textRepl;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
2005-09-25 16:49:40 -04:00
|
|
|
#endif // _WX_GENERIC_FDREPDLG_H_
|