File indexing completed on 2024-05-19 05:42:15
0001 from collections import namedtuple 0002 0003 HookInfo = namedtuple('HookInfo', ['return_type', 'name', 'handler', 'docs']) 0004 0005 HOOKS = [ 0006 HookInfo("void", "SetupPlugin", "PluginSetupHandler", "This hook is called as soon as the application initializes, and should be used to setup plugin data structures."), 0007 HookInfo("void", "TeardownPlugin", "PluginSetupHandler", "This hook is called just before the application closes, and must be used to cleanup any resource the plugin acquired."), 0008 HookInfo("void", "GraphicsViewContextMenu", "PluginContextMenuHandler", "Hook to control the graphics view context menu."), 0009 HookInfo("void", "SetupDockWidget", "PluginSetupDockWidgetHandler", "Can be used to setup new dock widgets (See PluginDockWidgetHandler)"), 0010 HookInfo("void", "SetupEntityReport", "PluginEntityReportHandler", "If implemented, will generate an action in the reports menu to create a HTML report."), 0011 HookInfo("void", "PhysicalParserOnHeaderFound", "PluginPhysicalParserOnHeaderFoundHandler", "Called every time a header is found in the physical parser."), 0012 HookInfo("void", "LogicalParserOnCppCommentFound", "PluginLogicalParserOnCppCommentFoundHandler", "Called every time a comment is found in the logical parser."), 0013 HookInfo("void", "OnParseCompleted", "PluginParseCompletedHandler", "Called after the Physical and Logical (if enabled) parsing are done."), 0014 HookInfo("void", "ActiveSceneChanged", "PluginActiveSceneChangedHandler", "Called when the active scene is changed in the GUI."), 0015 HookInfo("void", "GraphChanged", "PluginGraphChangedHandler", "Called when graph has changed."), 0016 ]