X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMApplicationHelpDialog.cpp;h=df47d8a59f0b213cc2df95269ea228d99fdc7281;hb=f5cd0d2ab363ef8d6fd89d547ace70ca31d2bf3e;hp=8601b02c5b1348bdf343ad53e5532e815feb5af1;hpb=e75a80c4a8a5d67aeb1e941f0c980a11c09cc125;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.cpp b/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.cpp index 8601b02..df47d8a 100644 --- a/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.cpp +++ b/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.cpp @@ -103,8 +103,12 @@ void wxCDMApplicationHelpDialog::CreateControls() "If you need to create separate classes in the application folder, or inside an specific folders you can do it by " "creating a new class with the \"Create Class\" button or by creating a folder with the \"Create Folder\" button.\n" "Then, in order to include your applications in the project correctly you must include them in the appli's folder " - "\"CMakeLists.txt\" file. Also, if you create additional folders in your library you should include them in the application's " - "\"CMakeLists.txt\" file.\n" + "\"CMakeLists.txt\" file using the command \"ADD_SUBDIRECTORY([applicationName])\". Also, if you create additional " + "folders in your application you should include them in the application's \"CMakeLists.txt\" file using the command " + "\"ADD_SUBDIRECTORY([folderName])\". If you use a third party library in your application you must include it by " + "uncommenting its inclusion in the application's \"CMakeLists.txt\" file. If you use a custom library in your " + "application you must include it by including the library path inside the \"INCLUDE_DIRECTORIES\" command, and its " + "name inside the \"SET ( ${EXE_NAME}_LINK_LIBRARIES...\"command.\n" "\n" "You can easily edit the CMakeLists files previously mentioned by clicking on the following buttons."), wxDefaultPosition, @@ -150,8 +154,7 @@ void wxCDMApplicationHelpDialog::OnCMakeLists(wxCommandEvent& event) if(this->application->GetCMakeLists() != NULL) { - int CMId = this->application->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->application->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -172,8 +175,7 @@ void wxCDMApplicationHelpDialog::OnCMakeLists(wxCommandEvent& event) if(((modelCDMAppli*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMAppli*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMAppli*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -193,8 +195,7 @@ void wxCDMApplicationHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(this->application->GetCMakeLists() != NULL) { - int CMId = this->application->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->application->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -212,8 +213,7 @@ void wxCDMApplicationHelpDialog::OnCMakeListsEnter(wxMouseEvent& event) if(((modelCDMAppli*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMAppli*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMAppli*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -230,8 +230,7 @@ void wxCDMApplicationHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(this->application->GetCMakeLists() != NULL) { - int CMId = this->application->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(this->application->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); } @@ -249,8 +248,7 @@ void wxCDMApplicationHelpDialog::OnCMakeListsExit(wxMouseEvent& event) if(((modelCDMAppli*)node)->GetCMakeLists() != NULL) { - int CMId = ((modelCDMAppli*)node)->GetCMakeLists()->GetId(); - newEvent->SetInt(CMId); + newEvent->SetClientData(((modelCDMAppli*)node)->GetCMakeLists()); newEvent->SetId(0); wxPostEvent(this->GetParent(), *newEvent); }