added generic implementation and documentation for wxFindReplaceDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
71
include/wx/generic/fdrepdlg.h
Normal file
71
include/wx/generic/fdrepdlg.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/msw/fdrepdlg.h
|
||||
// Purpose: wxGenericFindReplaceDialog class
|
||||
// Author: Markus Greither
|
||||
// Modified by:
|
||||
// Created: 25/05/2001
|
||||
// RCS-ID:
|
||||
// Copyright: (c) wxWindows team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "genericfdrepdlg.h"
|
||||
#endif
|
||||
|
||||
class WXDLLEXPORT wxCheckBox;
|
||||
class WXDLLEXPORT wxRadioBox;
|
||||
class WXDLLEXPORT wxTextCtrl;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGenericFindReplaceDialog: dialog for searching / replacing text
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
|
||||
{
|
||||
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()
|
||||
};
|
||||
|
Reference in New Issue
Block a user