if (parents[i]->GetPath() == parentURL)
{
wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_DISPLAY_CHANGED);
- newEvent->SetInt(parents[i]->GetId());
+ newEvent->SetClientData(parents[i]);
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_DISPLAY_CHANGED);
newEvent->SetId(0);
- newEvent->SetInt(this->library->GetId());
+ newEvent->SetClientData(this->library);
wxPostEvent(this->GetParent(), *newEvent);
wxMessageBox(crea::std2wx("The class has been created successfully."),_T("New Class - Success"),wxOK | wxICON_INFORMATION);
}
((wxCDMMainFrame*)this->GetParent())->RefreshProject();
wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_DISPLAY_CHANGED);
- newEvent->SetInt(folderC->GetId());
+ newEvent->SetClientData(folderC);
wxPostEvent(this->GetParent(), *newEvent);
wxMessageBox(crea::std2wx("The folder was successfully created"),_T("Create Folder - Success"),wxOK | wxICON_INFORMATION);
}
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);
}
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);
}
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);
}