wxfindreplacedatawxfindreplacedata holds the data for wxfindreplacedialog. it is used to initialize the dialog with the default values and will keep the last values from the dialog when it is closed. it is also updated each time a wxfinddialogevent is generated so instead of using the wxfinddialogevent methods you can also directly query this object. note that all setxxx() methods may only be called before showing the dialog and calling them has no effect later. include files
#include <wx/fdrepdlg.h>derived from data structures flags used by wxfindreplacedata::getflags() and wxfinddialogevent::getflags():
enum wxfindreplaceflags { // downward search/replace selected (otherwise - upwards) wxfr_down = 1, // whole word search/replace selected wxfr_wholeword = 2, // case sensitive search/replace selected (otherwise - case insensitive) wxfr_matchcase = 4 }these flags can be specified in wxfindreplacedialog ctor or create():
enum wxfindreplacedialogstyles { // replace dialog (otherwise find dialog) wxfr_replacedialog = 1, // don't allow changing the search direction wxfr_noupdown = 2, // don't allow case sensitive searching wxfr_nomatchcase = 4, // don't allow whole word searching wxfr_nowholeword = 8 }members
wxfindreplacedata::wxfindreplacedata
wxfindreplacedata::wxfindreplacedatawxfindreplacedata(wxuint32 flags = 0) constuctor initializes the flags to default value (0).
wxfindreplacedata::getfindstringconst wxstring& getfindstring() get the string to find.
wxfindreplacedata::getreplacestringconst wxstring& getreplacestring() get the replacement string.
wxfindreplacedata::getflagsint getflags() const get the combination of wxfindreplaceflags values.
wxfindreplacedata::setflagsvoid setflags(wxuint32 flags) set the flags to use to initialize the controls of the dialog.
wxfindreplacedata::setfindstringvoid setfindstring(const wxstring& str) set the string to find (used as initial value by the dialog).
wxfindreplacedata::setreplacestringvoid setreplacestring(const wxstring& str) set the replacement string (used as initial value by the dialog).
|