23 #include "wxgis/core/core.h"
28 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CORE, wxPROCESS_START,
wxGISProcessEvent);
29 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CORE, wxPROCESS_FINISH,
wxGISProcessEvent);
30 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CORE, wxPROCESS_CANCELED,
wxGISProcessEvent);
31 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CORE, wxPROCESS_STATE_CHANGED,
wxGISProcessEvent);
39 wxGISProcessEvent(wxEventType eventType = wxPROCESS_START,
long nProcessID = wxNOT_FOUND,
bool bHasErrors =
false) : wxEvent(0, eventType), m_nProcessID(nProcessID), m_bHasErrors(bHasErrors)
46 void SetProcessID(
long nProcessID) { m_nProcessID = nProcessID; }
47 long GetProcessID()
const {
return m_nProcessID; }
48 void SetHasErrors(
bool bHasErrors) { m_bHasErrors = bHasErrors; }
49 bool GetHasErrors()
const {
return m_bHasErrors; }
63 #define wxGISProcessEventHandler(func) wxEVENT_HANDLER_CAST(wxGISProcessEventFunction, func)
65 #define EVT_PROCESS_START(func) wx__DECLARE_EVT0(wxPROCESS_START, wxGISProcessEventHandler(func))
66 #define EVT_PROCESS_FINISH(func) wx__DECLARE_EVT0(wxPROCESS_FINISH, wxGISProcessEventHandler(func))
67 #define EVT_PROCESS_CANCELED(func) wx__DECLARE_EVT0(wxPROCESS_CANCELED, wxGISProcessEventHandler(func))
68 #define EVT_PROCESS_STATE_CHANGED(func) wx__DECLARE_EVT0(wxPROCESS_STATE_CHANGED, wxGISProcessEventHandler(func))
The wxGISProcess class event.
Definition: event.h:36