]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMAppliHelpDialog.cpp
index a36338166f19b53e0e667ae0c1b736c8a7c3ab90..ec93c10bbaa8dffb0f46eec7de0dbbe845b3a69a 100644 (file)
@@ -129,12 +129,11 @@ void wxCDMAppliHelpDialog::OnEditCMake(wxCommandEvent& event)
   if(!this->appli->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->appli->GetCMakeLists() != NULL)
     {
-      int CMId = this->appli->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(this->appli->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }
@@ -143,12 +142,11 @@ void wxCDMAppliHelpDialog::OnEditCMake(wxCommandEvent& event)
 
 void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 {
-  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
 
   if(this->appli->GetCMakeLists() != NULL)
     {
-      int CMId = this->appli->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(this->appli->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }
@@ -157,12 +155,11 @@ void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
 void wxCDMAppliHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 {
-  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
 
   if(this->appli->GetCMakeLists() != NULL)
     {
-      int CMId = this->appli->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(this->appli->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }