24 #include "antares/study/study.h"
25 #include "../../toolbox/dispatcher/study.h"
26 #include <ui/common/lock.h>
27 #include "antares/utils/utils.h"
31 namespace Antares::Forms
46 virtual bool OnDropFiles(wxCoord , wxCoord ,
const wxArrayString& filenames)
override
48 if (IsGUIAboutToQuit() or GUIIsLock())
57 for (uint i = 0; i != (uint)filenames.size(); ++i)
59 wxStringToString(filenames[i], filename);
61 if (!Utils::isPathValid(filename.to<std::string>()))
63 logs.error() <<
"Drag & drop : study path contains a non ASCII char";
67 if (not Data::Study::IsInsideStudyFolder(filename, folder, title))
73 if (not folder.empty())
76 Dispatcher::StudyOpen(folder);
80 logs.warning() <<
"The folder provided by drag & drop is not a valid study: "