Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / src / osx / cocoa / tooltip.mm
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
33 IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
34
35
36 wxToolTip::wxToolTip( const wxString &tip )
37 {
38     m_text = tip;
39     m_window = NULL;
40 }
41
42 wxToolTip::~wxToolTip()
43 {
44 }
45
46 void wxToolTip::SetTip( const wxString &tip )
47 {
48     m_text = tip;
49     if (m_window)
50         m_window->SetToolTip(this);
51 }
52
53 void wxToolTip::SetWindow( wxWindow *win )
54 {
55     m_window = win ;
56 }
57
58 void wxToolTip::Enable( bool WXUNUSED(flag) )
59 {
60 }
61
62 void wxToolTip::SetDelay( long WXUNUSED(msecs) )
63 {
64 }
65
66 void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
67 {
68 }
69
70 void wxToolTip::SetReshow( long WXUNUSED(msecs) )
71 {
72 }
73
74 void wxToolTip::RelayEvent( wxWindow *WXUNUSED(win) , wxMouseEvent &WXUNUSED(event) )
75 {
76 }
77
78 void wxToolTip::RemoveToolTips()
79 {
80 }
81
82 // --- mac specific
83 void wxToolTip::NotifyWindowDelete( WXHWND WXUNUSED(win) )
84 {
85 }
86
87 #endif // wxUSE_TOOLTIPS