#pragma implementation "tooltip.h"
#endif
-#include "wx/setup.h"
+#include "wx/defs.h"
#if wxUSE_TOOLTIPS
wxMacToolTipTimer* m_timer ;
} ;
-class wxMacToolTipTimer : wxTimer
+class wxMacToolTipTimer : public wxTimer
{
public:
- wxMacToolTipTimer() {} ;
- wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
+ wxMacToolTipTimer() {} ;
+ wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
virtual ~wxMacToolTipTimer() {} ;
- void Notify()
- {
- if ( m_mark == m_tip->GetMark() )
- m_tip->Draw() ;
-
- }
+ void Notify()
+ {
+ if ( m_mark == m_tip->GetMark() )
+ m_tip->Draw() ;
+ }
protected:
- wxMacToolTip* m_tip;
- long m_mark ;
+ wxMacToolTip* m_tip;
+ long m_mark ;
};
//-----------------------------------------------------------------------------
static wxWindow* s_LastWindowEntered = NULL ;
static wxRect2DInt s_ToolTipArea ;
static WindowRef s_ToolTipWindowRef = NULL ;
+
+IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
+
wxToolTip::wxToolTip( const wxString &tip )
{
m_text = tip;
*/
#endif
{
- wxMacPortStateHelper help( GetWindowPort( m_window ) );
+ wxMacPortStateHelper help( (GrafPtr) GetWindowPort( m_window ) );
m_shown = true ;
if ( m_window == s_ToolTipWindowRef && m_backpict )
{
- wxMacPortStateHelper help( GetWindowPort(m_window) ) ;
+ wxMacPortStateHelper help( (GrafPtr) GetWindowPort(m_window) ) ;
m_shown = false ;