GReplaceDlg Class Reference

#include <GFindReplaceDlg.h>

Inheritance diagram for GReplaceDlg:

GFindReplaceCommon GDialog GWindow GLgiRes GView GDragDropTarget

List of all members.

Public Member Functions

 GReplaceDlg (GView *Parent, char *InitFind=0, char *InitReplace=0, GFrCallback Callback=0, void *UserData=0)
void OnCreate ()
 The view is attached.
int OnNotify (GViewI *Ctrl, int Flags)
 Called when a child view or view with it's SetNotify() set to this window changes.

Detailed Description

Replace dialog

DoModal will return one of IDC_FR_FIND, IDC_FR_REPLACE, IDCANCEL or IDOK (which means 'Replace All', the default action)

Constructor & Destructor Documentation

GReplaceDlg::GReplaceDlg ( GView Parent,
char *  InitFind = 0,
char *  InitReplace = 0,
GFrCallback  Callback = 0,
void *  UserData = 0 


Parent  The parent window
InitFind  The initial value to find
InitReplace  The initial value to replace with
Callback  Callback
UserData  User defined data for callback

References GFindReplaceCommon::Find, GView::Focus(), IDC_FR_FIND, IDC_FR_REPLACE, IDCANCEL, IDOK, List< Type >::Insert(), GFindReplaceCommon::MatchCase, GFindReplaceCommon::MatchWord, GView::MoveToCenter(), GWindow::Name(), GView::SetParent(), and GWindow::SetPos().

Member Function Documentation

int GReplaceDlg::OnNotify ( GViewI *  Ctrl,
int  Flags 

Called when a child view or view with it's SetNotify() set to this window changes.

The event by default will bubble up to the GWindow at the top of the window heirarchy visiting each GView on the way. If it reaches a GView that processes it then the event stops propergating up the heirarchy.

Reimplemented from GView.

References GDialog::EndModal(), GFindReplaceCommon::Find, GView::GetCtrlName(), GView::GetCtrlValue(), IDC_FR_FIND, IDC_FR_REPLACE, IDCANCEL, IDOK, GFindReplaceCommon::MatchCase, GFindReplaceCommon::MatchWord, and GFindReplaceCommon::SelectionOnly.

The documentation for this class was generated from the following files:

Generated on Wed Dec 1 15:41:04 2010 for Lgi by  doxygen