MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / DefaultPluginEntry

Method DefaultPluginEntry

Default/Registration.cpp:32–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace SigDigger;
31
32bool
33SigDigger::DefaultPluginEntry(Suscan::Plugin *plugin)
34{
35 Suscan::Singleton *sus = Suscan::Singleton::get_instance();
36
37 // Please note: it is not strictly necessary to call registerToolWidgetFactory
38 // to register these tool factories. registerGlobally will traverse all
39 // the created factories and register them accordingly. Calling register here
40 // ensures that these factories are registered in order prior to any bulk
41 // registration triggered by Suscan::Plugin. This is the order in which
42 // they will show up in the GUI
43
44 sus->registerToolWidgetFactory(new AudioWidgetFactory(plugin));
45 sus->registerToolWidgetFactory(new SourceWidgetFactory(plugin));
46 sus->registerToolWidgetFactory(new InspToolWidgetFactory(plugin));
47 sus->registerToolWidgetFactory(new FFTWidgetFactory(plugin));
48
49 sus->registerTabWidgetFactory(new DefaultTabWidgetFactory(plugin));
50
51 sus->registerInspectionWidgetFactory(new GenericInspectorFactory(plugin));
52
53 return true;
54}

Callers

nothing calls this directly

Tested by

no test coverage detected