2020-12-12 15:41:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <borealis.hpp>
|
2021-06-27 23:46:00 +01:00
|
|
|
#include <json.hpp>
|
|
|
|
#include <set>
|
2020-12-12 15:41:56 +00:00
|
|
|
|
|
|
|
class AmsTab : public brls::List
|
|
|
|
{
|
|
|
|
private:
|
2021-02-06 17:24:47 +00:00
|
|
|
brls::ListItem* listItem;
|
2020-12-12 15:41:56 +00:00
|
|
|
brls::Label *description;
|
2021-04-15 12:24:11 +01:00
|
|
|
int size;
|
2021-06-27 23:46:00 +01:00
|
|
|
bool erista;
|
|
|
|
nlohmann::ordered_json cfws;
|
|
|
|
std::string GetRepoName(const std::string& repo);
|
|
|
|
std::set<std::string> GetLastDownloadedModules(const std::string& json_path);
|
|
|
|
void CreateStagedFrames(const std::string& text, const std::string& url, const std::string& operation, bool erista, bool hekate = false, const std::string& text_hekate = "", const std::string& hekate_url = "");
|
2021-07-09 00:14:07 +01:00
|
|
|
void CreateDownloadItems(const nlohmann::ordered_json& cfw_links, bool hekate = true);
|
2021-06-27 23:46:00 +01:00
|
|
|
nlohmann::ordered_json SortDeepseaModules(const nlohmann::ordered_json& modules);
|
2021-07-07 15:59:52 +01:00
|
|
|
void ShowCustomDeepseaBuilder(nlohmann::ordered_json& modules);
|
2021-06-27 23:46:00 +01:00
|
|
|
|
2020-12-12 15:41:56 +00:00
|
|
|
public:
|
2021-05-24 18:23:16 +01:00
|
|
|
AmsTab(const bool erista = true);
|
2021-06-27 23:46:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class UnTogglableListItem : public brls::ToggleListItem
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnTogglableListItem(std::string label, bool initialValue, std::string description = "", std::string onValue = "On", std::string offValue = "Off") : ToggleListItem(label, initialValue, description, onValue, offValue) {}
|
|
|
|
virtual bool onClick() override;
|
2020-12-12 15:41:56 +00:00
|
|
|
};
|