fdrepdlg.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/fdrepdlg.h
  3. // Purpose: wxFindReplaceDialog class
  4. // Author: Markus Greither
  5. // Modified by: 31.07.01: VZ: integrated into wxWidgets
  6. // Created: 23/03/2001
  7. // Copyright: (c) Markus Greither
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_MSW_FDREPDLG_H_
  11. #define _WX_MSW_FDREPDLG_H_
  12. // ----------------------------------------------------------------------------
  13. // wxFindReplaceDialog: dialog for searching / replacing text
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxFindReplaceDialog : public wxFindReplaceDialogBase
  16. {
  17. public:
  18. // ctors and such
  19. wxFindReplaceDialog() { Init(); }
  20. wxFindReplaceDialog(wxWindow *parent,
  21. wxFindReplaceData *data,
  22. const wxString &title,
  23. int style = 0);
  24. bool Create(wxWindow *parent,
  25. wxFindReplaceData *data,
  26. const wxString &title,
  27. int style = 0);
  28. virtual ~wxFindReplaceDialog();
  29. // implementation only from now on
  30. wxFindReplaceDialogImpl *GetImpl() const { return m_impl; }
  31. // override some base class virtuals
  32. virtual bool Show(bool show = true);
  33. virtual void SetTitle( const wxString& title);
  34. virtual wxString GetTitle() const;
  35. protected:
  36. virtual void DoGetSize(int *width, int *height) const;
  37. virtual void DoGetClientSize(int *width, int *height) const;
  38. virtual void DoSetSize(int x, int y,
  39. int width, int height,
  40. int sizeFlags = wxSIZE_AUTO);
  41. void Init();
  42. wxString m_title;
  43. wxFindReplaceDialogImpl *m_impl;
  44. DECLARE_DYNAMIC_CLASS(wxFindReplaceDialog)
  45. wxDECLARE_NO_COPY_CLASS(wxFindReplaceDialog);
  46. };
  47. #endif // _WX_MSW_FDREPDLG_H_