IFormFind



Describes minimum required functionality from find form.

You can find more information in comments below.

class IFormFind
{
public:
    enum SEARCH_DIRECTION
    {
        sdUp, // Search to the beginning 
        sdDown // Search to the end 
    };
public:
    void(*OnSearch)(IFormFind *sender); // Callback functions used to inform parent which showed the form about user intention to search 

    virtual String getText() = 0; // Return search 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 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/IFormFind.h