home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / 05_02.iso / software / netscape6 / nim.xpi / bin / chrome / aim.jar / content / aim / App.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-08-29  |  10.1 KB  |  223 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://aim/skin/appWindow.css" type="text/css"?>
  4.  
  5. <?xul-overlay href="chrome://aim/content/App-shrimp.xul"?>
  6. <?xul-overlay href="chrome://aim/content/AppWindowPlatformOverlay.xul"?>
  7. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  8. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  9. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  10. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  11. <?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
  12.  
  13. <!DOCTYPE window SYSTEM "chrome://aim/locale/App.dtd" >
  14.  
  15. <window xmlns:html="http://www.w3.org/1999/xhtml"
  16.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  18.         onload="AimAppOnWndLoad()"
  19.         onunload="AimAppOnWndUnload()"
  20.         id="AimApp"
  21.         name="AimApp"
  22.         orient="vertical"
  23.         windowtype="Aim:AimApp"
  24.         width="214" height="520"
  25.         screenX="10" screenY="10"
  26.         persist="screenX screenY width height">
  27.     
  28.   <script language="JavaScript" src="chrome://aim/content/aimHelpers.js" />
  29.   <script language="JavaScript" src="chrome://global/content/strres.js" />
  30.   <script language="JavaScript" src="chrome://aim/content/TabSetup.js" />
  31.   <script language="JavaScript" src="chrome://aim/content/AimIM.js" />
  32.   <script language="JavaScript" src="chrome://aim/content/AimSession.js" />
  33.   <script language="JavaScript" src="chrome://aim/content/AimBuddy.js" />
  34.   <script language="JavaScript" src="chrome://aim/content/App.js" />
  35.   <script language="JavaScript" src="chrome://aim/content/Aim.js" />
  36.   <script language="JavaScript" src="chrome://communicator/content/contentAreaClick.js"/>
  37.   <script language="JavaScript" src="chrome://aim/content/invitelist.js" />
  38.   <script language="JavaScript" src="chrome://aim/content/AppSessionObserver.js" />
  39.  
  40. <commandset id="tasksCommands">
  41.   <commandset id="CommandUpdate_App"
  42.         commandupdater="true"
  43.         events="tree-select"
  44.         oncommandupdate="CommandUpdate_App()"/>
  45.  
  46.   <commandset id="globalEditMenuItems"/>
  47.   <commandset id="selectEditMenuItems"/>
  48.   <!-- File Menu -->
  49.   <command id="cmd_newNavigator"/>
  50.   <command id="cmd_newMessage"/>
  51.   <command id="cmd_IM" oncommand="cmdNewIM()"/>
  52.   <command id="cmd_import" oncommand="cmdImportBuddyList()"/>
  53.   <command id="cmd_export" oncommand="cmdExportBuddyList()"/>
  54.   <command id="cmd_close" oncommand="cmdClose()"/>
  55.   <command id="cmd_quit"/>
  56.  
  57.   <!-- Edit Menu -->
  58.   <command id="cmd_undo"/>
  59.   <command id="cmd_redo"/>
  60.   <command id="cmd_cut"/>
  61.   <command id="cmd_copy"/>
  62.   <command id="cmd_paste"/>
  63.   <command id="cmd_delete"/>
  64.   <command id="cmd_selectAll"/>
  65.   <command id="cmd_preferences"/>
  66.  
  67.   <!-- People Menu -->
  68.   <command id="cmd_chat" oncommand="cmdNewChat('',null,'',false,'outgoingchat')"/>
  69.   <command id="cmd_addbuddy" oncommand="cmdAddBuddy()"/>
  70.   <command id="cmd_addgroup" oncommand="cmdAddGroup()"/>
  71.   <command id="cmd_fab" oncommand="window.openDialog('chrome:aim/content/findAFriendWizard.xul','CPW','chrome,titlebar,resizable=yes')"/>
  72.   <command id="cmd_soaf" oncommand="window.openDialog('chrome:aim/content/InviteAFriendWizard.xul','CPW','chrome,titlebar,resizable=yes', null)"/>
  73.  
  74.  
  75. </commandset>
  76.  
  77.  
  78. <broadcasterset id="appBroadcasters">
  79.   <!-- Doesnt work -disable for now-->
  80.   <broadcaster id="IM:Throbber" busy="false"/>
  81.  
  82.   <broadcaster id="cmd_delete" disabled="false"/>
  83. </broadcasterset>
  84.  
  85. <keyset id="tasksKeys">
  86.   <!-- File Menu -->
  87.   <key id="key_newNavigator"/>
  88.   <key id="key_newMessage"/>
  89.   <key id="key_newIM" key="&IMCmd.key;" command="cmd_IM" disabled="false"   alt="false" modifiers="accel,shift"/>
  90.   <key id="key_import" key="&importBuddyListCmd.key;"  command="cmd_import" disabled="false"   alt="false" modifiers="accel,shift"/>
  91.   <key id="key_export" key="&exportBuddyListCmd.key;"  command="cmd_export" disabled="false"   alt="false" modifiers="accel,shift"/>
  92.   <key id="key_close"/>
  93.   <key id="key_quit"/>
  94.  
  95.   <!-- Edit Menu -->
  96.   <key id="key_undo"/>
  97.   <key id="key_redo"/>
  98.   <key id="key_cut"/>
  99.   <key id="key_copy"/>
  100.   <key id="key_paste"/>
  101.   <key id="key_delete" oncommand="cmdDelete()"/>
  102.   <key id="key_selectAll"/>
  103.   <key id="key_preferences"/>
  104.   
  105.  
  106.   <!-- People Menu -->
  107.   <key id="key_chat" key="&sendChatCmd.key;" command="cmd_chat" disabled="false"   alt="false" modifiers="accel,shift"/>
  108.   <key id="key_addbuddy" key="&addBuddyCmd.key;" command="cmd_addbuddy" disabled="false"   alt="false" modifiers="accel,shift"/>
  109.   <key id="key_addgroup" key="&addGroupCmd.key;" command="cmd_addgroup" disabled="false"   alt="false" modifiers="accel,shift"/>
  110.   <key id="key_fab" key="&fabCmd.key;"  command="cmd_fab" disabled="false"   alt="false" modifiers="accel,shift"/>
  111.   <key id="key_soaf" key="&peopleSOaFCmd.key;" command="cmd_soaf" disabled="false"   alt="false" modifiers="accel,shift"/>
  112.  
  113. </keyset>
  114.  
  115.  
  116. <popupset id="aTooltipSet">
  117.   <popup id="sidebarPopup"/>
  118. </popupset>
  119.  
  120. <!-- Menu for the Window -->
  121.  
  122.   <toolbox id="main_toolbox">
  123.     <menubar id="aim-menubar">
  124.   
  125.     <!--  File Menu -->
  126.       <menu id="menu_File">
  127.         <menupopup id="menu_FilePopup">
  128.           <menuitem label="&newIMCmd.label;" oncommand="cmdNewIM()" key="key_newIM" accesskey="&IMCmd.accesskey;" command="cmd_IM" disabled="true"/> 
  129.           <!-- New popup (Overlay Additions) -->
  130.           <menu id="menu_New" class="Hide-in-Shrimp">
  131.             <menupopup>
  132.               <menuitem id="menu_newNavigator" class="Hide-in-Shrimp"/>
  133.               <menuitem id="menu_newIM" label="&newIMCmdSub.label;" oncommand="cmdNewIM()" key="key_newIM" accesskey="&IMCmd.accesskey;" command="cmd_IM" disabled="true"/>
  134.             </menupopup>
  135.           </menu>
  136.           <menuseparator/>
  137.           <menuitem id="menu_close"/>
  138.           <menuitem label="&fileSignOffAndCloseCmd.label;" accesskey="&fileSignOffAndCloseCmd.accesskey;" oncommand="cmdSignOffAndClose()" id="miSignOffClose"/>
  139.           <menuseparator/>
  140.           <menuitem label="&importBuddyListCmd.label;" accesskey="&importBuddyListCmd.accesskey;" key="key_import" id="miImportBuddyList" command="cmd_import" disabled="true"/>
  141.           <menuitem label="&exportBuddyListCmd.label;" accesskey="&exportBuddyListCmd.accesskey;" key="key_export" id="miExportBuddyList" command="cmd_export" disabled="true"/>
  142.           <menuseparator/>
  143.           <menuitem label="--" oncommand="cmdSignOn()" id="miSignOn" accesskey="&miSignOn.accesskey;" />
  144.           <menuseparator/>
  145.         </menupopup>
  146.       </menu>
  147.   
  148.     <!-- Edit Menu -->
  149.       <menu id="menu_Edit" class="Hide-in-Shrimp">
  150.         <menupopup>
  151.           <menuitem id="menu_undo"/>
  152.           <menuitem id="menu_redo"/>
  153.           <menuseparator/>
  154.           <menuitem id="menu_cut"/>
  155.           <menuitem id="menu_copy"/>
  156.           <menuitem id="menu_paste"/>
  157.         <!--  <menuseparator/>
  158.           <menuitem id="menu_delete"/> -->
  159.           <menuseparator />
  160.           <menu id="editOptionsid" label="&editOptions.label;">
  161.             <menupopup>
  162.               <menuitem id="change_password" label="&changePassword.label;" oncommand="cmdChangePassword()" />
  163.               <menuitem id="confirm_account"/>
  164.              </menupopup>
  165.           </menu>
  166.           <menuseparator/>
  167.           <menuitem id="menu_preferences" oncommand="goPreferences('App.xul', 'chrome://aim/content/pref-IM_instantmessage.xul','instantmessenger');"/>
  168.         </menupopup>
  169.       </menu>
  170.       
  171.     <!-- People Menu -->
  172.       <menu id="people_menu" accesskey="&peopleMenu.accesskey;" label="&peopleMenu.label;" hidden="true">
  173.         <menupopup id="menu_PeoplePopup" collapsed="true"> 
  174.           <menuitem label="&sendIMCmd.label;" accesskey="&sendIMCmd.accesskey;" key="key_newIM" command="cmd_IM" id="menu_sendIM"/>
  175.           <menuitem label="&sendChatCmd.label;" accesskey="&sendChatCmd.accesskey;" key="key_chat" command="cmd_chat" id="menu_sendChat"/>
  176.           <menuseparator/>
  177.           <menuitem label="&addBuddyCmd.label;" accesskey="&addBuddyCmd.accesskey;" key="key_addbuddy" command="cmd_addbuddy" id="menu_addBuddy"/>
  178.           <menuitem label="&addGroupCmd.label;" accesskey="&addGroupCmd.accesskey;" key="key_addgroup" command="cmd_addgroup" id="menu_addGroup"/>
  179.           <menuitem label="&delete.label;" observes="cmd_delete" accesskey="&delete.accesskey;" key="key_delete" id="menu_deleteBud"/>
  180.           <menuseparator/>
  181.           <menuitem label="&fabCmd.label;" accesskey="&fabCmd.accesskey;" key="key_fab" command="cmd_fab" id="menu_findABuddy"/>
  182.           <menuitem label="&peopleSOaFCmd.label;" accesskey="&peopleSOaFCmd.accesskey;" key="key_soaf" command="cmd_soaf" id="menu_InviteAFriend"/>
  183.         </menupopup>
  184.       </menu>
  185.  
  186.       <!-- Services  menu for shrimp.  Not shown in non-shrimp clients -->
  187.       <menu id="menu-services" />
  188.       <menu id="menu-actions" />
  189.       <menu id="menu-ShrimpHelp"/> 
  190.       
  191.     
  192.       <!-- Tasks Menu (Overlay Inserted) -->
  193.       <menu accesskey="&taskMenu.accesskey;" id="tasksMenu" class="Hide-in-Shrimp"/>
  194.       <menu accesskey="&helpMenu.accesskey;" id="menu_Help" class="Hide-in-Shrimp"/> 
  195.  
  196.       <spring flex="1"/>
  197.     </menubar>
  198.   </toolbox>
  199.  
  200.   <box id="app-logo-box" class="nc">
  201.     <image id="app-title-runman"/>
  202.     <image id="app-title-text"/>
  203.     <spring flex="1"/>
  204.     <button id="navigator-throbber" observes="IM:Throbber" oncommand="AimgoClickThrobber('&throbber.url;')" tooltip="aTooltip"  tooltiptext="&throbber.tooltip;"/>
  205.   </box>
  206.  
  207.   <box id="sidebar-box" flex="1" defaultpanel="urn:sidebar:panel:im-panel" style="max-width: none!important;"/>
  208.   
  209.   <box id="ad-box" class="nc">  
  210.     <box id="ad-box-inner" orient="vertical" flex="1" pack="center" align="center">
  211.       <image id="adButton" onclick="cmdAdClick();"/>
  212.     </box>
  213.   </box>
  214.   
  215.     <statusbar id="status-bar" class="chromeclass-status">
  216.        <hbox id="component-bar" class="component-bar-box" flex="1"/>
  217.     </statusbar>
  218.  
  219.   <!-- shrimp specific task bar.  Only shows in shrimp, controlled by App.css -->
  220.   <box id="shrimp-taskbar" />
  221. </window>
  222.  
  223.