]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUITextEditor.cxx
#135 BBTK Feature New Normal - branch vtk7itk4wx3
[bbtk.git] / kernel / src / bbtkWxGUITextEditor.cxx
index 5f3aea8afe8f077f0ed4ef5a62fda940c58615dd..3ab49d038c28d5d4642d98578951188c24cb4211 100644 (file)
@@ -227,9 +227,18 @@ namespace bbtk
     //    std::cout << "-------------- SAVE ---------------"<<std::endl;
     if (mAskFilename)
       {
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        wxFileDialog* fd = new wxFileDialog(this,_T("Save file"),_T(""),
                                            _T(""),std2wx(filter),
                                            wxSAVE | wxOVERWRITE_PROMPT );
+#else
+       wxFileDialog* fd = new wxFileDialog(this,_T("Save file"),_T(""),
+                                           _T(""),std2wx(filter),
+                                           wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
+#endif
+
        int result_fd = fd->ShowModal();
     
        // This line is need it by windows // EED
@@ -530,9 +539,16 @@ namespace bbtk
   {
     //    std::cout << "-------------- OPEN ---------------"<<std::endl;
 
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
     wxFileDialog* fd = new wxFileDialog(this,_T("Open file"),_T(""),
                                        _T(""),std2wx(mFileNameFilter),
                                        wxOPEN | wxFILE_MUST_EXIST );
+#else
+    wxFileDialog* fd = new wxFileDialog(this,_T("Open file"),_T(""),
+                                       _T(""),std2wx(mFileNameFilter),
+                                       wxFD_OPEN | wxFD_FILE_MUST_EXIST );
+#endif
     int result_fd = fd->ShowModal();
 
        // This line is need it by windows //EED