]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/progdlg.h
Initial commit of native OS X list ctrl support. Compile tested on Win, Mac, FC4...
[wxWidgets.git] / include / wx / palmos / progdlg.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/progdlg.h
3 // Purpose: wxProgressDialog interface
4 // Author: Wlodzimierz ABX Skiba
5 // Modified by:
6 // Created: 29.12.2004
7 // RCS-ID: $Id$
8 // Copyright: (c) Wlodzimierz Skiba
9 // License: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _PREFCONF_H_
13 #define _PREFCONF_H_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_PROGRESSDLG
18
19 #include "wx/dialog.h"
20
21 class WXDLLEXPORT wxProgressDialog : public wxDialog
22 {
23 DECLARE_DYNAMIC_CLASS(wxProgressDialog)
24 public:
25 wxProgressDialog(const wxString &title,
26 wxString const &message,
27 int maximum = 100,
28 wxWindow *parent = NULL,
29 int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
30 virtual ~wxProgressDialog();
31
32 virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
33 void Resume();
34 virtual bool Show( bool show = true );
35
36 Boolean Callback(/*PrgCallbackData */ void *data);
37
38 private:
39
40 /*ProgressType*/ void *m_prgFrame;
41 wxString m_msg;
42 int m_max,m_cur;
43 bool m_canSkip;
44 bool m_activeSkip;
45
46 // Virtual function hiding supression
47 virtual void Update() { wxDialog::Update(); }
48
49 DECLARE_NO_COPY_CLASS(wxProgressDialog)
50 };
51
52 #endif // wxUSE_PROGRESSDLG
53
54 #endif // _PREFCONF_H_
55