]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/progdlg.h
Use correct reload flags on all platforms to avoid compilation errors
[wxWidgets.git] / include / wx / palmos / progdlg.h
CommitLineData
555f645a
WS
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/progdlg.h
3// Purpose: wxProgressDialog interface
4// Author: Wlodzimierz ABX Skiba
af237ae4 5// Modified by:
555f645a
WS
6// Created: 29.12.2004
7// RCS-ID: $Id$
8// Copyright: (c) Wlodzimierz Skiba
526954c5 9// Licence: wxWindows licence
555f645a
WS
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _PREFCONF_H_
13#define _PREFCONF_H_
14
555f645a
WS
15#include "wx/defs.h"
16
17#if wxUSE_PROGRESSDLG
18
19#include "wx/dialog.h"
20
53a2db12 21class WXDLLIMPEXP_CORE wxProgressDialog : public wxDialog
555f645a
WS
22{
23DECLARE_DYNAMIC_CLASS(wxProgressDialog)
24public:
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);
d3c7fc99 30 virtual ~wxProgressDialog();
555f645a
WS
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
20bc5ad8 36 Boolean Callback(/*PrgCallbackData */ void *data);
555f645a 37
af237ae4
FM
38 int GetValue() const { return m_cur; }
39 int GetRange() const { return m_max; }
40 wxString GetMessage() const { return m_msg; }
41
555f645a
WS
42private:
43
20bc5ad8 44 /*ProgressType*/ void *m_prgFrame;
555f645a
WS
45 wxString m_msg;
46 int m_max,m_cur;
7d81eb8c
WS
47 bool m_canSkip;
48 bool m_activeSkip;
555f645a
WS
49
50 // Virtual function hiding supression
51 virtual void Update() { wxDialog::Update(); }
52
c0c133e1 53 wxDECLARE_NO_COPY_CLASS(wxProgressDialog);
555f645a
WS
54};
55
56#endif // wxUSE_PROGRESSDLG
57
58#endif // _PREFCONF_H_
59