]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_cshelp.i
Fixed compile error
[wxWidgets.git] / wxPython / src / _cshelp.i
index 927fcea157ed7740bd23cabdf7d3dd9d22b0bfee..6fc709d291a88b2f52d30b12246b60717682c754 100644 (file)
@@ -70,10 +70,19 @@ Events
 class wxHelpEvent : public wxCommandEvent
 {
 public:
+    // how was this help event generated?
+    enum Origin
+    {
+        Origin_Unknown,    // unrecognized event source
+        Origin_Keyboard,   // event generated from F1 key press
+        Origin_HelpButton  // event from [?] button on the title bar (Windows)
+    };
+
     DocCtorStr(
         wxHelpEvent(wxEventType type = wxEVT_NULL,
                     wxWindowID winid = 0,
-                    const wxPoint& pt = wxDefaultPosition),
+                    const wxPoint& pt = wxDefaultPosition,
+                    Origin origin = Origin_Unknown ),
         "", "");
     
 
@@ -104,7 +113,16 @@ appropriately.", "");
     DocDeclStr(
         void , SetTarget(const wxString& target),
         "Set an optional target to display help in. E.g. a window specification", "");
+
+    // optional indication of the event source
+    DocDeclStr(
+        Origin , GetOrigin() const,
+        "Optiononal indication of the source of the event.", "");
     
+    DocDeclStr(
+        void , SetOrigin(Origin origin),
+        "", "");
+        
 };
 
 //---------------------------------------------------------------------------
@@ -208,6 +226,10 @@ application using wx.HelpProvider.Set().", "");
 class wxHelpProvider 
 {
 public:
+    
+    ~wxHelpProvider();
+    
+    
     %disownarg( wxHelpProvider *helpProvider );
     %newobject Set;
     DocDeclStr(