3 #ifndef PYINTERP_EVENT_H
4 #define PYINTERP_EVENT_H
8 #include <PyEvent_Event.h>
12 class PyInterp_Request;
14 class PyInterp_ExecuteEvent: public PyEvent_Event
17 PyInterp_ExecuteEvent( PyInterp_Request* r )
20 virtual void Execute();
23 PyInterp_Request* myRequest;
27 * Events thrown by the interpreter having executed a command and indicating
31 class PyInterp_Event : public QEvent
34 PyInterp_Event( const PyInterp_Event& );
38 enum { ES_NOTIFY = QEvent::User + 5000, ES_OK, ES_ERROR, ES_INCOMPLETE,
39 ES_TAB_COMPLETE_OK, ES_TAB_COMPLETE_ERR, ES_LAST };
41 PyInterp_Event( int type, PyInterp_Request* request )
42 : QEvent( (QEvent::Type)type ), myRequest( request ) {}
44 virtual ~PyInterp_Event();
46 PyInterp_Request* GetRequest() const { return myRequest; }
47 operator PyInterp_Request*() const { return myRequest; }
50 PyInterp_Request* myRequest;
53 #endif // PYINTERP_EVENT_H