X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMAppliHelpDialog.cpp;h=860abfdd87d533b1c5ecf1a3619aa2cd289a475d;hb=de76ec742d17da9747b691dd168a8d832a64168e;hp=a36338166f19b53e0e667ae0c1b736c8a7c3ab90;hpb=b8ae511b1e62c48bf4a418a13812d3ada5063550;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp index a363381..860abfd 100644 --- a/lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp @@ -94,9 +94,10 @@ void wxCDMAppliHelpDialog::CreateControls() "applications are useful when showing the projects' \"out of the box\" functionalities.\n" "\n" "In the application manager you can view a list of the available applications in the current project, as well as create " - "new applications. Remember that any application you make must be included in the appli's folder CMakeLists file. You can do that " - "by clicking on the \"Edit Appli's CMakeLists File\" button bellow or in the Application Manager the \"Edit CMakeLists file\" " - "button and include the desired applications at the end of the file.\n" + "new applications. Remember that any application you make must be included in the appli's folder CMakeLists file by using the " + "\"ADD_SUBDIRECTORY([applicationName])\" command. You can do that by clicking on the \"Edit Appli's CMakeLists File\" button " + "below or in the Application Manager the \"Edit CMakeLists file\" button and include the desired applications at the end of " + "the file.\n" "For a better understanding of how to use the applications please check the \"myFierceAppli\" application (which is shipped by " "default in every new project) and take a look at how it's included in the project."), wxDefaultPosition, @@ -129,12 +130,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 +143,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 +156,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); }