2021-01-22 18:01:39 +01:00
|
|
|
#include <hex/plugin.hpp>
|
|
|
|
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
2022-05-27 20:42:07 +02:00
|
|
|
void registerEventHandlers();
|
|
|
|
void registerDataVisualizers();
|
2021-01-22 18:01:39 +01:00
|
|
|
void registerDataInspectorEntries();
|
|
|
|
void registerToolEntries();
|
|
|
|
void registerPatternLanguageFunctions();
|
2022-04-17 16:57:30 +02:00
|
|
|
void registerPatternLanguagePragmas();
|
2021-01-22 18:01:39 +01:00
|
|
|
void registerCommandPaletteCommands();
|
|
|
|
void registerSettings();
|
2022-07-02 16:22:38 +02:00
|
|
|
void loadSettings();
|
2021-01-30 22:39:06 +01:00
|
|
|
void registerDataProcessorNodes();
|
2022-05-30 16:36:46 +02:00
|
|
|
void registerHashes();
|
2021-12-07 22:47:41 +01:00
|
|
|
void registerProviders();
|
2022-01-13 00:27:31 +01:00
|
|
|
void registerDataFormatters();
|
2022-01-18 00:10:10 +01:00
|
|
|
void registerLayouts();
|
|
|
|
void registerMainMenuEntries();
|
2022-02-01 18:09:40 +01:00
|
|
|
void createWelcomeScreen();
|
2022-05-27 20:42:07 +02:00
|
|
|
void registerViews();
|
2022-07-30 22:01:49 +02:00
|
|
|
void registerShortcuts();
|
2021-01-22 18:01:39 +01:00
|
|
|
|
2021-06-07 18:13:54 +02:00
|
|
|
void addFooterItems();
|
2021-08-21 00:52:11 +02:00
|
|
|
void addToolbarItems();
|
2022-05-27 20:42:07 +02:00
|
|
|
void addGlobalUIItems();
|
2021-06-07 18:13:54 +02:00
|
|
|
|
2022-07-29 11:34:55 +02:00
|
|
|
void handleBorderlessWindowMode();
|
|
|
|
|
2021-02-13 15:15:32 +01:00
|
|
|
void registerLanguageEnUS();
|
2021-03-03 22:26:17 +01:00
|
|
|
void registerLanguageDeDE();
|
2021-03-04 13:52:35 +01:00
|
|
|
void registerLanguageItIT();
|
2022-02-07 15:42:38 +01:00
|
|
|
void registerLanguageJaJP();
|
2021-09-20 18:41:22 +02:00
|
|
|
void registerLanguageZhCN();
|
2022-06-03 11:34:31 +02:00
|
|
|
void registerLanguagePtBR();
|
2022-07-27 16:47:03 +02:00
|
|
|
void registerLanguageZhTW();
|
2022-09-02 16:10:54 +02:00
|
|
|
void registerLanguageKoKR();
|
2021-01-22 18:01:39 +01:00
|
|
|
}
|
|
|
|
|
2021-02-19 13:22:12 +01:00
|
|
|
IMHEX_PLUGIN_SETUP("Built-in", "WerWolv", "Default ImHex functionality") {
|
2021-01-22 18:01:39 +01:00
|
|
|
|
|
|
|
using namespace hex::plugin::builtin;
|
|
|
|
|
2022-02-16 21:32:33 +01:00
|
|
|
registerLanguageEnUS();
|
|
|
|
registerLanguageDeDE();
|
|
|
|
registerLanguageItIT();
|
|
|
|
registerLanguageJaJP();
|
|
|
|
registerLanguageZhCN();
|
2022-06-03 11:34:31 +02:00
|
|
|
registerLanguagePtBR();
|
2022-07-27 16:47:03 +02:00
|
|
|
registerLanguageZhTW();
|
2022-09-02 16:10:54 +02:00
|
|
|
registerLanguageKoKR();
|
2022-02-16 21:32:33 +01:00
|
|
|
|
2022-05-27 20:42:07 +02:00
|
|
|
registerEventHandlers();
|
|
|
|
registerDataVisualizers();
|
2021-01-22 18:01:39 +01:00
|
|
|
registerDataInspectorEntries();
|
|
|
|
registerToolEntries();
|
|
|
|
registerPatternLanguageFunctions();
|
2022-04-17 16:57:30 +02:00
|
|
|
registerPatternLanguagePragmas();
|
2021-01-22 18:01:39 +01:00
|
|
|
registerCommandPaletteCommands();
|
|
|
|
registerSettings();
|
2022-07-02 16:22:38 +02:00
|
|
|
loadSettings();
|
2021-01-30 22:39:06 +01:00
|
|
|
registerDataProcessorNodes();
|
2022-05-30 16:36:46 +02:00
|
|
|
registerHashes();
|
2021-12-07 22:47:41 +01:00
|
|
|
registerProviders();
|
2022-01-13 00:27:31 +01:00
|
|
|
registerDataFormatters();
|
2022-02-01 18:09:40 +01:00
|
|
|
createWelcomeScreen();
|
2022-05-27 20:42:07 +02:00
|
|
|
registerViews();
|
2022-07-30 22:01:49 +02:00
|
|
|
registerShortcuts();
|
2021-02-13 15:15:32 +01:00
|
|
|
|
2021-06-07 18:13:54 +02:00
|
|
|
addFooterItems();
|
2021-08-21 00:52:11 +02:00
|
|
|
addToolbarItems();
|
2022-05-27 20:42:07 +02:00
|
|
|
addGlobalUIItems();
|
|
|
|
|
2022-01-18 00:10:10 +01:00
|
|
|
registerLayouts();
|
|
|
|
registerMainMenuEntries();
|
2022-07-29 11:34:55 +02:00
|
|
|
|
|
|
|
handleBorderlessWindowMode();
|
2021-01-22 18:01:39 +01:00
|
|
|
}
|
2022-02-01 18:09:40 +01:00
|
|
|
|
|
|
|
// This is the default plugin
|
|
|
|
// DO NOT USE THIS IN ANY OTHER PLUGIN
|
2022-02-07 15:42:38 +01:00
|
|
|
extern "C" bool isBuiltinPlugin() { return true; }
|