added generic implementation and documentation for wxFindReplaceDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -58,6 +58,7 @@ in an application.
|
||||
\twocolitem{\helpref{wxColourDialog}{wxcolourdialog}}{Colour chooser dialog}
|
||||
\twocolitem{\helpref{wxDirDialog}{wxdirdialog}}{Directory selector dialog}
|
||||
\twocolitem{\helpref{wxFileDialog}{wxfiledialog}}{File selector dialog}
|
||||
\twocolitem{\helpref{wxFindReplaceDialog}{wxfindreplacedialog}}{Text search/replace dialog}
|
||||
\twocolitem{\helpref{wxMultipleChoiceDialog}{wxmultiplechoicedialog}}{Dialog to get one or more selections from a list}
|
||||
\twocolitem{\helpref{wxSingleChoiceDialog}{wxsinglechoicedialog}}{Dialog to get a single selection from a list and return the string}
|
||||
\twocolitem{\helpref{wxTextEntryDialog}{wxtextentrydialog}}{Dialog to get a single line of text from the user}
|
||||
@@ -198,6 +199,8 @@ An event object contains information about a specific event. Event handlers
|
||||
\twocolitem{\helpref{wxDropFilesEvent}{wxdropfilesevent}}{A drop files event}
|
||||
\twocolitem{\helpref{wxEraseEvent}{wxeraseevent}}{An erase background event}
|
||||
\twocolitem{\helpref{wxEvent}{wxevent}}{The event base class}
|
||||
\twocolitem{\helpref{wxFindDialogEvent}{wxfinddialogevent}}{Event sent by
|
||||
\helpref{wxFindReplaceDialog}{wxfindreplacedialog}}
|
||||
\twocolitem{\helpref{wxFocusEvent}{wxfocusevent}}{A window focus event}
|
||||
\twocolitem{\helpref{wxKeyEvent}{wxkeyevent}}{A keypress event}
|
||||
\twocolitem{\helpref{wxIconizeEvent}{wxiconizeevent}}{An iconize/restore event}
|
||||
|
@@ -99,6 +99,7 @@
|
||||
\input flexsizr.tex
|
||||
\input fltinstr.tex
|
||||
\input fltoutst.tex
|
||||
\input fdrepdlg.tex
|
||||
\input focusevt.tex
|
||||
\input font.tex
|
||||
\input fontdlg.tex
|
||||
|
231
docs/latex/wx/fdrepdlg.tex
Normal file
231
docs/latex/wx/fdrepdlg.tex
Normal file
@@ -0,0 +1,231 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Name: fdrepdlg.tex
|
||||
%% Purpose: wxFindReplaceDialog documentation
|
||||
%% Author: Vadim Zeitlin
|
||||
%% Modified by:
|
||||
%% Created: 01.08.01
|
||||
%% RCS-ID: $Id$
|
||||
%% Copyright: (c) 2001 Vadim Zeitlin
|
||||
%% License: wxWindows license
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\section{\class{wxFindDialogEvent}}\label{wxfinddialogevent}
|
||||
|
||||
wxFindReplaceDialog events
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxCommandEvent}{wxcommandevent}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/fdrepdlg.h>
|
||||
|
||||
\wxheading{Event table macros}
|
||||
|
||||
To process a command event from
|
||||
\helpref{wxFindReplaceDialog}{wxfindreplacedialog}, use these event handler
|
||||
macros to direct input to member functions that take a wxFindDialogEvent
|
||||
argument. The {\it id} parameter is the identifier of the find dialog and you
|
||||
may usually specify $-1$ for it unless you plan to have several find dialogs
|
||||
sending events to the same owner window simultaneously.
|
||||
|
||||
\twocolwidtha{7cm}
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{{\bf EVT\_FIND(id, func)}}{Find button was pressed in the dialog.}
|
||||
\twocolitem{{\bf EVT\_FIND\_NEXT(id, func)}}{Find next button was pressed in the dialog.}
|
||||
\twocolitem{{\bf EVT\_FIND\_REPLACE(id, func)}}{Replace button was pressed in the dialog.}
|
||||
\twocolitem{{\bf EVT\_FIND\_REPLACE\_ALL(id, func)}}{Replace all button was pressed in the dialog.}
|
||||
\twocolitem{{\bf EVT\_FIND\_CLOSE(id, func)}}{The dialog is being destroyed,
|
||||
any pointers to it cannot be used any longer.}
|
||||
\end{twocollist}%
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
\membersection{wxFindDialogEvent::wxFindDialogEvent}\label{wxfinddialogeventwxfinddialogevent}
|
||||
|
||||
\func{}{wxFindDialogEvent}{\param{wxEventType }{commandType = wxEVT\_NULL}, \param{int }{id = 0}}
|
||||
|
||||
Constuctor used by wxWindows only.
|
||||
|
||||
\membersection{wxFindDialogEvent::GetFlags}\label{wxfinddialogeventgetflags}
|
||||
|
||||
\constfunc{int}{GetFlags}{\void}
|
||||
|
||||
Get the currently selected flags: this is the combination of {\tt wxFR\_DOWN},
|
||||
{\tt wxFR\_WHOLEWORD} and {\tt wxFR\_MATCHCASE} flags.
|
||||
|
||||
\membersection{wxFindDialogEvent::GetFindString}\label{wxfinddialogeventgetfindstring}
|
||||
|
||||
\constfunc{wxString}{GetFindString}{\void}
|
||||
|
||||
Return the string to find (never empty).
|
||||
|
||||
\membersection{wxFindDialogEvent::GetReplaceString}\label{wxfinddialogeventgetreplacestring}
|
||||
|
||||
\constfunc{const wxString\&}{GetReplaceString}{\void}
|
||||
|
||||
Return the string to replace the search string with (only for replace and
|
||||
replace all events).
|
||||
|
||||
\membersection{wxFindDialogEvent::GetDialog}\label{wxfinddialogeventgetdialog}
|
||||
|
||||
\constfunc{wxFindReplaceDialog*}{GetDialog}{\void}
|
||||
|
||||
Return the pointer to the dialog which generated this event.
|
||||
|
||||
\section{\class{wxFindReplaceData}}\label{wxfindreplacedata}
|
||||
|
||||
wxFindReplaceData holds the data for
|
||||
\helpref{wxFindReplaceDialog}{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
|
||||
\helpref{wxFindDialogEvent}{wxfinddialogevent} is generated so instead of
|
||||
using the wxFindDialogEvent methods you can also directly query this object.
|
||||
|
||||
Note that all {\tt SetXXX()} methods may only be called before showing the
|
||||
dialog and calling them has no effect later.
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
#include <wx/fdrepdlg.h>
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxObject}{wxobject}
|
||||
|
||||
\wxheading{Data structures}
|
||||
|
||||
Flages used by
|
||||
\helpref{wxFindReplaceData::GetFlags()}{wxfindreplacedatagetflags} and
|
||||
\helpref{wxFindDialogEvent::GetFlags()}{wxfinddialogeventgetflags}:
|
||||
|
||||
\begin{verbatim}
|
||||
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
|
||||
}
|
||||
\end{verbatim}
|
||||
|
||||
These flags can be specified in
|
||||
\helpref{wxFindReplaceDialog ctor}{wxfindreplacedialogctor} or
|
||||
\helpref{Create()}{wxfindreplacedialogcreate}:
|
||||
|
||||
\begin{verbatim}
|
||||
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
|
||||
}
|
||||
\end{verbatim}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
\membersection{wxFindReplaceData::wxFindReplaceData}\label{wxfindreplacedatactor}
|
||||
|
||||
\func{}{wxFindReplaceData}{\param{wxUint32 }{flags = 0}}
|
||||
|
||||
Constuctor initializes the flags to default value ($0$).
|
||||
|
||||
\membersection{wxFindReplaceData::GetFindString}\label{wxfindreplacedatagetfindstring}
|
||||
|
||||
\func{const wxString\&}{GetFindString}{\void}
|
||||
|
||||
Get the string to find.
|
||||
|
||||
\membersection{wxFindReplaceData::GetReplaceString}\label{wxfindreplacedatagetreplacestring}
|
||||
|
||||
\func{const wxString\&}{GetReplaceString}{\void}
|
||||
|
||||
Get the replacement string.
|
||||
|
||||
\membersection{wxFindReplaceData::GetFlags}\label{wxfindreplacedatagetflags}
|
||||
|
||||
\constfunc{int}{GetFlags}{\void}
|
||||
|
||||
Get the combination of {\tt wxFindReplaceFlags} values.
|
||||
|
||||
\membersection{wxFindReplaceData::SetFlags}\label{wxfindreplacedatasetflags}
|
||||
|
||||
\func{void}{SetFlags}{\param{wxUint32 }{flags}}
|
||||
|
||||
Set the flags to use to initialize the controls of the dialog.
|
||||
|
||||
\membersection{wxFindReplaceData::SetFindString}\label{wxfindreplacedatasetfindstring}
|
||||
|
||||
\func{void}{SetFindString}{\param{const wxString\& }{str}}
|
||||
|
||||
Set the string to find (used as initial value by the dialog).
|
||||
|
||||
\membersection{wxFindReplaceData::SetReplaceString}\label{wxfindreplacedatasetreplacestring}
|
||||
|
||||
\func{void}{SetReplaceString}{\param{const wxString\& }{str}}
|
||||
|
||||
Set the replacement string (used as initial value by the dialog).
|
||||
|
||||
\section{\class{wxFindReplaceDialog}}\label{wxfindreplacedialog}
|
||||
|
||||
wxFindReplaceDialog is a standard modeless dialog which is used to allow the
|
||||
user to search for some text (and possible replace it with something else).
|
||||
The actual searching is supposed to be done in the owner window which is the
|
||||
parent of this dialog. Note that it means that unlike for the other standard
|
||||
dialogs this one {\bf must} have a parent window.
|
||||
|
||||
Please see the dialogs sample for example of using it.
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
#include <wx/fdrepdlg.h>
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxDialog}{wxdialog}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
\membersection{wxFindReplaceDialog::wxFindReplaceDialog}\label{wxfindreplacedialogctor}
|
||||
|
||||
\func{}{wxFindReplaceDialogBase}{\void}
|
||||
|
||||
\func{}{wxFindReplaceDialogBase}{\param{wxWindow * }{parent}, \param{wxFindReplaceData* }{data}, \param{const wxString\& }{title}, \param{int }{style = 0}}
|
||||
|
||||
After using default constructor \helpref{Created}{wxfindreplacedialogcreate}
|
||||
must be called.
|
||||
|
||||
The {\it parent} and {\it data} parameters must be non-{\tt NULL}.
|
||||
|
||||
\membersection{wxFindReplaceDialogBase::\destruct{wxFindReplaceDialogBase}}\label{wxfindreplacedialogdtor}
|
||||
|
||||
\func{}{\destruct{wxFindReplaceDialogBase}}{\void}
|
||||
|
||||
Destructor.
|
||||
|
||||
\func{bool}{Create}{\param{wxWindow * }{parent}, \param{wxFindReplaceData* }{data}, \param{const wxString\& }{title}, \param{int }{style = 0}}
|
||||
|
||||
Creates the dialog and shows it on screen.
|
||||
|
||||
The {\it parent} and {\it data} parameters must be non-{\tt NULL}.
|
||||
|
||||
\membersection{wxFindReplaceDialogBase::GetData}\label{wxfindreplacedialoggetdata}
|
||||
|
||||
\constfunc{const wxFindReplaceData*}{GetData}{\void}
|
||||
|
||||
Get the \helpref{wxFindReplaceData}{wxfindreplacedata} object used by this
|
||||
dialog.
|
||||
|
Reference in New Issue
Block a user