From a6d2f5bb0242f872bcab8bc45b519afbf0adfa62 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 18 Dec 2003 00:01:33 +0000 Subject: [PATCH] Added FindById git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_toolbar.i | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index 208beb8b0a..e8ee8dad48 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -303,9 +303,8 @@ public: shortHelp, longHelp, clientData) } - // TODO? - //wxToolBarToolBase *AddTool (wxToolBarToolBase *tool); - //wxToolBarToolBase *InsertTool (size_t pos, wxToolBarToolBase *tool); + %name(AddToolItem) wxToolBarToolBase *AddTool (wxToolBarToolBase *tool); + %name(InsertToolItem) wxToolBarToolBase *InsertTool (size_t pos, wxToolBarToolBase *tool); wxToolBarToolBase *AddControl(wxControl *control); wxToolBarToolBase *InsertControl(size_t pos, wxControl *control); @@ -376,6 +375,9 @@ public: // there is no tool at this point (corrdinates are client) wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); + // find the tool by id + wxToolBarToolBase *FindById(int toolid) const; + // return True if this is a vertical toolbar, otherwise False bool IsVertical(); };