X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMLibHelpDialog.cpp;h=e74d006c4228c982e398ab919e25f22d73e30dec;hb=a26a54f4555934ed0f3720bea6bb95913d7f02d6;hp=c6601ffcfb838c548f9bc5a60d2a610b7b94019f;hpb=b8ae511b1e62c48bf4a418a13812d3ada5063550;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp index c6601ff..e74d006 100644 --- a/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMLibHelpDialog.cpp @@ -92,12 +92,13 @@ void wxCDMLibHelpDialog::CreateControls() "Libraries contain the core classes of your project, these libraries should be used by black boxes and applications " "from this project to perform the main functions of the project. Functions implementing important tasks such as image " "processing algorithms or point cloud processing algorithms should be developed in the libraries of the project, while " - "the black boxes and applications serve as interfaces between the user or other platforms and the libraries functions.\n" + "the black boxes and applications serve as interfaces between the user or other platforms and the libraries' functions.\n" "\n" "In the library manager you can view a list of the available libraries in the current project, as well as create " - "new libraries. Remember that any library you make must be included in the lib's folder CMakeLists file. You can do that " - "by clicking on the \"Edit Lib's CMakeLists File\" button bellow or in the Library Manager the \"Edit CMakeLists file\" " - "button and include the desired libraries at the end of the file."), + "new libraries. Remember that any library you create must be included in the lib's folder CMakeLists file by using the " + "\"ADD_SUBDIRECTORY([libraryName])\" command. You can open this file by clicking on the \"Edit Lib's CMakeLists File\" " + "button below or in the Library Manager the \"Edit CMakeLists file\" button and include the desired libraries at the end " + "of the file."), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT @@ -128,12 +129,11 @@ void wxCDMLibHelpDialog::OnEditCMake(wxCommandEvent& event) if(!this->lib->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->lib->GetCMakeLists() != NULL) { - int CMId = this->lib->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->lib->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -142,12 +142,11 @@ void wxCDMLibHelpDialog::OnEditCMake(wxCommandEvent& event) void wxCDMLibHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event) { - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED); if(this->lib->GetCMakeLists() != NULL) { - int CMId = this->lib->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->lib->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -156,12 +155,11 @@ void wxCDMLibHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event) void wxCDMLibHelpDialog::OnEditCMakeMouseExit(wxMouseEvent& event) { - wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED); + wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED); if(this->lib->GetCMakeLists() != NULL) { - int CMId = this->lib->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->lib->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }