//------------------------------------ // Bookmarks //------------------------------------ void BookmarkHandler::ProcessCommandEvent(wxWindow *owner, wxCommandEvent &event) { LEditor *editor = dynamic_cast<LEditor*>(owner); if ( !editor ) { return; } if (event.GetId() == XRCID("toggle_bookmark")) { editor->ToggleMarker(); } else if (event.GetId() == XRCID("next_bookmark")) { editor->FindNextMarker(); } else if (event.GetId() == XRCID("previous_bookmark")) { editor->FindPrevMarker(); } else if (event.GetId() == XRCID("removeall_current_bookmarks")) { editor->DelAllMarkers(0); // 0 == only the currently-active type } else if (event.GetId() == XRCID("removeall_bookmarks")) { editor->DelAllMarkers(-1); // -1 == all types } }