|
KiCad PCB EDA Suite
|
#include <dialogs/git/dialog_text_diff.h>#include <diff_merge/diff_scene.h>#include <kiplatform/ui.h>#include <widgets/ui_common.h>#include <wx/settings.h>#include <wx/stc/stc.h>Go to the source code of this file.
Functions | |
| void | FillTextDiffControl (wxStyledTextCtrl *aCtrl, const std::vector< KIGIT::TEXT_DIFF_LINE > &aLines) |
| Fill aCtrl with a line diff, added and removed lines in the diff colours, and make it read only. | |
Variables | |
| static constexpr int | STYLE_ADDED = 1 |
| static constexpr int | STYLE_REMOVED = 2 |
| void FillTextDiffControl | ( | wxStyledTextCtrl * | aCtrl, |
| const std::vector< KIGIT::TEXT_DIFF_LINE > & | aLines ) |
Fill aCtrl with a line diff, added and removed lines in the diff colours, and make it read only.
Definition at line 33 of file dialog_text_diff.cpp.
References KIGIT::ADDED, KICAD_DIFF::DIFF_COLOR_THEME::added, KIGIT::CONTEXT, KICAD_DIFF::DIFF_COLOR_THEME::ForText(), KIUI::GetMonospacedUIFont(), KIPLATFORM::UI::IsDarkTheme(), KIGIT::REMOVED, KICAD_DIFF::DIFF_COLOR_THEME::removed, STYLE_ADDED, STYLE_REMOVED, and KIGFX::COLOR4D::ToColour().
Referenced by DIALOG_TEXT_DIFF::DIALOG_TEXT_DIFF(), and GIT_FILE_DIFF_AREA::showTextDiff().
|
staticconstexpr |
Definition at line 29 of file dialog_text_diff.cpp.
Referenced by FillTextDiffControl().
|
staticconstexpr |
Definition at line 30 of file dialog_text_diff.cpp.
Referenced by FillTextDiffControl().