5c7a529fa1
* Added imnodes * Added basic data processor view. Still needs to be cleaned up * Make sure all attached links get properly removed when a Node is deleted * Cleanup and API exposing * Added data provider overlays and integrate them with the data processor * Optimized data processing * Node UI enhancements * Added support for all themes to the nodes editor * Improved data processor context menus * Fixed data processor context menu showing up everywhere * Make hex editor context menu behave the same as data processor one * Add different node pin types and prevent incompatible ones from being connected * Don't require explicitly marking node as end node * Fixed plugin copying * Added some more nodes
37 lines
1.7 KiB
C++
37 lines
1.7 KiB
C++
#include <hex/helpers/shared_data.hpp>
|
|
|
|
namespace hex {
|
|
|
|
std::vector<EventHandler> SharedData::eventHandlers;
|
|
std::vector<std::function<void()>> SharedData::deferredCalls;
|
|
prv::Provider *SharedData::currentProvider;
|
|
std::map<std::string, std::vector<ContentRegistry::Settings::Entry>> SharedData::settingsEntries;
|
|
nlohmann::json SharedData::settingsJson;
|
|
std::map<std::string, Events> SharedData::customEvents;
|
|
u32 SharedData::customEventsLastId;
|
|
std::vector<ContentRegistry::CommandPaletteCommands::Entry> SharedData::commandPaletteCommands;
|
|
std::map<std::string, ContentRegistry::PatternLanguageFunctions::Function> SharedData::patternLanguageFunctions;
|
|
std::vector<View*> SharedData::views;
|
|
std::vector<ContentRegistry::Tools::Entry> SharedData::toolsEntries;
|
|
std::vector<ContentRegistry::DataInspector::Entry> SharedData::dataInspectorEntries;
|
|
u32 SharedData::patternPaletteOffset;
|
|
std::string SharedData::errorPopupMessage;
|
|
std::list<ImHexApi::Bookmarks::Entry> SharedData::bookmarkEntries;
|
|
|
|
imgui_addons::ImGuiFileBrowser SharedData::fileBrowser;
|
|
imgui_addons::ImGuiFileBrowser::DialogMode SharedData::fileBrowserDialogMode;
|
|
std::string SharedData::fileBrowserTitle;
|
|
std::string SharedData::fileBrowserValidExtensions;
|
|
std::function<void(std::string)> SharedData::fileBrowserCallback;
|
|
|
|
std::vector<ContentRegistry::DataProcessorNode::Entry> SharedData::dataProcessorNodes;
|
|
u32 SharedData::dataProcessorNodeIdCounter = 1;
|
|
|
|
int SharedData::mainArgc;
|
|
char **SharedData::mainArgv;
|
|
|
|
ImVec2 SharedData::windowPos;
|
|
ImVec2 SharedData::windowSize;
|
|
|
|
std::map<std::string, std::any> SharedData::sharedVariables;
|
|
} |