]> git.saurik.com Git - wxWidgets.git/commitdiff
More compilation fixes. Move dummy wxPowerEvent to where it can be
authorRobin Dunn <robin@alldunn.com>
Tue, 6 Jun 2006 17:50:09 +0000 (17:50 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 6 Jun 2006 17:50:09 +0000 (17:50 +0000)
seen by other modules.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/include/wx/wxPython/wxPython_int.h
wxPython/src/_power.i

index 1388d0e2d7dc7b2d6825b38ae175879e97b25146..8aaf5f46baf2be1c4bbcfa22359921cd0bfc62f7 100644 (file)
 
 //---------------------------------------------------------------------------
 
+#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;    
 
index cbc3bcfa4f818c63cca037363aeb6ee0dd1850ec..cb8deace69c1b0d5c2e5e54e6bf758310006498c 100644 (file)
 //---------------------------------------------------------------------------
 %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,