2021-01-11 20:31:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2021-01-11 20:31:40 +01:00
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
namespace hex::plugin::builtin {
|
2021-01-11 20:31:40 +01:00
|
|
|
|
2023-12-04 22:17:43 +01:00
|
|
|
class ViewSettings : public View::Modal {
|
2021-01-11 20:31:40 +01:00
|
|
|
public:
|
|
|
|
explicit ViewSettings();
|
|
|
|
~ViewSettings() override;
|
|
|
|
|
2023-12-04 22:17:43 +01:00
|
|
|
void drawContent() override;
|
2023-12-10 22:37:26 +01:00
|
|
|
void drawAlwaysVisibleContent() override;
|
2021-01-11 20:31:40 +01:00
|
|
|
|
2023-12-04 22:17:43 +01:00
|
|
|
[[nodiscard]] bool shouldDraw() const override { return true; }
|
2022-01-10 21:05:37 +01:00
|
|
|
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
|
2022-01-10 21:05:18 +01:00
|
|
|
|
2023-04-10 21:30:27 +02:00
|
|
|
[[nodiscard]] ImVec2 getMinSize() const override { return scaled({ 700, 400 }); }
|
|
|
|
[[nodiscard]] ImVec2 getMaxSize() const override { return scaled({ 700, 400 }); }
|
2022-02-21 21:46:25 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_restartRequested = false;
|
2023-12-11 23:05:47 +01:00
|
|
|
bool m_triggerPopup = false;
|
2021-01-11 20:31:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|