Working With EVRIADDON

From Eigenvector Research Documentation Wiki
Revision as of 11:10, 16 April 2010 by imported>Scott (→‎Adding an PLOTGUI Toolbar Button)
Jump to navigation Jump to search

The evriaddon object allows for existing functions to "query" for additional functionality. A good example is a function that lists import methods. This function might construct a list of known import methods then "query" evriaddon for any additional import methods that a user may have added.

Examples

Adding an PLOTGUI Toolbar Button

In this example we'll add a button to the plotgui toolbar (the toolbar that appears on the "target" figure).

1) The function that uses evriaddon in this situation is plotgui_toolbar.m. Opening this function we can see that to add a button we need to add an entry to the list (n x 7 cell array of strings) of buttons with the following format:


tag icon callback enable/disable tooltip separator on/off push/toggle button


In the PLS_Toolbox/utilities/@evriaddon folder, open the addon_pls_toolbox.m file. 2)