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:
parent
19b47f5b2c
commit
e81851eb9c
@ -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,
|
DocStr(wxProgressDialog,
|
||||||
"A dialog that shows a short message and a progress bar. Optionally, it
|
"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
|
// only if style is set. This is so the API doesn't change for existing
|
||||||
// users...
|
// users...
|
||||||
DocDeclAStr(
|
DocDeclAStr(
|
||||||
virtual bool , Update(int value, const wxString& newmsg = wxPyEmptyString,
|
virtual bool , Update(int value,
|
||||||
|
const wxString& newmsg = wxPyEmptyString,
|
||||||
bool *OUTPUT),
|
bool *OUTPUT),
|
||||||
"Update(self, int value, String newmsg) --> (continue, skip)",
|
"Update(self, int value, String newmsg) --> (continue, skip)",
|
||||||
"Updates the dialog, setting the progress bar to the new value and, if
|
"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.
|
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(
|
DocDeclStr(
|
||||||
void , Resume(),
|
void , Resume(),
|
||||||
"Can be used to continue with the dialog, after the user had chosen to
|
"Can be used to continue with the dialog, after the user had chosen to
|
||||||
|
@ -692,15 +692,6 @@ enum {
|
|||||||
|
|
||||||
wxID_HIGHEST,
|
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,
|
wxMENU_TEAROFF,
|
||||||
wxMB_DOCKABLE,
|
wxMB_DOCKABLE,
|
||||||
wxNO_FULL_REPAINT_ON_RESIZE,
|
wxNO_FULL_REPAINT_ON_RESIZE,
|
||||||
|
@ -59,6 +59,9 @@ public:
|
|||||||
virtual void SetValue(int pos);
|
virtual void SetValue(int pos);
|
||||||
virtual int GetValue() const;
|
virtual int GetValue() const;
|
||||||
|
|
||||||
|
// indeterminate mode API
|
||||||
|
virtual void Pulse();
|
||||||
|
|
||||||
// simple accessors
|
// simple accessors
|
||||||
bool IsVertical() const;
|
bool IsVertical() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user