Filemenu XML

Format of customized filemenu.xml files.

XML Overview

Use filemenu.xml to load additional plug-in features through the included *.xml files. It references all required resources by relative paths.

Example

Figure 1.


Figure 2.


Tags

root

Base container for the toolbar.
Attributes
none
Children
button

button

Each individual button is specified by name/value pairs.
Attributes
text, tag, tooltip, image, command
Children
item

item

Each individual item is specified by name/value pairs.
Attributes
text, tag, hint, command
Children
none

Example XML

<root>
  <button tag="Ext_Filemenu_HV1" 
           text="Custom Entry 1"
           tooltip="Custom file menu entry 1"
           image="fileHelpStrip-24.png">
    <item tag="Ext_Filemenu_HV1_A"
           text="Custom Option A"
           hint="Custom file menu sub-entry A"
           command="tcl: tk_messageBox -title &quot;Option A&quot; 
				  -message &quot;Option A is working.&quot;"/>
  <item tag="Ext_Filemenu_HV1_B"
            text="Custom Option B"
            hint="Custom file menu sub-entry B"
            command="tcl: tk_messageBox -title &quot;Option B&quot;
				   -message &quot;Option B is working.&quot;"/>
   </button>
   <button        tag="Ext_Filemenu_HV2"
                  text="Custom Entry 2"
                  tooltip="Custom file menu entry 2"
                  image="fileOpenStrip-24.png"
                  command="tcl: tk_messageBox -title &quot;
					  Custom Entry 2&quot; -message &quot;
					  Placeholder for a custom 
					  open procedure.&quot;">
   </button>
</root>