X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMLibHelpDialog.cpp;h=351406aa736dc101307c85fa59386ef9eeee2a08;hb=5ff0bb2664c3cd508c1dd438666a71b8a96459c3;hp=c6601ffcfb838c548f9bc5a60d2a610b7b94019f;hpb=b8ae511b1e62c48bf4a418a13812d3ada5063550;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp index c6601ff..351406a 100644 --- a/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp @@ -128,12 +128,11 @@ void wxCDMLibHelpDialog::OnEditCMake(wxCommandEvent& event) if(!this->lib->OpenCMakeListsFile(result)) wxMessageBox(crea::std2wx(*result),_T("Open CMakeLists File - Error!"),wxOK | wxICON_ERROR); - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED); if(this->lib->GetCMakeLists() != NULL) { - int CMId = this->lib->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->lib->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -142,12 +141,11 @@ void wxCDMLibHelpDialog::OnEditCMake(wxCommandEvent& event) void wxCDMLibHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event) { - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED); if(this->lib->GetCMakeLists() != NULL) { - int CMId = this->lib->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->lib->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -156,12 +154,11 @@ void wxCDMLibHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event) void wxCDMLibHelpDialog::OnEditCMakeMouseExit(wxMouseEvent& event) { - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED); if(this->lib->GetCMakeLists() != NULL) { - int CMId = this->lib->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->lib->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }