Bases: sans.guiframe.plugin_base.PluginBase
Adds color to a plugin
if return True, then call handler to laod data
clear all related panels
delete the data association with prview
Check if the plugin has a batch capability
Get the context menu items available for P(r)
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
Returns the number of points in the I(q) data
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.
Todo : | replace the text with a nice image |
---|
return True is this plugin is always active and it is local to guiframe even if the user is switching between perspectives
data_name = ‘None’ in_use = False example [(data_name, self.sub_menu)]
Load data. This will eventually be replaced by our standard DataLoader class.
Load an IGOR .ABS reduced file
Parameters: | path – file path |
---|---|
Returns: | x, y, err vectors |
Load 2- or 3- column ascii
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 and return the list of application menu items for the plug-in.
Parameters: | parent – parent window |
---|---|
Returns: | plug-in menu |
Post initialization call back to close the loose ends [Somehow openGL needs this call]
Save data in provided state object.
Todo : | move the state code away from inversion_panel and move it here. Then remove the “prstate” input and make this method private. |
---|---|
Parameters: |
|
the plugin to its batch state if flag is True
receive a list of data to compute pr
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
Call-back method for the inversion state reader. This method is called when a .prv file is loaded.
Parameters: |
|
---|
Parameters: | theory_list – list of information |
---|
related to available theory state
Show data read from a file
Parameters: |
|
---|
return True if these plugin use data