X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5c9047acf66ae7ee2aed4778832b6887095ce7a..d9f39e09e82e99c422619f4e3df536d0a9e87987:/utils/wxPython/src/events.i diff --git a/utils/wxPython/src/events.i b/utils/wxPython/src/events.i index c0b1586ea2..d8b0bd816d 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,10 +290,70 @@ public: //--------------------------------------------------------------------------- +class wxPyEvent : public wxCommandEvent { +public: + wxPyEvent(wxEventType commandType = wxEVT_NULL, PyObject* userData = Py_None); + ~wxPyEvent(); + + void SetUserData(PyObject* userData); + PyObject* GetUserData(); +}; + + +//--------------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.8 1999/04/30 03:29:18 RD +// wxPython 2.0b9, first phase (win32) +// Added gobs of stuff, see wxPython/README.txt for details +// +// Revision 1.7.4.1 1999/03/27 23:29:14 RD +// +// wxPython 2.0b8 +// Python thread support +// various minor additions +// various minor fixes +// +// Revision 1.7 1999/02/20 09:02:57 RD +// Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a +// window handle. If you can get the window handle into the python code, +// it should just work... More news on this later. +// +// Added wxImageList, wxToolTip. +// +// Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the +// wxRegConfig class. +// +// As usual, some bug fixes, tweaks, etc. +// +// Revision 1.6 1999/02/06 22:55:00 RD +// +// Follow up for changes in wxWindows to various event classes +// +// Revision 1.5 1998/12/15 20:41:17 RD +// Changed the import semantics from "from wxPython import *" to "from +// wxPython.wx import *" This is for people who are worried about +// namespace pollution, they can use "from wxPython import wx" and then +// prefix all the wxPython identifiers with "wx." +// +// Added wxTaskbarIcon for wxMSW. +// +// Made the events work for wxGrid. +// +// Added wxConfig. +// +// Added wxMiniFrame for wxGTK, (untested.) +// +// Changed many of the args and return values that were pointers to gdi +// objects to references to reflect changes in the wxWindows API. +// +// Other assorted fixes and additions. +// +// Revision 1.4 1998/11/16 00:00:55 RD +// Generic treectrl for wxPython/GTK compiles... +// // Revision 1.3 1998/10/20 06:43:56 RD // New wxTreeCtrl wrappers (untested) // some changes in helpers