]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMLibraryHelpDialog.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMLibraryHelpDialog.cpp
index 87e9974d07cec7392b115cb364b4d7fa3478eb52..e027d60d9eecd5685a1e149e4f3278d0d3cb6479 100644 (file)
@@ -103,8 +103,12 @@ void wxCDMLibraryHelpDialog::CreateControls()
           "functionalities of your project inside the created files.\n"
           "If you need to separate classes in folders you can do it by creating a folder with the \"Create Folder\" button.\n"
           "Then, in order to include your libraries in the project correctly you must include them in the lib's folder "
           "functionalities of your project inside the created files.\n"
           "If you need to separate classes in folders you can do it by creating a folder with the \"Create Folder\" button.\n"
           "Then, in order to include your libraries in the project correctly you must include them in the lib's folder "
-          "\"CMakeLists.txt\" file. Also, if you create additional folders in your library you should include them in the library's "
-          "\"CMakeLists.txt\" file.\n"
+          "\"CMakeLists.txt\" file by using the \"ADD_SUBDIRECTORY([libraryName])\". Also, if you use third party libraries in your "
+          "library you must include them in the library's \"CMakeLists.txt\" file by uncommenting them in the "
+          "\"SET ( ${LIBRARY_NAME}_LINK_LIBRARIES\" command; if you use custom libraries in your library you must also include them "
+          "in the library's \"CMakeLists.txt\" file by including them in the \"SET ( ${LIBRARY_NAME}_LINK_LIBRARIES\" command. Or, "
+          "if you create additional folders in your library you must include them in the library's \"CMakeLists.txt\" file by using "
+          "the \"ADD_SUBDIRECTORY([folderName])\" command.\n"
           "\n"
           "You can easily edit the CMakeLists files previously mentioned by clicking on the following buttons."),
           wxDefaultPosition,
           "\n"
           "You can easily edit the CMakeLists files previously mentioned by clicking on the following buttons."),
           wxDefaultPosition,
@@ -150,8 +154,7 @@ void wxCDMLibraryHelpDialog::OnCMakeLists(wxCommandEvent& event)
 
       if(this->library->GetCMakeLists() != NULL)
         {
 
       if(this->library->GetCMakeLists() != NULL)
         {
-          int CMId = this->library->GetCMakeLists()->GetId();
-          newEvent->SetInt(CMId);
+          newEvent->SetClientData(this->library->GetCMakeLists());
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
@@ -172,8 +175,7 @@ void wxCDMLibraryHelpDialog::OnCMakeLists(wxCommandEvent& event)
 
           if(((modelCDMLib*)node)->GetCMakeLists() != NULL)
             {
 
           if(((modelCDMLib*)node)->GetCMakeLists() != NULL)
             {
-              int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId();
-              newEvent->SetInt(CMId);
+              newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists());
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }
@@ -193,8 +195,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
       if(this->library->GetCMakeLists() != NULL)
         {
 
       if(this->library->GetCMakeLists() != NULL)
         {
-          int CMId = this->library->GetCMakeLists()->GetId();
-          newEvent->SetInt(CMId);
+          newEvent->SetClientData(this->library->GetCMakeLists());
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
           newEvent->SetId(0);
           wxPostEvent(this->GetParent(), *newEvent);
         }
@@ -212,8 +213,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
           if(((modelCDMLib*)node)->GetCMakeLists() != NULL)
             {
 
           if(((modelCDMLib*)node)->GetCMakeLists() != NULL)
             {
-              int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId();
-              newEvent->SetInt(CMId);
+              newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists());
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }
               newEvent->SetId(0);
               wxPostEvent(this->GetParent(), *newEvent);
             }
@@ -230,8 +230,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 
         if(this->library->GetCMakeLists() != NULL)
           {
 
         if(this->library->GetCMakeLists() != NULL)
           {
-            int CMId = this->library->GetCMakeLists()->GetId();
-            newEvent->SetInt(CMId);
+            newEvent->SetClientData(this->library->GetCMakeLists());
             newEvent->SetId(0);
             wxPostEvent(this->GetParent(), *newEvent);
           }
             newEvent->SetId(0);
             wxPostEvent(this->GetParent(), *newEvent);
           }
@@ -249,8 +248,7 @@ void wxCDMLibraryHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 
             if(((modelCDMLib*)node)->GetCMakeLists() != NULL)
               {
 
             if(((modelCDMLib*)node)->GetCMakeLists() != NULL)
               {
-                int CMId = ((modelCDMLib*)node)->GetCMakeLists()->GetId();
-                newEvent->SetInt(CMId);
+                newEvent->SetClientData(((modelCDMLib*)node)->GetCMakeLists());
                 newEvent->SetId(0);
                 wxPostEvent(this->GetParent(), *newEvent);
               }
                 newEvent->SetId(0);
                 wxPostEvent(this->GetParent(), *newEvent);
               }