1///////////////////////////////////////////////////////////////////////////// 2// Name: src/osx/cocoa/tooltip.mm 3// Purpose: wxToolTip implementation 4// Author: Stefan Csomor 5// Copyright: (c) Stefan Csomor 6// Licence: wxWindows licence 7///////////////////////////////////////////////////////////////////////////// 8 9#include "wx/wxprec.h" 10 11#if wxUSE_TOOLTIPS 12 13#include "wx/tooltip.h" 14 15#ifndef WX_PRECOMP 16 #include "wx/app.h" 17 #include "wx/window.h" 18 #include "wx/dc.h" 19 #include "wx/timer.h" 20 #include "wx/nonownedwnd.h" 21#endif // WX_PRECOMP 22 23#include "wx/geometry.h" 24#include "wx/osx/uma.h" 25 26// FYI a link to help with implementing: http://www.cocoadev.com/index.pl?LittleYellowBox 27 28 29//----------------------------------------------------------------------------- 30// wxToolTip 31//----------------------------------------------------------------------------- 32 33IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject) 34 35 36wxToolTip::wxToolTip( const wxString &tip ) 37{ 38 m_text = tip; 39 m_window = NULL; 40} 41 42wxToolTip::~wxToolTip() 43{ 44} 45 46void wxToolTip::SetTip( const wxString &tip ) 47{ 48 m_text = tip; 49 if (m_window) 50 m_window->SetToolTip(this); 51} 52 53void wxToolTip::SetWindow( wxWindow *win ) 54{ 55 m_window = win ; 56} 57 58void wxToolTip::Enable( bool WXUNUSED(flag) ) 59{ 60} 61 62void wxToolTip::SetDelay( long WXUNUSED(msecs) ) 63{ 64} 65 66void wxToolTip::SetAutoPop( long WXUNUSED(msecs) ) 67{ 68} 69 70void wxToolTip::SetReshow( long WXUNUSED(msecs) ) 71{ 72} 73 74void wxToolTip::RelayEvent( wxWindow *WXUNUSED(win) , wxMouseEvent &WXUNUSED(event) ) 75{ 76} 77 78void wxToolTip::RemoveToolTips() 79{ 80} 81 82// --- mac specific 83void wxToolTip::NotifyWindowDelete( WXHWND WXUNUSED(win) ) 84{ 85} 86 87#endif // wxUSE_TOOLTIPS 88