]> git.saurik.com Git - wxWidgets.git/commitdiff
Stubbed wxToolTip implementation to get code that uses it building.
authorKevin Ollivier <kevino@theolliviers.com>
Sun, 21 Sep 2008 00:51:44 +0000 (00:51 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sun, 21 Sep 2008 00:51:44 +0000 (00:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/files.bkl
include/wx/osx/cocoa/chkconf.h
src/osx/cocoa/tooltip.mm [new file with mode: 0644]

index ba56711f4375c15e24976defe9f7bd91be9144d4..d9eae73eb94eb4c45edb9f5de4c002fcfefc92de 100644 (file)
@@ -2249,7 +2249,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
     src/osx/carbon/settings.cpp
     src/osx/carbon/statbrma.cpp
     src/osx/carbon/tabctrl.cpp
-    src/osx/carbon/tooltip.cpp
     <!-- cocoa bridge -->
     src/osx/carbon/utilscocoa.mm
 </if>
@@ -2288,6 +2287,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
     src/osx/carbon/textctrl.cpp
     src/osx/carbon/tglbtn.cpp
     src/osx/carbon/toolbar.cpp
+    src/osx/carbon/tooltip.cpp
     src/osx/carbon/window.cpp
     
     src/html/htmlctrl/webkit/webkit.mm
@@ -2515,6 +2515,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
     src/osx/cocoa/textctrl.mm
     src/osx/cocoa/tglbtn.mm
     src/osx/cocoa/toolbar.mm
+    src/osx/cocoa/tooltip.mm
     src/osx/cocoa/window.mm
     src/generic/caret.cpp
     src/generic/clrpickerg.cpp
index 9780efedf3f7e79df2501581940b4c2470c46af4..2fbda6ebf0a482da2415ad7cccfd70a4314a8b8b 100644 (file)
 #define wxUSE_TASKBARICON 0
 #endif
 
-#if wxUSE_TOOLTIPS
-#undef wxUSE_TOOLTIPS
-#define wxUSE_TOOLTIPS 0
-#endif
-
 #if wxUSE_DATAVIEWCTRL
 #undef wxUSE_DATAVIEWCTRL
 #define wxUSE_DATAVIEWCTRL 0
diff --git a/src/osx/cocoa/tooltip.mm b/src/osx/cocoa/tooltip.mm
new file mode 100644 (file)
index 0000000..4cb9e51
--- /dev/null
@@ -0,0 +1,86 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        src/osx/carbon/tooltip.cpp
+// Purpose:     wxToolTip implementation
+// Author:      Stefan Csomor
+// Id:          $Id: tooltip.cpp 55419 2008-09-02 16:53:23Z SC $
+// Copyright:   (c) Stefan Csomor
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#include "wx/wxprec.h"
+
+#if wxUSE_TOOLTIPS
+
+#include "wx/tooltip.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/window.h"
+    #include "wx/dc.h"
+    #include "wx/timer.h"
+    #include "wx/nonownedwnd.h"
+#endif // WX_PRECOMP
+
+#include "wx/geometry.h"
+#include "wx/osx/uma.h"
+
+// FYI a link to help with implementing: http://www.cocoadev.com/index.pl?LittleYellowBox
+
+
+//-----------------------------------------------------------------------------
+// wxToolTip
+//-----------------------------------------------------------------------------
+
+IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
+
+
+wxToolTip::wxToolTip( const wxString &tip )
+{
+    m_text = tip;
+    m_window = (wxWindow*) NULL;
+}
+
+wxToolTip::~wxToolTip()
+{
+}
+
+void wxToolTip::SetTip( const wxString &tip )
+{
+    m_text = tip;
+}
+
+void wxToolTip::SetWindow( wxWindow *win )
+{
+    m_window = win ;
+}
+
+void wxToolTip::Enable( bool flag )
+{
+}
+
+void wxToolTip::SetDelay( long msecs )
+{
+}
+
+void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
+{
+}
+
+void wxToolTip::SetReshow( long WXUNUSED(msecs) )
+{
+}
+
+void wxToolTip::RelayEvent( wxWindow *win , wxMouseEvent &event )
+{
+}
+
+void wxToolTip::RemoveToolTips()
+{
+}
+
+// --- mac specific
+void wxToolTip::NotifyWindowDelete( WXHWND win )
+{
+}
+
+#endif // wxUSE_TOOLTIPS