Bases: sans.guiframe.plugin_base.PluginBase
Plug-in class to be instantiated by the GUI manager
Adds color to a plugin
if return True, then call handler to laod data
Clear and Hide all plot panels, and remove them from menu
clear the graph
Delete all references of data which id are in data_list.
This method is optional.
When the context menu of a plot is rendered, the get_context_menu method will be called to give you a chance to add a menu item to the context menu.
A ref to a plotpanel object is passed so that you can investigate the plot content and decide whether you need to add items to the context menu.
This method returns a list of menu items. Each item is itself a list defining the text to appear in the menu, a tool-tip help text, and a call-back method.
Parameters: | graph – the Graph object to which we attach the context menu |
---|---|
Returns: | a list of menu items with call-back function |
return state reader and its extensions
Create and return a list of panel objects
Get the list of panel names for this perspective
Returns a set of menu entries for tools
Show a general help dialog.
hide panel with group ID = group_id
return True is this plugin is always active even if the user is switching between perspectives
data_name = ‘None’ in_use = False example [(data_name, self.sub_menu)]
Load data
Load entire folder
need to be overwritten by the derivated class
Call back function for the perspective menu item. We notify the parent window that the perspective has changed.
Parameters: | event – menu event |
---|
update state
Append menu item under file menu item of the frame
Create a ‘Plot’ menu to list the panels available for displaying
Parameters: |
|
---|
Post initialization call back to close the loose ends
remove plot of ID = id from a panel of group ID =group_id
the plugin to its batch state if flag is True
receive a list of data and use it in the current perspective
Call back method that True to notify the parent that the current plug-in can be set as default perspective. when returning False, the plug-in is not candidate for an automatic default perspective setting
update state
Parameters: | theory_list – list of information related to available theory state |
---|
update the graph of a given panel
return True if these plugin use data