fdrepdlg.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/generic/fdrepdlg.h
  3. // Purpose: wxGenericFindReplaceDialog class
  4. // Author: Markus Greither
  5. // Modified by:
  6. // Created: 25/05/2001
  7. // Copyright: (c) wxWidgets team
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_GENERIC_FDREPDLG_H_
  11. #define _WX_GENERIC_FDREPDLG_H_
  12. class WXDLLIMPEXP_FWD_CORE wxCheckBox;
  13. class WXDLLIMPEXP_FWD_CORE wxRadioBox;
  14. class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
  15. // ----------------------------------------------------------------------------
  16. // wxGenericFindReplaceDialog: dialog for searching / replacing text
  17. // ----------------------------------------------------------------------------
  18. class WXDLLIMPEXP_CORE wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
  19. {
  20. public:
  21. wxGenericFindReplaceDialog() { Init(); }
  22. wxGenericFindReplaceDialog(wxWindow *parent,
  23. wxFindReplaceData *data,
  24. const wxString& title,
  25. int style = 0)
  26. {
  27. Init();
  28. (void)Create(parent, data, title, style);
  29. }
  30. bool Create(wxWindow *parent,
  31. wxFindReplaceData *data,
  32. const wxString& title,
  33. int style = 0);
  34. protected:
  35. void Init();
  36. void SendEvent(const wxEventType& evtType);
  37. void OnFind(wxCommandEvent& event);
  38. void OnReplace(wxCommandEvent& event);
  39. void OnReplaceAll(wxCommandEvent& event);
  40. void OnCancel(wxCommandEvent& event);
  41. void OnUpdateFindUI(wxUpdateUIEvent& event);
  42. void OnCloseWindow(wxCloseEvent& event);
  43. wxCheckBox *m_chkCase,
  44. *m_chkWord;
  45. wxRadioBox *m_radioDir;
  46. wxTextCtrl *m_textFind,
  47. *m_textRepl;
  48. private:
  49. DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
  50. DECLARE_EVENT_TABLE()
  51. };
  52. #endif // _WX_GENERIC_FDREPDLG_H_