Working With EVRIADDON
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:
This column is 100 points wide | This column is 200 points wide | This column is 300 points wide | ||||
tag | icon | callback | enable/disable | tooltip | separator on/off | push or toggle button |
In the PLS_Toolbox/utilities/@evriaddon folder, open the addon_pls_toolbox.m file. 2)