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

FX::FXReplaceDialog Class Reference

Text replace dialog.

#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 Methods

 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.

void setSearchText (const FXString &text)
 Set text or pattern to search for.

FXString getSearchText () const
 Return text or pattern the user has entered.

void setReplaceText (const FXString &text)
 Set replace text.

FXString getReplaceText () const
 Return replace text the user has entered.

void setSearchMode (FXuint mode)
 Set search match mode.

FXuint getSearchMode () const
 Return search mode the user has selected.

virtual FXuint execute (FXuint placement=PLACEMENT_CURSOR)
 Run modal invocation of the dialog.

virtual void save (FXStream &store) const
 Save to stream.

virtual void load (FXStream &store)
 Load from stream.

virtual ~FXReplaceDialog ()
 Destructor.


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.