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,
  ID_PREV,
  ID_SEARCH_UP,
  ID_SEARCH_DN,
  ID_REPLACE_UP,
  ID_REPLACE_DN,
  ID_ALL,
  ID_DIR,
  ID_SEARCH_TEXT,
  ID_REPLACE_TEXT,
  ID_MODE,
  ID_LAST = ID_MODE+32
}
enum  {
  DONE = 0,
  SEARCH = 1,
  REPLACE = 1,
  SEARCH_NEXT = 2,
  REPLACE_NEXT = 2,
  REPLACE_ALL = 3
}

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]
 

Destructor.


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