23 #include "wxgis/carto/carto.h"
30 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CRT, wxMXMAP_LAYER_CHANGED,
wxMxMapViewEvent);
31 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CRT, wxMXMAP_LAYER_LOADING,
wxMxMapViewEvent);
32 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CRT, wxMXMAP_LAYER_DS_CLOSED,
wxMxMapViewEvent);
43 wxMxMapViewEvent(wxEventType eventType = wxMXMAP_LAYER_CHANGED,
short nLayerId = 0) : wxEvent(0, eventType)
45 m_nLayerId = nLayerId;
50 m_nLayerId =
event.m_nLayerId;
53 void SetLayerId(
size_t nLayerId){ m_nLayerId = nLayerId; };
54 size_t GetLayerId(
void)
const {
return m_nLayerId; };
67 #define wxMxMapViewEventHandler(func) \
68 wxEVENT_HANDLER_CAST(wxMxMapViewEventFunction, func)
70 #define EVT_MXMAP_LAYER_CHANGED(func) wx__DECLARE_EVT0(wxMXMAP_LAYER_CHANGED, wxMxMapViewEventHandler(func))
71 #define EVT_MXMAP_LAYER_LOADING(func) wx__DECLARE_EVT0(wxMXMAP_LAYER_LOADING, wxMxMapViewEventHandler(func))
72 #define EVT_MXMAP_LAYER_DS_CLOSED(func) wx__DECLARE_EVT0(wxMXMAP_LAYER_DS_CLOSED, wxMxMapViewEventHandler(func))