cutter/src/widgets/HexdumpWidget.h

81 lines
1.8 KiB
C
Raw Normal View History

#ifndef HEXDUMPWIDGET_H
#define HEXDUMPWIDGET_H
#include <QDebug>
#include <QTextEdit>
#include <QMouseEvent>
#include <QAction>
2018-01-27 10:08:05 +00:00
#include <array>
#include <memory>
2018-01-27 10:08:05 +00:00
#include "core/Cutter.h"
#include "MemoryDockWidget.h"
#include "common/CutterSeekable.h"
2018-10-17 07:55:53 +00:00
#include "common/Highlighter.h"
#include "common/HexAsciiHighlighter.h"
#include "common/HexHighlighter.h"
#include "common/SvgIconEngine.h"
#include "HexTextView.h"
2018-01-27 10:08:05 +00:00
#include "Dashboard.h"
namespace Ui {
class HexdumpWidget;
}
2019-01-13 15:00:07 +00:00
class RefreshDeferrer;
class HexdumpWidget : public MemoryDockWidget
{
2018-01-27 10:08:05 +00:00
Q_OBJECT
public:
explicit HexdumpWidget(MainWindow *main, QAction *action = nullptr);
~HexdumpWidget();
Highlighter *highlighter;
public slots:
void initParsing();
protected:
virtual void resizeEvent(QResizeEvent *event) override;
private:
std::unique_ptr<Ui::HexdumpWidget> ui;
2018-01-27 10:08:05 +00:00
bool sent_seek = false;
2019-01-13 15:00:07 +00:00
RefreshDeferrer *refreshDeferrer;
void refresh(RVA addr = RVA_INVALID);
2017-12-03 01:44:12 +00:00
void selectHexPreview();
2017-11-17 12:41:30 +00:00
void setupFonts();
void refreshSelectionInfo();
2018-01-27 10:08:05 +00:00
void updateParseWindow(RVA start_address, int size);
void clearParseWindow();
QAction syncAction;
2018-01-27 10:08:05 +00:00
private slots:
void onSeekChanged(RVA addr);
void on_actionHideHexdump_side_panel_triggered();
void selectionChanged(HexTextView::Selection selection);
void on_parseArchComboBox_currentTextChanged(const QString &arg1);
void on_parseBitsComboBox_currentTextChanged(const QString &arg1);
void on_parseTypeComboBox_currentTextChanged(const QString &arg1);
void on_parseEndianComboBox_currentTextChanged(const QString &arg1);
void fontsUpdated();
void on_hexSideTab_2_currentChanged(int index);
void on_copyMD5_clicked();
void on_copySHA1_clicked();
};
#endif // HEXDUMPWIDGET_H