Describes minimum required functionality from replace form.
You can find more information in comments below.
class IFormReplace
{
public:
enum class SearchDirection
{
Up, // Search to the beginning
Down, // Search to the end
Selection // Replace only in selection
};
public:
void(*OnReplace)(IFormReplace *sender); // Callback functions used to inform parent which showed the form about user intention to replace next entry
void(*OnReplaceAll)(IFormReplace *sender); // Callback functions used to inform parent which showed the form about user intention to search and replace all
virtual String getText() = 0; // Return search text
virtual String getReplace() = 0; // Return replace text
virtual bool isMatchWholeWords() = 0; // Return whether "match whole words" checkbox is checked
virtual bool isMatchCase() = 0; // Return whether "match case" checkbox is checked
virtual SearchDirection getSearchDirection() = 0; // Return search direction
virtual bool setText(const String &value) = 0; // Set search text
virtual bool setReplace(const String &value) = 0; // Set replace text
virtual bool setMatchWholeWords(const bool value) = 0; // Set whether "match whole words" checkbox is checked
virtual bool setMatchCase(const bool value) = 0; // Set whether "match case" checkbox is checked
virtual bool setSearchDirection(const SearchDirection value) = 0; // Set search direction
virtual void ActivateFirstEnabledInput() = 0;
};
Namespace: | nitisa::standard |
Include: | Standard/Forms/IFormReplace.h |