0462cc3d0c
* sys: Make ImHex compile with -Wall -Wextra -Werror * sys: Fixed various build errors on Linux * sys: Explicitly ignore return value of `system` function * sys: More fixes for the warnings GitHub Actions enables somehow * sys: More fixes * sys: Remove -Werror again to see all GitHub Actions warnings * sys: Hopefully fixed all remaining warnings * sys: Added back -Werror * git: Change windows icon in GitHub Actions
31 lines
570 B
C++
31 lines
570 B
C++
#pragma once
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include <imgui.h>
|
|
#include <hex/ui/view.hpp>
|
|
|
|
#include <array>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
class ViewDiff : public View {
|
|
public:
|
|
ViewDiff();
|
|
~ViewDiff() override;
|
|
|
|
void drawContent() override;
|
|
|
|
private:
|
|
void drawDiffLine(const std::array<int, 2> &providerIds, u64 row) const;
|
|
|
|
int m_providerA = -1, m_providerB = -1;
|
|
|
|
bool m_greyedOutZeros = true;
|
|
bool m_upperCaseHex = true;
|
|
u32 m_columnCount = 16;
|
|
};
|
|
|
|
} |