2020-11-14 20:16:03 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
2021-01-13 16:28:27 +00:00
|
|
|
#include <imgui.h>
|
2022-02-01 17:09:40 +00:00
|
|
|
#include <hex/ui/view.hpp>
|
2023-11-05 18:57:29 +00:00
|
|
|
#include <hex/helpers/http_requests.hpp>
|
2020-11-14 20:16:03 +00:00
|
|
|
|
2021-12-07 21:47:41 +00:00
|
|
|
namespace hex::plugin::builtin {
|
2020-11-14 20:16:03 +00:00
|
|
|
|
2023-11-21 12:47:50 +00:00
|
|
|
class ViewAbout : public View::Modal {
|
2020-11-14 20:16:03 +00:00
|
|
|
public:
|
2022-03-04 18:06:29 +00:00
|
|
|
ViewAbout();
|
2020-11-14 20:16:03 +00:00
|
|
|
|
2020-12-22 17:10:01 +00:00
|
|
|
void drawContent() override;
|
2020-11-14 20:16:03 +00:00
|
|
|
|
2023-11-21 12:47:50 +00:00
|
|
|
[[nodiscard]] bool shouldDraw() const override { return true; }
|
2022-03-04 19:52:39 +00:00
|
|
|
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
|
2020-11-28 21:01:50 +00:00
|
|
|
|
2023-11-24 23:43:03 +00:00
|
|
|
[[nodiscard]] ImGuiWindowFlags getWindowFlags() const override {
|
|
|
|
return ImGuiWindowFlags_AlwaysAutoResize;
|
2021-01-22 23:46:50 +00:00
|
|
|
}
|
|
|
|
|
2020-11-14 20:16:03 +00:00
|
|
|
private:
|
|
|
|
void drawAboutPopup();
|
2021-12-12 12:35:07 +00:00
|
|
|
|
|
|
|
void drawAboutMainPage();
|
|
|
|
void drawContributorPage();
|
|
|
|
void drawLibraryCreditsPage();
|
|
|
|
void drawPathsPage();
|
2023-11-05 18:57:29 +00:00
|
|
|
void drawReleaseNotesPage();
|
|
|
|
void drawCommitHistoryPage();
|
2022-01-22 22:11:28 +00:00
|
|
|
void drawLicensePage();
|
2022-01-23 19:46:19 +00:00
|
|
|
|
2023-11-16 21:24:06 +00:00
|
|
|
ImGuiExt::Texture m_logoTexture;
|
2023-11-05 18:57:29 +00:00
|
|
|
|
|
|
|
std::future<HttpRequest::Result<std::string>> m_releaseNoteRequest, m_commitHistoryRequest;
|
|
|
|
u32 m_clickCount = 0;
|
2020-11-14 20:16:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|