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=a9c7cf15bdbdbc2dba83a2a0b395916394fd5cbf;hp=2e37ec476a6922b11453d95112e2ef97f88feae8;hpb=79d06fa7c6441e99291ad3a1949d241f336573d5;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 "));