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 >
Wrap
Extensible Markup Language
|
2007-10-08
|
15KB
|
334 lines
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is NewsFox.
-
- The Initial Developer of the Original Code is
- Andy Frank <andy@andyfrank.com>.
- Portions created by the Initial Developer are Copyright (C) 2005-2007
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Andrey Gromyko <andrey@gromyko.name>
- Ron Pruitt <wa84it@gmail.com>
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the LGPL or the GPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://newsfox/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://newsfox/locale/newsfox.dtd">
<window id="newsfox-window" title="NewsFox"
onload="startup()" onunload="cleanup()"
onkeypress="handleEvent(event)"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:link rel="icon" href="chrome://newsfox/skin/newsfox-16.png"/>
<script src="globalfuncs.js"/>
<script src="error.js"/>
<script src="options.js"/>
<script src="parser.js"/>
<script src="model.js"/>
<script src="ui.js"/>
<script src="file.js"/>
<script src="rss.js"/>
<script src="opml.js"/>
<script src="livemarks.js"/>
<script src="chrome://global/content/nsDragAndDrop.js"/>
<script src="chrome://global/content/nsTransferable.js"/>
<command id="cmd_checkFeedsauto" oncommand="feedCheck(true);"/>
<command id="cmd_checkFeedsslct" oncommand="feedCheck(false);"/>
<command id="cmd_cancelCheckFeeds" oncommand="doCancelCheckFeeds();"/>
<command id="cmd_addFeed" oncommand="addFeed(false);"/>
<command id="cmd_deleteFeed" oncommand="deleteFeed(-1,true);"/>
<command id="cmd_delete" oncommand="deleteArticle();"/>
<command id="cmd_options" oncommand="showOptions();"/>
<command id="cmd_exportOpml" oncommand="exportOpml();"/>
<command id="cmd_help" oncommand="help();"/>
<command id="cmd_home" oncommand="home();"/>
<command id="cmd_manageLivemarks" oncommand="manageLivemarks();"/>
<command id="cmd_markAllAsRead" oncommand="markFlaggedUnread(false,true);"/>
<command id="cmd_markAllAsUnread" oncommand="markFlaggedUnread(false,false);"/>
<command id="cmd_troubleshoot" oncommand="troubleshoot();"/>
<command id="cmd_addSearch" oncommand="addGroup(true);"/>
<command id="cmd_addGroup" oncommand="addGroup(false);"/>
<command id="cmd_deleteGroup" oncommand="deleteGroup(true);"/>
<keyset id="shortcut-keys">
<key id="add-search-group-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="s" mod2="alt" key2="z"
label="&addSearch;" command="cmd_addSearch"/>
<key id="add-group-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="g" mod2="alt" key2="x"
label="&addGroup;" command="cmd_addGroup"/>
<key id="delete-group-key" modifiers="" key=""
mod0="" key0="" mod1="shift" key1="G" mod2="alt shift" key2="X"
label="&deleteGroup;" command="cmd_deleteGroup"/>
<key id="add-feed-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="f" mod2="alt" key2="c"
label="&add;" command="cmd_addFeed"/>
<key id="delete-feed-key" modifiers="" key=""
mod0="" key0="" mod1="shift" key1="F" mod2="alt shift" key2="C"
label="&delete;" command="cmd_deleteFeed"/>
<key id="delete-feed-from-group-key" modifiers="" key=""
mod0="" key0="" mod1="shift" key1="D" mod2="alt shift" key2="D"
label="&deleteFeedFromGroup;" oncommand="deleteSingleFeedRow()"/>
<key id="refresh-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="r" mod2="alt" key2="r"
label="&refresh;" command="cmd_checkFeedsslct"/>
<key id="do-cancel-check-feeds-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="q" mod2="alt" key2="q"
label="&cancel;" command="cmd_cancelCheckFeeds"/>
<key id="mark-all-read-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="m" mod2="alt" key2="m"
label="&markAllAsRead;" command="cmd_markAllAsRead"/>
<key id="next-unread-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="n" mod2="alt" key2="n"
label="&nextUnread;" oncommand="selectNextUnreadArticle();"/>
<key id="prev-unread-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="p" mod2="alt" key2="p"
label="&previousUnread;" oncommand="selectPrevUnreadArticle();"/>
<key id="open-unread-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="u" mod2="alt" key2="u"
label="&openUnread;" oncommand="openUnread();"/>
<key id="options-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="o" mod2="alt" key2="o"
label="&options;" oncommand="chooseOptions();"/>
<key id="home-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="h" mod2="alt" key2="i"
label="&homePage;" command="cmd_home"/>
<key id="open-selected-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="v" mod2="alt" key2="y"
label="&openSel;" oncommand="openArticle();"/>
<key id="delete-selected-key" modifiers="" key=""
mod0="" key0="" mod1="shift" key1="V" mod2="alt shift" key2="Y"
label="&deleteSel;" oncommand="deleteArticle();"/>
<key id="manage-livemarks-key" modifiers="" key=""
mod0="" key0="" mod1="" key1="l" mod2="alt" key2="l"
label="&manageLivemarks;" command="cmd_manageLivemarks"/>
</keyset>
<popupset>
<tooltip id="loadingTooltip" style="font:bold 11px Tahoma; color:brown;">
<image src="chrome://newsfox/skin/newsfox-16.png"/>
<label value="&wait;"/>
</tooltip>
<popup id="feedMenu" onpopupshowing="return onFeedMenuShowing(this);">
<menuitem id="checkFeed" label="&checkFeed;" oncommand="feedCheck(false);"/>
<menuitem id="props" label="&options;" oncommand="chooseOptions();"/>
<menuitem label="&markAllAsRead;" oncommand="markFlaggedUnread(false,true);"/>
<menuitem id="home" label="&home;" oncommand="home();"/>
<menuitem label="&openUnread;" oncommand="openUnread();"/>
</popup>
<popup id="artMenu" onpopupshowing="return (gCollect.type != -1);">
<menuitem label="&markAllAsRead;" oncommand="markFlaggedUnread(false,true);"/>
<menuitem label="&nextUnread;" oncommand="selectNextUnreadArticle();"/>
<menuitem label="&openUnread;" oncommand="openUnread();"/>
<menuitem label="&openSel;" oncommand="openArticle();"/>
<menuitem label="&deleteSel;" oncommand="deleteArticle();"/>
</popup>
</popupset>
<!-- Main Toolbar -->
<html:div class="heading" style="height: 30px;">
<html:div id="busyAnimation" style="float:right; font:bold 11px Tahoma; visibility:visible;">
<label id="busyText" value="&checking;" hidden="true"/>
<label id="notBusyText" hidden="false"/>
<label id="busyTextNumbers"/>
<image id="newsfox-icon" src="chrome://newsfox/skin/newsfox-16.png"/>
</html:div>
<toolbar class="toolbar">
<toolbarbutton command="cmd_checkFeedsauto"
tooltiptext="&refreshAll;"
image="chrome://newsfox/skin/images/check.png" />
<toolbarbutton command="cmd_cancelCheckFeeds"
tooltiptext="&cancel;"
image="chrome://newsfox/skin/images/cancel.png" />
<toolbarseparator/>
<toolbarbutton command="cmd_addSearch"
tooltiptext="&addSearch;"
image="chrome://newsfox/skin/images/folderSearch.png" />
<toolbarbutton command="cmd_addGroup"
tooltiptext="&addGroup;"
image="chrome://newsfox/skin/images/addFolder.png" />
<toolbarbutton command="cmd_deleteGroup"
tooltiptext="&deleteGroup;"
image="chrome://newsfox/skin/images/delFolder.png" />
<toolbarseparator/>
<toolbarbutton command="cmd_addFeed"
tooltiptext="&add;"
image="chrome://newsfox/skin/images/add.png" />
<toolbarbutton command="cmd_deleteFeed"
tooltiptext="&delete;"
image="chrome://newsfox/skin/images/del.png" />
<toolbarbutton id="mngLMbutton" command="cmd_manageLivemarks"
tooltiptext="&manageLivemarks;"
image="chrome://newsfox/skin/images/livemark.png" />
<toolbarseparator/>
<toolbarbutton tooltiptext="&options;" type="menu"
image="chrome://newsfox/skin/images/options.png">
<menupopup onpopupshowing="onOptMenuShowing(this);">
<menuitem label="&toolOptions.options;" command="cmd_options"/>
<menuitem id="tool.group" label="&groupOptions;" oncommand="chooseOptions();"/>
<menuitem id="tool.groupExport" label="&exportRSS;" oncommand="exportRSS();"/>
<menuitem id="tool.feed" label="&feedOptions;" oncommand="chooseOptions();"/>
<menu label="&toolOptions.import;">
<menupopup>
<menu label="&toolOptions.import.addfeeds;">
<menupopup>
<menuitem label="&toolOptions.import.file;" oncommand="importOpml(false,true,false);"/>
<menuitem label="&toolOptions.import.URL;" oncommand="importOpml(false,false,false);"/>
</menupopup>
</menu>
<menu label="&toolOptions.import.startfresh;">
<menupopup>
<menuitem label="&toolOptions.import.file;" oncommand="importOpml(false,true,true);"/>
<menuitem label="&toolOptions.import.URL;" oncommand="importOpml(false,false,true);"/>
</menupopup>
</menu>
</menupopup>
</menu>
<menuitem label="&toolOptions.export;" command="cmd_exportOpml"/>
<menuitem label="&troubleshoot;"
command="cmd_troubleshoot"/>
<menu label="&toolOptions.recover;">
<menupopup>
<menuitem label="&toolOptions.resetGroups;" oncommand="fixIndices();"/>
<menuitem label="&toolOptions.useBackup;" oncommand="restoreBackup();"/>
</menupopup>
</menu>
</menupopup>
</toolbarbutton>
<toolbarbutton tooltiptext="&help;" type="menu"
image="chrome://newsfox/skin/images/help.png">
<menupopup>
<menuitem label="&help;" command="cmd_help" tooltiptext="&help;"/>
<menuitem id="help.shortcut" label="&shortcut;" oncommand="showShortcuts();" tooltiptext="&shortcut;"/>
</menupopup>
</toolbarbutton>
<spacer width="20"/>
<progressmeter id="pmeter" mode="determined" value="0%" hidden="true"/>
<spacer flex="1"/>
</toolbar>
</html:div>
<hbox flex="1">
<!-- Feed Tree -->
<tree id="newsfox.feedTree" seltype="single" persist="width" width="250"
hidecolumnpicker="true" class="tree"
ondragdrop="nsDragAndDrop.drop(event,feedtreeObserver)"
ondraggesture="dragIt(event)"
onselect="feedSelected()" context="feedMenu">
<treecols>
<treecol id="feedName" primary="true" flex="1" label="&feeds;"/>
</treecols>
<treechildren/>
</tree>
<splitter collapse="before">
<grippy/>
</splitter>
<vbox id="rightpane" flex="1" style="overflow: auto">
<!-- Feed control bar -->
<html:div class="feedHeading" style="margin-bottom:5px;">
<html:div style="padding-left:5px; float:right;">
<toolbar class="toolbar">
<toolbarbutton id="feedbarHome"
command="cmd_home" tooltiptext="&homePage;"
image="chrome://newsfox/skin/images/home.png" />
<toolbarbutton id="feedbarRefresh" command="cmd_checkFeedsslct"
tooltiptext="&refreshThis;"
image="chrome://newsfox/skin/images/check.png" />
<toolbarseparator/>
<toolbarbutton id="feedbarMarkread" command="cmd_markAllAsRead" tooltiptext="&markAllAsRead;"
image="chrome://newsfox/skin/images/markAllAsRead.png" />
<toolbarbutton id="feedbarMarkunread" command="cmd_markAllAsUnread" tooltiptext="&markAllAsUnread;"
image="chrome://newsfox/skin/images/markAllAsUnread.png" />
<toolbarseparator/>
<toolbarbutton id="feedbarDelete" command="cmd_delete" tooltiptext="&deleteSelected;" image="chrome://newsfox/skin/images/delete.png" />
<toolbarbutton id="feedbarOptions" oncommand="chooseOptions();" tooltiptext="&configure;"
image="chrome://newsfox/skin/images/options.png" />
</toolbar>
</html:div>
<html:div style="padding:3px; overflow:hidden;">
<label id="feedTitle"/>
</html:div>
</html:div>
<box id="hbox3pane" orient="horizontal" flex="1" style="overflow: auto">
<splitter id="hartsplitter" collapse="before">
<grippy/>
</splitter>
</box>
<box id="vbox3pane" orient="vertical" flex="1" style="overflow: auto">
<!-- Article List -->
<tree id="newsfox.articleTree" class="tree" persist="height width"
height="200" width="200" flex="2" onselect="articleSelected()"
onclick="if(event.button == 1) {articleTreeMClicked(); event.preventDefault();}"
ondblclick="articleTreeDblClicked();" context="artMenu"
enableColumnDrag="true">
<treecols>
<treecol id="flag" label="&flag;" cycler="true" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol id="title" label="&title;" flex="5" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol id="read" label="&r;" cycler="true" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol id="date" label="&date;" flex="1" persist="width ordinal hidden"/>
</treecols>
<treechildren/>
</tree>
<splitter id="vartsplitter" collapse="before">
<grippy/>
</splitter>
<!-- Content frame -->
<deck id="contentDeck" selectedIndex="0" persist="height width"
height="300" width="300" flex="3">
<iframe id="hrefContent" name="hrefContent"/>
<iframe id="buildContent" name="buildContent"/>
</deck>
</box>
</vbox>
</hbox>
<stringbundleset id="stringbundleset">
<stringbundle id="newsfox-string-bundle" src="chrome://newsfox/locale/newsfox.properties"/>
</stringbundleset>
</window>