X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMLibraryHelpDialog.cpp;h=13a7038f1ec57b4b29fb8a74972afc7bd5ef7b3f;hb=5ff0bb2664c3cd508c1dd438666a71b8a96459c3;hp=87e9974d07cec7392b115cb364b4d7fa3478eb52;hpb=e75a80c4a8a5d67aeb1e941f0c980a11c09cc125;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp index 87e9974..13a7038 100644 --- a/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp @@ -150,8 +150,7 @@ void wxCDMLibraryHelpDialog::OnCMakeLists(wxCommandEvent& event) if(this->library->GetCMakeLists() != NULL) { - int CMId = this->library->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->library->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -172,8 +171,7 @@ void wxCDMLibraryHelpDialog::OnCMakeLists(wxCommandEvent& event) if(((modelCDMLib*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -193,8 +191,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(this->library->GetCMakeLists() != NULL) { - int CMId = this->library->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->library->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -212,8 +209,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(((modelCDMLib*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -230,8 +226,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(this->library->GetCMakeLists() != NULL) { - int CMId = this->library->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->library->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -249,8 +244,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(((modelCDMLib*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }