Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ThemeCodeView Class Reference

#include <theme_code_view.h>

Inheritance diagram for ThemeCodeView:

Signals

void countsChanged ()

Public Member Functions

 ThemeCodeView (QWidget *parent=nullptr)
void setTexts (const QString &compareText, const QString &currentText)
void setViewFont (const QFont &monospace)
int changedLines () const
int addedLines () const
int removedLines () const
void nextChange ()
void previousChange ()
QString currentText () const

Detailed Description

Read-only viewer for theme file text with a line diff against a comparison text: gutter with line numbers and change markers, tinted changed lines, removed lines shown struck through, and simple JSONC syntax coloring.

Member Function Documentation

◆ currentText()

QString ThemeCodeView::currentText ( ) const
inline

The current text without the removed (ghost) lines.

◆ nextChange()

void ThemeCodeView::nextChange ( )

Moves to the next/previous run of changed lines, wrapping around.


The documentation for this class was generated from the following files: