X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMCMakeListsDescriptionPanel.cpp;h=ac7172d77584091beccf661cf21477e8e4048e74;hb=311bdcc514f85386f3bbbef9ff6a88bf69fd930f;hp=719426ad5a778e3c51eddc237281e76edf3c1942;hpb=63de854d3d1085c92883328a6fb728d6e5dd2fa4;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.cpp index 719426a..ac7172d 100644 --- a/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.cpp @@ -128,14 +128,14 @@ void wxCDMCMakeListsDescriptionPanel::OnBtnReturn(wxCommandEvent& event) void wxCDMCMakeListsDescriptionPanel::OnBtnOpenInEditor(wxCommandEvent& event) { - //TODO: implement method - std::cerr << "Event OnBtnOpenInEditor not implemented" << std::endl; - event.Skip(); + std::string* result; + if(!this->cMakeLists->OpenFile(result)) + wxMessageBox(crea::std2wx(*result),_T("Open CMakeLists File - Error!"),wxOK | wxICON_ERROR); } void wxCDMCMakeListsDescriptionPanel::OnBtnOpenFolder(wxCommandEvent& event) { - //TODO: implement method - std::cerr << "Event OnBtnOpenFolder not implemented" << std::endl; - event.Skip(); + std::string* result; + if(!this->cMakeLists->OpenInFileExplorer(result)) + wxMessageBox(crea::std2wx(*result),_T("Open Folder - Error!"),wxOK | wxICON_ERROR); }