home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / komunikace / kmeleon / K-Meleon1.1.3en-US.exe / chrome / newsfox.jar / content / newsfox / newsfox.xul < prev    next >
Extensible Markup Language  |  2007-10-08  |  15KB  |  334 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is NewsFox.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Andy Frank <andy@andyfrank.com>.
  19.    - Portions created by the Initial Developer are Copyright (C) 2005-2007
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Andrey Gromyko <andrey@gromyko.name>
  24.    -   Ron Pruitt <wa84it@gmail.com>
  25.    -
  26.    - Alternatively, the contents of this file may be used under the terms of
  27.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  28.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.    - in which case the provisions of the GPL or the LGPL are applicable instead
  30.    - of those above. If you wish to allow use of your version of this file only
  31.    - under the terms of either the GPL or the LGPL, and not to allow others to
  32.    - use your version of this file under the terms of the MPL, indicate your
  33.    - decision by deleting the provisions above and replace them with the notice
  34.    - and other provisions required by the LGPL or the GPL. If you do not delete
  35.    - the provisions above, a recipient may use your version of this file under
  36.    - the terms of any one of the MPL, the GPL or the LGPL.
  37.    -
  38.    - ***** END LICENSE BLOCK ***** -->
  39.  
  40. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  41. <?xml-stylesheet href="chrome://newsfox/skin/" type="text/css"?>
  42.  
  43. <!DOCTYPE window SYSTEM "chrome://newsfox/locale/newsfox.dtd">
  44.  
  45. <window id="newsfox-window" title="NewsFox" 
  46.   onload="startup()" onunload="cleanup()"
  47.   onkeypress="handleEvent(event)"
  48.   xmlns:html="http://www.w3.org/1999/xhtml"
  49.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  50.  
  51.     <html:link rel="icon" href="chrome://newsfox/skin/newsfox-16.png"/>
  52.  
  53.     <script src="globalfuncs.js"/>
  54.   <script src="error.js"/>
  55.   <script src="options.js"/>
  56.   <script src="parser.js"/>
  57.   <script src="model.js"/>
  58.   <script src="ui.js"/>
  59.   <script src="file.js"/>
  60.   <script src="rss.js"/>
  61.   <script src="opml.js"/>
  62.   <script src="livemarks.js"/>
  63.  
  64.   <script src="chrome://global/content/nsDragAndDrop.js"/>
  65.   <script src="chrome://global/content/nsTransferable.js"/>
  66.  
  67.   <command id="cmd_checkFeedsauto" oncommand="feedCheck(true);"/>
  68.   <command id="cmd_checkFeedsslct" oncommand="feedCheck(false);"/>
  69.   <command id="cmd_cancelCheckFeeds" oncommand="doCancelCheckFeeds();"/>
  70.   <command id="cmd_addFeed" oncommand="addFeed(false);"/>
  71.   <command id="cmd_deleteFeed" oncommand="deleteFeed(-1,true);"/>
  72.   <command id="cmd_delete" oncommand="deleteArticle();"/>
  73.   <command id="cmd_options" oncommand="showOptions();"/>
  74.   <command id="cmd_exportOpml" oncommand="exportOpml();"/>
  75.   <command id="cmd_help" oncommand="help();"/>
  76.   <command id="cmd_home" oncommand="home();"/>
  77.   <command id="cmd_manageLivemarks" oncommand="manageLivemarks();"/>
  78.   <command id="cmd_markAllAsRead" oncommand="markFlaggedUnread(false,true);"/>
  79.   <command id="cmd_markAllAsUnread" oncommand="markFlaggedUnread(false,false);"/>
  80.   <command id="cmd_troubleshoot" oncommand="troubleshoot();"/>
  81.   <command id="cmd_addSearch" oncommand="addGroup(true);"/>
  82.   <command id="cmd_addGroup" oncommand="addGroup(false);"/>
  83.   <command id="cmd_deleteGroup" oncommand="deleteGroup(true);"/>
  84.  
  85.     <keyset id="shortcut-keys">
  86.         <key id="add-search-group-key" modifiers="" key=""
  87.             mod0="" key0="" mod1="" key1="s" mod2="alt" key2="z"
  88.             label="&addSearch;" command="cmd_addSearch"/>
  89.         <key id="add-group-key" modifiers="" key=""
  90.             mod0="" key0="" mod1="" key1="g" mod2="alt" key2="x"
  91.             label="&addGroup;" command="cmd_addGroup"/>
  92.         <key id="delete-group-key" modifiers="" key=""
  93.             mod0="" key0="" mod1="shift" key1="G" mod2="alt shift" key2="X"
  94.             label="&deleteGroup;" command="cmd_deleteGroup"/>
  95.         <key id="add-feed-key" modifiers="" key=""
  96.             mod0="" key0="" mod1="" key1="f" mod2="alt" key2="c"
  97.             label="&add;" command="cmd_addFeed"/>
  98.         <key id="delete-feed-key" modifiers="" key=""
  99.             mod0="" key0="" mod1="shift" key1="F" mod2="alt shift" key2="C"
  100.             label="&delete;" command="cmd_deleteFeed"/>
  101.         <key id="delete-feed-from-group-key" modifiers="" key=""
  102.             mod0="" key0="" mod1="shift" key1="D" mod2="alt shift" key2="D"
  103.             label="&deleteFeedFromGroup;" oncommand="deleteSingleFeedRow()"/>
  104.         <key id="refresh-key" modifiers="" key=""
  105.             mod0="" key0="" mod1="" key1="r" mod2="alt" key2="r"
  106.             label="&refresh;" command="cmd_checkFeedsslct"/>
  107.         <key id="do-cancel-check-feeds-key" modifiers="" key=""
  108.             mod0="" key0="" mod1="" key1="q" mod2="alt" key2="q"
  109.             label="&cancel;" command="cmd_cancelCheckFeeds"/>
  110.         <key id="mark-all-read-key" modifiers="" key=""
  111.             mod0="" key0="" mod1="" key1="m" mod2="alt" key2="m"
  112.             label="&markAllAsRead;" command="cmd_markAllAsRead"/>
  113.         <key id="next-unread-key" modifiers="" key=""
  114.             mod0="" key0="" mod1="" key1="n" mod2="alt" key2="n"
  115.             label="&nextUnread;" oncommand="selectNextUnreadArticle();"/>
  116.         <key id="prev-unread-key" modifiers="" key=""
  117.             mod0="" key0="" mod1="" key1="p" mod2="alt" key2="p"
  118.             label="&previousUnread;" oncommand="selectPrevUnreadArticle();"/>
  119.         <key id="open-unread-key" modifiers="" key=""
  120.             mod0="" key0="" mod1="" key1="u" mod2="alt" key2="u"
  121.             label="&openUnread;" oncommand="openUnread();"/>
  122.         <key id="options-key" modifiers="" key=""
  123.             mod0="" key0="" mod1="" key1="o" mod2="alt" key2="o"
  124.             label="&options;" oncommand="chooseOptions();"/>
  125.         <key id="home-key" modifiers="" key=""
  126.             mod0="" key0="" mod1="" key1="h" mod2="alt" key2="i"
  127.             label="&homePage;" command="cmd_home"/>
  128.         <key id="open-selected-key" modifiers="" key=""
  129.             mod0="" key0="" mod1="" key1="v" mod2="alt" key2="y"
  130.             label="&openSel;" oncommand="openArticle();"/>
  131.         <key id="delete-selected-key" modifiers="" key=""
  132.             mod0="" key0="" mod1="shift" key1="V" mod2="alt shift" key2="Y"
  133.             label="&deleteSel;" oncommand="deleteArticle();"/>
  134.         <key id="manage-livemarks-key" modifiers="" key=""
  135.             mod0="" key0="" mod1="" key1="l" mod2="alt" key2="l"
  136.             label="&manageLivemarks;" command="cmd_manageLivemarks"/>
  137.     </keyset>
  138.  
  139.     <popupset>
  140.         <tooltip id="loadingTooltip" style="font:bold 11px Tahoma; color:brown;">
  141.             <image src="chrome://newsfox/skin/newsfox-16.png"/>
  142.             <label value="&wait;"/>
  143.         </tooltip>
  144.  
  145.     <popup id="feedMenu" onpopupshowing="return onFeedMenuShowing(this);">    
  146.       <menuitem id="checkFeed" label="&checkFeed;" oncommand="feedCheck(false);"/>
  147.       <menuitem id="props" label="&options;" oncommand="chooseOptions();"/>
  148.       <menuitem label="&markAllAsRead;" oncommand="markFlaggedUnread(false,true);"/>
  149.       <menuitem id="home" label="&home;" oncommand="home();"/>
  150.       <menuitem label="&openUnread;" oncommand="openUnread();"/>        
  151.     </popup>
  152.  
  153.     <popup id="artMenu" onpopupshowing="return (gCollect.type != -1);">    
  154.       <menuitem label="&markAllAsRead;" oncommand="markFlaggedUnread(false,true);"/>
  155.       <menuitem label="&nextUnread;" oncommand="selectNextUnreadArticle();"/>
  156.       <menuitem label="&openUnread;" oncommand="openUnread();"/>    
  157.       <menuitem label="&openSel;" oncommand="openArticle();"/>
  158.       <menuitem label="&deleteSel;" oncommand="deleteArticle();"/>
  159.     </popup>
  160.   </popupset>
  161.  
  162.   <!-- Main Toolbar -->
  163.   <html:div class="heading" style="height: 30px;">
  164.     <html:div id="busyAnimation" style="float:right; font:bold 11px Tahoma; visibility:visible;">
  165.       <label id="busyText" value="&checking;" hidden="true"/>
  166.       <label id="notBusyText" hidden="false"/>
  167.       <label id="busyTextNumbers"/>
  168.             <image id="newsfox-icon" src="chrome://newsfox/skin/newsfox-16.png"/>
  169.         </html:div>
  170.     <toolbar class="toolbar">
  171.       <toolbarbutton command="cmd_checkFeedsauto"
  172.         tooltiptext="&refreshAll;"
  173.         image="chrome://newsfox/skin/images/check.png" />
  174.       <toolbarbutton command="cmd_cancelCheckFeeds"
  175.         tooltiptext="&cancel;"
  176.         image="chrome://newsfox/skin/images/cancel.png" />
  177.       <toolbarseparator/>
  178.       <toolbarbutton command="cmd_addSearch"
  179.         tooltiptext="&addSearch;"
  180.         image="chrome://newsfox/skin/images/folderSearch.png" />
  181.       <toolbarbutton command="cmd_addGroup"
  182.         tooltiptext="&addGroup;"
  183.         image="chrome://newsfox/skin/images/addFolder.png" />
  184.       <toolbarbutton command="cmd_deleteGroup"
  185.         tooltiptext="&deleteGroup;"
  186.         image="chrome://newsfox/skin/images/delFolder.png" />
  187.       <toolbarseparator/>
  188.       <toolbarbutton command="cmd_addFeed"
  189.         tooltiptext="&add;"
  190.         image="chrome://newsfox/skin/images/add.png" />
  191.       <toolbarbutton command="cmd_deleteFeed"
  192.         tooltiptext="&delete;"
  193.         image="chrome://newsfox/skin/images/del.png" />
  194.             <toolbarbutton  id="mngLMbutton" command="cmd_manageLivemarks"
  195.                 tooltiptext="&manageLivemarks;"
  196.         image="chrome://newsfox/skin/images/livemark.png" />
  197.       <toolbarseparator/>
  198.       <toolbarbutton tooltiptext="&options;" type="menu"
  199.         image="chrome://newsfox/skin/images/options.png">
  200.         <menupopup onpopupshowing="onOptMenuShowing(this);">
  201.             <menuitem label="&toolOptions.options;" command="cmd_options"/>
  202.           <menuitem id="tool.group" label="&groupOptions;" oncommand="chooseOptions();"/>
  203.           <menuitem id="tool.groupExport" label="&exportRSS;" oncommand="exportRSS();"/>
  204.           <menuitem id="tool.feed" label="&feedOptions;" oncommand="chooseOptions();"/>
  205.                     <menu label="&toolOptions.import;">
  206.                         <menupopup>
  207.                             <menu label="&toolOptions.import.addfeeds;">
  208.                                 <menupopup>
  209.                           <menuitem label="&toolOptions.import.file;" oncommand="importOpml(false,true,false);"/>
  210.                           <menuitem label="&toolOptions.import.URL;" oncommand="importOpml(false,false,false);"/>
  211.                                 </menupopup>
  212.                             </menu>
  213.                             <menu label="&toolOptions.import.startfresh;">
  214.                                 <menupopup>
  215.                           <menuitem label="&toolOptions.import.file;" oncommand="importOpml(false,true,true);"/>
  216.                           <menuitem label="&toolOptions.import.URL;" oncommand="importOpml(false,false,true);"/>
  217.                                 </menupopup>
  218.                             </menu>
  219.                         </menupopup>
  220.                     </menu>
  221.           <menuitem label="&toolOptions.export;" command="cmd_exportOpml"/>
  222.           <menuitem label="&troubleshoot;" 
  223. command="cmd_troubleshoot"/>
  224.                     <menu label="&toolOptions.recover;">
  225.                         <menupopup>
  226.                   <menuitem label="&toolOptions.resetGroups;" oncommand="fixIndices();"/>
  227.                   <menuitem label="&toolOptions.useBackup;" oncommand="restoreBackup();"/>
  228.                         </menupopup>
  229.                     </menu>
  230.         </menupopup>
  231.       </toolbarbutton>
  232.             <toolbarbutton tooltiptext="&help;" type="menu"
  233.         image="chrome://newsfox/skin/images/help.png">
  234.                 <menupopup>
  235.               <menuitem label="&help;" command="cmd_help" tooltiptext="&help;"/>
  236.                     <menuitem id="help.shortcut" label="&shortcut;" oncommand="showShortcuts();" tooltiptext="&shortcut;"/>
  237.                 </menupopup>
  238.             </toolbarbutton>
  239.             <spacer width="20"/>
  240.             <progressmeter id="pmeter" mode="determined" value="0%" hidden="true"/>
  241.       <spacer flex="1"/>
  242.     </toolbar>
  243.   </html:div>
  244.  
  245.   <hbox flex="1">
  246.  
  247.     <!-- Feed Tree -->
  248.     <tree id="newsfox.feedTree" seltype="single" persist="width" width="250"
  249.                 hidecolumnpicker="true" class="tree" 
  250.                 ondragdrop="nsDragAndDrop.drop(event,feedtreeObserver)"
  251.                 ondraggesture="dragIt(event)" 
  252.                 onselect="feedSelected()" context="feedMenu">
  253.       <treecols>
  254.         <treecol id="feedName" primary="true" flex="1" label="&feeds;"/>
  255.       </treecols>
  256.       <treechildren/>
  257.     </tree>
  258.  
  259.     <splitter collapse="before">
  260.         <grippy/>
  261.       </splitter>
  262.  
  263.         <vbox id="rightpane" flex="1" style="overflow: auto">
  264.       <!-- Feed control bar -->
  265.       <html:div class="feedHeading" style="margin-bottom:5px;">
  266.         <html:div style="padding-left:5px; float:right;">
  267.           <toolbar class="toolbar">
  268.             <toolbarbutton id="feedbarHome"
  269.                             command="cmd_home" tooltiptext="&homePage;"
  270.               image="chrome://newsfox/skin/images/home.png" />
  271.             <toolbarbutton id="feedbarRefresh" command="cmd_checkFeedsslct"
  272.               tooltiptext="&refreshThis;"
  273.               image="chrome://newsfox/skin/images/check.png" />
  274.             <toolbarseparator/>
  275.             <toolbarbutton id="feedbarMarkread" command="cmd_markAllAsRead" tooltiptext="&markAllAsRead;"
  276.               image="chrome://newsfox/skin/images/markAllAsRead.png" />
  277.             <toolbarbutton id="feedbarMarkunread" command="cmd_markAllAsUnread" tooltiptext="&markAllAsUnread;"
  278.               image="chrome://newsfox/skin/images/markAllAsUnread.png" />
  279.             <toolbarseparator/>
  280.             <toolbarbutton id="feedbarDelete" command="cmd_delete" tooltiptext="&deleteSelected;"                             image="chrome://newsfox/skin/images/delete.png" />
  281.             <toolbarbutton id="feedbarOptions" oncommand="chooseOptions();" tooltiptext="&configure;"
  282.               image="chrome://newsfox/skin/images/options.png" />
  283.           </toolbar>
  284.         </html:div>
  285.                 <html:div style="padding:3px; overflow:hidden;">
  286.             <label id="feedTitle"/>
  287.                 </html:div>
  288.       </html:div>
  289.  
  290.             <box id="hbox3pane" orient="horizontal" flex="1" style="overflow: auto">
  291.             <splitter id="hartsplitter" collapse="before">
  292.                     <grippy/>
  293.               </splitter>
  294.             </box>
  295.         <box id="vbox3pane" orient="vertical" flex="1" style="overflow: auto">
  296.           <!-- Article List -->
  297.           <tree id="newsfox.articleTree" class="tree" persist="height width" 
  298.                         height="200" width="200" flex="2" onselect="articleSelected()" 
  299.                         onclick="if(event.button == 1) {articleTreeMClicked();                                     event.preventDefault();}" 
  300.                         ondblclick="articleTreeDblClicked();" context="artMenu"
  301.                         enableColumnDrag="true">
  302.             <treecols>
  303.               <treecol id="flag" label="&flag;" cycler="true" persist="width ordinal hidden"/>
  304.               <splitter class="tree-splitter"/>
  305.               <treecol id="title" label="&title;" flex="5" persist="width ordinal hidden"/>
  306.               <splitter class="tree-splitter"/>
  307.               <treecol id="read" label="&r;" cycler="true" persist="width ordinal hidden"/>
  308.               <splitter class="tree-splitter"/>
  309.               <treecol id="date" label="&date;" flex="1" persist="width ordinal hidden"/>
  310.             </treecols>
  311.             <treechildren/>
  312.           </tree>
  313.  
  314.             <splitter id="vartsplitter" collapse="before">
  315.                     <grippy/>
  316.               </splitter>
  317.  
  318.           <!-- Content frame -->
  319.                 <deck id="contentDeck" selectedIndex="0" persist="height width" 
  320.                         height="300" width="300" flex="3">
  321.               <iframe id="hrefContent" name="hrefContent"/>
  322.                     <iframe id="buildContent" name="buildContent"/>
  323.                 </deck>
  324.         </box>
  325.         </vbox>
  326.   </hbox>
  327.  
  328.     <stringbundleset id="stringbundleset">
  329.         <stringbundle id="newsfox-string-bundle" src="chrome://newsfox/locale/newsfox.properties"/>
  330.     </stringbundleset>
  331.  
  332. </window>
  333.  
  334.