23 #include "wxgis/catalog/catalog.h"
28 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CLT, wxGXOBJECT_ADDED,
wxGxCatalogEvent);
29 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CLT, wxGXOBJECT_CHANGED,
wxGxCatalogEvent);
30 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CLT, wxGXOBJECT_DELETED,
wxGxCatalogEvent);
31 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CLT, wxGXOBJECT_REFRESHED,
wxGxCatalogEvent);
42 wxGxCatalogEvent(wxEventType eventType = wxGXOBJECT_ADDED,
long nObjectID = wxNOT_FOUND) : wxEvent(0, eventType)
44 m_nObjectID = nObjectID;
49 m_nObjectID =
event.m_nObjectID;
52 void SetObjectID(
long nObjectID) { m_nObjectID = nObjectID; }
53 long GetObjectID()
const {
return m_nObjectID; }
66 #define wxGxCatalogEventHandler(func) \
67 wxEVENT_HANDLER_CAST(wxGxCatalogEventFunction, func)
69 #define EVT_GXOBJECT_ADDED(func) wx__DECLARE_EVT0(wxGXOBJECT_ADDED, wxGxCatalogEventHandler(func))
70 #define EVT_GXOBJECT_CHANGED(func) wx__DECLARE_EVT0(wxGXOBJECT_CHANGED, wxGxCatalogEventHandler(func))
71 #define EVT_GXOBJECT_DELETED(func) wx__DECLARE_EVT0(wxGXOBJECT_DELETED, wxGxCatalogEventHandler(func))
72 #define EVT_GXOBJECT_REFRESHED(func) wx__DECLARE_EVT0(wxGXOBJECT_REFRESHED, wxGxCatalogEventHandler(func))
The Network event.
Definition: gxevent.h:39