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:
Robin Dunn 2006-06-06 17:50:09 +00:00
parent 401569f1a1
commit 0fade4f147
2 changed files with 15 additions and 10 deletions

View File

@ -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;

View File

@ -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,