![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXReplaceDialog.h>
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 () |
Text replace dialog.
anonymous enum |
anonymous enum |
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.
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.
![]() |