]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/progdlg.h
added wxTempFile::Flush() (dedicated to Theodore Ts'o and Ext4)
[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 WXDLLIMPEXP_CORE 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 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 int GetValue() const { return m_cur; }
39 int GetRange() const { return m_max; }
40 wxString GetMessage() const { return m_msg; }
41
42private:
43
44 /*ProgressType*/ void *m_prgFrame;
45 wxString m_msg;
46 int m_max,m_cur;
47 bool m_canSkip;
48 bool m_activeSkip;
49
50 // Virtual function hiding supression
51 virtual void Update() { wxDialog::Update(); }
52
53 wxDECLARE_NO_COPY_CLASS(wxProgressDialog);
54};
55
56#endif // wxUSE_PROGRESSDLG
57
58#endif // _PREFCONF_H_
59