X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMLibraryHelpDialog.cpp;h=e027d60d9eecd5685a1e149e4f3278d0d3cb6479;hb=5a17d994576296f2a5a85f3a01ad5631786a0c56;hp=87e9974d07cec7392b115cb364b4d7fa3478eb52;hpb=e75a80c4a8a5d67aeb1e941f0c980a11c09cc125;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp index 87e9974..e027d60 100644 --- a/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp @@ -103,8 +103,12 @@ void wxCDMLibraryHelpDialog::CreateControls() "functionalities of your project inside the created files.\n" "If you need to separate classes in folders you can do it by creating a folder with the \"Create Folder\" button.\n" "Then, in order to include your libraries in the project correctly you must include them in the lib's folder " - "\"CMakeLists.txt\" file. Also, if you create additional folders in your library you should include them in the library's " - "\"CMakeLists.txt\" file.\n" + "\"CMakeLists.txt\" file by using the \"ADD_SUBDIRECTORY([libraryName])\". Also, if you use third party libraries in your " + "library you must include them in the library's \"CMakeLists.txt\" file by uncommenting them in the " + "\"SET ( ${LIBRARY_NAME}_LINK_LIBRARIES\" command; if you use custom libraries in your library you must also include them " + "in the library's \"CMakeLists.txt\" file by including them in the \"SET ( ${LIBRARY_NAME}_LINK_LIBRARIES\" command. Or, " + "if you create additional folders in your library you must include them in the library's \"CMakeLists.txt\" file by using " + "the \"ADD_SUBDIRECTORY([folderName])\" command.\n" "\n" "You can easily edit the CMakeLists files previously mentioned by clicking on the following buttons."), wxDefaultPosition, @@ -150,8 +154,7 @@ void wxCDMLibraryHelpDialog::OnCMakeLists(wxCommandEvent& event) if(this->library->GetCMakeLists() != NULL) { - int CMId = this->library->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->library->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -172,8 +175,7 @@ void wxCDMLibraryHelpDialog::OnCMakeLists(wxCommandEvent& event) if(((modelCDMLib*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -193,8 +195,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(this->library->GetCMakeLists() != NULL) { - int CMId = this->library->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->library->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -212,8 +213,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(((modelCDMLib*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -230,8 +230,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(this->library->GetCMakeLists() != NULL) { - int CMId = this->library->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->library->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -249,8 +248,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(((modelCDMLib*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }