30 #ifndef PULSEVIEW_PV_VIEWS_DECODER_BINARY_QHEXVIEW_HPP 31 #define PULSEVIEW_PV_VIEWS_DECODER_BINARY_QHEXVIEW_HPP 33 #include <QAbstractScrollArea> 73 bool with_offset=
false,
bool with_ascii=
false);
114 #endif // PULSEVIEW_PV_VIEWS_DECODER_BINARY_QHEXVIEW_HPP
void setCursorPos(int pos)
const DecodeBinaryClass * data_
void showFromOffset(size_t offset)
uint8_t get_next_byte(bool *is_new_chunk=nullptr)
QSize getFullSize() const
void mouseMoveEvent(QMouseEvent *event)
void set_highlighted_data_sample(uint64_t sample)
void set_data(const DecodeBinaryClass *data)
void mousePressEvent(QMouseEvent *event)
void paintEvent(QPaintEvent *event)
void setSelection(int pos)
pair< size_t, size_t > get_selection() const
pair< uint64_t, uint64_t > visible_range_
size_t cursorPosFromMousePos(const QPoint &position)
void set_visible_sample_range(uint64_t start, uint64_t end)
vector< QColor > chunk_colors_
uint64_t next_chunk_sample_
Reconstructs memory contents from data chunks.
size_t create_hex_line(size_t start, size_t end, QString *dest, bool with_offset=false, bool with_ascii=false)
virtual QSizePolicy sizePolicy() const
Displays all data chunks in succession.
QHexView(QWidget *parent=nullptr)
unsigned int get_bytes_per_line() const
DecodeBinaryDataChunk current_chunk_
QColor visible_range_color_
size_t current_chunk_offset_
void initialize_byte_iterator(size_t offset)
void keyPressEvent(QKeyEvent *event)
uint64_t current_chunk_sample_
uint64_t highlighted_sample_