]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/progdlg.h
Easier platform testing class and function
[wxWidgets.git] / include / wx / palmos / progdlg.h
... / ...
CommitLineData
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
21class WXDLLEXPORT wxProgressDialog : public wxDialog
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);
30 ~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
38private:
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