X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkWxGUICommand.cxx;h=c9fc3823e04e1483d8c5ac86facc84dc083790b9;hb=19dda39fbfb4f8e1019c4f0dd37aa3afc8a3d1d6;hp=2e37ec476a6922b11453d95112e2ef97f88feae8;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git diff --git a/kernel/src/bbtkWxGUICommand.cxx b/kernel/src/bbtkWxGUICommand.cxx index 2e37ec4..c9fc382 100644 --- a/kernel/src/bbtkWxGUICommand.cxx +++ b/kernel/src/bbtkWxGUICommand.cxx @@ -164,7 +164,13 @@ namespace bbtk std::string stdDir = default_doc_dir+"/share/bbtk/bbs"; wxString defaultDir(stdDir.c_str(), wxConvUTF8); +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 wxFileDialog dialog(this, _T("Include file"),defaultDir, _T(""), _T("*.bbs"), wxOPEN ); +#else + wxFileDialog dialog(this, _T("Include file"),defaultDir, _T(""), _T("*.bbs"), wxFD_OPEN ); +#endif + if (dialog.ShowModal() == wxID_OK) { // std::string command(_T("include "));