X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMPackageHelpDialog.cpp;h=83d7e1d4e428871f95e037491a3e9af2034d92b8;hb=d48034efd48301fb2048a5e51132627e4401ce3b;hp=acd04fe15170c08cd3fc67f7a9a5aeba55a216c2;hpb=e75a80c4a8a5d67aeb1e941f0c980a11c09cc125;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMPackageHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMPackageHelpDialog.cpp index acd04fe..83d7e1d 100644 --- a/lib/creaDevManagerLib/wxCDMPackageHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMPackageHelpDialog.cpp @@ -100,8 +100,12 @@ void wxCDMPackageHelpDialog::CreateControls() "If you want to check the files in the file explorer click the \"Open Package Folder\" " "button.\n" "\n" - "Don't forget to include the libraries your black boxes use in the Package directory CMakeLists.txt file\n" - "Also, make sure you include this package in the Project directory CMakeLists.txt file\n" + "Don't forget to include the libraries your black boxes use in the Package directory CMakeLists.txt file by " + "uncommenting the \"SET\" commands for third party libraries or by including the library name inside the " + "\"SET(${BBTK_PACKAGE_NAME}_LIBS\"command and its path inside the \"SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS\" " + "command for custom libraries.\n" + "Also, make sure you include this package in the Project directory's CMakeLists.txt file\n using the " + "ADD_SUBDIRECTORY([packageName]) command.\n" "You can open these files with the following buttons."), wxDefaultPosition, wxDefaultSize, @@ -141,8 +145,7 @@ void wxCDMPackageHelpDialog::OnCMakeLists(wxCommandEvent& event) if(this->package->GetCMakeLists() != NULL) { - int CMId = this->package->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->package->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -163,8 +166,7 @@ void wxCDMPackageHelpDialog::OnCMakeLists(wxCommandEvent& event) if(((modelCDMProject*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMProject*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMProject*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -184,8 +186,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(this->package->GetCMakeLists() != NULL) { - int CMId = this->package->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->package->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -203,8 +204,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(((modelCDMProject*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMProject*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMProject*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -221,8 +221,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(this->package->GetCMakeLists() != NULL) { - int CMId = this->package->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->package->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -240,8 +239,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(((modelCDMProject*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMProject*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMProject*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }