This commit is contained in:
hangas%netscape.com 1999-07-18 20:20:52 +00:00
Родитель 84545da0d7
Коммит f765f888de
2 изменённых файлов: 23 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,9 @@
function NavigatorWindow()
{
// FIX ME - Really need to find the front most navigator window
// and bring it all the way to the front
// FIX ME - This code needs to be updated to use window.open()
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore)
{
@ -20,6 +24,9 @@ function NavigatorWindow()
function MessengerWindow()
{
// FIX ME - Really need to find the front most messenger window
// and bring it all the way to the front
window.open("chrome://messenger/content/", "messenger", "chrome");
}
@ -32,3 +39,12 @@ function AddressBook()
}
function QuitApplication()
{
var editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance();
editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);
if ( editorShell )
editorShell.Exit();
}

Просмотреть файл

@ -2,9 +2,11 @@
<!DOCTYPE window
[
<!ENTITY quitApplicationCmd.label "Exit">
<!ENTITY tasksMenu.label "Tasks">
<!ENTITY navigatorCmd.label "Navigator">
<!ENTITY messengerCmd.label ".Messenger">
<!ENTITY messengerCmd.label "Messenger">
<!ENTITY addressBookCmd.label "Address Book">
<!ENTITY bookmarkMenu.label ".Bookmarks">
<!ENTITY addBookmarkCmd.label ".Add Bookmark">
@ -42,6 +44,10 @@
<html:script language="JavaScript" src="chrome://global/content/globalOverlay.js"/>
<menu id="fileMenu">
<menuitem name="&quitApplicationCmd.label;" onclick="QuitApplication()"/>
</menu>
<menu id="tasksMenu" name="&tasksMenu.label;">
<menuitem name="&navigatorCmd.label;" onclick="NavigatorWindow()"/>
<menuitem name="&messengerCmd.label;" onclick="MessengerWindow()"/>