]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp
Fixes:
[crea.git] / lib / creaDevManagerLib / wxCDMAppliHelpDialog.cpp
index 446c65159651c615c91b01b6555b496043acaee1..860abfdd87d533b1c5ecf1a3619aa2cd289a475d 100644 (file)
@@ -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,
@@ -133,8 +134,7 @@ void wxCDMAppliHelpDialog::OnEditCMake(wxCommandEvent& event)
 
   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);
     }
@@ -147,8 +147,7 @@ void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
   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);
     }
@@ -161,8 +160,7 @@ void wxCDMAppliHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 
   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);
     }