<?xml version="1.0"?>
<!DOCTYPE overlay PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<overlay id="overlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script>
	function openAbout()
	{
		popupDialog('dlg_about.xul', 1, 0, 0, null);
	}
</script>

<keyset>
	<key id="key_undo" 	modifiers="accel" key="z" command="cmd_undo"/>
	<key id="key_redo"	modifiers="accel" key="y" command="cmd_redo"/>
  <key id="key_cut"		modifiers="accel" key="x" command="cmd_cut" />
  <key id="key_copy"	modifiers="accel" key="c" command="cmd_copy" />
  <key id="key_paste"	modifiers="accel" key="v" command="cmd_paste" />
	<key id="key_delete" keycode="VK_DELETE" 			command="cmd_delete" />
	<key id="key_selectAll" modifiers="accel" key="a" command="cmd_selectAll" />

  <key id="" 	keycode="VK_F1" command="" />
	<key id="" 	keycode="VK_F2" command="" />
	<key id="" 	keycode="VK_F3" command="" />
	<key id="" 	keycode="VK_F4" command="" />
	<key id="" 	keycode="VK_F5" command="" />
	<key id="" 	keycode="VK_F6" command="" />
	
	<key id="" 	keycode="VK_ESCAPE" oncommand="$('zPositionFiche').focus()" />
</keyset>

<commandset>
	<commandset id="editMenuCommandSetAll" commandupdater="true" events="focus,select"
							oncommandupdate="goUpdateGlobalEditMenuItems()"/>
	<commandset id="editMenuCommandSetUndo" commandupdater="true" events="undo"
							oncommandupdate="goUpdateUndoEditMenuItems()"/>
	<commandset id="editMenuCommandSetPaste" commandupdater="true" events="clipboard"
							oncommandupdate="goUpdatePasteMenuItems()"/>

	<command id="cmd_undo" 						oncommand="goDoCommand('cmd_undo')"/>
	<command id="cmd_redo" 						oncommand="goDoCommand('cmd_redo')"/>
	<command id="cmd_cut" 						oncommand="goDoCommand('cmd_cut')"/>
	<command id="cmd_copy" 						oncommand="goDoCommand('cmd_copy')"/>
	<command id="cmd_paste" 					oncommand="goDoCommand('cmd_paste')"/>
	<command id="cmd_delete" 	oncommand="goDoCommand('cmd_delete')"/>
	<command id="cmd_selectAll" 			oncommand="goDoCommand('cmd_selectAll')"/>

	<command id="cmd_about"	 oncommand="openAbout()" />
</commandset>
	
<toolbox id="tbx1">
  <menubar>
    <menu label="Fichier" accesskey="f">
      <menupopup>
        <menuitem class="menuitem-iconic" image="img/cake.png" label="Anniversaires" accesskey="v" oncommand="Anniversaires()" />
        <menuitem class="menuitem-iconic" image="img/script_save.png" label="Exporter..." accesskey="x" oncommand="Exporter()" />
        <menuseparator />
        <menuitem class="menuitem-iconic" image="img/page_white_gear.png" label="Mise en page..." accesskey="m" oncommand="PrintUtils.showPageSetup();" />
        <menuseparator />
				<menuitem class="menuitem-iconic" image="img/arrow_rotate_anticlockwise.png" label="Redémarrer" accesskey="r" oncommand="Restart();" />
        <menuitem class="menuitem-iconic" image="img/door_in.png" label="Quitter" accesskey="q" oncommand="Exit();" />
			</menupopup>
		</menu>
			
		<menu label="Édition" accesskey="n">
			<menupopup>
				<menuitem class="menuitem-iconic" image="img/arrow_undo.png" label="Annuler" key="key_undo" accesskey="u" command="cmd_undo" />
				<menuitem class="menuitem-iconic" image="img/arrow_redo.png" label="Rétablir" key="key_redo" accesskey="r" command="cmd_redo" />
				<menuseparator />
				<menuitem class="menuitem-iconic" image="img/cut.png" 				label="Couper" key="key_cut" accesskey="c" command="cmd_cut" />
				<menuitem class="menuitem-iconic" image="img/page_copy.png" 	label="Copier" key="key_copy" accesskey="p" command="cmd_copy" />
				<menuitem class="menuitem-iconic" image="img/page_paste.png" 	label="Coller" key="key_paste" accesskey="o" command="cmd_paste" />
        <menuitem class="menuitem-iconic" image="img/cross.png" 			label="Supprimer" key="key_delete" accesskey="S" command="cmd_delete" />
				<menuseparator />
        <menuitem class="menuitem-iconic" image="img/.png"	label="Tout Selectionner" key="key_selectAll" accesskey="T" command="cmd_selectAll" />
			</menupopup>
		</menu>
    
    <menu label="Affichage" accesskey="g">
      <menupopup>
        <menuitem class="menuitem-iconic" id="mnu_stb1" label="Barre d'état" type="checkbox" accesskey="B" oncommand="barreEtat();" />
			</menupopup>
		</menu>
		
    <menu id="mnu_superadmin" collapsed="true" label="Super Admin">
      <menupopup>
        <menuitem class="menuitem-iconic" label="Console" accesskey="c" oncommand="showConsole()" />
        <menuitem class="menuitem-iconic" label="Addons" accesskey="o" oncommand="showAddons()" />
				<menuitem class="menuitem-iconic" label="Explorateur de composants" accesskey="n" oncommand="File()" />
        <menuseparator />
        <menuitem class="menuitem-iconic" label="Config" accesskey="g" command="cmd_go_config_admin" />
      </menupopup>
    </menu>
    
    <menu label="?" accesskey="?">
      <menupopup>
        <menuitem disabled="true" class="menuitem-iconic" image="img/help.png" label="Aide" accesskey="a" command="" />
        <menuitem disabled="true" class="menuitem-iconic" label="Notes de version" accesskey="n" command="" />
        <menuitem disabled="true" class="menuitem-iconic" label="Tips" accesskey="i" command="" />
        <menuseparator />
        <menuitem class="menuitem-iconic" image="img/star.png" label="À propos..." accesskey="p" command="cmd_about" />
      </menupopup>
    </menu>
  </menubar>

	<toolbar pack="center" equalsize="always">
		<toolbarbutton accesskey="n" orient="vertical" image="img/user_add.png" label="Nouveau" command="cmd_ajouter" />
		<toolbarbutton accesskey="r" orient="vertical" image="img/arrow_refresh.png" label="Recharger" command="cmd_reload" />
		<toolbarbutton accesskey="s" orient="vertical" image="img/user_delete.png" label="Supprimer" command="cmd_delete_fiche" />
		<!--<toolbarbutton accesskey="p" orient="vertical" image="img/printer.png" label="Imprimer" disabled="true" oncommand="print_fiches('tiers_print', G_id);" />-->
		<vbox id="ovl_submit" />
	</toolbar>
</toolbox>

</overlay>
