More compilation fixes. Move dummy wxPowerEvent to where it can be
seen by other modules. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -86,6 +86,18 @@
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifndef wxHAS_POWER_EVENTS
|
||||||
|
class wxPowerEvent : public wxEvent
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxPowerEvent(wxEventType evtType) : wxEvent(wxID_NONE, evtType) {}
|
||||||
|
void Veto() {}
|
||||||
|
bool IsVetoed() const { return false; }
|
||||||
|
virtual wxEvent *Clone() const { return new wxPowerEvent(*this); }
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
typedef wxPoint2DDouble wxPoint2D;
|
typedef wxPoint2DDouble wxPoint2D;
|
||||||
|
|
||||||
|
@@ -15,20 +15,13 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#ifndef wxHAS_POWER_EVENTS
|
#ifndef wxHAS_POWER_EVENTS
|
||||||
// Dummy class and other definitions for platforms that don't have them
|
// Dummy class and other definitions for platforms that don't have them
|
||||||
|
|
||||||
class wxPowerEvent : public wxEvent
|
// See wxPython_int.h for wxPowerEvent
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxPowerEvent(wxEventType evtType) : wxEvent(wxID_NONE, evtType) {}
|
|
||||||
void Veto() {}
|
|
||||||
bool IsVetoed() const { return false; }
|
|
||||||
|
|
||||||
virtual wxEvent *Clone() const { return new wxPowerEvent(*this); }
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
wxEVT_POWER_SUSPENDING,
|
wxEVT_POWER_SUSPENDING,
|
||||||
wxEVT_POWER_SUSPENDED,
|
wxEVT_POWER_SUSPENDED,
|
||||||
|
Reference in New Issue
Block a user