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:
parent
401569f1a1
commit
0fade4f147
@ -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 wxPoint2DDouble wxPoint2D;
|
||||
|
||||
|
@ -15,20 +15,13 @@
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
|
||||
%{
|
||||
#ifndef wxHAS_POWER_EVENTS
|
||||
// Dummy class and other definitions for platforms that don't have them
|
||||
|
||||
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); }
|
||||
};
|
||||
|
||||
// See wxPython_int.h for wxPowerEvent
|
||||
|
||||
enum {
|
||||
wxEVT_POWER_SUSPENDING,
|
||||
wxEVT_POWER_SUSPENDED,
|
||||
|
Loading…
Reference in New Issue
Block a user