Pulse mode in gauge

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-09-09 19:36:27 +00:00
parent 19b47f5b2c
commit e81851eb9c
3 changed files with 26 additions and 10 deletions

View 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

View 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,

View 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;