<?xml version="1.0" encoding="UTF-8"?>

<!--
    =======================================================================
    File:         menus.xml
    Author:       Takis Diakoumis
    Description:  Menu and menu item definitions
    Date:         $Date: 2014-05-01 13:41:42 +1000 (Thu, 01 May 2014) $
    Version:      $Revision: 1337 $
    =======================================================================
-->


<menus>

    <menu name="File"
          mnemonic="F"
          class="org.underworldlabs.swing.menu.MainMenu">

          <menu-item id="new-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="open-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu name="Recent Files"
                mnemonic="R"
                class="org.executequery.gui.menu.RecentFilesMenu">

              <menu-item id="separator"/>
              
	          <menu-item id="clear-recent-files-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>
                
          </menu>

          <menu-item id="separator"/>

          <menu-item id="save-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="save-as-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu-item id="print-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="page-setup-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="print-preview-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>
        
          <menu-item id="separator"/>

          <menu-item id="exit-program-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

    </menu>

    <menu name="Edit"
          class="org.underworldlabs.swing.menu.MainMenu"
          mnemonic="E">

          <menu-item id="undo-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>
                     
          <menu-item id="redo-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>
                     
          <menu-item id="cut-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="copy-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="paste-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu name="Insert"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="I">
          
              <menu-item id="text-selection-command" 
                         name="Line After"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="A"
                         action-command="insertAfter"/>

              <menu-item id="text-selection-command" 
                         name="Line Before"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="B"
                         action-command="insertBefore"/>

              <menu-item id="text-selection-command" 
                         name="From File"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="F"
                         action-command="insertFromFile"/>

          </menu>

          <menu name="Delete"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="D">
          
              <menu-item id="text-selection-command" 
                         name="Selection"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="S"
                         action-command="deleteSelection"/>

              <menu-item id="text-selection-command" 
                         name="Line"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="L"
                         action-command="deleteLine"/>

              <menu-item id="text-selection-command" 
                         name="Word"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="W"
                         action-command="deleteWord"/>

          </menu>

          <menu-item id="separator"/>

          <menu-item id="move-row-up-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>
          
          <menu-item id="move-row-down-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="duplicate-row-up-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="duplicate-row-down-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu name="Change Case"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="C">
          
              <menu-item id="to-upper-case-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>
                         
              <menu-item id="to-lower-case-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

          </menu>
          
          <menu-item id="separator"/>
                         
          <menu-item id="text-selection-command" 
                     name="Select All"
                     class="org.underworldlabs.swing.menu.MainMenuItem"
                     mnemonic="S"
                     accel-key="control A"
                     action-command="selectAll"/>

          <menu-item id="text-selection-command" 
                     name="Select None"
                     class="org.underworldlabs.swing.menu.MainMenuItem"
                     mnemonic="N"
                     accel-key="ESCAPE"
                     action-command="selectNone"/>

    </menu>

    <menu name="Search"
          class="org.underworldlabs.swing.menu.MainMenu"
          mnemonic="S">

          <menu-item id="find-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>
                     
          <menu-item id="find-next-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>
                    
          <menu-item id="find-previous-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu-item id="replace-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="replace-next-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>
          
          <menu-item id="goto-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="find-in-files"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

    </menu>

    <menu name="View"
          mnemonic="V"
          class="org.executequery.gui.menu.ViewMenu">

          <menu-item name="Output Console"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="C"
                     action-command="viewConsole"
                     property-key="system.display.console"
                     tool-tip="Opens the system output console"/>

          <menu-item name="Connections"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="N"
                     action-command="viewConnections"
                     property-key="system.display.connections"
                     tool-tip="Opens the saved connections panel"/>

          <menu-item name="Keywords"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="K"
                     listener="org.executequery.actions.viewcommands.ViewOptionsCommand"
                     action-command="viewKeywords"
                     property-key="system.display.keywords"
                     tool-tip="Opens the keywords search and insert panel"/>

          <menu-item name="SQL State Codes"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="Q"
                     action-command="viewSqlStateCodes"
                     property-key="system.display.state-codes"
                     tool-tip="Opens the SQL State Codes docked panel"/>

          <menu-item name="Drivers"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="D"
                     action-command="viewDrivers"
                     property-key="system.display.drivers"
                     tool-tip="Opens JDBC drivers panel"/>

          <menu-item name="System Properties"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="P"
                     action-command="viewSystemProperties"
                     property-key="system.display.systemprops"
                     tool-tip="Opens the system properties palette"/>

          <menu-item name="Notepad"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="O"
                     action-command="viewNotepad"
                     property-key="system.display.notepad"
                     tool-tip="Displays the text notepad"/>
                     
          <menu-item name="Status Bar"
                     class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                     mnemonic="S"
                     action-command="viewStatusBar"
                     property-key="system.display.statusbar"
                     tool-tip="Displays the system status bar"/>
                     
          <menu-item id="separator"/>

          <menu name="Tool Bars"
                class="org.executequery.gui.menu.ToolBarsViewMenu"
                mnemonic="T">
          
              <menu-item name="File Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="F"
                         action-command="viewFileTools"
                         tool-tip="Displays the File tool bar"/>

              <menu-item name="Edit Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="E"
                         action-command="viewEditTools"
                         tool-tip="Displays the Edit tool bar"/>

              <menu-item name="Search Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="S"
                         action-command="viewSearchTools"
                         tool-tip="Displays the View tool bar"/>

              <menu-item name="Database Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="D"
                         action-command="viewDatabaseTools"
                         tool-tip="Displays the database tool bar"/>

              <menu-item name="Browser Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="B"
                         action-command="viewBrowserTools"
                         cache-name="viewBrowserTools"
                         tool-tip="Displays the browser tool bar"/>

              <menu-item name="Import/Export Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="X"
                         action-command="viewImportExportTools"
                         tool-tip="Displays the import/export tool bar"/>

              <menu-item name="System Tool Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="S"
                         action-command="viewSystemTools"
                         tool-tip="Displays the System tool bar"/>

              <menu-item id="separator"/>

              <menu-item id="customise-tool-bars-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         tool-tip="Customize the tool bars"/>

          </menu>

          <menu name="Query Editor"
                class="org.executequery.gui.menu.QueryEditorViewMenu"
                mnemonic="Q">

              <menu-item name="Status Bar"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="S"
                         action-command="viewEditorStatusBar"
                         tool-tip="Display the editor's status bar"/>

              <menu-item name="Line Numbers"
                         class="org.underworldlabs.swing.menu.MainCheckBoxMenuItem"
                         mnemonic="L"
                         action-command="viewEditorLineNumbers"
                         tool-tip="Display the editor's line numbers"/>

          </menu>

    </menu>

    <menu name="Database"
          class="org.underworldlabs.swing.menu.MainMenu"
          mnemonic="D">

          <menu name="Connections..."
                class="org.executequery.gui.menu.ConnectionsMenu">

              <menu-item id="connect-command"
                         index="0"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

              <menu-item id="separator"
                         index="1"/>

          </menu>

          <menu-item id="database-disconnect-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>
          
          <menu-item id="separator"/>
          
          <menu-item id="create-table-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="create-index-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="execute-object"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="compare-data-types"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>
                     
          <menu-item id="export-resultset-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="execute-sql-script-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="generate-scripts-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu name="Generate ERD"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="G">

              <menu-item id="create-erd-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>
                         
              <menu-item id="map-erd-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

          </menu>

    </menu>

    <menu name="Tools"
          class="org.underworldlabs.swing.menu.MainMenu"
          mnemonic="T">

          <menu-item id="editor-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="scratch-pad-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="user-keywords-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu name="Import Data"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="I">

              <menu-item id="import-xml-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

              <menu-item id="import-delimited-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

          </menu>

          <menu name="Export Data"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="X">

              <menu-item id="export-xml-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

              <menu-item id="export-delimited-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

              <menu-item id="export-sql-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

              <menu-item id="export-excel-command"
                         class="org.underworldlabs.swing.menu.MainMenuItem"/>

          </menu>

          <menu-item id="separator"/>

          <menu name="System Logs"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="L">

              <menu-item id="application-logs-command"
                         name="System Output Log"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="S"
                         action-command="viewSystemLog"
                         tool-tip="View the system output log"/>

              <menu-item id="application-logs-command"
                         name="Data Export Log"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="X"
                         action-command="viewExportLog"
                         tool-tip="View the data export log"/>

              <menu-item id="application-logs-command"
                         name="Data Import Log"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="I"
                         action-command="viewImportLog"
                         tool-tip="View the data import log"/>

              <menu-item id="separator"/>

              <menu name="Reset Logs"
                    class="org.underworldlabs.swing.menu.MainMenu"
                    mnemonic="R">

                  <menu-item id="application-logs-command"
                         name="System Output Log"
                             class="org.underworldlabs.swing.menu.MainMenuItem"
                             mnemonic="S"
                             action-command="resetSystemLog"
                             tool-tip="Reset the system output log"/>

                  <menu-item id="application-logs-command"
                             name="Data Export Log"
                             class="org.underworldlabs.swing.menu.MainMenuItem"
                             mnemonic="X"
                             action-command="resetExportLog"
                             tool-tip="Reset the data export log"/>

                  <menu-item id="application-logs-command"
                             name="Data Import Log"
                             class="org.underworldlabs.swing.menu.MainMenuItem"
                             mnemonic="I"
                             action-command="resetImportLog"
                             tool-tip="Reset the data import log"/>

                  <menu-item id="separator"/>

                  <menu-item id="application-logs-command"
                             name="Reset All"
                             class="org.underworldlabs.swing.menu.MainMenuItem"
                             mnemonic="A"
                             action-command="resetAllLogs"
                             tool-tip="Reset all logs"/>

              </menu>
                
          </menu>
          
          <menu-item id="console-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="heap-memory-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu-item id="preferences-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

    </menu>

    <menu name="Window"
          class="org.underworldlabs.swing.menu.MainMenu"
          mnemonic="W">

          <menu-item id="select-next-tab"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="select-previous-tab"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="select-next-tab-container"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu-item id="close-all-tabs"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="close-selected-tab"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="close-all-tabs-in-container"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

    </menu>

    <menu name="Help"
          class="org.underworldlabs.swing.menu.MainMenu"
          mnemonic="H">

          <menu-item id="help-command"
                     name="Help Contents"
                     class="org.underworldlabs.swing.menu.MainMenuItem"
                     mnemonic="H"
                     accel-key="F1"/>

          <menu-item id="help-command"
                     name="Search for help on"
                     class="org.underworldlabs.swing.menu.MainMenuItem"
                     mnemonic="S"
                     accel-key="{-NULL-}"
                     action-command="search_help_on"/>

          <menu-item id="separator"/>

          <menu-item id="license-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="release-notes-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="separator"/>

          <menu-item id="check-update-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="visit-eq-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu-item id="donate-command"
                     class="org.underworldlabs.swing.menu.MainMenuItem"/>

          <menu name="Feedback"
                class="org.underworldlabs.swing.menu.MainMenu"
                mnemonic="F">

              <menu-item id="feedback-command"
                         name="User Comments"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="C"
                         action-command="userComments"/>

              <menu-item id="feedback-command"
                         name="Feature Request"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="F"
                         action-command="featureRequest"/>

              <menu-item id="feedback-command"
                         name="Report Bug"
                         class="org.underworldlabs.swing.menu.MainMenuItem"
                         mnemonic="B"
                         action-command="bugReport"/>

          </menu>
                     
          <menu-item id="separator"/>

          <menu-item id="about-command" class="org.underworldlabs.swing.menu.MainMenuItem"/>

    </menu>

</menus>
