]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp
Fixes:
[crea.git] / lib / creaDevManagerLib / wxCDMAppliHelpDialog.cpp
index a36338166f19b53e0e667ae0c1b736c8a7c3ab90..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,
@@ -129,12 +130,11 @@ void wxCDMAppliHelpDialog::OnEditCMake(wxCommandEvent& event)
   if(!this->appli->OpenCMakeListsFile(result))
     wxMessageBox(crea::std2wx(*result),_T("Open CMakeLists File - Error!"),wxOK | wxICON_ERROR);
 
-  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
 
   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);
     }
@@ -143,12 +143,11 @@ void wxCDMAppliHelpDialog::OnEditCMake(wxCommandEvent& event)
 
 void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 {
-  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
 
   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);
     }
@@ -157,12 +156,11 @@ void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
 void wxCDMAppliHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 {
-  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+  wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
 
   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);
     }