From 37a0604d805991b85a0590279ad993a19ddee7bb Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 1 Jan 2026 12:21:22 -0500 Subject: add whole-file entropy calculation to triage --- examples/triage/fileinfo.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'examples/triage/fileinfo.h') diff --git a/examples/triage/fileinfo.h b/examples/triage/fileinfo.h index 78ba578b..8eac3fbe 100644 --- a/examples/triage/fileinfo.h +++ b/examples/triage/fileinfo.h @@ -5,11 +5,16 @@ #include "uitypes.h" #include "viewframe.h" +class EntropyWidget; + class FileInfoWidget : public QWidget { + Q_OBJECT + static constexpr std::int32_t m_maxColumns {2}; std::pair m_fieldPosition {}; // row, column QGridLayout* m_layout {}; + QLabel* m_entropyLabel {}; void addField(const QString& name, const QVariant& value); void addCopyableField(const QString& name, const QVariant& value); @@ -17,5 +22,8 @@ class FileInfoWidget : public QWidget void addHashFields(BinaryViewRef view); public: - FileInfoWidget(QWidget* parent, BinaryViewRef bv); + FileInfoWidget(QWidget* parent, BinaryViewRef bv, EntropyWidget* entropyWidget); + + private Q_SLOTS: + void updateEntropy(double avgEntropy); }; -- cgit v1.3.1