progdlg.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/progdlg.h
  3. // Purpose: Base header for wxProgressDialog
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created:
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows Licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_PROGDLG_H_BASE_
  11. #define _WX_PROGDLG_H_BASE_
  12. #include "wx/defs.h"
  13. #if wxUSE_PROGRESSDLG
  14. /*
  15. * wxProgressDialog flags
  16. */
  17. #define wxPD_CAN_ABORT 0x0001
  18. #define wxPD_APP_MODAL 0x0002
  19. #define wxPD_AUTO_HIDE 0x0004
  20. #define wxPD_ELAPSED_TIME 0x0008
  21. #define wxPD_ESTIMATED_TIME 0x0010
  22. #define wxPD_SMOOTH 0x0020
  23. #define wxPD_REMAINING_TIME 0x0040
  24. #define wxPD_CAN_SKIP 0x0080
  25. #include "wx/generic/progdlgg.h"
  26. #if defined(__WXMSW__) && wxUSE_THREADS && !defined(__WXUNIVERSAL__)
  27. #include "wx/msw/progdlg.h"
  28. #else
  29. class WXDLLIMPEXP_CORE wxProgressDialog
  30. : public wxGenericProgressDialog
  31. {
  32. public:
  33. wxProgressDialog( const wxString& title, const wxString& message,
  34. int maximum = 100,
  35. wxWindow *parent = NULL,
  36. int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE )
  37. : wxGenericProgressDialog( title, message, maximum,
  38. parent, style )
  39. { }
  40. private:
  41. wxDECLARE_DYNAMIC_CLASS_NO_COPY( wxProgressDialog );
  42. };
  43. #endif // defined(__WXMSW__) && wxUSE_THREADS
  44. #endif // wxUSE_PROGRESSDLG
  45. #endif // _WX_PROGDLG_H_BASE_