]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMPackageHelpDialog.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMPackageHelpDialog.cpp
index acd04fe15170c08cd3fc67f7a9a5aeba55a216c2..83d7e1d4e428871f95e037491a3e9af2034d92b8 100644 (file)
@@ -100,8 +100,12 @@ void wxCDMPackageHelpDialog::CreateControls()
           "If you want to check the files in the file explorer click the \"Open Package Folder\" "
           "button.\n"
           "\n"
-          "Don't forget to include the libraries your black boxes use in the Package directory CMakeLists.txt file\n"
-          "Also, make sure you include this package in the Project directory CMakeLists.txt file\n"
+          "Don't forget to include the libraries your black boxes use in the Package directory CMakeLists.txt file by "
+          "uncommenting the \"SET\" commands for third party libraries or by including the library name inside the "
+          "\"SET(${BBTK_PACKAGE_NAME}_LIBS\"command and its path inside the \"SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS\" "
+          "command for custom libraries.\n"
+          "Also, make sure you include this package in the Project directory's CMakeLists.txt file\n using the "
+          "ADD_SUBDIRECTORY([packageName]) command.\n"
           "You can open these files with the following buttons."),
           wxDefaultPosition,
           wxDefaultSize,
@@ -141,8 +145,7 @@ void wxCDMPackageHelpDialog::OnCMakeLists(wxCommandEvent& event)
 
       if(this->package->GetCMakeLists() != NULL)
         {
-          int CMId = this->package->GetCMakeLists()->GetId();
-          newEvent->SetInt(CMId);
+          newEvent->SetClientData(this->package->GetCMakeLists());
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
@@ -163,8 +166,7 @@ void wxCDMPackageHelpDialog::OnCMakeLists(wxCommandEvent& event)
 
           if(((modelCDMProject*)node)->GetCMakeLists() != NULL)
             {
-              int CMId = ((modelCDMProject*)node)->GetCMakeLists()->GetId();
-              newEvent->SetInt(CMId);
+              newEvent->SetClientData(((modelCDMProject*)node)->GetCMakeLists());
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }
@@ -184,8 +186,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
       if(this->package->GetCMakeLists() != NULL)
         {
-          int CMId = this->package->GetCMakeLists()->GetId();
-          newEvent->SetInt(CMId);
+          newEvent->SetClientData(this->package->GetCMakeLists());
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
@@ -203,8 +204,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
           if(((modelCDMProject*)node)->GetCMakeLists() != NULL)
             {
-              int CMId = ((modelCDMProject*)node)->GetCMakeLists()->GetId();
-              newEvent->SetInt(CMId);
+              newEvent->SetClientData(((modelCDMProject*)node)->GetCMakeLists());
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }
@@ -221,8 +221,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 
       if(this->package->GetCMakeLists() != NULL)
         {
-          int CMId = this->package->GetCMakeLists()->GetId();
-          newEvent->SetInt(CMId);
+          newEvent->SetClientData(this->package->GetCMakeLists());
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
@@ -240,8 +239,7 @@ void wxCDMPackageHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 
           if(((modelCDMProject*)node)->GetCMakeLists() != NULL)
             {
-              int CMId = ((modelCDMProject*)node)->GetCMakeLists()->GetId();
-              newEvent->SetInt(CMId);
+              newEvent->SetClientData(((modelCDMProject*)node)->GetCMakeLists());
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }