]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/toolbar.h
Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE...
[wxWidgets.git] / include / wx / os2 / toolbar.h
index 8cad6a95c793f9f91f45f7b7862a910da335b6ff..24adde3e98f1d7ffe18230ab60686bb11cd018ed 100644 (file)
 #define _WX_TOOLBAR_H_
 
 #if wxUSE_TOOLBAR
+#include "wx/timer.h"
 #include "wx/tbarbase.h"
 
+#define ID_TOOLTIMER                100
+#define ID_TOOLEXPTIMER             101
+
 class WXDLLEXPORT wxToolBar: public wxToolBarBase
 {
 public:
@@ -22,7 +26,10 @@ public:
      * Public interface
      */
 
-    wxToolBar() { Init(); }
+    wxToolBar()
+    : m_vToolTimer(this, ID_TOOLTIMER)
+    , m_vToolExpTimer(this, ID_TOOLEXPTIMER)
+    { Init(); }
 
     inline wxToolBar( wxWindow*       pParent
                      ,wxWindowID      vId
@@ -30,7 +37,8 @@ public:
                      ,const wxSize&   rSize = wxDefaultSize
                      ,long            lStyle = wxNO_BORDER | wxTB_HORIZONTAL
                      ,const wxString& rName = wxToolBarNameStr
-                    )
+                    ) : m_vToolTimer(this, ID_TOOLTIMER)
+                      , m_vToolExpTimer(this, ID_TOOLEXPTIMER)
     {
         Init();
         Create( pParent
@@ -187,9 +195,25 @@ private:
     void RaiseTool( wxToolBarToolBase* pTool
                    ,bool               bRaise = TRUE
                   );
+    void OnTimer(wxTimerEvent& rEvent);
 
     static bool                     m_bInitialized;
 
+    wxTimer                         m_vToolTimer;
+    wxTimer                         m_vToolExpTimer;
+    wxToolTip*                      m_pToolTip;
+    wxCoord                         m_vXMouse;
+    wxCoord                         m_vYMouse;
+
+    //
+    // Virtual function hiding supression
+    virtual wxToolBarToolBase *InsertTool (size_t nPos, wxToolBarToolBase* pTool)
+    {
+        return( wxToolBarBase::InsertTool( nPos
+                                          ,pTool
+                                         ));
+    }
+
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxToolBar)
 };