]> Creatis software - creaMaracasVisu.git/commitdiff
#3491 change DEFINE_EVENT_TYPE (obsolete) in pPlotter
authorEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Fri, 30 Sep 2022 14:49:07 +0000 (16:49 +0200)
committerEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Fri, 30 Sep 2022 14:49:07 +0000 (16:49 +0200)
13 files changed:
lib/maracasVisuLib/CMakeLists.txt
lib/maracasVisuLib/include/Modules/MARACAS_Find_WXWIDGETS.cmake
lib/maracasVisuLib/src/interface/wxWindows/CMakeLists.txt
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange2.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange2.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotter.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotter.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.h

index c3b3afcbb6b437ff6fabea9429881ed7daa78bd7..8d4385e76a4414a76b667a8158e157899a0f9e03 100644 (file)
@@ -156,17 +156,12 @@ IF ( BUILD_${LIBRARY_NAME} )
 #       ${GDCM_LIBRARIES}
 #       ${BOOST_LIBRARIES}
         ${OpenMP_libomp_LIBRARY_crea}
-  
-    
        #jhcl-Start===========================================================================
-               
                ${LIBIDO_LIBRARIES}
                ${CREA_LIBRARIES}
        #${BOOST_LIBRARIES}
        #jhcl-End===========================================================================
                #creaMaracasVisu_CutModule_interface
-
-
             BaseVolumeRenderer
             BaseSurfaceRenderer
             KernelVolumeRenderer
@@ -174,16 +169,13 @@ IF ( BUILD_${LIBRARY_NAME} )
             KernelSurfaceRenderer
                        GUIWxSurfaceRenderer
                        GUIWxVolumeRenderer
-
 #EED CM
             #KernelVolumeRenderer
 #EED             KernelViewerWidgets
              #KernelSurfaceRenderer
              #BaseSurfaceRenderer
-
     )
   #----------------------------------------------------------------------------
-
   
   #----------------------------------------------------------------------------
   # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
@@ -205,10 +197,15 @@ IF ( BUILD_${LIBRARY_NAME} )
 
   # CREATE THE TARGET
 set (${LIBRARY_NAME}_SHARED SHARED)
-message(EED mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm  "${${LIBRARY_NAME}_SHARED}" )
-message(EED mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm  ${LIBRARY_NAME} )
   ADD_LIBRARY (${LIBRARY_NAME} ${${LIBRARY_NAME}_SHARED} ${${LIBRARY_NAME}_SOURCES} ${${LIBRARY_NAME}_HEADERS})
 
+message ("EED 1  :):):):):):):):):):):):):):):):):):):):):)  ")
+message ("EED 1 :):):):):):):):):):):):):):):):):):):):):)  ")
+message (${${LIBRARY_NAME}_SOURCES} )
+message ("EED 2 :):):):):):):):):):):):):):):):):):):):):)  ")
+message ("EED 2 :):):):):):):):):):):):):):):):):):):):):)  ")
+
+
   # LINK
   TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES})
 
index 9ab329ac10962323cf64e6cc6856525f9ae559a3..0eafd3ce31749e650f53eb74fdd82448d30be7c7 100644 (file)
@@ -1,7 +1,6 @@
 
 
 IF(WIN32)
-
   #  WXWINDOWS_LIBRARY         = full path to the wxWindows library and linker flags on unix  
   #  CMAKE_WX_CXX_FLAGS        = compiler flags for building wxWindows 
   #  WXWINDOWS_INCLUDE_PATH    = include path of wxWindows
@@ -27,10 +26,17 @@ IF(WIN32)
   LINK_DIRECTORIES( ${WXWIDGETS_LINK_DIRECTORIES} )
   SET(maracas_WXWIDGETS_LIBRARIES
     ${WXWIDGETS_LIBRARIES}     
-    wxmsw28d_aui
+ #   wxmsw28d_aui
+                   "${wxWidgets_LIB_DIR}/libwxmsw32u_aui.a"   
+                               "${wxWidgets_LIB_DIR}/libwxmsw32u_webview.a"    
+                               "${wxWidgets_LIB_DIR}/libwxmsw32u_html.a"   
+                               "${wxWidgets_LIB_DIR}/libwxmsw32u_adv.a" 
+                   "${wxWidgets_LIB_DIR}/libwxmsw32u_gl.a"   
+                   "${wxWidgets_LIB_DIR}/libwxmsw32u_media.a"   
+                   "${wxWidgets_LIB_DIR}/libwxmsw32u_core.a"   
+                   "${wxWidgets_LIB_DIR}/libwxbase32u.a"   
+                   "${wxWidgets_LIB_DIR}/libwxbase32u_net.a"   
   )
-
-
 ENDIF(WIN32)
 IF(UNIX)
   # GTK2
index fb4cbf4f2de6c57caee320faec5d7da8a144af99..f51d85a4bc565ebb5ab952141eb7e4b8d748e36f 100644 (file)
@@ -49,13 +49,10 @@ SET(MARACAS_TOOLS_SOURCES
     "tools/MaracasTools.cpp"
 )
 
-
-
 #-----------------------------------------------------------------------------
 # Required libraries (dll o so)
 #-----------------------------------------------------------------------------
 
-
 #TODO for a nice VC++ we need to add header file...
 SET(MARACAS_LIB_SRCS
   manualContour.cpp
@@ -83,8 +80,6 @@ SET(MARACAS_LIB_SRCS
   wxMaracasRendererView.cxx
   wxMaracasRendererView.h
   
-  
-       
 ##  widgets/wxVTKRenderWindowInteractor.cxx
 ##  widgets/wxVTKRenderWindowInteractor.h
   widgets/wxVTKRenderWindowInteractorEditContour.cxx
@@ -134,7 +129,6 @@ SET(MARACAS_LIB_SRCS
   res/wxInterface.rc
 )
 
-
 ADD_LIBRARY(MaracasInterfaceWX ${MARACAS_LIB_SRCS} )
 TARGET_LINK_LIBRARIES(MaracasInterfaceWX
   ${maracas_WXWIDGETS_LIBRARIES}
@@ -146,9 +140,6 @@ TARGET_LINK_LIBRARIES(MaracasInterfaceWX
   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering  vtkHybrid
 )
 
-
-
-
 #TODO for a nice VC++ we need to add header file...
 SET(MARACAS_LIB_SRCS_02
   manualContour.cpp
@@ -501,7 +492,6 @@ ELSE(WIN32)
        ${maracas_WXWIDGETS_LIBRARIES}
  )
 
-
 ENDIF(WIN32)
 ADD_SUBDIRECTORY(widgets)
 
index 42db92071198e13c6a40271af51cb959ae9c1972..999ec6f61e57eb8a489e7e6a1d346a9f8158980e 100644 (file)
 
 //const wxEventType wxEVT_TSBAR = wxNewEventType();
 
-DEFINE_EVENT_TYPE(wxEVT_TSBAR)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_START)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_END)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_MOVED)
-DEFINE_EVENT_TYPE(wxEVT_SELECTION_END)
+/* EED 2022-09-30
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_START)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_END)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_MOVED)
+ DEFINE_EVENT_TYPE(wxEVT_SELECTION_END)
+*/
+
+wxDEFINE_EVENT(wxEVT_TSBAR, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_ACTUAL, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_START, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_END, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_MOVED, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_SELECTION_END, wxCommandEvent);
+
 
 //----------------------------------------------------------------------------
 //EVENT TABLE
index 25d4e2f276f34a0dec2a90ec3043167c90728ef7..e3ace8922f21eb6156dbabac62547dcb19cb9f57 100644 (file)
 #  knowledge of the CeCILL-B license and that you accept its terms.
 # ------------------------------------------------------------------------ */
 
-
-
 #ifndef __mBAR__RANGE__
 #define __mBAR__RANGE__
 
-
 //-----------------------------------------------------------------------------
 // Includes
 //-----------------------------------------------------------------------------
 #include "wx/colordlg.h"
 
-
 // ----------------------------------------------------------------------------
 // wx headers inclusion.
 // For compilers that support precompilation, includes <wx/wx.h>.
 //wxEVT_TSBAR= event of the two side bar
 //----------------------------------------------------------------------------
 
+//EED 2022-09-30
+wxDECLARE_EVENT(wxEVT_TSBAR, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_ACTUAL, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_START, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_END, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_MOVED, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_SELECTION_END, wxCommandEvent);
+
+/* EED 2022-09-30
 BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE(wxEVT_TSBAR,-1) 
        DECLARE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL,-1)
@@ -63,7 +68,7 @@ BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE(wxEVT_TSBAR_MOVED,-1)
        DECLARE_EVENT_TYPE(wxEVT_SELECTION_END,-1)
 END_DECLARE_EVENT_TYPES()
-
+*/
 
 
 
index c07727b8babef68d424bc2a6b57c264f09f1ff47..ce7b2690f061658d6144103eeb712ea506637e37 100644 (file)
 #include "mBarRange2.h"
 
 
+/* EED 2022-09-30
 DEFINE_EVENT_TYPE(wxEVT_BarRange2_Change)
+*/
+wxDEFINE_EVENT(wxEVT_BarRange2_Change, wxCommandEvent);
+
 
 
 /**
index b1450dbcd9487ddeb470675a43e7258ed39edc44..1725cb366971b22078cbc38d43a476ca3aaddbee 100644 (file)
 #include <wx/textctrl.h>
 #include "mBarRange.h"
 
+/* EED 2022-09-30
 BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE(wxEVT_BarRange2_Change,-1) 
 END_DECLARE_EVENT_TYPES()
+*/
+wxDECLARE_EVENT(wxEVT_BarRange2_Change, wxCommandEvent);
+
+
+
 
        class mBarRange2
                : public wxPanel
index 68874cc645a63a9ae8c92f68008390e21659da1c..aeea9babb0ec4e4340eaaf0384e42dd9dd105d55 100644 (file)
@@ -35,6 +35,7 @@
 /*
 * How to catch generated event: EVT_COMMAND(ID_CONTAINER_WINDOW_LISTENER, wxEVT_TYPE_EVENT, ContainerClass :: determinedEventFor)
 */
+/* EED 2022-09-30
 BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE( wxEVT_ADDED_POINT, -1 )
        DECLARE_EVENT_TYPE( wxEVT_REMOVED_POINT, -1 )
@@ -42,13 +43,23 @@ BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE( wxEVT_CHANGED_POINT, -1 )
        DECLARE_EVENT_TYPE( wxEVT_ON_COLOR_BAR, -1 )
 END_DECLARE_EVENT_TYPES()
+*/
 
-
+/* EED 2022-09-30
 DEFINE_EVENT_TYPE( wxEVT_ADDED_POINT )
 DEFINE_EVENT_TYPE( wxEVT_REMOVED_POINT )
 DEFINE_EVENT_TYPE( wxEVT_MOVED_POINT )
 DEFINE_EVENT_TYPE( wxEVT_CHANGED_POINT )
 DEFINE_EVENT_TYPE( wxEVT_ON_COLOR_BAR )
+*/
+
+wxDEFINE_EVENT(wxEVT_ADDED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_REMOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_MOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_CHANGED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_ON_COLOR_BAR, wxCommandEvent);
+
+
 
 //------------------------------------------------------------------------------------------------------------
 // Class implementation
index 54c8fce84fc4c396f636d2367aaae043f296c757..60395e61faa025adc3abf0e1a58785a797b664c5 100644 (file)
@@ -62,6 +62,7 @@
 */
 #define FIGURE_WIDTH 3
 
+/* EED 2022-09-30
 BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE( wxEVT_ADDED_POINT, -1 )
        DECLARE_EVENT_TYPE( wxEVT_REMOVED_POINT, -1 )
@@ -69,6 +70,7 @@ BEGIN_DECLARE_EVENT_TYPES()
        DECLARE_EVENT_TYPE( wxEVT_CHANGED_POINT, -1 )
        DECLARE_EVENT_TYPE( wxEVT_ON_COLOR_BAR, -1 )
 END_DECLARE_EVENT_TYPES()
+*/ 
 
 
 //-------------------------------------------------------------------------------------------------------------
index c6d803e05e23014b2513cfbe8f2c00c944754fb8..17083fa8054935744ecbd315ee0d7efb7aab7f20 100644 (file)
@@ -55,31 +55,44 @@ DEFINE_EVENT_TYPE( wxEVT_NW_TEXT_MESAGGE )
 // ----------------------------------------------------------------------------------------------------
 // Handdled events from pColorBar
 // ----------------------------------------------------------------------------------------------------
+wxDEFINE_EVENT(wxEVT_ADDED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_REMOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_MOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_CHANGED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_ON_COLOR_BAR, wxCommandEvent);
+/* EED 2022-10-30
 DECLARE_EVENT_TYPE(wxEVT_ADDED_POINT, -1)
 DECLARE_EVENT_TYPE(wxEVT_REMOVED_POINT, -1)
 DECLARE_EVENT_TYPE(wxEVT_MOVED_POINT, -1)
 DECLARE_EVENT_TYPE(wxEVT_CHANGED_POINT, -1)
 DECLARE_EVENT_TYPE(wxEVT_ON_COLOR_BAR, -1)
+*/
+
 
 // ----------------------------------------------------------------------------------------------------
 // Handdled events from plotter
 // ----------------------------------------------------------------------------------------------------
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_CHANGED_FUNCTION, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES, -1)
+// EED 2022-10-30
+/*
+wxDEFINE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
+*/
+
 
 // ----------------------------------------------------------------------------------------------------
 // Handdled events from max-min barrange
 // ----------------------------------------------------------------------------------------------------
+/*EED  2022-10-30
 DECLARE_EVENT_TYPE(wxEVT_TSBAR, -1)
 DECLARE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL, -1)
 DECLARE_EVENT_TYPE(wxEVT_TSBAR_START, -1)
 DECLARE_EVENT_TYPE(wxEVT_TSBAR_END, -1)
 DECLARE_EVENT_TYPE(wxEVT_TSBAR_MOVED, -1)
 DECLARE_EVENT_TYPE(wxEVT_SELECTION_END, -1)
-
+*/
 
 // ----------------------------------------------------------------------------------------------------
 // EVENT TABLE (->Connect: analogous)
index 62572b9cea2beee0a940c0f5353b612f846fa459..fcec728dfee115772ddf87fc8d057653ef4b39f3 100644 (file)
 // Class definition
 //--------------------------------------------------------------------------------------------
 
+// EED 2022-09-30 
+wxDECLARE_EVENT(wxEVT_ADDED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_REMOVED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_MOVED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_CHANGED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_ON_COLOR_BAR, wxCommandEvent);
+
+
+// EED 2022-09-30 
+/* Al ready exist in pPlotterWindow
+wxDECLARE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);  
+*/
+
+
+
 /*
 * Represents the integrated plotter that consists of the a drawing area, and control bars (min-max bar, degrade bar)
 */
index ea0be8fe85c003f009ff38ad7860058f22605576..96a0659c89f2a98473d91fc9a69d0ebde766e1a1 100644 (file)
 //DECLARING THE NEW EVENT
 //wxEVT_TSBAR= event of the two side bar
 //----------------------------------------------------------------------------
+/* EED 2020-09-30
 BEGIN_DECLARE_EVENT_TYPES()
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_CHANGED_FUNCTION, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES, -1)
+  DECLARE_EVENT_TYPE(wxEVT_PPLOTTER, -1)
+  DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_CHANGED_FUNCTION, -1)
+  DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE, -1)
+  DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD, -1)
+  DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE, -1)
+  DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES, -1)
 END_DECLARE_EVENT_TYPES()
 
 //definitions
@@ -62,6 +63,14 @@ DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE)
 DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD)
 DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE)
 DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES)
+*/
+
+wxDEFINE_EVENT(wxEVT_PPLOTTER, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
 
 
 //----------------------------------------------------------------------------
index 264cc730394de2099eba464b6e79320b933b1170..018bfe73e9bc083c7f7ba44c4dfe9e729203eace 100644 (file)
@@ -75,6 +75,17 @@ enum
 
 };
 
+
+wxDECLARE_EVENT(wxEVT_PPLOTTER, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
+
+
+
+
 #define MAX_FUNCTIONS 7
 /**
  this scale, scales each function with its maximum x, and maximum y