void CodeLiteDiff::OnDiff(wxCommandEvent& event)
{
    NewFileComparison dlg(EventNotifier::Get()->TopFrame(), m_leftFile);
    if(dlg.ShowModal() == wxID_OK) {
        wxString secondFile = dlg.GetTextCtrlFileName()->GetValue();
        DiffSideBySidePanel* diff = new DiffSideBySidePanel(m_mgr->GetEditorPaneNotebook());
        diff->DiffNew(m_leftFile, secondFile);
        m_mgr->AddPage(diff, _("Diff"), wxEmptyString, wxNullBitmap, true);
    }
}
Beispiel #2
0
void CodeLiteDiff::OnNewDiff(wxCommandEvent& e)
{
    DiffSideBySidePanel* diff = new DiffSideBySidePanel(m_mgr->GetEditorPaneNotebook());
    diff->DiffNew(); // Indicate that we want a clean diff, not from a source control
    m_mgr->AddPage(diff, _("Diff"), wxNullBitmap, true);
}