]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMApplicationHelpDialog.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMApplicationHelpDialog.cpp
index 8601b02c5b1348bdf343ad53e5532e815feb5af1..d4aa18d76f3c99d620d5027640eda28a04ceec09 100644 (file)
@@ -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);
             }