cocoa tooltips. Remove runtime warning from 10.2 (dave - I was too lazy to change...
[wxWidgets.git] / include / wx / cocoa / tooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/tooltip.h
3 // Purpose: wxToolTip class - tooltip control
4 // Author: Ryan Norton
5 // Modified by:
6 // Created: 31.01.99
7 // RCS-ID: $Id$
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/object.h"
13
14 class wxToolTip : public wxObject
15 {
16 public:
17 // ctor & dtor
18 wxToolTip(const wxString &tip) : m_text(tip), m_window(0) {}
19 virtual ~wxToolTip() {}
20
21 // accessors
22 // tip text
23 void SetTip(const wxString& tip) { m_text = tip; }
24 const wxString& GetTip() const { return m_text; }
25
26 // the window we're associated with
27 wxWindow *GetWindow() const { return m_window; }
28
29 // controlling tooltip behaviour: globally change tooltip parameters
30 // enable or disable the tooltips globally
31 static void Enable(bool flag) {}
32 // set the delay after which the tooltip appears
33 static void SetDelay(long milliseconds) {}
34
35 private:
36 void SetWindow(wxWindow* window) {m_window = window;}
37 friend class wxWindow;
38
39 wxString m_text; // tooltip text
40 wxWindow *m_window; // window we're associated with
41
42 DECLARE_ABSTRACT_CLASS(wxToolTip)
43 };