<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE MenuSystem SYSTEM "http://java.freehep.org/schemas/menus/1.1/menus.dtd">

<MenuSystem>
    <!-- Create some menu items corresponding to functionality defined by the tutorial plugin -->
    <!-- mainMenu is the name of the default top level menu bar -->
    <MenuBar id="mainMenu">
        <!-- location is used to indicate where this new menu item should go relative to other existing
        menu items. Unforuntately there is no easy way to know what the ids of the existing menu items
        are, so some trial and error may be required
        -->
        <Menu name="Tutorial" mnemonic="T" location="150">
            <!-- A simple command which will trigger the onChooseMe() method in the TutorialCommands class -->
            <Component type="default" name="Choose Me" mnemonic="c" command="chooseMe"  location="100" icon="Letter C.png"/>
            <!-- This command will be permanently disabled, since there is no corresponing onDummy() method -->
            <Component type="default" name="Disabled" mnemonic="d" command="dummy"  location="110"/>
            <!-- Illustrates how to put a checkbox in a menu. In this case we use this checkbox to control 
                 enabled/disabled state of the Choose Me button above -->
            <Component type="checkbox" name="Enable Choose Me" mnemonic="e" command="enableChooseMe"  location="120" icon="Letter E.png"/>
            <!-- These buttons trigger the page demos -->
            <Component type="default" name="Open Tutorial Page" mnemonic="t" command="openTutorialPage"  location="200" icon ="Letter T.png"/>
            <Component type="default" name="Open Advanced Tutorial Page" mnemonic="a" command="openAdvancedTutorialPage"  location="300" icon ="Letter A.png"/>
            <!-- This illustrates how to create sub-menus -->
            <Menu name="Create Console" mnemonic="C" location="400">
                <Component type="default" name="Create Demo Input Console" mnemonic="i" command="createDemoInputConsole"  location="100"/>
                <Component type="default" name="Create Demo Output Console" mnemonic="o" command="createDemoOutputConsole"  location="200"/>
                <Component type="default" name="Create Demo Input/Output Console" mnemonic="c" command="createDemoInputOutputConsole"  location="300"/>
            </Menu>
        </Menu>
    </MenuBar>
    <!-- Any number of toolbars can be defined. Often (as in this case) they provide shortcuts to
    items defined in the menus. By default toolbars are visible when at least one item in the
    toolbar is active, but users can overide this behaviour by using popup menus attached to the  
    toolbar itself -->
    <ToolBar id="tutorialToolbar" name="Tutorial Toolbar">
        <Component type="default" name="Choose Me" mnemonic="c" command="chooseMe"  location="100" icon="Letter C.png"/>
        <Component type="checkbox" name="Enable Choose Me" mnemonic="e" command="enableChooseMe"  location="120" icon="Letter E.png"/>
        <Component type="default" name="Open Tutorial Page" mnemonic="o" command="openTutorialPage"  location="200" icon ="Letter T.png"/>
        <Component type="default" name="Open Advanced Tutorial Page" mnemonic="a" command="openAdvancedTutorialPage"  location="300" icon ="Letter A.png"/>
    </ToolBar>
</MenuSystem>