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