X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMProjectDescriptionPanel.cpp;h=76aa9bbf99016d3f1ec30f77b2f780735cf14fdd;hb=5ff0bb2664c3cd508c1dd438666a71b8a96459c3;hp=8a4c438592c516125cf3204c6a82190c63dd8c42;hpb=e75a80c4a8a5d67aeb1e941f0c980a11c09cc125;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp index 8a4c438..76aa9bb 100644 --- a/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp @@ -244,7 +244,7 @@ void wxCDMProjectDescriptionPanel::OnBtnManagePackages(wxCommandEvent& event) wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_DISPLAY_CHANGED); newEvent->SetId(1); newEvent->SetString(wxT("manage_packages")); - newEvent->SetInt(this->project->GetId()); + newEvent->SetClientData(this->project); wxPostEvent(this->GetParent(), *newEvent); event.Skip(); } @@ -260,8 +260,7 @@ void wxCDMProjectDescriptionPanel::OnBtnManageLibraries(wxCommandEvent& event) if(this->project->GetLib() != NULL) { - int CMId = this->project->GetLib()->GetId(); - newEvent1->SetInt(CMId); + newEvent1->SetClientData(this->project->GetLib()); newEvent1->SetId(0); wxPostEvent(this->GetParent(), *newEvent1); } @@ -280,8 +279,7 @@ void wxCDMProjectDescriptionPanel::OnBtnManageApplications(wxCommandEvent& event if(this->project->GetAppli() != NULL) { - int CMId = this->project->GetAppli()->GetId(); - newEvent1->SetInt(CMId); + newEvent1->SetClientData(this->project->GetAppli()); newEvent1->SetId(0); wxPostEvent(this->GetParent(), *newEvent1); } @@ -299,8 +297,7 @@ void wxCDMProjectDescriptionPanel::OnBtnEditCMakeLists(wxCommandEvent& event) if(this->project->GetCMakeLists() != NULL) { - int CMId = this->project->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->project->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -359,8 +356,7 @@ void wxCDMProjectDescriptionPanel::OnCMakeMouseEnter(wxMouseEvent& event) if(this->project->GetCMakeLists() != NULL) { - int CMId = this->project->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->project->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -373,8 +369,7 @@ void wxCDMProjectDescriptionPanel::OnCMakeMouseExit(wxMouseEvent& event) if(this->project->GetCMakeLists() != NULL) { - int CMId = this->project->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->project->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -387,8 +382,7 @@ void wxCDMProjectDescriptionPanel::OnAppliMouseEnter(wxMouseEvent& event) std::cout << "entra appli " << this->project->GetAppli()->GetCMakeLists(); if(this->project->GetAppli() != NULL) { - int AppId = this->project->GetAppli()->GetId(); - newEvent->SetInt(AppId); + newEvent->SetClientData(this->project->GetAppli()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -401,8 +395,7 @@ void wxCDMProjectDescriptionPanel::OnAppliMouseExit(wxMouseEvent& event) if(this->project->GetAppli() != NULL) { - int AppId = this->project->GetAppli()->GetId(); - newEvent->SetInt(AppId); + newEvent->SetClientData(this->project->GetAppli()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -415,8 +408,7 @@ void wxCDMProjectDescriptionPanel::OnLibMouseEnter(wxMouseEvent& event) if(this->project->GetLib() != NULL) { - int LbId = this->project->GetLib()->GetId(); - newEvent->SetInt(LbId); + newEvent->SetClientData(this->project->GetLib()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -429,8 +421,7 @@ void wxCDMProjectDescriptionPanel::OnLibMouseExit(wxMouseEvent& event) if(this->project->GetLib() != NULL) { - int LbId = this->project->GetLib()->GetId(); - newEvent->SetInt(LbId); + newEvent->SetClientData(this->project->GetLib()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }