<?xml version="1.0"?>
<menutoolbar>
    <actions icon-base-path="com/smardec/demo/asc/img/xmlbars">
        <action id="File.New" class="com.smardec.demo.asc.actions.file.FileActionNew"
            text="New File"
            mnemonic="n"
            keystroke="control N"
            icon="New16.gif"
            large-icon="New24.gif"
            tooltip="Create new file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Open" class="com.smardec.demo.asc.actions.file.FileActionOpen"
            text="Open File"
            mnemonic="o"
            keystroke="control O"
            icon="Open16.gif"
            large-icon="Open24.gif"
            tooltip="Open existing file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Save" class="com.smardec.demo.asc.actions.file.FileActionSave"
            text="Save File"
            mnemonic="s"
            keystroke="control S"
            icon="Save16.gif"
            large-icon="Save24.gif"
            tooltip="Save current file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Refresh" class="com.smardec.demo.asc.actions.file.FileActionRefresh"
            text="Reload File"
            mnemonic="s"
            keystroke="control R"
            icon="Refresh16.gif"
            large-icon="Refresh24.gif"
            tooltip="Reload current file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Close" class="com.smardec.demo.asc.actions.file.FileActionClose"
            text="Close File"
            mnemonic="c"
            keystroke="control F4"
            tooltip="Close current file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.CloseAll" class="com.smardec.demo.asc.actions.file.FileActionCloseAll"
            text="Close All"
            mnemonic="a"
            keystroke="control shift F4"
            tooltip="Close all files"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Print" class="com.smardec.demo.asc.actions.file.FileActionPrint"
            text="Print..."
            mnemonic="p"
            keystroke="control p"
            icon="Print16.gif"
            tooltip="Print file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Export" class="com.smardec.demo.asc.actions.file.FileActionExport"
            text="Export..."
            mnemonic="e"
            keystroke="control shift E"
            icon="Export16.gif"
            tooltip="Export file"
            enabled="true"
            group-id="Group.File"/>
        <action id="File.Exit" class="com.smardec.demo.asc.actions.file.FileActionExit"
            text="Exit"
            mnemonic="x"
            tooltip="Close open files"
            enabled="true"
            group-id="Group.File"/>
        <action id="Edit.Undo" class="com.smardec.demo.asc.actions.edit.EditActionUndo"
            text="Undo"
            mnemonic="u"
            keystroke="control Z"
            icon="Undo16.gif"
            large-icon="Undo24.gif"
            tooltip="Undo last operation"
            enabled="true"
            group-id="Group.Edit"/>
        <action id="Edit.Redo" class="com.smardec.demo.asc.actions.edit.EditActionRedo"
            text="Redo"
            mnemonic="r"
            keystroke="control shift Z"
            icon="Redo16.gif"
            large-icon="Redo24.gif"
            tooltip="Redo last undone operation"
            enabled="true"
            group-id="Group.Edit"/>
        <action id="Edit.Copy" class="com.smardec.demo.asc.actions.edit.EditActionCopy"
            text="Copy"
            mnemonic="c"
            keystroke="control C"
            icon="Copy16.gif"
            large-icon="Copy24.gif"
            tooltip="Copy to clipboard"
            enabled="true"
            group-id="Group.Edit"/>
        <action id="Edit.Cut" class="com.smardec.demo.asc.actions.edit.EditActionCut"
            text="Cut"
            mnemonic="t"
            keystroke="control X"
            icon="Cut16.gif"
            large-icon="Cut24.gif"
            tooltip="Cut to clipboard"
            enabled="true"
            group-id="Group.Edit"/>
        <action id="Edit.Paste" class="com.smardec.demo.asc.actions.edit.EditActionPaste"
            text="Paste"
            mnemonic="p"
            keystroke="control V"
            icon="Paste16.gif"
            large-icon="Paste24.gif"
            tooltip="Paste from clipboard"
            enabled="true"
            group-id="Group.Edit"/>
        <action id="Edit.SelectAll" class="com.smardec.demo.asc.actions.edit.EditActionSelectAll"
            text="Select All"
            mnemonic="a"
            keystroke="control A"
            tooltip="Select All"
            enabled="true"
            group-id="Group.Edit"/>
        <action id="View.Toolbar" class="com.smardec.demo.asc.actions.view.ViewActionToolbar"
            text="Toolbar"
            mnemonic="t"
            tooltip="Show/hide toolbar"
            enabled="true"
            group-id="Group.View"/>
        <action id="View.Statusbar" class="com.smardec.demo.asc.actions.view.ViewActionStatusbar"
            text="Statusbar"
            mnemonic="s"
            tooltip="Show/hide statusbar"
            enabled="true"
            group-id="Group.View"/>
        <action id="View.ZoomIn" class="com.smardec.demo.asc.actions.view.ViewActionZoomIn"
            text="Zoom in"
            icon="ZoomIn16.gif"
            large-icon="ZoomIn24.gif"
            tooltip="Zoom picture in"
            enabled="true"
            group-id="Group.View"/>
        <action id="View.ZoomOut" class="com.smardec.demo.asc.actions.view.ViewActionZoomOut"
            text="Zoom out"
            icon="ZoomOut16.gif"
            large-icon="ZoomOut24.gif"
            tooltip="Zoom picture out"
            enabled="true"
            group-id="Group.View"/>
        <action id="View.ZoomReset" class="com.smardec.demo.asc.actions.view.ViewActionZoomReset"
            text="Reset zoom"
            icon="ZoomReset16.gif"
            large-icon="ZoomReset24.gif"
            tooltip="Reset picture zoom"
            enabled="true"
            group-id="Group.View"/>
        <action id="Text.AlignLeft" class="com.smardec.demo.asc.actions.text.TextActionAlignLeft"
            text="Align left"
            icon="AlignLeft16.gif"
            large-icon="AlignLeft24.gif"
            tooltip="Align text left"
            enabled="true"
            group-id="Text.Align"/>
        <action id="Text.AlignCenter" class="com.smardec.demo.asc.actions.text.TextActionAlignCenter"
            text="Align center"
            icon="AlignCenter16.gif"
            large-icon="AlignCenter24.gif"
            tooltip="Align text center"
            enabled="true"
            group-id="Text.Align"/>
        <action id="Text.AlignRight" class="com.smardec.demo.asc.actions.text.TextActionAlignRight"
            text="Align right"
            icon="AlignRight16.gif"
            large-icon="AlignRight24.gif"
            tooltip="Align text right"
            enabled="true"
            group-id="Text.Align"/>
        <action id="Text.AlignJustify" class="com.smardec.demo.asc.actions.text.TextActionAlignJustify"
            text="Align justify"
            icon="AlignJustify16.gif"
            large-icon="AlignJustify24.gif"
            tooltip="Align text justify"
            enabled="true"
            group-id="Text.Align"/>
        <action id="Text.StyleBold" class="com.smardec.demo.asc.actions.text.TextActionStyleBold"
            text="Style bold"
            icon="Bold16.gif"
            large-icon="Bold24.gif"
            tooltip="Text style bold"
            enabled="true"
            group-id="Text.Style"/>
        <action id="Text.StyleItalic" class="com.smardec.demo.asc.actions.text.TextActionStyleItalic"
            text="Style italic"
            icon="Italic16.gif"
            large-icon="Italic24.gif"
            tooltip="Text style italic"
            enabled="true"
            group-id="Text.Style"/>
        <action id="Text.StyleUnderline" class="com.smardec.demo.asc.actions.text.TextActionStyleUnderline"
            text="Style underline"
            icon="Underline16.gif"
            large-icon="Underline24.gif"
            tooltip="Text style underline"
            enabled="true"
            group-id="Text.Style"/>

        <action id="Media.Prev" class="com.smardec.demo.asc.actions.media.MediaActionPrev"
            text="Previous track"
            icon="Prev16.gif"
            large-icon="Prev24.gif"
            tooltip="Play previous track"
            enabled="true"
            group-id="Group.Media"/>
        <action id="Media.Play" class="com.smardec.demo.asc.actions.media.MediaActionPlay"
            text="Play"
            icon="Play16.gif"
            large-icon="Play24.gif"
            tooltip="Play track"
            enabled="true"
            group-id="Group.Media"/>
        <action id="Media.Pause" class="com.smardec.demo.asc.actions.media.MediaActionPause"
            text="Pause"
            icon="Pause16.gif"
            large-icon="Pause24.gif"
            tooltip="Pause track"
            enabled="true"
            group-id="Group.Media"/>
        <action id="Media.Stop" class="com.smardec.demo.asc.actions.media.MediaActionStop"
            text="Stop"
            icon="Stop16.gif"
            large-icon="Stop24.gif"
            tooltip="Stop track"
            enabled="true"
            group-id="Group.Media"/>
        <action id="Media.Next" class="com.smardec.demo.asc.actions.media.MediaActionNext"
            text="Next"
            icon="Next16.gif"
            large-icon="Next24.gif"
            tooltip="Next track"
            enabled="true"
            group-id="Group.Media"/>

    </actions>

    <menubars>
        <menubar id="MenuBar.Main">
            <items>
                <menu id="Menu.File" text="File" mnemonic="f">
                    <items>
                        <item action-id="File.New"/>
                        <item action-id="File.Open"/>
                        <item action-id="File.Save"/>
                        <item action-id="File.Refresh"/>
                        <separator/>
                        <item action-id="File.Close"/>
                        <item action-id="File.CloseAll"/>
                        <separator/>
                        <item action-id="File.Print"/>
                        <item action-id="File.Export"/>
                        <separator/>
                        <item action-id="File.Exit"/>
                    </items>
                </menu>
                <menu id="Menu.Edit" text="Edit" mnemonic="e">
                    <items>
                        <item action-id="Edit.Undo"/>
                        <item action-id="Edit.Redo"/>
                        <separator/>
                        <item action-id="Edit.Copy"/>
                        <item action-id="Edit.Cut"/>
                        <item action-id="Edit.Paste"/>
                        <separator/>
                        <item action-id="Edit.SelectAll"/>
                    </items>
                </menu>
                <menu id="Menu.View" text="View" mnemonic="v">
                    <items>
                        <item action-id="View.Toolbar" type="IconicCheckBox"/>
                        <item action-id="View.Statusbar" type="IconicCheckBox"/>
                        <separator/>
                        <menu id="Menu.LAF" text="Look&amp;Feel" class="com.smardec.demo.asc.menu.JMenuLaF"/>
                        <separator/>
                        <item action-id="View.ZoomIn"/>
                        <item action-id="View.ZoomOut"/>
                        <item action-id="View.ZoomReset"/>
                    </items>
                </menu>
                <menu id="Menu.Text" text="Text" mnemonic="t">
                    <items>
                        <item action-id="Text.AlignLeft" type="AscRadioButton" button-group="Text.Align"/>
                        <item action-id="Text.AlignCenter" type="AscRadioButton" button-group="Text.Align"/>
                        <item action-id="Text.AlignRight" type="AscRadioButton" button-group="Text.Align"/>
                        <item action-id="Text.AlignJustify" type="AscRadioButton" button-group="Text.Align"/>
                        <separator/>
                        <item action-id="Text.StyleBold" type="AscCheckBox" />
                        <item action-id="Text.StyleItalic" type="AscCheckBox" />
                        <item action-id="Text.StyleUnderline" type="AscCheckBox" />
                    </items>
                </menu>

            </items>
        </menubar>
    </menubars>

    <popups>
        <popupmenu id="PopupMenu.File">
            <items>
                <item action-id="File.New"/>
                <separator/>
                <item action-id="File.New"/>
                <menu id="Menu.Popup.Test" text="Test">
                    <items>
                        <item action-id="File.New"/>
                        <separator/>
                        <item action-id="File.New"/>
                    </items>
                </menu>
            </items>
        </popupmenu>
    </popups>

    <toolbars>
        <toolbar id="ToolBar.Main" name="Main" orientation="horizontal" floatable="yes" button-size="28">
            <items>
                <item action-id="File.New"/>
                <item action-id="File.Open"/>
                <item action-id="File.Save"/>
                <item action-id="File.Refresh"/>
                <separator/>
                <item action-id="Edit.Undo"/>
                <item action-id="Edit.Redo"/>
                <separator/>
                <item action-id="Edit.Copy"/>
                <item action-id="Edit.Cut"/>
                <item action-id="Edit.Paste"/>
                <separator/>
                <item action-id="Text.AlignLeft" type="ToggleButton" button-group="Text.Align"/>
                <item action-id="Text.AlignCenter" type="ToggleButton" button-group="Text.Align"/>
                <item action-id="Text.AlignRight" type="ToggleButton" button-group="Text.Align"/>
                <item action-id="Text.AlignJustify" type="ToggleButton" button-group="Text.Align"/>
                <separator/>
                <item action-id="Text.StyleBold" type="ToggleButton"  />
                <item action-id="Text.StyleItalic" type="ToggleButton" />
                <item action-id="Text.StyleUnderline" type="ToggleButton" />
            </items>
        </toolbar>
        <toolbar id="ToolBar.Zoom" name="Zoom" orientation="horizontal" floatable="yes" button-size="28">
            <items>
                <item action-id="View.ZoomIn"/>
                <item action-id="View.ZoomOut"/>
                <item action-id="View.ZoomReset"/>
            </items>
        </toolbar>
        <toolbar id="ToolBar.Media" name="Media" orientation="horizontal" floatable="yes" button-size="28">
            <items>
                <item action-id="Media.Prev"/>
                <item action-id="Media.Play"/>
                <item action-id="Media.Pause"/>
                <item action-id="Media.Stop"/>
                <item action-id="Media.Next"/>
            </items>
        </toolbar>
        <toolbar id="ToolBar.Media2" name="Media2" orientation="horizontal" floatable="yes" button-size="28">
            <items>
                <item action-id="Media.Prev"/>
                <item action-id="Media.Play"/>
                <item action-id="Media.Pause"/>
                <item action-id="Media.Stop"/>
                <item action-id="Media.Next"/>
            </items>
        </toolbar>
        <toolbar id="ToolBar.Media3" name="Media3" orientation="horizontal" floatable="yes" button-size="28">
            <items>
                <item action-id="Media.Prev"/>
                <item action-id="Media.Play"/>
                <item action-id="Media.Pause"/>
                <item action-id="Media.Stop"/>
                <item action-id="Media.Next"/>
            </items>
        </toolbar>
    </toolbars>
</menutoolbar>
