Working With EVRIADDON: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(Created page with '__TOC__ The '''evriaddon''' object allows for existing functions to "query" for additional functionality. A good example is a function that lists import methods. This function mi…')
 
imported>Scott
Line 10: Line 10:




{| class="wikitable" border="1"
{| class="wikitable" border="1" cellpadding="3" style="width:100px; height:100px"|-
!width="100pt"|'''tag'''
!width="100pt"|'''icon'''
!width="100pt"|'''callback'''
!width="100pt"|'''enable/disable'''
!width="100pt"|'''tooltip'''
|'''separator on/off'''
|'''push/toggle button'''
|-
|-
|width="100pt"|This column is 100 points wide
|width="200pt"|This column is 200 points wide
|width="300pt"|This column is 300 points wide
|-
| tag || icon || callback || enable/disable || tooltip || separator on/off || push or toggle button
|}
|}



Revision as of 11:10, 16 April 2010

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)