2020-11-10 21:31:04 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2020-11-10 21:31:04 +01:00
|
|
|
|
2022-11-08 21:43:22 +01:00
|
|
|
#include <ui/pattern_drawer.hpp>
|
2020-11-10 21:31:04 +01:00
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
2023-11-21 13:47:50 +01:00
|
|
|
class ViewPatternData : public View::Window {
|
2020-11-10 21:31:04 +01:00
|
|
|
public:
|
2021-04-20 21:46:48 +02:00
|
|
|
ViewPatternData();
|
2020-11-11 09:28:44 +01:00
|
|
|
~ViewPatternData() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void drawContent() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
private:
|
2024-01-11 20:11:22 +01:00
|
|
|
bool m_rowColoring = false;
|
|
|
|
ui::PatternDrawer::TreeStyle m_treeStyle = ui::PatternDrawer::TreeStyle::Default;
|
|
|
|
|
|
|
|
PerProvider<std::unique_ptr<ui::PatternDrawer>> m_patternDrawer;
|
2024-06-07 19:48:10 +02:00
|
|
|
Region m_hoveredPatternRegion = Region::Invalid();
|
2020-11-10 21:31:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|