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