+ std::string* result;
+ if(!this->project->OpenCMakeListsFile(result))
+ wxMessageBox(crea::std2wx(*result),_T("Open CMakeLists File - Error!"),wxOK | wxICON_ERROR);
+
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+
+ if(this->project->GetCMakeLists() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetCMakeLists());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+}
+
+void
+wxCDMProjectDescriptionPanel::OnBtnSetBuildPath(wxCommandEvent& event)
+{
+ wxDirDialog* dialog = new wxDirDialog(this, wxT("Choose the new build location for the project"));
+ if(dialog->ShowModal())
+ {
+ std::string* result;
+ if(!this->project->SetBuildPath(crea::wx2std(dialog->GetPath()), result))
+ wxMessageBox(crea::std2wx(*result),_T("Open CMakeLists File - Error!"),wxOK | wxICON_ERROR);
+ }
+ this->buildPathtc->SetLabel(crea::std2wx(this->project->GetBuildPath()));
+}
+
+void
+wxCDMProjectDescriptionPanel::OnBtnOpenFolder(wxCommandEvent& event)
+{
+ std::string* result;
+ if(!this->project->OpenInFileExplorer(result))
+ wxMessageBox(crea::std2wx(*result),_T("Open Folder - Error!"),wxOK | wxICON_ERROR);
+}
+
+void wxCDMProjectDescriptionPanel::OnBtnSetVersion(wxCommandEvent& event)
+{
+ //get version
+ wxString libraryName = wxGetTextFromUser(
+ wxT("Enter the new version name"),
+ wxT("Change Project Version - creaDevManager"),
+ crea::std2wx(this->project->GetVersion())
+ );
+ //check name
+ std::vector<std::string> parts;
+ CDMUtilities::splitter::split(parts, crea::wx2std(libraryName), " .", CDMUtilities::splitter::no_empties);
+ if(parts.size() == 3)
+ {
+ std::string* result;
+ if(!this->project->SetVersion(crea::wx2std(libraryName), result))
+ wxMessageBox(crea::std2wx(*result),_T("Open File - Error!"),wxOK | wxICON_ERROR);
+ }
+ else
+ {
+ wxMessageBox(crea::std2wx("The version format is incorrect, please follow the following format:\nX.Y.Z\nX: Major Version\nY: Minor Version\nZ: Build Version"),_T("Set Project Version - Error!"),wxOK | wxICON_ERROR);
+ }
+ this->versiontc->SetLabel(crea::std2wx(this->project->GetVersion()));
+ this->versionDatetc->SetLabel(crea::std2wx(this->project->GetVersionDate()));
+
+}
+
+void wxCDMProjectDescriptionPanel::OnCMakeMouseEnter(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
+
+ if(this->project->GetCMakeLists() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetCMakeLists());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMProjectDescriptionPanel::OnCMakeMouseExit(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+
+ if(this->project->GetCMakeLists() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetCMakeLists());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMProjectDescriptionPanel::OnAppliMouseEnter(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
+ std::cout << "entra appli " << this->project->GetAppli()->GetCMakeLists();
+ if(this->project->GetAppli() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetAppli());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMProjectDescriptionPanel::OnAppliMouseExit(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+
+ if(this->project->GetAppli() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetAppli());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMProjectDescriptionPanel::OnLibMouseEnter(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
+
+ if(this->project->GetLib() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetLib());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMProjectDescriptionPanel::OnLibMouseExit(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+
+ if(this->project->GetLib() != NULL)
+ {
+ newEvent->SetClientData(this->project->GetLib());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }