2004-12-31 02:08:11 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/palmos/progdlg.h
|
|
|
|
// Purpose: wxProgressDialog interface
|
|
|
|
// Author: Wlodzimierz ABX Skiba
|
2005-01-18 16:14:27 -05:00
|
|
|
// Modified by:
|
2004-12-31 02:08:11 -05:00
|
|
|
// Created: 29.12.2004
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Wlodzimierz Skiba
|
|
|
|
// License: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _PREFCONF_H_
|
|
|
|
#define _PREFCONF_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "progdlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_PROGRESSDLG
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxProgressDialog : public wxDialog
|
|
|
|
{
|
|
|
|
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);
|
|
|
|
~wxProgressDialog();
|
|
|
|
|
|
|
|
virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
|
|
|
|
void Resume();
|
|
|
|
virtual bool Show( bool show = true );
|
|
|
|
|
2005-01-03 02:08:17 -05:00
|
|
|
Boolean Callback(PrgCallbackData *data);
|
2004-12-31 02:08:11 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
ProgressType *m_prgFrame;
|
|
|
|
wxString m_msg;
|
|
|
|
int m_max,m_cur;
|
2005-01-03 02:08:17 -05:00
|
|
|
bool m_canSkip;
|
|
|
|
bool m_activeSkip;
|
2004-12-31 02:08:11 -05:00
|
|
|
|
|
|
|
// Virtual function hiding supression
|
|
|
|
virtual void Update() { wxDialog::Update(); }
|
|
|
|
|
|
|
|
DECLARE_NO_COPY_CLASS(wxProgressDialog)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_PROGRESSDLG
|
|
|
|
|
|
|
|
#endif // _PREFCONF_H_
|
|
|
|
|