"In the package manager you can view a list of the available packages in the current project, as well as create "
"new packages. Remember that any package you make must be included in the CMakeLists file. You can do that by "
"clicking on the \"Edit CMakeLists File\" button in the package manager section and include the desired packages "
- "at the end of the file. You should also include in this file those libraries your black boxes located in this "
- "package use."),
+ "at the end of the file using \"ADD_SUBDIRECTORY([packageName])\"."),
wxDefaultPosition,
wxDefaultSize,
wxALIGN_LEFT
void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseEnter(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
if(packageManager->GetProject()->GetCMakeLists() != NULL)
{
- int CMId = packageManager->GetProject()->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(packageManager->GetProject()->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMPackageManagerHelpDialog::OnEditCMakeMouseExit(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(packageManager->GetProject()->GetCMakeLists() != NULL)
{
- int CMId = packageManager->GetProject()->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(packageManager->GetProject()->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}