Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXReplaceDialog Class Reference

Text replace dialog. More...

#include <FXReplaceDialog.h>

Inheritance diagram for FX::FXReplaceDialog:

FX::FXDialogBox FX::FXTopWindow FX::FXShell FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXSearchDialog List of all members.

Public Types

enum  {
  ID_NEXT = FXDialogBox::ID_LAST,
enum  {
  DONE = 0,
  SEARCH = 1,
  REPLACE = 1,

Public Member Functions

 FXReplaceDialog (FXWindow *owner, const FXString &caption, FXIcon *ic=NULL, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
void setSearchText (const FXString &text)
FXString getSearchText () const
void setReplaceText (const FXString &text)
FXString getReplaceText () const
void setSearchMode (FXuint mode)
FXuint getSearchMode () const
virtual FXuint execute (FXuint placement=PLACEMENT_CURSOR)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXReplaceDialog ()

Detailed Description

Text replace dialog.

Member Enumeration Documentation

anonymous enum

Enumeration values:
DONE  Cancel search.
SEARCH  Search first occurrence.
REPLACE  Replace first occurrence.
SEARCH_NEXT  Search next occurrence.
REPLACE_NEXT  Replace next occurrence.
REPLACE_ALL  Replace all occurrences.

Constructor & Destructor Documentation

FX::FXReplaceDialog::FXReplaceDialog FXWindow owner,
const FXString caption,
FXIcon ic = NULL,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0

Construct search and replace dialog box.

virtual FX::FXReplaceDialog::~FXReplaceDialog  )  [virtual]


Member Function Documentation

void FX::FXReplaceDialog::setSearchText const FXString text  ) 

Set text or pattern to search for.

FXString FX::FXReplaceDialog::getSearchText  )  const

Return text or pattern the user has entered.

void FX::FXReplaceDialog::setReplaceText const FXString text  ) 

Set replace text.

FXString FX::FXReplaceDialog::getReplaceText  )  const

Return replace text the user has entered.

void FX::FXReplaceDialog::setSearchMode FXuint  mode  )  [inline]

Set search match mode.

FXuint FX::FXReplaceDialog::getSearchMode  )  const [inline]

Return search mode the user has selected.

virtual FXuint FX::FXReplaceDialog::execute FXuint  placement = PLACEMENT_CURSOR  )  [virtual]

Run modal invocation of the dialog.

Reimplemented from FX::FXDialogBox.

virtual void FX::FXReplaceDialog::save FXStream store  )  const [virtual]

Save to stream.

Reimplemented from FX::FXTopWindow.

virtual void FX::FXReplaceDialog::load FXStream store  )  [virtual]

Load from stream.

Reimplemented from FX::FXTopWindow.

Copyright © 1997-2004 Jeroen van der Zijp