2004-12-31 07:08:11 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/palmos/progdlg.h
|
|
|
|
// Purpose: wxProgressDialog interface
|
|
|
|
// Author: Wlodzimierz ABX Skiba
|
2008-12-02 18:35:24 +00:00
|
|
|
// Modified by:
|
2004-12-31 07:08:11 +00:00
|
|
|
// Created: 29.12.2004
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Wlodzimierz Skiba
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2004-12-31 07:08:11 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _PREFCONF_H_
|
|
|
|
#define _PREFCONF_H_
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_PROGRESSDLG
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxProgressDialog : public wxDialog
|
2004-12-31 07:08:11 +00:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxProgressDialog)
|
|
|
|
public:
|
|
|
|
wxProgressDialog(const wxString &title,
|
|
|
|
wxString const &message,
|
|
|
|
int maximum = 100,
|
|
|
|
wxWindow *parent = NULL,
|
|
|
|
int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxProgressDialog();
|
2004-12-31 07:08:11 +00:00
|
|
|
|
|
|
|
virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
|
|
|
|
void Resume();
|
|
|
|
virtual bool Show( bool show = true );
|
|
|
|
|
2005-07-01 19:36:58 +00:00
|
|
|
Boolean Callback(/*PrgCallbackData */ void *data);
|
2004-12-31 07:08:11 +00:00
|
|
|
|
2008-12-02 18:35:24 +00:00
|
|
|
int GetValue() const { return m_cur; }
|
|
|
|
int GetRange() const { return m_max; }
|
|
|
|
wxString GetMessage() const { return m_msg; }
|
|
|
|
|
2004-12-31 07:08:11 +00:00
|
|
|
private:
|
|
|
|
|
2005-07-01 19:36:58 +00:00
|
|
|
/*ProgressType*/ void *m_prgFrame;
|
2004-12-31 07:08:11 +00:00
|
|
|
wxString m_msg;
|
|
|
|
int m_max,m_cur;
|
2005-01-03 07:08:17 +00:00
|
|
|
bool m_canSkip;
|
|
|
|
bool m_activeSkip;
|
2004-12-31 07:08:11 +00:00
|
|
|
|
|
|
|
// Virtual function hiding supression
|
|
|
|
virtual void Update() { wxDialog::Update(); }
|
|
|
|
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxProgressDialog);
|
2004-12-31 07:08:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_PROGRESSDLG
|
|
|
|
|
|
|
|
#endif // _PREFCONF_H_
|
|
|
|
|