2021-01-13 17:28:27 +01:00
|
|
|
#include <hex/helpers/shared_data.hpp>
|
2021-01-12 23:28:41 +01:00
|
|
|
|
2021-08-29 14:18:45 +02:00
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
|
2021-01-12 23:28:41 +01:00
|
|
|
namespace hex {
|
|
|
|
|
|
|
|
std::vector<std::function<void()>> SharedData::deferredCalls;
|
2021-09-21 02:29:54 +02:00
|
|
|
|
|
|
|
std::vector<prv::Provider*> SharedData::providers;
|
|
|
|
u32 SharedData::currentProvider;
|
|
|
|
|
2021-01-12 23:28:41 +01:00
|
|
|
std::map<std::string, std::vector<ContentRegistry::Settings::Entry>> SharedData::settingsEntries;
|
|
|
|
nlohmann::json SharedData::settingsJson;
|
|
|
|
std::vector<ContentRegistry::CommandPaletteCommands::Entry> SharedData::commandPaletteCommands;
|
2021-12-20 20:40:28 +01:00
|
|
|
std::map<std::string, ContentRegistry::PatternLanguage::Function> SharedData::patternLanguageFunctions;
|
2021-03-16 22:44:37 +01:00
|
|
|
std::vector<View*> SharedData::views;
|
2021-12-12 11:52:58 +01:00
|
|
|
std::vector<ContentRegistry::Tools::impl::Entry> SharedData::toolsEntries;
|
|
|
|
std::vector<ContentRegistry::DataInspector::impl::Entry> SharedData::dataInspectorEntries;
|
2021-01-13 23:08:41 +01:00
|
|
|
u32 SharedData::patternPaletteOffset;
|
2021-09-22 17:56:06 +02:00
|
|
|
std::string SharedData::popupMessage;
|
2021-01-20 20:16:24 +01:00
|
|
|
std::list<ImHexApi::Bookmarks::Entry> SharedData::bookmarkEntries;
|
2021-09-08 15:18:24 +02:00
|
|
|
std::vector<pl::PatternData*> SharedData::patternData;
|
2021-02-11 00:35:30 +01:00
|
|
|
|
|
|
|
std::map<std::string, std::string> SharedData::languageNames;
|
|
|
|
std::map<std::string, std::vector<LanguageDefinition>> SharedData::languageDefinitions;
|
|
|
|
std::map<std::string, std::string> SharedData::loadedLanguageStrings;
|
2021-01-12 23:28:41 +01:00
|
|
|
|
2021-02-18 12:09:19 +01:00
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::welcomeScreenEntries;
|
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::footerItems;
|
2021-08-21 00:52:11 +02:00
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::toolbarItems;
|
2021-02-18 12:09:19 +01:00
|
|
|
|
2021-12-23 15:11:38 +01:00
|
|
|
std::map<Shortcut, std::function<void()>> SharedData::globalShortcuts;
|
|
|
|
|
2021-12-16 23:48:52 +01:00
|
|
|
std::mutex SharedData::tasksMutex;
|
|
|
|
std::list<Task*> SharedData::runningTasks;
|
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
std::vector<std::string> SharedData::providerNames;
|
|
|
|
|
2021-12-12 11:52:58 +01:00
|
|
|
std::vector<ContentRegistry::DataProcessorNode::impl::Entry> SharedData::dataProcessorNodes;
|
2021-01-30 22:39:06 +01:00
|
|
|
u32 SharedData::dataProcessorNodeIdCounter = 1;
|
2021-05-17 23:17:58 +02:00
|
|
|
u32 SharedData::dataProcessorLinkIdCounter = 1;
|
|
|
|
u32 SharedData::dataProcessorAttrIdCounter = 1;
|
2021-01-30 22:39:06 +01:00
|
|
|
|
2022-01-13 00:27:31 +01:00
|
|
|
std::vector<ContentRegistry::DataFormatter::impl::Entry> SharedData::dataFormatters;
|
2022-01-13 14:34:19 +01:00
|
|
|
std::vector<ContentRegistry::FileHandler::impl::Entry> SharedData::fileHandlers;
|
2022-01-13 00:27:31 +01:00
|
|
|
|
2022-01-16 01:51:31 +01:00
|
|
|
std::list<fs::path> SharedData::recentFilePaths;
|
2021-04-13 08:41:59 +02:00
|
|
|
|
2021-01-12 23:28:41 +01:00
|
|
|
int SharedData::mainArgc;
|
|
|
|
char **SharedData::mainArgv;
|
2021-12-22 13:16:51 +01:00
|
|
|
char **SharedData::mainEnvp;
|
2021-01-12 23:28:41 +01:00
|
|
|
|
2021-08-31 15:22:00 +02:00
|
|
|
ImFontAtlas *SharedData::fontAtlas;
|
|
|
|
ImFontConfig SharedData::fontConfig;
|
2021-01-12 23:28:41 +01:00
|
|
|
ImVec2 SharedData::windowPos;
|
|
|
|
ImVec2 SharedData::windowSize;
|
|
|
|
|
2021-08-31 15:22:00 +02:00
|
|
|
float SharedData::globalScale;
|
|
|
|
float SharedData::fontScale;
|
|
|
|
|
2021-01-12 23:28:41 +01:00
|
|
|
std::map<std::string, std::any> SharedData::sharedVariables;
|
2021-12-22 13:16:51 +01:00
|
|
|
}
|