12#include <QAbstractScrollArea>
32 QAbstractScrollArea(parent),
121 virtual void markField(
int start,
int length,
bool scroll_to =
true,
122 bool hover =
false) = 0;
Abstract base class for widgets that display raw packet byte data.
Definition base_data_source_view.h:20
virtual void detachData()
Detach the internal QByteArray from any shared copy.
Definition base_data_source_view.h:102
void setTabIndex(int tab_index)
Set the tab index for this view.
Definition base_data_source_view.h:74
virtual void markProtocol(int start, int length)=0
Highlight the byte range belonging to the enclosing protocol layer.
void setTvb(struct tvbuff *tvb)
Associate a Wireshark tvbuff with this data source.
Definition base_data_source_view.h:62
virtual bool isEmpty() const
Return whether the view contains no displayable data.
Definition base_data_source_view.h:48
QByteArray data_
The raw packet bytes displayed by this view.
Definition base_data_source_view.h:141
virtual void markField(int start, int length, bool scroll_to=true, bool hover=false)=0
Highlight the byte range for a specific dissected field.
virtual QSize minimumSizeHint() const
Return the minimum size hint for the view.
Definition base_data_source_view.h:42
struct tvbuff * tvb() const
Return the tvbuff associated with this data source.
Definition base_data_source_view.h:56
void byteHovered(int pos)
Emitted when the cursor moves over a byte in the view.
virtual void unmarkField()=0
Clear all field and appendix highlights.
void byteSelected(int pos)
Emitted when the user clicks a byte in the view.
int tabIndex() const
Return the tab index of this view within the byte-view panel.
Definition base_data_source_view.h:68
virtual void setMonospaceFont(const QFont &mono_font)=0
Update the monospace font used to render byte values.
BaseDataSourceView(const QByteArray &data, QWidget *parent=nullptr)
Construct a BaseDataSourceView.
Definition base_data_source_view.h:31
virtual void markAppendix(int start, int length)=0
Highlight the appendix byte range for the selected field.
Core tvbuff (testy virtual buffer) structure representing a region of packet data,...
Definition tvbuff-int.h:95