10#ifndef THEME_CODE_VIEW_H
11#define THEME_CODE_VIEW_H
18class QSyntaxHighlighter;
37class ThemeCodeView :
public QWidget
41 explicit ThemeCodeView(QWidget *parent =
nullptr);
43 void setTexts(
const QString &compareText,
const QString &
currentText);
44 void setViewFont(
const QFont &monospace);
46 int changedLines()
const {
return changed_lines_; }
47 int addedLines()
const {
return added_lines_; }
48 int removedLines()
const {
return removed_lines_; }
52 void previousChange();
62 void rebuildSelections();
63 void goToBlock(
int block);
66 QSyntaxHighlighter *highlighter_ =
nullptr;
67 QVector<ThemeDiffLine> lines_;
68 QVector<int> run_starts_;
69 QString current_text_;
70 int changed_lines_ = 0;
72 int removed_lines_ = 0;
Definition theme_code_view.cpp:38
QString currentText() const
Definition theme_code_view.h:55
void nextChange()
Definition theme_code_view.cpp:340
Definition theme_code_view.h:26
ThemeDiffKind
Definition theme_code_view.h:22