X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89165a82daea967ec79e528fd08bf7440bbd4ec..819451b6c76bdcaf5fd8865479209859511aa986:/include/wx/tipdlg.h diff --git a/include/wx/tipdlg.h b/include/wx/tipdlg.h index 9b02046705..fe7a6be5c4 100644 --- a/include/wx/tipdlg.h +++ b/include/wx/tipdlg.h @@ -12,7 +12,7 @@ #ifndef _WX_TIPDLG_H_ #define _WX_TIPDLG_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "tipdlg.h" #endif @@ -43,12 +43,17 @@ public: // get the current tip and update the internal state to return the next tip // when called for the next time - virtual wxString GetTip() = 0; + virtual wxString GetTip() = 0; // get the current tip "index" (or whatever allows the tip provider to know // from where to start the next time) size_t GetCurrentTip() const { return m_currentTip; } + // Allows any user-derived class to optionally override this function to + // modify the tip as soon as it is read. If return wxEmptyString, then + // the tip is skipped, and the next one is read. + virtual wxString PreprocessTip(const wxString& tip) { return tip; } + // virtual dtor for the base class virtual ~wxTipProvider() { }