]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/progdlg.h
fixed bug with HasGroup() creating groups as side effect
[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#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "progdlg.h"
17#endif
18
19#include "wx/defs.h"
20
21#if wxUSE_PROGRESSDLG
22
23#include "wx/dialog.h"
24
25class WXDLLEXPORT wxProgressDialog : public wxDialog
26{
27DECLARE_DYNAMIC_CLASS(wxProgressDialog)
28public:
29 wxProgressDialog(const wxString &title,
30 wxString const &message,
31 int maximum = 100,
32 wxWindow *parent = NULL,
33 int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
34 ~wxProgressDialog();
35
36 virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
37 void Resume();
38 virtual bool Show( bool show = true );
39
40 Boolean Callback(PrgCallbackData *data);
41
42private:
43
44 ProgressType *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 DECLARE_NO_COPY_CLASS(wxProgressDialog)
54};
55
56#endif // wxUSE_PROGRESSDLG
57
58#endif // _PREFCONF_H_
59