]> git.saurik.com Git - wxWidgets.git/commitdiff
Add the stock item helper fucntions back
authorRobin Dunn <robin@alldunn.com>
Sat, 4 Sep 2004 18:03:22 +0000 (18:03 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 4 Sep 2004 18:03:22 +0000 (18:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_functions.i

index 02238b8ef58db3c5e1701d58574e1be67886a1e6..3304ca5f08787225ca7b6ba346dd1932031111b0 100644 (file)
 // Not a %module
 
 
+%{
+#include <wx/stockitem.h>
+%}
+
 //---------------------------------------------------------------------------
 
 MAKE_CONST_WXSTRING(FileSelectorPromptStr);
@@ -27,6 +31,18 @@ long wxNewId();
 void wxRegisterId(long id);
 long wxGetCurrentId();
 
+// Returns true if the ID is in the list of recognized stock actions
+bool wxIsStockID(wxWindowID id);
+// Returns true of the label is empty or label of a stock button with
+// given ID
+bool wxIsStockLabel(wxWindowID id, const wxString& label);
+
+// Returns label that should be used for given stock UI element (e.g. "&OK"
+// for wxID_OK):
+wxString wxGetStockLabel(wxWindowID id);
+
 MustHaveApp(wxBell);
 void wxBell();