contents up previous next

wxfindreplacedata

wxfindreplacedata 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

wxobject

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::getfindstring
wxfindreplacedata::getreplacestring
wxfindreplacedata::getflags
wxfindreplacedata::setflags
wxfindreplacedata::setfindstring
wxfindreplacedata::setreplacestring


wxfindreplacedata::wxfindreplacedata

wxfindreplacedata(wxuint32 flags = 0)

constuctor initializes the flags to default value (0).


wxfindreplacedata::getfindstring

const wxstring& getfindstring()

get the string to find.


wxfindreplacedata::getreplacestring

const wxstring& getreplacestring()

get the replacement string.


wxfindreplacedata::getflags

int getflags() const

get the combination of wxfindreplaceflags values.


wxfindreplacedata::setflags

void setflags(wxuint32 flags)

set the flags to use to initialize the controls of the dialog.


wxfindreplacedata::setfindstring

void setfindstring(const wxstring& str)

set the string to find (used as initial value by the dialog).


wxfindreplacedata::setreplacestring

void setreplacestring(const wxstring& str)

set the replacement string (used as initial value by the dialog).