<ui>
    <menubar name="MenuBar">
        <!--example
            <menuitem
                action="UniqueStringIdentifier"
                icon="convert"
                label="_What you see in the menu"
                hotkey="control+alt+shift+<Meta><Super><Hyper>a"
                tooltip="what you see in the statusbar when you highlight this menuitem"
                if="python expression evaluating to True when you want this menuitem to exist"
            />
            for a list of valid icons,
            http://pygtk.org/pygtk2reference/gtk-stock-items.html
            flauxtext automatically prepends "gtk.STOCK_" to the value, and raises it to all caps.
            'if' attributes are valid only in menu, menuitem, and toolitem tags.
            
            convention: menu action names are CamelCase, menuitem action names are python_pretty_with_underscores because menuitem action names correspond with method names.
            icon names are usually lowercase, because i'm a minimalist, but you can capitalize them hOwEvEr YoU wAnT; they'll be upper()ed.
            
            callbacks are self.callback_%(action name before "__")s. if '__' is in the action name, each "__" separated string after the first '__' is passed to the callback.
        -->
        <menu action="File" label="_File">
            <menuitem action="new" icon="new" label="_New" hotkey="control+n" tooltip="we require... another shrubbery!"/>
            <menu action="Makethis" icon="add" label="Ma_ke New">
                <menuitem action="make__tex" label="_TeX"/>
                <menuitem action="make__python" label="_Python"/>
                <menuitem action="make__bash" label="_Bash"/>
                <menuitem action="make__c" label="_C"/>
                <menuitem action="make__html" label="_HTML"/>
                <menuitem action="make__java" label="_Java"/>
            </menu>
            <menuitem action="open" icon="open" label="_Open" hotkey="control+o" tooltip="open existing file"/>
            <menuitem action="save" icon="save" label="_Save" hotkey="control+s" tooltip="save current buffer under existing pathname"/>
            <menuitem action="saveas" icon="save_as" label="Save _As" hotkey="control+shift+s" tooltip="save current buffer under a different pathname"/>
            <menuitem action="reload" icon="refresh" label="_Reload" tooltip="close current file, reopen it"/>
            <menuitem action="delete" icon="delete" label="_Delete" tooltip="do not pass GO, do not go to the recycle bin, do not collect 200Kb, ERASE"/>
            <menuitem action="print" icon="print" label="Prin_t" hotkey="control+p" tooltip="to a printer... on paper"/>
            <menuitem action="quit" icon="quit" label="_Quit" hotkey="control+q"/>
            <separator/>
            <menu action="Specials" icon="about" label="_Extra Special Files">
                <menuitem action="add_remove_special" label="_Add/Remove Current" tooltip="if current file is in the special list, remove it, else add it"/>
                <!--[SPECIAL FILES]-->
                <!--move/copy the above comment to wherever you want a list of menuitems pointing to your special files. 
                    if you want the menuitems to disappear entirely, change/remove the above comment.
                -->
            </menu>
            <!--if you want to change the label on the menuitem for any of these menuitems, scroll down to Flauxtext.__init__().
                look for the block of lines that begin with parentheses and end with commas.
                there should be a comment down there pointing out which element of the tuples sets the labels.
                
                if you want to hide a menuitem, but still have access to its function through its hotkey, 
                change its tagname from "menuitem" to "accelerator", and move it to the toplevel [outside the 'menubar' tags, but inside the 'ui' tags]
            -->
        </menu>
        <menu action="Edit" label="_Edit">
            <menuitem action="undo" icon="undo" label="_Undo" hotkey="control+z" tooltip="undo your last edit"/>
            <menuitem action="redo" icon="redo" label="_Redo" hotkey="control+shift+Z" tooltip="redo the last undone edit"/>
            <separator/>
            <menuitem action="find" icon="find_and_replace" label="_Find + Replace" hotkey="control+f" tooltip="find a string in the current buffer"/>
            <menuitem action="find_again" icon="find_and_replace" label="Find  _Again" hotkey="F3" tooltip="repeat search with the same parameters"/>
            <menuitem action="find_previous" icon="find_and_replace" label="Find _previous" hotkey="shift+F3" tooltip="same as above, only backwards"/>
            <menuitem action="goto_line" icon="jump_to" label="_Goto" hotkey="control+g" tooltip="goto a specific line number"/>
            <menuitem action="goto_paren" icon="jump_to" label="G_ot_o Br_other Paren" hotkey="control+shift+g" tooltip="move cursor to after paren matching the paren right before where the cursor is now"/>
            <separator/>
            <menu action="Insert" icon="add" label="_Insert">
                <menuitem action="insert_file" label="_File" tooltip="insert contents of another file into current buffer"/>
                <menuitem action="insert_time_date" label="_Date, Time" tooltip="inserts the current time and date at the cursor."/>
                <menuitem action="insert_unicode" label="_Unicode" tooltip="select a unicode character from a dialog"/>
                <menu action="MultiplePaste" label="Multiple _Paste">
                    <menuitem action="multiple_paste__0" label="Paste _0" hotkey="control+0"/>
                    <menuitem action="multiple_paste__1" label="Paste _1" hotkey="control+1"/>
                    <menuitem action="multiple_paste__2" label="Paste _2" hotkey="control+2"/>
                    <menuitem action="multiple_paste__3" label="Paste _3" hotkey="control+3"/>
                    <menuitem action="multiple_paste__4" label="Paste _4" hotkey="control+4"/>
                    <menuitem action="multiple_paste__5" label="Paste _5" hotkey="control+5"/>
                    <menuitem action="multiple_paste__6" label="Paste _6" hotkey="control+6"/>
                    <menuitem action="multiple_paste__7" label="Paste _7" hotkey="control+7"/>
                    <menuitem action="multiple_paste__8" label="Paste _8" hotkey="control+8"/>
                    <menuitem action="multiple_paste__9" label="Paste _9" hotkey="control+9"/>
                </menu>
            </menu>
            <menu action="Selection" icon="convert" label="_Selected">
                <menuitem action="multiple_copy" icon="copy" label="Copy to new/last MCP file" hotkey="control+b" tooltip="put all/selected text in an MCP file"/>
            </menu>
        </menu>
        <menu action="View" label="_View">
            <menu action="SwitchTabs" icon="go_forward" label="Switch _Tabs">
                <menuitem action="previous_tab" icon="go_back" label="_Prev Tab" hotkey="F11" tooltip="cycle backward through tabs"/>
                <menuitem action="next_tab" icon="go_forward" label="_Next Tab" hotkey="F12" tooltip="cycle forward through tabs"/>
                <menuitem action="previous_n_tab" icon="media_rewind" label="_Backward 5 Tabs" hotkey="control+F11" tooltip="cycle backward through many tabs faster"/>
                <menuitem action="next_n_tab" icon="media_forward" label="Forward _5 Tabs" hotkey="control+F12" tooltip="cycle forward through many tabs faster"/>
            </menu>
            <menu action="Fonts" icon="select_font" label="_Font">
                <menuitem action="colors" icon="select_color" label="_Colors" tooltip="do fun things with colors"/>
                <menuitem action="font" icon="select_font" label="_Select" tooltip="open a dialogue to change how the text looks"/>
                <menuitem action="font_resize__-200" label="Shrin_k" hotkey="control+minus" tooltip="decrease the current font's size by one point"/>
                <menuitem action="font_resize__200" label="_Enlargen" hotkey="control+equal" tooltip="increase the current font's size by one point"/>
            </menu>
            <menu action="Transparency">
                <!--this is just a placeholder for plugins/transparency.xml
                    empty menus are ignored, so if transparency.xml decides you can't have transparency, this menu won't exist.
                -->
            </menu>
            <menu action="Toggles" icon="apply" label="_Toggles">
                <!--toggle_init attributes flag an action as a toggle action and specify the initial value;
                    they are python expressions which are evaluated in the constructor.
                -->
                <menuitem action="toggle_autoindentation" label="_AutoIndent" hotkey="control+i" tooltip="start/stop screwing with leading spaces" toggle_init="autoindent"/>
                <menuitem action="toggle_tabbar" label="_Tab Bar" toggle_init="tabsvisible"/>
                <menuitem action="toggle_linenums" label="_Line Numbers" tooltip="you know, the columns of integers to the side[s] of the textbuffer...." toggle_init="linenums != 'None'"/>
                <menuitem action="toggle_statusbar" label="Status _Bar" toggle_init="showstatbar"/>
                <menuitem action="toggle_keep_above" label="_Keep Above Other Windows" toggle_init="keepaboveothers"/>
                <menuitem action="toggle_tearoff_menus" label="Allow _menus to be torn off" toggle_init="tearoffmenus"/>
                <menuitem action="toggle_highlight_parens" label="_Hilight brother parens" tooltip="if cursor is after one of &#40;&#91;&#123;&#60;&#41;&#93;&#125;&#62; hilight it and its brother &#41;&#93;&#125;&#62;&#40;&#91;&#123;&#60;" toggle_init="findparens"/>
                <menuitem action="toggle_right_edge" label="_Right Edge" toggle_init="rightedge"/>
                <menuitem action="toggle_editable" label="_Editable" tooltip="stop you from inadvertently changing the contents." toggle_init="True"/>
                <menuitem action="toggle_autosave" label="Auto_Save" tooltip="automatically save all documents every autosavenseconds seconds" toggle_init="autosaveinit"/>
            </menu>
            <menu action="Window" label="Wind_ow">
                <menuitem action="iconify" icon="remove" label="_Iconify" hotkey="alt+Escape" tooltip="hide the window, keep the program open... aka minimize"/>
                <menuitem action="maximize" icon="zoom_fit" label="[un]_Maximize" hotkey="alt+F11"/>
                <menuitem action="reposition" icon="jump_to" label="_Reposition" hotkey="alt+F10" tooltip="move the window to where you set in config.flauxtext"/>
                <menuitem action="resize" icon="zoom_fit" label="Resi_ze" tooltip="resize the window to the width, height you set in config.flauxtext"/>
            </menu>
            <menu action="Split" label="Sp_lit">
                <menuitem action="split_vertically" label="_Vertically"/>
                <menuitem action="split_horizontally" label="_Horizontally"/>
            </menu>
            <menu action="Peek" label="_Peek at...">
                <menuitem action="view_undo_stack" icon="undo" label="_Undo Stack" tooltip="look at how you've changed the document."/>
                <menuitem action="preview_mcp" label="_MultipleCopyPaste" tooltip="open a dialog showing the 10 files containing your multiple copy-paste data"/>
            </menu>
            <menuitem action="word_wrap" icon="justify_left" label="Rotate _Word _Wrap" hotkey="control+r" tooltip="wrap text by word, by character, and not at all."/>
            <menuitem action="statistics" icon="properties" label="_See _Stati_stic_s" tooltip="get useful numbers [of characters [including parentheses/brackets/braces!] and words]"/>
            <separator/>
            <menuitem action="close_current" icon="close" label="_Close _Current" hotkey="control+w" tooltip="close current buffer"/>
            <menuitem action="close_all_but_current" icon="close" label="Close All _But Current" hotkey="control+shift+w" tooltip="leave only current file open"/>
        </menu>
        <menu action="Tools" label="_Tools">
            <menu action="Run" icon="execute" label="_Run">
                <menuitem action="run" icon="execute" label="_Run" hotkey="F5" tooltip="run the current file with the command in config.flauxtext."/>
                <menuitem action="run_args" icon="execute" label="Run _With Args" hotkey="shift+F5" tooltip="pass arguments to your script"/>
                <menuitem action="get_output" icon="execute" label="_Get Output" tooltip="set a new buffer's content to the output of a command"/>
                <menuitem action="run_get_output" icon="execute" label="R_un &amp; Get Output" hotkey="alt+F5" tooltip="run this script, set a new buffer's content to the script's output"/>
                <menuitem action="run_args_get_output" icon="execute" label="Run With Args _&amp; Get Output" hotkey="alt+shift+F5" tooltip="the culmination/combination of all the above"/>
                <menuitem action="exec" icon="execute" label="E_xec in flauxtext" hotkey="alt+Return" tooltip="script flauxtext while it's running"/>
            </menu>
            <menu action="Posix" label="Posi_x Tools" if="os.name == 'posix'">
                <menuitem action="permissions" label="S_et P_ermissions" tooltip="set the permissions on this file"/>
                <menuitem action="man_page" label="_Man page" tooltip="grok a manpage; appends dialog entry to the 'man ' command"/>
            </menu>
            <menu action="Logging" label="_Logging">
                <!--place-holder for logging.xml
                -->
            </menu>
            <menu action="SourceHighlight">
                <!--place-holder for sourcehighlight.xml
                -->
            </menu>
            <menuitem action="terminal" icon="network" label="_Terminal Here" hotkey="control+h" tooltip="opens your favorite terminal in the directory housing this file"/>
            <menuitem action="filemanager" icon="network" label="Fi_lemanager Here" hotkey="control+shift+h" tooltip="open your filemanager here"/>
            <menuitem action="copy_current_path_to_clipboard" label="Copy p_ath to clipbo_ard" tooltip="copy the full pathname of the current file to your clipboard"/>
            <menuitem action="open_selected_path" label="Open Selected _Path"/>
            <menuitem action="macro__new__close_all_but_current" label="Close all without quitting" hotkey="control+shift+n" tooltip="open a new buffer, then close all pre-existing tabs"/>
            <menuitem action="python_documentation" label="Python _help(module)" tooltip="open the python documentation in your favorite terminal or a new buffer."/>
            <menuitem action="chtheme" icon="select_color" label="_Change GTK Theme" tooltip="change gtk theme using gtk-chtheme"/>
            <menuitem action="diff" label="_Diff" tooltip="generate a diff file from current file and another; open the diff file in a new buffer"/>
            <menuitem action="plugin__spellcheck" label="Spell Check" tooltip="COMscript MS Word to check the validity of your words, or open this file in aspell" if="canspellcheck"/>
            <menuitem action="plugin__hexed" label="Hex Edit" tooltip="open binary files as hex"/>
        </menu>
        <menu action="WebTools" label="_WebTools">
            <menu action="SearchEngine" icon="connect" label="_Search for selection using">
                <menuitem action="search__google" label="_Google"/>
                <menuitem action="search__google_images" label="Google _Images"/>
                <menuitem action="search__sourceforge" label="_SourceForge"/>
                <menuitem action="search__freshmeat" label="Freshmeat"/>
                <menuitem action="search__mw" label="Merriam Webster _Dictionary"/>
                <menuitem action="search__mw_thesaurus" label="Merriam Webster Thesaurus"/>
                <menuitem action="search__oed" label="_OED"/>
                <menuitem action="search__wikipedia" label="_Wikipedia"/>
            </menu>
            <menu action="Email" icon="copy" label="_Email" hotkey="">
                <menuitem action="plugin__smtp" icon="network" label="_Send" hotkey="control+m" tooltip="separate addresses with a semicolon, attach infinite files"/>
                <menuitem action="plugin__pop3" icon="dnd_multiple" label="_Get" hotkey="control+shift+m" tooltip="download your email, avail it for viewing"/>
            </menu>
            <menuitem action="plugin__ftp" label="_Upload to FTP" hotkey="control+t" tooltip="share the love"/>
            <menuitem action="plugin__ubbpost" label="_Post to a UBB" tooltip="open a small dialog requesting some info, then do some HTTP magic"/>
            <menuitem action="open_url_source" label="_Open Selected Url Source" tooltip="i'll open the selected url's html source in a new buffer"/>
            <menuitem action="open_url" label="Browse Selected U_rl" tooltip="i'll open the selected url in your browser"/>
            <menuitem action="cvs_commit" label="_Commit to _CVS" tooltip="run a command [from config.flauxtext] on the current file"/>
        </menu>
        <menu action="Help" label="_Help">
            <menuitem action="edit_my__readme" icon="help" label="Rea_dme" hotkey="F1" tooltip="open the readme."/>
            <menuitem action="edit_my__regexp" label="_Regexp doc" hotkey="F2" tooltip="get help on the regexp find/replace options."/>
            <menuitem action="homepage" icon="home" label="_Homepage" tooltip="open the FAQ in your browser"/>
            <menuitem action="pygtkref" label="PY_GTK Reference" tooltip="open the pygtk reference in your browser"/>
            <menuitem action="email_faulkner" icon="help" label="_Email Faulkner" hotkey=""/>
            <menu action="OpenMyFiles" icon="open" label="_Open my files">
                <separator/>
                <menuitem action="edit_my__source" label="_Source" tooltip="open flauxtext's source."/>
                <menuitem action="edit_my__config" label="_Config File" tooltip="open my INI-style configuration file"/>
                <menuitem action="edit_my__uixml" label="_ui.xml" tooltip="open the XML document describing my menubar and toolbar"/>
                <menuitem action="edit_my__contacts" label="Con_tacts" tooltip="open the new-line separated list of smtp contacts"/>
                <menuitem action="edit_my__history" label="_MRU" tooltip="open history.flauxtext, my MRU"/>
                <menuitem action="edit_my__specials" label="S_pecials List" tooltip="open the new-line separated list of files you want at your fingertips"/>
            </menu>
        </menu>
        <separator/>
    <!--this next set of special files will show up ON the menubar, OUTSIDE all the menus.
        remove it if you don't want to be able to hit Alt+1|2|3|... to open special files.
    -->
    <!--[SPECIAL FILES]-->
    </menubar>
    
    
    <!--change the "if" attribute of the toolbar if you want it.
        if you want to change the style of toolbar [how big the icons are, and whether they have text beneath them] open my config file and look for the variables named "toolbariconsize" and "toolbarstyle".
        you can't put sub<menu>s in a toolbar, and toolitems whose actions match those of menus don't do anything.
    -->
    <!--
        <toolbar name="ToolBar">
            <toolitem action="open"/>
            <toolitem action="save"/>
            <toolitem action="close_current"/>
            <separator/>
            <toolitem action="previous_tab"/>
            <toolitem action="next_tab"/>
            <separator/>
            <toolitem action="run"/>
            <toolitem action="terminal"/>
            <toolitem action="plugin__smtp"/>
        </toolbar>
    -->
    <!--notes:
            make sure you close everything you open!
            gtk.UIManager doesn't like it when comments are nested.
    -->
    
</ui>
