mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Import r67258 of the wxWidgets trunk, which I expect will before
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
72
Externals/wxWidgets3/include/wx/msw/progdlg.h
vendored
Normal file
72
Externals/wxWidgets3/include/wx/msw/progdlg.h
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/msw/progdlg.h
|
||||
// Purpose: wxProgressDialog
|
||||
// Author: Rickard Westerlund
|
||||
// Created: 2010-07-22
|
||||
// RCS-ID: $Id: progdlg.h 65574 2010-09-20 13:11:03Z VZ $
|
||||
// Copyright: (c) 2010 wxWidgets team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_PROGDLG_H_
|
||||
#define _WX_PROGDLG_H_
|
||||
|
||||
class wxProgressDialogTaskRunner;
|
||||
class wxProgressDialogSharedData;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxProgressDialog : public wxGenericProgressDialog
|
||||
{
|
||||
public:
|
||||
wxProgressDialog(const wxString& title, const wxString& message,
|
||||
int maximum = 100,
|
||||
wxWindow *parent = NULL,
|
||||
int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
|
||||
|
||||
virtual ~wxProgressDialog();
|
||||
|
||||
virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
|
||||
virtual bool Pulse(const wxString& newmsg = wxEmptyString, bool *skip = NULL);
|
||||
|
||||
void Resume();
|
||||
|
||||
int GetValue() const;
|
||||
wxString GetMessage() const;
|
||||
|
||||
void SetRange(int maximum);
|
||||
|
||||
// Return whether "Cancel" or "Skip" button was pressed, always return
|
||||
// false if the corresponding button is not shown.
|
||||
bool WasSkipped() const;
|
||||
bool WasCancelled() const;
|
||||
|
||||
virtual void SetTitle(const wxString& title);
|
||||
virtual wxString GetTitle() const;
|
||||
|
||||
virtual bool Show( bool show = true );
|
||||
|
||||
// Must provide overload to avoid hiding it (and warnings about it)
|
||||
virtual void Update() { wxGenericProgressDialog::Update(); }
|
||||
|
||||
private:
|
||||
// Performs common routines to Update() and Pulse(). Requires the
|
||||
// shared object to have been entered.
|
||||
bool DoNativeBeforeUpdate(bool *skip);
|
||||
|
||||
// Updates the various timing informations for both determinate
|
||||
// and indeterminate modes. Requires the shared object to have
|
||||
// been entered.
|
||||
void UpdateExpandedInformation(int value);
|
||||
|
||||
wxProgressDialogTaskRunner *m_taskDialogRunner;
|
||||
|
||||
wxProgressDialogSharedData *m_sharedData;
|
||||
|
||||
// Store the message and title we currently use to be able to return it
|
||||
// from Get{Message,Title}()
|
||||
wxString m_message,
|
||||
m_title;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxProgressDialog);
|
||||
};
|
||||
|
||||
#endif // _WX_PROGDLG_H_
|
Reference in New Issue
Block a user