+ newEvent->SetClientData(this->application->GetCMakeLists());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMApplicationDescriptionPanel::OnBtnOpenMain(wxCommandEvent& event)
+{
+ if (this->application->GetMainFile() != NULL)
+ {
+ if (CDMUtilities::openTextEditor(this->application->GetMainFile()->GetPath()))
+ {
+ wxMessageBox(crea::std2wx("The main file couldn't be opened."),_T("Open Main File - Error!"),wxOK | wxICON_ERROR);
+ }
+
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+
+ newEvent->SetClientData(this->application->GetMainFile());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+
+ event.Skip();
+ }
+ else
+ {
+ wxMessageBox(crea::std2wx("There is no main file or it couldn't be detected."),_T("Open Main File - Error!"),wxOK | wxICON_ERROR);
+ }
+}
+
+void wxCDMApplicationDescriptionPanel::OnMainMouseEnter(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
+
+ if(this->application->GetMainFile() != NULL)
+ {
+ newEvent->SetClientData(this->application->GetMainFile());
+ newEvent->SetId(0);
+ wxPostEvent(this->GetParent(), *newEvent);
+ }
+ event.Skip();
+}
+
+void wxCDMApplicationDescriptionPanel::OnMainMouseExit(wxMouseEvent& event)
+{
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+
+ if(this->application->GetMainFile() != NULL)
+ {
+ newEvent->SetClientData(this->application->GetMainFile());