+
+void wxCDMMainFrame::OnElementSelected(wxCommandEvent& event)
+{
+ //std::cout << "element " << event.GetInt() << std::endl;
+ this->tree_Projects->EnsureVisible(event.GetInt());
+ this->tree_Projects->SetItemBold(event.GetInt(), true);
+ this->tree_Projects->SetItemTextColour(event.GetInt(), wxColour(0,0,255));
+ this->tree_Projects->UpdateWindowUI(wxUPDATE_UI_RECURSE);
+ auiManager.Update();
+}
+
+void wxCDMMainFrame::OnElementDeselected(wxCommandEvent& event)
+{
+ this->tree_Projects->SetItemBold(event.GetInt(), false);
+ this->tree_Projects->SetItemTextColour(event.GetInt(), wxColour(0,0,0));
+ this->tree_Projects->UpdateWindowUI(wxUPDATE_UI_RECURSE);
+ auiManager.Update();
+}
+
+void wxCDMMainFrame::OnMenuToggleHelp(wxCommandEvent& event)
+{
+ this->help = !this->help;
+ this->menu_Help->Check(ID_MENU_TOGGLE_HELP, this->help);
+}
+
+void wxCDMMainFrame::OnDisableHelp(wxCommandEvent& event)
+{
+ if (event.GetInt())
+ this->help = false;
+ else
+ this->help = true;
+
+ this->menu_Help->Check(ID_MENU_TOGGLE_HELP, this->help);
+}