wxBusyInfo interface moved to generic to make space for possible native implementations. wxInfoFrame moved from header to module.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -467,6 +467,7 @@ ALL_PORTS_BASE_HEADERS = \
|
|||||||
wx/msw/gccpriv.h \
|
wx/msw/gccpriv.h \
|
||||||
wx/msw/libraries.h \
|
wx/msw/libraries.h \
|
||||||
wx/msw/mimetype.h \
|
wx/msw/mimetype.h \
|
||||||
|
wx/msw/mslu.h \
|
||||||
wx/msw/private.h \
|
wx/msw/private.h \
|
||||||
wx/msw/stackwalk.h \
|
wx/msw/stackwalk.h \
|
||||||
wx/msw/stdpaths.h \
|
wx/msw/stdpaths.h \
|
||||||
@@ -1542,6 +1543,7 @@ COND_PLATFORM_WIN32_1_BASE_PLATFORM_HDR = \
|
|||||||
wx/msw/gccpriv.h \
|
wx/msw/gccpriv.h \
|
||||||
wx/msw/libraries.h \
|
wx/msw/libraries.h \
|
||||||
wx/msw/mimetype.h \
|
wx/msw/mimetype.h \
|
||||||
|
wx/msw/mslu.h \
|
||||||
wx/msw/private.h \
|
wx/msw/private.h \
|
||||||
wx/msw/stackwalk.h \
|
wx/msw/stackwalk.h \
|
||||||
wx/msw/stdpaths.h \
|
wx/msw/stdpaths.h \
|
||||||
@@ -2678,6 +2680,7 @@ COND_USE_GUI_1_ALL_GUI_HEADERS = \
|
|||||||
wx/bitmap.h \
|
wx/bitmap.h \
|
||||||
wx/bookctrl.h \
|
wx/bookctrl.h \
|
||||||
wx/busyinfo.h \
|
wx/busyinfo.h \
|
||||||
|
wx/generic/busyinfo.h \
|
||||||
wx/caret.h \
|
wx/caret.h \
|
||||||
wx/choicebk.h \
|
wx/choicebk.h \
|
||||||
wx/clipbrd.h \
|
wx/clipbrd.h \
|
||||||
|
@@ -725,6 +725,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
wx/bitmap.h
|
wx/bitmap.h
|
||||||
wx/bookctrl.h
|
wx/bookctrl.h
|
||||||
wx/busyinfo.h
|
wx/busyinfo.h
|
||||||
|
wx/generic/busyinfo.h
|
||||||
wx/caret.h
|
wx/caret.h
|
||||||
wx/choicebk.h
|
wx/choicebk.h
|
||||||
wx/clipbrd.h
|
wx/clipbrd.h
|
||||||
|
@@ -8387,6 +8387,10 @@ SOURCE=..\..\include\wx\busyinfo.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\include\wx\generic\busyinfo.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\include\wx\button.h
|
SOURCE=..\..\include\wx\button.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: busyinfo.h
|
// Name: wx/busyinfo.h
|
||||||
// Purpose: Information window (when app is busy)
|
// Purpose: Information window (when app is busy)
|
||||||
// Author: Vaclav Slavik
|
// Author: Vaclav Slavik
|
||||||
// Copyright: (c) 1999 Vaclav Slavik
|
// Copyright: (c) 1999 Vaclav Slavik
|
||||||
@@ -7,45 +7,15 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __INFOWIN_H__
|
#ifndef __BUSYINFO_H_BASE__
|
||||||
#define __INFOWIN_H__
|
#define __BUSYINFO_H_BASE__
|
||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
|
||||||
#include "wx/frame.h"
|
|
||||||
|
|
||||||
#if wxUSE_BUSYINFO
|
#if wxUSE_BUSYINFO
|
||||||
|
|
||||||
class WXDLLEXPORT wxInfoFrame : public wxFrame
|
#include "wx/generic/busyinfo.h"
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxInfoFrame(wxWindow *parent, const wxString& message);
|
|
||||||
|
|
||||||
private:
|
#endif // wxUSE_BUSYINFO
|
||||||
DECLARE_NO_COPY_CLASS(wxInfoFrame)
|
|
||||||
};
|
|
||||||
|
|
||||||
|
#endif // __BUSYINFO_H_BASE__
|
||||||
//--------------------------------------------------------------------------------
|
|
||||||
// wxBusyInfo
|
|
||||||
// Displays progress information
|
|
||||||
// Can be used in exactly same way as wxBusyCursor
|
|
||||||
//--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxBusyInfo : public wxObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxBusyInfo(const wxString& message, wxWindow *parent = NULL);
|
|
||||||
|
|
||||||
virtual ~wxBusyInfo();
|
|
||||||
|
|
||||||
private:
|
|
||||||
wxInfoFrame *m_InfoFrame;
|
|
||||||
|
|
||||||
DECLARE_NO_COPY_CLASS(wxBusyInfo)
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
43
include/wx/generic/busyinfo.h
Normal file
43
include/wx/generic/busyinfo.h
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: wx/generic/busyinfo.h
|
||||||
|
// Purpose: Information window (when app is busy)
|
||||||
|
// Author: Vaclav Slavik
|
||||||
|
// Copyright: (c) 1999 Vaclav Slavik
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __BUSYINFO_H__
|
||||||
|
#define __BUSYINFO_H__
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
|
|
||||||
|
#include "wx/frame.h"
|
||||||
|
|
||||||
|
#if wxUSE_BUSYINFO
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_CORE wxFrame;
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------
|
||||||
|
// wxBusyInfo
|
||||||
|
// Displays progress information
|
||||||
|
// Can be used in exactly same way as wxBusyCursor
|
||||||
|
//--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxBusyInfo : public wxObject
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxBusyInfo(const wxString& message, wxWindow *parent = NULL);
|
||||||
|
|
||||||
|
virtual ~wxBusyInfo();
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxFrame *m_InfoFrame;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxBusyInfo)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // wxUSE_BUSYINFO
|
||||||
|
|
||||||
|
#endif // __BUSYINFO_H__
|
@@ -1,8 +1,9 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: busyinfo.cpp
|
// Name: src/generic/busyinfo.cpp
|
||||||
// Purpose: Information window when app is busy
|
// Purpose: Information window when app is busy
|
||||||
// Author: Vaclav Slavik
|
// Author: Vaclav Slavik
|
||||||
// Copyright: (c) 1999 Vaclav Slavik
|
// Copyright: (c) 1999 Vaclav Slavik
|
||||||
|
// RCS-ID: $Id$
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@@ -14,11 +15,24 @@
|
|||||||
|
|
||||||
#if wxUSE_BUSYINFO
|
#if wxUSE_BUSYINFO
|
||||||
|
|
||||||
|
// for all others, include the necessary headers
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/stattext.h"
|
#include "wx/stattext.h"
|
||||||
#include "wx/panel.h"
|
#include "wx/panel.h"
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/busyinfo.h"
|
#include "wx/busyinfo.h"
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxInfoFrame : public wxFrame
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxInfoFrame(wxWindow *parent, const wxString& message);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxInfoFrame)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message)
|
wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message)
|
||||||
: wxFrame(parent, wxID_ANY, wxT("Busy"),
|
: wxFrame(parent, wxID_ANY, wxT("Busy"),
|
||||||
@@ -111,6 +125,4 @@ wxBusyInfo::~wxBusyInfo()
|
|||||||
m_InfoFrame->Close();
|
m_InfoFrame->Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // wxUSE_BUSYINFO
|
||||||
// wxUSE_BUSYINFO
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user