\twocolitem{wxPD\_CAN\_ABORT}{This flag tells the dialog that it should have a
"Cancel" button which the user may press. If this happens, the next call to
\helpref{Update()}{wxprogressdialogupdate} will return FALSE.}
+\twocolitem{wxPD\_ELAPSED\_TIME}{This flag tells the dialog that it should show elapsed time (since creating the dialog).}
+\twocolitem{wxPD\_ESTIMATED\_TIME}{This flag tells the dialog that it should show estimated time.}
+\twocolitem{wxPD\_REMAINING\_TIME}{This flag tells the dialog that it should show remaining time.}
\end{twocollist}%
}
#if !defined(__WXMSW__) && !defined(__WXMAC__) && !defined(__WXOS2__)
#if defined(SIZEOF_INT)
- #if (SIZEOF_SHORT == 2)
typedef short signed wxInt16;
typedef short unsigned wxUint16;
- #else
- #error "FIXME"
- #endif
- #if (SIZEOF_INT == 4)
typedef int signed wxInt32;
typedef int unsigned wxUint32;
- #else
- #error "FIXME"
- #endif
#else
typedef short signed wxInt16;
typedef short unsigned wxUint16;
#define wxPD_CAN_ABORT 0x0001
#define wxPD_APP_MODAL 0x0002
#define wxPD_AUTO_HIDE 0x0004
+#define wxPD_ELAPSED_TIME 0x0008
+#define wxPD_ESTIMATED_TIME 0x0010
+#define wxPD_REMAINING_TIME 0x0020
/*
* GDI descriptions
#if wxUSE_PROGRESSDLG
#include "wx/frame.h"
+#include "wx/time.h"
/** Progress dialog which shows a moving progress bar.
Taken from the Mahogany project.*/
class wxStaticText *m_msg;
/// disable all or parent window only
bool m_disableParentOnly;
+ /// displayed elapsed, estimated, remaining time
+ class wxStaticText *m_elapsed, *m_estimated, *m_remaining;
+ /// time when the dialog was created or NULL
+ class wxTime *m_time;
/// parent window
class wxWindow *m_parent;
/// continue processing or not (return value for Update())