X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwx%2Fsrc%2FbbwxFileSelector.cxx;h=c216cdd5c60d641b86a9b107f2fc83fbfd8dadb6;hb=ca555bb96b5159138b8683d18905631109f9883c;hp=4757485e021b57407f02fbbbf0b32b1fef04b41b;hpb=b05f82ac827b39aceb736aaace5eb5cc3e914814;p=bbtk.git diff --git a/packages/wx/src/bbwxFileSelector.cxx b/packages/wx/src/bbwxFileSelector.cxx index 4757485..c216cdd 100644 --- a/packages/wx/src/bbwxFileSelector.cxx +++ b/packages/wx/src/bbwxFileSelector.cxx @@ -80,11 +80,21 @@ namespace bbwx long style; if (bbGetInputOpenSave()=="Save") { +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 style = wxSAVE | wxOVERWRITE_PROMPT; - } - else - { +#else + style = wxFD_SAVE | wxFD_OVERWRITE_PROMPT; +#endif + } else { + +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 style = wxOPEN | wxFILE_MUST_EXIST; +#else + style = wxFD_OPEN | wxFD_FILE_MUST_EXIST; +#endif + } std::string wc(bbGetInputWildcard());