+ // ctor and dtor
+ MyFrame(const wxString& title, int x, int y, int w, int h);
+ virtual ~MyFrame();
+
+ // menu callbacks
+ void OnQuit(wxCommandEvent& event);
+ void OnAbout(wxCommandEvent& event);
+
+ void OnTogButtons(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_HAS_BUTTONS); }
+ void OnTogTwist(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_TWIST_BUTTONS); }
+ void OnTogLines(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_NO_LINES); }
+ void OnTogEdit(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_EDIT_LABELS); }
+ void OnTogHideRoot(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_HIDE_ROOT); }
+ void OnTogRootLines(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_LINES_AT_ROOT); }
+ void OnTogBorder(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_ROW_LINES); }
+ void OnTogFullHighlight(wxCommandEvent& event)
+ { TogStyle(event.GetId(), wxTR_FULL_ROW_HIGHLIGHT); }
+
+ void OnResetStyle(wxCommandEvent& WXUNUSED(event))
+ { CreateTreeWithDefStyle(); }
+
+ void OnSetFgColour(wxCommandEvent& event);
+ void OnSetBgColour(wxCommandEvent& event);
+
+ void OnDump(wxCommandEvent& event);
+#ifndef NO_MULTIPLE_SELECTION
+ void OnDumpSelected(wxCommandEvent& event);
+ void OnSelect(wxCommandEvent& event);
+ void OnUnselect(wxCommandEvent& event);
+ void OnToggleSel(wxCommandEvent& event);
+#endif // NO_MULTIPLE_SELECTION
+ void OnSelectRoot(wxCommandEvent& event);
+ void OnDelete(wxCommandEvent& event);
+ void OnDeleteChildren(wxCommandEvent& event);
+ void OnDeleteAll(wxCommandEvent& event);
+
+ void OnRecreate(wxCommandEvent& event);
+ void OnToggleButtons(wxCommandEvent& event);
+ void OnToggleImages(wxCommandEvent& event);
+ void OnSetImageSize(wxCommandEvent& event);
+ void OnCollapseAndReset(wxCommandEvent& event);