"applications are useful when showing the projects' \"out of the box\" functionalities.\n"
"\n"
"In the application manager you can view a list of the available applications in the current project, as well as create "
- "new applications. Remember that any application you make must be included in the appli's folder CMakeLists file. You can do that "
- "by clicking on the \"Edit Appli's CMakeLists File\" button bellow or in the Application Manager the \"Edit CMakeLists file\" "
- "button and include the desired applications at the end of the file.\n"
+ "new applications. Remember that any application you make must be included in the appli's folder CMakeLists file by using the "
+ "\"ADD_SUBDIRECTORY([applicationName])\" command. You can do that by clicking on the \"Edit Appli's CMakeLists File\" button "
+ "below or in the Application Manager the \"Edit CMakeLists file\" button and include the desired applications at the end of "
+ "the file.\n"
"For a better understanding of how to use the applications please check the \"myFierceAppli\" application (which is shipped by "
"default in every new project) and take a look at how it's included in the project."),
wxDefaultPosition,
if(!this->appli->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->appli->GetCMakeLists() != NULL)
{
- int CMId = this->appli->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(this->appli->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
if(this->appli->GetCMakeLists() != NULL)
{
- int CMId = this->appli->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(this->appli->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}
void wxCDMAppliHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
{
- wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED);
+ wxCommandEvent* newEvent = new wxCommandEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
if(this->appli->GetCMakeLists() != NULL)
{
- int CMId = this->appli->GetCMakeLists()->GetId();
- newEvent->SetInt(CMId);
+ newEvent->SetClientData(this->appli->GetCMakeLists());
newEvent->SetId(0);
wxPostEvent(this->GetParent(), *newEvent);
}