-
- void OnTogButtons(wxCommandEvent& event) { TogStyle(wxTR_HAS_BUTTONS); }
- void OnTogTwist(wxCommandEvent& event) { TogStyle(wxTR_TWIST_BUTTONS); }
- void OnTogLines(wxCommandEvent& event) { TogStyle(wxTR_NO_LINES); }
- void OnTogEdit(wxCommandEvent& event) { TogStyle(wxTR_EDIT_LABELS); }
- void OnTogHideRoot(wxCommandEvent& event) { TogStyle(wxTR_HIDE_ROOT); }
- void OnTogRootLines(wxCommandEvent& event) { TogStyle(wxTR_LINES_AT_ROOT); }
- void OnTogBorder(wxCommandEvent& event) { TogStyle(wxTR_ROW_LINES); }
- void OnTogFullHighlight(wxCommandEvent& event) { TogStyle(wxTR_FULL_ROW_HIGHLIGHT); }
+ void OnClearLog(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(); }