wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_DISPLAY_CHANGED);
newEvent->SetId(1);
newEvent->SetString(wxT("manage_packages"));
- newEvent->SetInt(this->project->GetId());
+ newEvent->SetClientData(this->project);
wxPostEvent(this->GetParent(), *newEvent);
event.Skip();
}
newEvent->SetString(wxT("manage_libraries"));
wxPostEvent(this->GetParent(), *newEvent);
- wxCommandEvent* newEvent1 = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent1 = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(this->project->GetLib() != NULL)
{
- int CMId = this->project->GetLib()->GetId();
- newEvent1->SetInt(CMId);
+ newEvent1->SetClientData(this->project->GetLib());
newEvent1->SetId(0);
wxPostEvent(this->GetParent(), *newEvent1);
}
newEvent->SetString(wxT("manage_applications"));
wxPostEvent(this->GetParent(), *newEvent);
- wxCommandEvent* newEvent1 = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent1 = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(this->project->GetAppli() != NULL)
{
- int CMId = this->project->GetAppli()->GetId();
- newEvent1->SetInt(CMId);
+ newEvent1->SetClientData(this->project->GetAppli());
newEvent1->SetId(0);
wxPostEvent(this->GetParent(), *newEvent1);
}
if(!this->project->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->project->GetCMakeLists() != NULL)
{
- int CMId = this->project->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(this->project->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMProjectDescriptionPanel::OnCMakeMouseEnter(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
if(this->project->GetCMakeLists() != NULL)
{
- int CMId = this->project->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(this->project->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMProjectDescriptionPanel::OnCMakeMouseExit(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(this->project->GetCMakeLists() != NULL)
{
- int CMId = this->project->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(this->project->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMProjectDescriptionPanel::OnAppliMouseEnter(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
std::cout << "entra appli " << this->project->GetAppli()->GetCMakeLists();
if(this->project->GetAppli() != NULL)
{
- int AppId = this->project->GetAppli()->GetId();
- newEvent->SetInt(AppId);
+ newEvent->SetClientData(this->project->GetAppli());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMProjectDescriptionPanel::OnAppliMouseExit(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(this->project->GetAppli() != NULL)
{
- int AppId = this->project->GetAppli()->GetId();
- newEvent->SetInt(AppId);
+ newEvent->SetClientData(this->project->GetAppli());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMProjectDescriptionPanel::OnLibMouseEnter(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
if(this->project->GetLib() != NULL)
{
- int LbId = this->project->GetLib()->GetId();
- newEvent->SetInt(LbId);
+ newEvent->SetClientData(this->project->GetLib());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMProjectDescriptionPanel::OnLibMouseExit(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(this->project->GetLib() != NULL)
{
- int LbId = this->project->GetLib()->GetId();
- newEvent->SetInt(LbId);
+ newEvent->SetClientData(this->project->GetLib());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}