2020-11-15 00:46:38 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-10-13 10:47:35 +02:00
|
|
|
#include <hex/api/content_registry.hpp>
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2020-11-15 00:46:38 +01:00
|
|
|
|
2023-11-10 20:47:08 +01:00
|
|
|
#include <vector>
|
2020-11-15 00:46:38 +01:00
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
namespace hex::plugin::builtin {
|
2020-11-15 00:46:38 +01:00
|
|
|
|
2023-11-21 13:47:50 +01:00
|
|
|
class ViewTools : public View::Window {
|
2020-11-15 00:46:38 +01:00
|
|
|
public:
|
2020-12-27 15:39:06 +01:00
|
|
|
ViewTools();
|
2022-03-04 20:52:39 +01:00
|
|
|
~ViewTools() override = default;
|
2020-11-15 00:46:38 +01:00
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void drawContent() override;
|
2023-11-21 13:47:50 +01:00
|
|
|
void drawAlwaysVisibleContent() override;
|
2022-10-13 10:47:35 +02:00
|
|
|
|
|
|
|
private:
|
2024-02-10 23:31:05 +01:00
|
|
|
std::vector<ContentRegistry::Tools::impl::Entry>::const_iterator m_dragStartIterator;
|
2024-01-03 18:26:25 +01:00
|
|
|
|
|
|
|
std::map<ImGuiWindow*, float> m_windowHeights;
|
2024-02-10 23:31:05 +01:00
|
|
|
std::map<UnlocalizedString, bool> m_detachedTools;
|
2020-11-15 00:46:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|