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