// 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
{
// 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