X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5c9047acf66ae7ee2aed4778832b6887095ce7a..76784eecd960198bc54429a6e16d5bd7af458fce:/utils/wxPython/src/events.i diff --git a/utils/wxPython/src/events.i b/utils/wxPython/src/events.i index c0b1586ea2..254b42e63c 100644 --- a/utils/wxPython/src/events.i +++ b/utils/wxPython/src/events.i @@ -15,6 +15,7 @@ %{ #include "helpers.h" +#include %} //---------------------------------------------------------------------- @@ -53,12 +54,12 @@ public: class wxCloseEvent : public wxEvent { public: -// ??? it's in the docs ??? bool GetSessionEnding(); + void SetLoggingOff(bool loggingOff); bool GetLoggingOff(); void Veto(bool veto = TRUE); + bool CanVeto(); bool GetVeto(); - void SetForce(bool force); - bool GetForce(); + void SetCanVeto(bool canVeto); }; //--------------------------------------------------------------------------- @@ -69,9 +70,8 @@ public: long GetExtraLong(); int GetInt(); int GetSelection(); - char* GetString(); + wxString GetString(); bool IsSelection(); - }; @@ -85,6 +85,13 @@ public: //--------------------------------------------------------------------------- +class wxSpinEvent : public wxScrollEvent { +public: + +}; + +//--------------------------------------------------------------------------- + class wxMouseEvent: public wxEvent { public: bool IsButton(); @@ -129,9 +136,7 @@ public: bool AltDown(); bool ShiftDown(); long KeyCode(); - void Position(float *OUTPUT, float *OUTPUT); - float GetX(); - float GetY(); + }; //--------------------------------------------------------------------------- @@ -285,24 +290,25 @@ public: //--------------------------------------------------------------------------- +class wxPyEvent : public wxCommandEvent { +public: + wxPyEvent(wxEventType commandType = wxEVT_NULL, PyObject* userData = Py_None); + ~wxPyEvent(); -///////////////////////////////////////////////////////////////////////////// -// -// $Log$ -// Revision 1.3 1998/10/20 06:43:56 RD -// New wxTreeCtrl wrappers (untested) -// some changes in helpers -// etc. -// -// Revision 1.2 1998/08/15 07:36:33 RD -// - Moved the header in the .i files out of the code that gets put into -// the .cpp files. It caused CVS conflicts because of the RCS ID being -// different each time. -// -// - A few minor fixes. -// -// Revision 1.1 1998/08/09 08:25:50 RD -// Initial version -// -// + void SetUserData(PyObject* userData); + PyObject* GetUserData(); +}; + + + +//--------------------------------------------------------------------------- + +class wxNotifyEvent : public wxCommandEvent { +public: + bool IsAllowed(); + void Veto(); +}; + +//--------------------------------------------------------------------------- +//---------------------------------------------------------------------------