5.1.1.4.2.3. DiffWidget

class CodeReview.GUI.DiffViewer.DiffWidget.DiffView(parent=None)[source]

Bases: PyQt5.QtWidgets.QSplitter

Widget to show differences in side-by-side format.

_append_document_on_side(side, document_model, aligned_mode, complete_mode, line_number_mode)[source]
_insert_metadata(cursor, document_model)[source]
_logger = <Logger CodeReview.GUI.DiffViewer.DiffWidget.DiffView (NOTSET)>
append_document_models(document_models, aligned_mode=True, complete_mode=True, line_number_mode=True)[source]
clear()[source]
createHandle()[source]
set_document_models(document_models, aligned_mode=True, complete_mode=True, line_number_mode=True)[source]
set_font(font_size=None)[source]
update_scroll_bar(scroll_bar, value)[source]
class CodeReview.GUI.DiffViewer.DiffWidget.DiffViewerCursor(cursor, text_blocks)[source]

Bases: object

begin_block(side, frame_type, aligned_mode=False)[source]
end()[source]

Insert a block and set the y positions.

insert_text(text, text_format=None, last_text_fragment=False)[source]
y()[source]

Return the top position of the current block.

class CodeReview.GUI.DiffViewer.DiffWidget.SplitterHandle(parent)[source]

Bases: PyQt5.QtWidgets.QSplitterHandle

paintEvent(event)[source]
class CodeReview.GUI.DiffViewer.DiffWidget.TextBlock(y_top, y_bottom, frame_type)[source]

Bases: object

This class stores the y top and bottom positions of a text block and the frame type.

class CodeReview.GUI.DiffViewer.DiffWidget.TextBlocks[source]

Bases: list

This class represents a list of text blocks.

add(y_top, y_bottom, frame_type)[source]
class CodeReview.GUI.DiffViewer.DiffWidget.TextBrowser(parent, text_blocks)[source]

Bases: PyQt5.QtWidgets.QTextBrowser

paintEvent(event)[source]
CodeReview.GUI.DiffViewer.DiffWidget.side_iterator()[source]