]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMPackageManagerHelpDialog.cpp
Fixes:
[crea.git] / lib / creaDevManagerLib / wxCDMPackageManagerHelpDialog.cpp
index a42f039c58df124487c70108e9f2102c478dc97c..24c4733ac0aee570b7359de1f972130b3e5cfb38 100644 (file)
@@ -96,8 +96,7 @@ void wxCDMPackageManagerHelpDialog::CreateControls()
           "In the package manager you can view a list of the available packages in the current project, as well as create "
           "new packages. Remember that any package you make must be included in the CMakeLists file. You can do that by "
           "clicking on the \"Edit CMakeLists File\" button in the package manager section and include the desired packages "
-          "at the end of the file. You should also include in this file those libraries your black boxes located in this "
-          "package use."),
+          "at the end of the file using \"ADD_SUBDIRECTORY([packageName])\"."),
           wxDefaultPosition,
           wxDefaultSize,
           wxALIGN_LEFT
@@ -161,8 +160,7 @@ void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event)
 
   if(packageManager->GetProject()->GetCMakeLists() != NULL)
     {
-      int CMId = packageManager->GetProject()->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(packageManager->GetProject()->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }
@@ -175,8 +173,7 @@ void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseExit(wxMouseEvent& event)
 
   if(packageManager->GetProject()->GetCMakeLists() != NULL)
     {
-      int CMId = packageManager->GetProject()->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(packageManager->GetProject()->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }