2021-09-21 02:48:41 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
|
|
|
#include <imgui.h>
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2021-09-21 02:48:41 +02:00
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <string>
|
2021-09-21 19:54:13 +02:00
|
|
|
#include <vector>
|
2021-09-21 02:48:41 +02:00
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
namespace hex::plugin::builtin {
|
2021-09-21 02:48:41 +02:00
|
|
|
|
2022-01-24 20:53:17 +01:00
|
|
|
namespace prv {
|
|
|
|
class Provider;
|
|
|
|
}
|
2021-09-21 02:48:41 +02:00
|
|
|
|
2021-09-21 19:54:13 +02:00
|
|
|
class ViewDiff : public View {
|
2021-09-21 02:48:41 +02:00
|
|
|
public:
|
2021-09-21 19:54:13 +02:00
|
|
|
ViewDiff();
|
|
|
|
~ViewDiff() override;
|
2021-09-21 02:48:41 +02:00
|
|
|
|
|
|
|
void drawContent() override;
|
|
|
|
|
2021-09-21 19:54:13 +02:00
|
|
|
private:
|
|
|
|
void drawDiffLine(const std::array<int, 2> &providerIds, u64 row) const;
|
|
|
|
|
|
|
|
int m_providerA = -1, m_providerB = -1;
|
|
|
|
|
|
|
|
bool m_greyedOutZeros = true;
|
2022-02-01 22:09:44 +01:00
|
|
|
bool m_upperCaseHex = true;
|
|
|
|
int m_columnCount = 16;
|
2021-09-21 02:48:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|