X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMPackageManagerHelpDialog.cpp;h=24c4733ac0aee570b7359de1f972130b3e5cfb38;hb=e622abafafec5f3887413020502eebf8631cd853;hp=15d4aabeba547abdc229230e659c107bd38d719d;hpb=9db5150d933dff7a6b833c54847d1c35ac38a9c6;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMPackageManagerHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMPackageManagerHelpDialog.cpp index 15d4aab..24c4733 100644 --- a/lib/creaDevManagerLib/wxCDMPackageManagerHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMPackageManagerHelpDialog.cpp @@ -96,8 +96,7 @@ void wxCDMPackageManagerHelpDialog::CreateControls() "In the package manager you can view a list of the available packages in the current project, as well as create " "new packages. Remember that any package you make must be included in the CMakeLists file. You can do that by " "clicking on the \"Edit CMakeLists File\" button in the package manager section and include the desired packages " - "at the end of the file. You should also include in this file those libraries your black boxes located in this " - "package use."), + "at the end of the file using \"ADD_SUBDIRECTORY([packageName])\"."), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT @@ -157,12 +156,11 @@ void wxCDMPackageManagerHelpDialog::OnEditCMake(wxCommandEvent& event) void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event) { - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED); if(packageManager->GetProject()->GetCMakeLists() != NULL) { - int CMId = packageManager->GetProject()->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(packageManager->GetProject()->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -171,12 +169,11 @@ void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event) void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseExit(wxMouseEvent& event) { - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED); if(packageManager->GetProject()->GetCMakeLists() != NULL) { - int CMId = packageManager->GetProject()->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(packageManager->GetProject()->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }