-%module events
-%{
/////////////////////////////////////////////////////////////////////////////
// Name: events.i
// Purpose: SWIGgable Event classes for wxPython
/////////////////////////////////////////////////////////////////////////////
+%module events
+
+%{
#include "helpers.h"
+#include <wx/spinbutt.h>
%}
//----------------------------------------------------------------------
class wxCloseEvent : public wxEvent {
public:
- 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);
};
//---------------------------------------------------------------------------
long GetExtraLong();
int GetInt();
int GetSelection();
- char* GetString();
+ wxString GetString();
bool IsSelection();
-
};
//---------------------------------------------------------------------------
+class wxSpinEvent : public wxScrollEvent {
+public:
+
+};
+
+//---------------------------------------------------------------------------
+
class wxMouseEvent: public wxEvent {
public:
bool IsButton();
bool AltDown();
bool ShiftDown();
long KeyCode();
- void Position(float *OUTPUT, float *OUTPUT);
- float GetX();
- float GetY();
+
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
+class wxPyEvent : public wxCommandEvent {
+public:
+ wxPyEvent(wxEventType commandType = wxEVT_NULL, PyObject* userData = Py_None);
+ ~wxPyEvent();
-/////////////////////////////////////////////////////////////////////////////
-//
-// $Log$
-// 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();
+};
+
+//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------