40 virtual QSize minimumSizeHint()
const;
42 void setFormat(bytes_view_type format);
46 void byteHovered(
int pos);
47 void byteSelected(
int pos);
48 void byteViewSettingsChanged();
51 void setMonospaceFont(
const QFont &mono_font);
52 void updateByteViewSettings();
55 void markProtocol(
int start,
int length);
56 void markField(
int start,
int length,
bool scroll_to =
true);
57 void markAppendix(
int start,
int length);
61 virtual void paintEvent(QPaintEvent *);
62 virtual void resizeEvent(QResizeEvent *);
63 virtual void mousePressEvent (QMouseEvent * event);
64 virtual void mouseMoveEvent (QMouseEvent * event);
65 virtual void leaveEvent(QEvent *event);
66 virtual void contextMenuEvent(QContextMenuEvent *event);
82 void updateLayoutMetrics();
83 int stringWidth(
const QString &line);
84 void drawLine(QPainter *painter,
const int offset,
const int row_y);
85 bool addFormatRange(QList<QTextLayout::FormatRange> &fmt_list,
int start,
int length, HighlightMode mode);
86 bool addHexFormatRange(QList<QTextLayout::FormatRange> &fmt_list,
int mark_start,
int mark_length,
int tvb_offset,
int max_tvb_pos, HighlightMode mode);
87 bool addAsciiFormatRange(QList<QTextLayout::FormatRange> &fmt_list,
int mark_start,
int mark_length,
int tvb_offset,
int max_tvb_pos, HighlightMode mode);
88 void scrollToByte(
int byte);
89 void updateScrollbars();
90 int byteOffsetAtPixel(QPoint pos);
92 void createContextMenu();
93 void updateContextMenu();
95 int offsetChars(
bool include_pad =
true);
100 const QByteArray printableData() {
return data_; }
102 static const int separator_interval_;
105 QColor offset_normal_fg_;
106 QColor offset_field_fg_;
113 int hovered_byte_offset_;
114 int marked_byte_offset_;
128 QList<QRect> hover_outlines_;
130 bool allow_hover_selection_;
133 QVector<int> x_pos_to_column_;
136 QAction *action_allow_hover_selection_;
137 QAction *action_bytes_hex_;
138 QAction *action_bytes_dec_;
139 QAction *action_bytes_oct_;
140 QAction *action_bytes_bits_;
141 QAction *action_bytes_enc_from_packet_;
142 QAction *action_bytes_enc_ascii_;
143 QAction *action_bytes_enc_ebcdic_;
146 void copyBytes(
bool);
147 void setHexDisplayFormat(QAction *action);
148 void setCharacterEncoding(QAction *action);
149 void toggleHoverAllowed(
bool);
Definition byte_view_text.h:32