// Purpose: interface of wxFindDialogEvent, wxFindReplaceDialog
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/** case sensitive search/replace selected (otherwise - case insensitive) */
wxFR_MATCHCASE = 4
-}
+};
/**
/** don't allow whole word searching */
wxFR_NOWHOLEWORD = 8
-}
+};
/**
@class wxFindDialogEvent
- wxFindReplaceDialog events
+ wxFindReplaceDialog events.
@beginEventTable{wxFindDialogEvent}
@event{EVT_FIND(id, func)}
{
public:
/**
- Constuctor used by wxWidgets only.
+ Constructor used by wxWidgets only.
*/
wxFindDialogEvent(wxEventType commandType = wxEVT_NULL,
int id = 0);
const wxString& GetReplaceString() const;
};
+wxEventType wxEVT_COMMAND_FIND;
+wxEventType wxEVT_COMMAND_FIND_NEXT;
+wxEventType wxEVT_COMMAND_FIND_REPLACE;
+wxEventType wxEVT_COMMAND_FIND_REPLACE_ALL;
+wxEventType wxEVT_COMMAND_FIND_CLOSE;
+
/**
dialog and calling them has no effect later.
@library{wxcore}
- @category{data}
+ @category{cmndlg,data}
*/
class wxFindReplaceData : public wxObject
{
public:
/**
- Constuctor initializes the flags to default value (0).
+ Constructor initializes the flags to default value (0).
*/
wxFindReplaceData(wxUint32 flags = 0);
/**
Get the string to find.
*/
- const wxString GetFindString();
+ const wxString& GetFindString();
/**
Get the combination of @c wxFindReplaceFlags values.
/**
Get the replacement string.
*/
- const wxString GetReplaceString();
+ const wxString& GetReplaceString();
/**
Set the string to find (used as initial value by the dialog).
/**
Destructor.
*/
- ~wxFindReplaceDialog();
+ virtual ~wxFindReplaceDialog();
/**
Creates the dialog; use wxWindow::Show to show it on screen.