From 46e145fad791560886e17f3f2d75964584c1b729 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 14 Apr 2005 21:12:38 +0000 Subject: [PATCH] Fix building Plot contrib as DLL. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/plot/plot.h | 45 +++++++++++++++++----------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/contrib/include/wx/plot/plot.h b/contrib/include/wx/plot/plot.h index f805a22a7d..5c51df8f26 100644 --- a/contrib/include/wx/plot/plot.h +++ b/contrib/include/wx/plot/plot.h @@ -49,28 +49,29 @@ class WXDLLIMPEXP_PLOT wxPlotWindow; // consts //----------------------------------------------------------------------------- -extern const int wxEVT_PLOT_SEL_CHANGING; -extern const int wxEVT_PLOT_SEL_CHANGED; -extern const int wxEVT_PLOT_CLICKED; -extern const int wxEVT_PLOT_DOUBLECLICKED; -extern const int wxEVT_PLOT_ZOOM_IN; -extern const int wxEVT_PLOT_ZOOM_OUT; -extern const int wxEVT_PLOT_VALUE_SEL_CREATING; -extern const int wxEVT_PLOT_VALUE_SEL_CREATED; -extern const int wxEVT_PLOT_VALUE_SEL_CHANGING; -extern const int wxEVT_PLOT_VALUE_SEL_CHANGED; -extern const int wxEVT_PLOT_AREA_SEL_CREATING; -extern const int wxEVT_PLOT_AREA_SEL_CREATED; -extern const int wxEVT_PLOT_AREA_SEL_CHANGING; -extern const int wxEVT_PLOT_AREA_SEL_CHANGED; -extern const int wxEVT_PLOT_BEGIN_X_LABEL_EDIT; -extern const int wxEVT_PLOT_END_X_LABEL_EDIT; -extern const int wxEVT_PLOT_BEGIN_Y_LABEL_EDIT; -extern const int wxEVT_PLOT_END_Y_LABEL_EDIT; -extern const int wxEVT_PLOT_BEGIN_TITLE_EDIT; -extern const int wxEVT_PLOT_END_TITLE_EDIT; -extern const int wxEVT_PLOT_AREA_CREATE; - +BEGIN_DECLARE_EVENT_TYPES() + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_SEL_CHANGING, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_SEL_CHANGED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_CLICKED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_DOUBLECLICKED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_ZOOM_IN, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_ZOOM_OUT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_VALUE_SEL_CREATING, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_VALUE_SEL_CREATED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_VALUE_SEL_CHANGING, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_VALUE_SEL_CHANGED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_AREA_SEL_CREATING, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_AREA_SEL_CREATED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_AREA_SEL_CHANGING, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_AREA_SEL_CHANGED, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_BEGIN_X_LABEL_EDIT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_END_X_LABEL_EDIT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_BEGIN_Y_LABEL_EDIT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_END_Y_LABEL_EDIT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_BEGIN_TITLE_EDIT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_END_TITLE_EDIT, 0) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_PLOT, wxEVT_PLOT_AREA_CREATE, 0) +END_DECLARE_EVENT_TYPES() #define wxPLOT_X_AXIS 0x0004 #define wxPLOT_Y_AXIS 0x0008 -- 2.45.2