2005-12-20 18:33:26 +00:00
|
|
|
R<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
|
2005-08-05 00:02:24 +00:00
|
|
|
|
|
|
|
<!-- ***** 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 Mozilla Communicator client code, released
|
|
|
|
March 31, 1998.
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
|
|
Netscape Communications Corporation.
|
|
|
|
Portions created by the Initial Developer are Copyright (C) 1998-2000
|
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
2005-09-13 18:40:56 +00:00
|
|
|
Marcio S. Galli, mgalli@geckonnection.com
|
2005-08-08 21:32:24 +00:00
|
|
|
|
2005-08-05 00:02:24 +00:00
|
|
|
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 GPL or the LGPL. 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 ***** -->
|
|
|
|
|
2005-10-27 23:20:28 +00:00
|
|
|
|
2005-08-05 00:02:24 +00:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://minimo/skin/minimo.css" type="text/css"?>
|
|
|
|
|
2005-10-27 23:20:28 +00:00
|
|
|
<?xul-overlay href="chrome://minimo/content/toolbars/toolbar-view.xul"?>
|
|
|
|
<?xul-overlay href="chrome://minimo/content/toolbars/toolbar-rss.xul"?>
|
|
|
|
<?xul-overlay href="chrome://minimo/content/toolbars/toolbar-search.xul"?>
|
2005-11-17 20:26:36 +00:00
|
|
|
<?xul-overlay href="chrome://minimo/content/toolbars/toolbar-find.xul"?>
|
2005-08-05 00:02:24 +00:00
|
|
|
|
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % minimoDTD SYSTEM "chrome://minimo/locale/minimo.dtd" >
|
|
|
|
%minimoDTD;
|
2005-08-25 21:47:06 +00:00
|
|
|
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
|
|
|
|
%brandDTD;
|
2005-08-05 00:02:24 +00:00
|
|
|
]>
|
|
|
|
|
2005-10-27 23:20:28 +00:00
|
|
|
|
2005-08-05 00:02:24 +00:00
|
|
|
<window id="main-window"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
orient="vertical"
|
|
|
|
title="Minimo"
|
|
|
|
titlemodifier="Minimo"
|
|
|
|
titlemenuseparator=" - "
|
|
|
|
onload="MiniNavStartup()"
|
|
|
|
onunload="MiniNavShutdown()">
|
|
|
|
|
|
|
|
<script type="application/x-javascript" src="chrome://minimo/content/minimo.js"/>
|
2005-10-20 21:12:18 +00:00
|
|
|
<script type="application/x-javascript" src="chrome://minimo/content/common.js"/>
|
2005-09-15 17:50:11 +00:00
|
|
|
<script type="application/x-javascript" src="chrome://minimo/content/rssview/rssload.js"/>
|
2005-08-05 00:02:24 +00:00
|
|
|
|
2005-08-21 01:17:59 +00:00
|
|
|
<popupset id="mainPopupSet">
|
|
|
|
<popup type="autocomplete" id="PopupAutoComplete"/>
|
|
|
|
</popupset>
|
|
|
|
|
2005-10-27 23:20:28 +00:00
|
|
|
<toolbox id="mini-toolbars">
|
2005-08-08 21:32:24 +00:00
|
|
|
|
2005-11-23 22:27:03 +00:00
|
|
|
<command id="cmd_BrowserOpenTab" oncommand="BrowserOpenTab()"/>
|
|
|
|
<command id="cmd_BrowserScreenRotate" oncommand="BrowserScreenRotate()"/>
|
|
|
|
<command id="cmd_BrowserOpenInfo" oncommand="BrowserOpenInfo()"/>
|
|
|
|
<command id="cmd_BrowserTestDialogs" oncommand="BrowserTestDialogs()"/>
|
|
|
|
<command id="cmd_BrowserTestSendSMS" oncommand="BrowserTestSendSMS()"/>
|
|
|
|
<command id="cmd_ViewOptions" oncommand="BrowserViewOptions()"/>
|
|
|
|
<!--
|
|
|
|
<command id="cmd_ViewRSS" oncommand="BrowserViewRSS()"/>
|
|
|
|
<command id="cmd_ViewSearch" oncommand="BrowserViewSearch()"/>
|
|
|
|
-->
|
|
|
|
<command id="cmd_ViewDeckSB" oncommand="BrowserViewDeckSB()"/>
|
|
|
|
<command id="cmd_ViewDeckSearch" oncommand="BrowserViewDeckSearch()"/>
|
|
|
|
<command id="cmd_ViewFind" oncommand="BrowserViewFind()"/>
|
2005-11-21 17:39:54 +00:00
|
|
|
<command id="cmd_BrowserOpenLinkAsNewTab" oncommand="BrowserOpenLinkAsTab()" />
|
2005-11-23 22:27:03 +00:00
|
|
|
<command id="cmd_BrowserBack" oncommand="BrowserBack()" />
|
|
|
|
<command id="cmd_BrowserForward" oncommand="BrowserForward()" />
|
|
|
|
<command id="cmd_BrowserReload" oncommand="BrowserReload()" />
|
|
|
|
<command id="cmd_BrowserStop" oncommand="BrowserStop()" />
|
|
|
|
<command id="cmd_BrowserZoomPlus" oncommand="BrowserResetZoomPlus()" />
|
|
|
|
<command id="cmd_BrowserZoomMinus" oncommand="BrowserResetZoomMinus()" />
|
|
|
|
<command id="cmd_UIZoomPlus" oncommand="BrowserUIResetZoomPlus()" />
|
|
|
|
<command id="cmd_UIZoomMinus" oncommand="BrowserUIResetZoomMinus()" />
|
2005-12-02 20:13:15 +00:00
|
|
|
<command id="cmd_DoPanelPreferences" oncommand="DoPanelPreferences()" />
|
2005-11-23 22:27:03 +00:00
|
|
|
<command id="cmd_DoBrowserRSS" oncommand="DoBrowserRSS()" />
|
|
|
|
<command id="cmd_BrowserMenu" oncommand="BrowserMenuPopup()" />
|
|
|
|
<command id="cmd_BrowserMenuContextual" oncommand="BrowserMenuPopupContextualMenu()" />
|
|
|
|
<command id="cmd_Quit" oncommand="window.close();" />
|
2005-12-02 20:13:15 +00:00
|
|
|
<command id="cmd_BrowserBookmark" oncommand="BrowserBookmark()" />
|
|
|
|
<command id="cmd_BrowserBookmarkThis" oncommand="BrowserBookmarkThis()" />
|
2005-10-26 01:47:51 +00:00
|
|
|
|
|
|
|
<!-- Keyboard Focus Handler Controls -->
|
2005-10-26 01:49:56 +00:00
|
|
|
<!-- This entire focusnavigation set is not XBLized yet,
|
|
|
|
Minimo JS code will look into it anyways. -->
|
|
|
|
|
2005-11-17 18:52:01 +00:00
|
|
|
|
|
|
|
<!-- focushandler should have only accessfocus and target and the memory cookie maybe -->
|
|
|
|
|
2005-10-26 01:47:51 +00:00
|
|
|
<focusnavigation>
|
2005-10-26 01:49:56 +00:00
|
|
|
<focushandler id="focus_tabcontent" target="content" accessfocus="#tabContent" />
|
|
|
|
<focushandler id="focus_nav-bar" target="nav-bar" accessfocus="menu-button" accessnextrule="focus_toolbar-view" accessprevrule="focus_tabcontent" />
|
|
|
|
<focushandler id="focus_toolbar-view" target="toolbar-view" accessfocus="zoomplusitem" accessnextrule="focus_toolbar-rss" accessprevrule="focus_nav-bar" />
|
|
|
|
<focushandler id="focus_toolbar-rss" target="toolbar-rss" accessfocus="rss-close" accessnextrule="focus_toolbar-search" accessprevrule="focus_toolbar-view" />
|
2005-11-17 23:01:22 +00:00
|
|
|
<focushandler id="focus_toolbar-search" target="toolbar-search" accessfocus="search-close" accessnextrule="focus_toolbar-find" accessprevrule="focus_toolbar-rss" />
|
|
|
|
<focushandler id="focus_toolbar-find" target="toolbar-find" accessfocus="find-close" accessnextrule="focus_content" accessprevrule="focus_toolbar-search" />
|
|
|
|
<focushandler id="focus_content" target="content" accessfocus="#tabContainer" accessnextrule="focus_tabcontent" accessprevrule="focus_toolbar-find" />
|
2005-10-26 01:47:51 +00:00
|
|
|
</focusnavigation>
|
|
|
|
|
2005-10-27 23:20:28 +00:00
|
|
|
|
2005-10-26 01:47:51 +00:00
|
|
|
<toolbar id="nav-bar" >
|
2005-09-29 20:21:25 +00:00
|
|
|
|
2005-12-02 20:42:51 +00:00
|
|
|
<toolbarbutton tabindex="1" accessrule="focus_nav-bar" class="menu-button" id="menu-button" accesskey="m" command="cmd_BrowserMenu" />
|
|
|
|
<toolbarbutton tabindex="2" accessrule="focus_nav-bar" class="back-button" id="back-button" command="cmd_BrowserBack" />
|
|
|
|
<toolbarbutton tabindex="3" accessrule="focus_nav-bar" class="forward-button" id="forward-button" command="cmd_BrowserForward" />
|
|
|
|
<toolbarbutton tabindex="4" accessrule="focus_nav-bar" class="stop-button" id="reload-stop-button" command="cmd_BrowserReload"/>
|
2005-09-29 20:21:25 +00:00
|
|
|
|
2005-12-20 18:33:26 +00:00
|
|
|
|
|
|
|
<!-- WARNING: don't add tabindex to the following element. Somehow it conflicts with the popup history open -->
|
|
|
|
|
|
|
|
<textbox
|
2005-09-29 20:21:25 +00:00
|
|
|
id="urlbar"
|
2005-12-08 20:07:13 +00:00
|
|
|
flex="1"
|
2005-08-21 01:17:59 +00:00
|
|
|
type="autocomplete"
|
|
|
|
enablehistory="true"
|
|
|
|
autocompletesearch="history"
|
|
|
|
completeselectedindex="true"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
2005-12-08 20:07:13 +00:00
|
|
|
ontextentered="return URLBarEntered();"
|
|
|
|
onfocus="URLBarFocusHandler(event, this);"
|
|
|
|
onmousedown="URLBarMouseDownHandler(event, this);"
|
2005-12-09 18:32:45 +00:00
|
|
|
onclick="URLBarClickHandler(event, this);">
|
|
|
|
|
|
|
|
<deck onclick="PageProxyClickHandler(event)" id='proxy-deck' >
|
2005-11-23 22:27:03 +00:00
|
|
|
<image id="urlbar-deck" />
|
|
|
|
</deck>
|
|
|
|
|
2005-11-21 22:48:10 +00:00
|
|
|
<hbox>
|
|
|
|
<button type="menu" style="-moz-user-focus: none" class="plain" id="feed-button">
|
|
|
|
<menupopup id='feed-button-menu' position="after_end" />
|
|
|
|
</button>
|
|
|
|
<image id="lock-icon" class="security-na" />
|
|
|
|
</hbox>
|
2005-09-20 23:34:01 +00:00
|
|
|
</textbox>
|
2005-08-21 01:17:59 +00:00
|
|
|
|
2005-08-05 00:02:24 +00:00
|
|
|
</toolbar>
|
2005-10-27 23:20:28 +00:00
|
|
|
|
|
|
|
<!-- the toolbars shall be added here, check the overlay settings -->
|
2005-09-29 20:21:25 +00:00
|
|
|
|
2005-10-25 19:47:07 +00:00
|
|
|
|
2005-08-05 00:02:24 +00:00
|
|
|
</toolbox>
|
|
|
|
|
|
|
|
<hbox flex="1" >
|
|
|
|
<hbox id="appcontent" flex="100%">
|
|
|
|
<hbox id="browser" context="context" flex="1">
|
2005-08-21 01:17:59 +00:00
|
|
|
<tabbrowser contentcontextmenu="contentAreaContextMenu"
|
2005-08-31 17:05:59 +00:00
|
|
|
context="context" disablehistory="false"
|
2005-10-26 01:47:51 +00:00
|
|
|
accessrule="access_content"
|
2005-08-21 01:17:59 +00:00
|
|
|
type="content-primary"
|
|
|
|
id="content"
|
|
|
|
src="about:blank"
|
|
|
|
flex="1"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
|
|
|
onnewtab="BrowserOpenTab()"/>
|
2005-10-26 01:47:51 +00:00
|
|
|
</hbox>
|
2005-08-05 00:02:24 +00:00
|
|
|
</hbox>
|
|
|
|
</hbox>
|
|
|
|
|
2005-12-01 00:03:16 +00:00
|
|
|
|
|
|
|
<statusbar id="statusbar" hidden="false">
|
|
|
|
<statusbarpanel id="statusbar-text" label="Minimo" flex="1"/>
|
|
|
|
</statusbar>
|
|
|
|
|
2005-08-12 02:09:16 +00:00
|
|
|
<!-- place holder for our app popups and hook to the overlay -->
|
2005-10-27 23:20:28 +00:00
|
|
|
|
2005-09-29 20:21:25 +00:00
|
|
|
<popupset>
|
2005-08-12 02:09:16 +00:00
|
|
|
<popup id="contentAreaContextMenu" onpopupshowing="BrowserPopupShowing()">
|
2005-10-25 19:03:34 +00:00
|
|
|
|
|
|
|
<!-- This toolbar menu works only with Mouse so far and shows
|
|
|
|
when gFullScreen mode is true -->
|
|
|
|
|
2005-11-17 18:52:01 +00:00
|
|
|
<!--
|
|
|
|
<toolbar id="nav-bar-contextual" hidden="true">
|
|
|
|
<toolbarbutton class="menu-button" command="cmd_BrowserMenuContextual" />
|
|
|
|
<toolbarbutton class="back-button" command="cmd_BrowserBack" />
|
|
|
|
<toolbarbutton class="forward-button" command="cmd_BrowserForward" />
|
|
|
|
<toolbarbutton class="reload-button" command="cmd_BrowserReload"/>
|
|
|
|
</toolbar>
|
|
|
|
-->
|
2005-10-25 19:03:34 +00:00
|
|
|
|
2005-11-21 17:39:54 +00:00
|
|
|
<menuitem id="link_as_new_tab" label="&linknewtab.label;" command="cmd_BrowserOpenLinkAsNewTab" hidden="true"/>
|
2005-11-17 18:52:01 +00:00
|
|
|
|
|
|
|
<menuitem id="item-backbutton" label="&backButton.label;" command="cmd_BrowserBack" hidden="true"/>
|
|
|
|
<menuitem id="item-forwardbutton" label="&forwardButton.label;" command="cmd_BrowserForward" hidden="true"/>
|
|
|
|
<menuitem id="item-reloadbutton" label="&reloadButton.label;" command="cmd_BrowserReload" hidden="true"/>
|
|
|
|
|
2005-12-02 20:13:15 +00:00
|
|
|
<menuitem id="item-bookmark-page" label="&bookmarkthispage.label;" insertbefore="context-sep-view" command="cmd_BrowserBookmarkThis" hidden="false"/>
|
|
|
|
<menuitem id="item-bookmark" label="&bookmarks.label;" command="cmd_BrowserBookmark" hidden="true"/>
|
|
|
|
|
2005-11-17 18:52:01 +00:00
|
|
|
<menuitem id="item-call" label="" insertbefore="context-sep-view" oncommand="" hidden="true"/>
|
|
|
|
|
|
|
|
<menuitem id="full_screen" label="Toggle FullScreen" oncommand="DoFullScreen()"/>
|
|
|
|
|
|
|
|
<menuitem id="item-copy" label="Copy" oncommand="DoClipCopy()" />
|
|
|
|
<menuitem id="item-paste" label="Paste" oncommand="DoClipPaste()"/>
|
2005-10-25 19:20:32 +00:00
|
|
|
|
2005-08-12 02:09:16 +00:00
|
|
|
</popup>
|
2005-12-09 18:32:45 +00:00
|
|
|
|
|
|
|
<popup id="urlbarModeSelector" onpopuphidden="PageProxyHidden()">
|
|
|
|
<menuitem id="command_ViewDeckSearch" type="checkbox" label="&decksearch.label;" command="cmd_ViewDeckSearch"/>
|
|
|
|
<menuitem id="command_ViewDeckSB" type="checkbox" label="&decksb.label;" command="cmd_ViewDeckSB" />
|
|
|
|
</popup>
|
2005-08-23 15:21:09 +00:00
|
|
|
|
|
|
|
<!-- somehow tabbedbrowser needs this. Have to check its implementation and eliminate -->
|
|
|
|
<popup id="menu_FilePopup">
|
|
|
|
<menuitem id="menu_close"/>
|
2005-10-25 19:31:01 +00:00
|
|
|
<menuitem id="menu_closeWindow" command="cmd_closeWindow" key="key_closeWindow" label="" />
|
2005-08-12 02:09:16 +00:00
|
|
|
</popup>
|
2005-09-29 20:21:25 +00:00
|
|
|
|
2005-09-30 18:35:53 +00:00
|
|
|
<menupopup id="menu_MainPopup" onpopupshowing="MenuPopupShowing()" onpopuphidden="MenuPopupHidden()">
|
2005-10-25 19:12:34 +00:00
|
|
|
|
2005-10-25 19:31:01 +00:00
|
|
|
<menuitem id="command_BrowserOpenTab" command="cmd_BrowserOpenTab" label="&newtab.label;" />
|
2005-09-29 20:21:25 +00:00
|
|
|
<!-- not working just yet.
|
|
|
|
<menuitem id="command_BrowserScreenRotate" command="cmd_BrowserScreenRotate" label="Rotate Screen" />
|
|
|
|
-->
|
2005-10-21 19:53:51 +00:00
|
|
|
<menuitem id="command_DoPanelPreferences" command="cmd_DoPanelPreferences" label="&prefs.label;" />
|
2005-09-29 20:21:25 +00:00
|
|
|
<!-- separator for now in CSS - need to redesign -->
|
2005-11-23 22:27:03 +00:00
|
|
|
|
|
|
|
<menuitem id="command_ViewOptions" type="checkbox" command="cmd_ViewOptions" label="&zoom.label;" />
|
|
|
|
<menuitem id="command_ViewFind" type="checkbox" command="cmd_ViewFind" label="&findToolbar.label;" />
|
|
|
|
<!--
|
2005-09-29 20:21:25 +00:00
|
|
|
<menuitem id="command_ViewRSS" type="checkbox" command="cmd_ViewRSS" label="&rssBMtitle.label;" />
|
2005-10-25 19:53:24 +00:00
|
|
|
<menuitem id="command_ViewSearch" type="checkbox" command="cmd_ViewSearch" label="&searchToolbar.label;" />
|
2005-11-23 22:27:03 +00:00
|
|
|
-->
|
2005-10-25 19:53:24 +00:00
|
|
|
|
2005-10-17 17:12:28 +00:00
|
|
|
<!-- separator for now in CSS - need to redesign -->
|
2005-10-25 19:12:34 +00:00
|
|
|
<menuitem id="command_Quit" class="separator-menu" command="cmd_Quit" label="&quit.label;" />
|
2005-10-17 17:12:28 +00:00
|
|
|
|
2005-09-29 20:21:25 +00:00
|
|
|
</menupopup>
|
2005-10-25 19:12:34 +00:00
|
|
|
|
2005-09-29 20:21:25 +00:00
|
|
|
</popupset>
|
2005-08-12 02:09:16 +00:00
|
|
|
|
2005-08-05 00:02:24 +00:00
|
|
|
</window>
|
|
|
|
|