]> Creatis software - creaMaracasVisu.git/commitdiff
#3128 creaMaracasVisu Feature New Normal - branch changeWx28to30 compilation with...
authorEduardo DAVILA <davila@localhost.localdomain>
Wed, 20 Sep 2017 18:45:08 +0000 (20:45 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Wed, 20 Sep 2017 18:45:08 +0000 (20:45 +0200)
lib/GUI/Wx/SurfaceRenderer/wxMaracasSurfaceRendering.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx

index 4f544318ab6a6e849e08548cce97345543886759..90fc9182752ae94d9fa610f562f8204bfa488d5b 100644 (file)
@@ -289,7 +289,19 @@ ToolBar::ToolBar(wxWindow * parent,std::string iconsdir)
        //iconfil+= "/OpenImage.png";
        //wxBitmap* bitmap0 = new wxBitmap(wxString(iconfil.c_str(),wxConvUTF8), wxBITMAP_TYPE_PNG);
        wxBitmap bitmap0(OpenImage_xpm);
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        this->AddTool(1, wxString(_T("test")),bitmap0, NULL, wxITEM_NORMAL, wxString(_T("Open File")));
+#else
+       this->AddTool(1, 
+       wxString("test"),
+       bitmap0, 
+       NULL, 
+       wxITEM_NORMAL, 
+       wxString("Open File") );
+#endif
+
        
        /*iconfil+= "/Open.png";
        wxBitmap* bitmap2 = new wxBitmap(wxString(iconfil.c_str(),wxConvUTF8), wxBITMAP_TYPE_PNG);
index b9f838613aa9859363c6c55b850fa51caee9b8b2..7b98936953d3ebec070020bd7d7a05d98fc5273c 100644 (file)
@@ -346,6 +346,9 @@ void WidgetShowNPoints::OnInsertPoint (wxCommandEvent& event)//CFT
 //------------------------------------------------------------------------
        void WidgetShowNPoints::OnSavePoints(wxCommandEvent& event)
        {
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
                wxFileDialog* FD = new wxFileDialog( 0,
                                             _T("Save points .."),
                                             _T(""),
@@ -353,7 +356,17 @@ void WidgetShowNPoints::OnInsertPoint (wxCommandEvent& event)//CFT
                                             _T("(*.xls)|*.xls"),
                                             wxSAVE | wxOVERWRITE_PROMPT,
                                             wxDefaultPosition);
-               //EED
+#else
+               wxFileDialog* FD = new wxFileDialog( 0,
+                                            _T("Save points .."),
+                                            _T(""),
+                                            _T(""),
+                                            _T("(*.xls)|*.xls"),
+                                            wxFD_SAVE | wxFD_OVERWRITE_PROMPT,
+                                            wxDefaultPosition);
+#endif
+
+
 
                int result_FD = FD->ShowModal();