]> git.saurik.com Git - wxWidgets.git/commitdiff
Pulse mode in gauge
authorRobin Dunn <robin@alldunn.com>
Sat, 9 Sep 2006 19:36:27 +0000 (19:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 9 Sep 2006 19:36:27 +0000 (19:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_cmndlgs.i
wxPython/src/_defs.i
wxPython/src/_gauge.i

index bb15ae01389b1165b39e6a33a73fdc8d680867d6..c00b23f7878db0366f8f0c3a49b6270edc45ec84 100644 (file)
@@ -729,6 +729,17 @@ public:
 
 //---------------------------------------------------------------------------
 
+enum {
+    wxPD_AUTO_HIDE,
+    wxPD_APP_MODAL,
+    wxPD_CAN_ABORT,
+    wxPD_ELAPSED_TIME,
+    wxPD_ESTIMATED_TIME,
+    wxPD_REMAINING_TIME,
+    wxPD_SMOOTH,
+    wxPD_CAN_SKIP
+};
+
 
 DocStr(wxProgressDialog,
 "A dialog that shows a short message and a progress bar. Optionally, it
@@ -794,7 +805,8 @@ parent window only.", "");
     // only if style is set.  This is so the API doesn't change for existing
     // users...
     DocDeclAStr(
-        virtual bool , Update(int value, const wxString& newmsg = wxPyEmptyString,
+        virtual bool , Update(int value,
+                              const wxString& newmsg = wxPyEmptyString,
                               bool *OUTPUT),
         "Update(self, int value, String newmsg) --> (continue, skip)",
         "Updates the dialog, setting the progress bar to the new value and, if
@@ -810,6 +822,16 @@ immediately destroy the dialog or ask the user for confirmation, and if the
 abort is not confirmed the dialog may be resumed with `Resume` function.
 ", "");
 
+
+    DocDeclAStr(
+        virtual bool , UpdatePulse(const wxString& newmsg = wxPyEmptyString,
+                                   bool *OUTPUT),
+        "UpdatePulse(self, String newmsg) --> (continue, skip)",
+        "Just like `Update` but switches the dialog to use a gauge in
+interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
+progress.", "");
+    
+
     DocDeclStr(
         void , Resume(),
         "Can be used to continue with the dialog, after the user had chosen to
index c2b5eb4fb2060a24d638c674b9412906566b7e75..c0534eff691f6b1e6c2106bd9b0e687d9379defc 100644 (file)
@@ -692,15 +692,6 @@ enum {
    
     wxID_HIGHEST,
 
-    wxPD_AUTO_HIDE,
-    wxPD_APP_MODAL,
-    wxPD_CAN_ABORT,
-    wxPD_ELAPSED_TIME,
-    wxPD_ESTIMATED_TIME,
-    wxPD_REMAINING_TIME,
-    wxPD_SMOOTH,
-    wxPD_CAN_SKIP,
-
     wxMENU_TEAROFF,
     wxMB_DOCKABLE,
     wxNO_FULL_REPAINT_ON_RESIZE,
index 71302de64427aed2ba8b50ccb95502c4246ddc6e..6c5c16c5b615e2d7f20d094c361373b9b7d1e014 100644 (file)
@@ -59,6 +59,9 @@ public:
     virtual void SetValue(int pos);
     virtual int GetValue() const;
 
+    // indeterminate mode API
+    virtual void Pulse();
+
     // simple accessors
     bool IsVertical() const;