2021-12-07 22:47:57 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2021-12-07 22:47:57 +01:00
|
|
|
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
2023-11-21 13:47:50 +01:00
|
|
|
class ViewProviderSettings : public View::Modal {
|
2021-12-07 22:47:57 +01:00
|
|
|
public:
|
2021-12-12 00:41:44 +01:00
|
|
|
ViewProviderSettings();
|
2022-01-10 21:05:37 +01:00
|
|
|
~ViewProviderSettings() override;
|
2021-12-07 22:47:57 +01:00
|
|
|
|
|
|
|
void drawContent() override;
|
|
|
|
|
2022-01-10 21:05:37 +01:00
|
|
|
[[nodiscard]] bool hasViewMenuItemEntry() const override;
|
2021-12-07 22:47:57 +01:00
|
|
|
|
2023-11-21 13:47:50 +01:00
|
|
|
[[nodiscard]] bool shouldDraw() const override { return true; }
|
2023-12-17 23:15:52 +01:00
|
|
|
|
|
|
|
ImVec2 getMinSize() const override { return { -1, -1 }; }
|
|
|
|
ImVec2 getMaxSize() const override { return this->getMinSize(); }
|
|
|
|
|
|
|
|
bool hasCloseButton() const override {
|
|
|
|
return false;
|
|
|
|
}
|
2021-12-07 22:47:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|