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