void DiffSideBySidePanel::OnCopyRightToLeft(wxRibbonButtonBarEvent& event) { bool moveToNext = m_config.GetFlags() & DiffConfig::kCopyRightToLeftAndMove; DoCopyCurrentSequence(m_stcRight, m_stcLeft); if(moveToNext && CanNextDiff()) { wxRibbonButtonBarEvent dummy; OnNextDiffSequence(dummy); } }
void DiffSideBySidePanel::OnCopyLeftToRight(wxCommandEvent& event) { bool moveToNext = /*m_config.GetFlags() & DiffConfig::kCopyLeftToRightAndMove*/ true; DoCopyCurrentSequence(m_stcLeft, m_stcRight); if(moveToNext && CanNextDiff()) { wxCommandEvent dummy; OnNextDiffSequence(dummy); } }