X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUICommand.cxx;fp=kernel%2Fsrc%2FbbtkWxGUICommand.cxx;h=c9fc3823e04e1483d8c5ac86facc84dc083790b9;hb=e269992d2d446784afc40073782311deaa25008f;hp=2e37ec476a6922b11453d95112e2ef97f88feae8;hpb=ce796ef8e6c470b95b8f00cad76c25a9e4a88df1;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 "));