X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/interface/wx/tipdlg.h diff --git a/interface/wx/tipdlg.h b/interface/wx/tipdlg.h index 4b68bf8fb6..2b8cbf984a 100644 --- a/interface/wx/tipdlg.h +++ b/interface/wx/tipdlg.h @@ -3,12 +3,11 @@ // Purpose: interface of wxTipProvider // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @class wxTipProvider - @wxheader{tipdlg.h} This is the class used together with wxShowTip() function. It must implement wxTipProvider::GetTip function and return the @@ -20,9 +19,9 @@ use it instead of the one returned by wxCreateFileTipProvider(). @library{wxadv} - @category{FIXME} + @category{misc} - @see @ref overview_tipsoverview "Startup tips overview", ::wxShowTip + @see @ref overview_tips, ::wxShowTip */ class wxTipProvider { @@ -35,32 +34,35 @@ public: */ wxTipProvider(size_t currentTip); + virtual ~wxTipProvider(); + /** - Returns the index of the current tip (i.e. the one which would be returned by - GetTip). + Returns the index of the current tip (i.e. the one which would be returned by GetTip()). + The program usually remembers the value returned by this function after calling - wxShowTip(). Note that it is not the same as the value which - was passed to wxShowTip + 1 because the user might have pressed the "Next" - button in the tip dialog. + wxShowTip(). Note that it is not the same as the value which was passed to + wxShowTip + 1 because the user might have pressed the "Next" button in + the tip dialog. */ size_t GetCurrentTip() const; /** - Return the text of the current tip and pass to the next one. This function is - pure virtual, it should be implemented in the derived classes. + Return the text of the current tip and pass to the next one. + This function is pure virtual, it should be implemented in the derived classes. */ - wxString GetTip(); + virtual wxString GetTip() = 0; /** - Returns a modified tip. This function will be called immediately after read, - and before being check whether it is a comment, an empty string or a string - to translate. You can optionally override this in your custom user-derived - class + Returns a modified tip. + + This function will be called immediately after read, and before being check + whether it is a comment, an empty string or a string to translate. + You can optionally override this in your custom user-derived class to optionally to modify the tip as soon as it is read. You can return any modification to the string. If you return wxEmptyString, then this tip is skipped, and the next one is read. */ - virtual wxString PreProcessTip(const wxString& tip); + virtual wxString PreprocessTip(const wxString& tip); }; @@ -69,7 +71,7 @@ public: // Global functions/macros // ============================================================================ -/** @ingroup group_funcmacro_dialog */ +/** @addtogroup group_funcmacro_dialog */ //@{ /**