diff --git a/grendel/sources/grendel/ui/ActionFactory.java b/grendel/sources/grendel/ui/ActionFactory.java index 44105f5ec2c..e780cc9fc07 100644 --- a/grendel/sources/grendel/ui/ActionFactory.java +++ b/grendel/sources/grendel/ui/ActionFactory.java @@ -50,6 +50,8 @@ import grendel.prefs.ui.UI; import grendel.storage.MailDrop; import grendel.search.SearchFrame; +import grendel.addressbook.AddressBook; + /* Temporarily removed because FilterMaster is broken (edwin) import grendel.filters.FilterMaster; */ @@ -69,6 +71,7 @@ public class ActionFactory { static RunServerPrefsAction fRunServerPrefsAction = new RunServerPrefsAction(); static RunGeneralPrefsAction fRunGeneralPrefsAction = new RunGeneralPrefsAction(); static RunUIPrefsAction fRunUIPrefsAction = new RunUIPrefsAction(); + static ShowAddressBookAction fShowAddressBookAction = new ShowAddressBookAction(); static int fIdent = 0; @@ -131,6 +134,10 @@ public class ActionFactory { static public RunUIPrefsAction GetRunUIPrefsAction() { return fRunUIPrefsAction; } + + static public ShowAddressBookAction GetShowAddressBookAction() { + return fShowAddressBookAction; + } } class ExitAction extends Event { @@ -212,6 +219,18 @@ class RunFiltersAction extends Event { } } +class ShowAddressBookAction extends Event { + + ShowAddressBookAction() { + super("openAddressBook"); + } + + public void actionPerformed(ActionEvent aEvent) { + AddressBook AddressBookFrame = new AddressBook(); + AddressBookFrame.setVisible(true); + } +} + class ShowTooltipsAction extends Event { ShowTooltipsAction() { diff --git a/grendel/sources/grendel/ui/MenuLabels.dtd b/grendel/sources/grendel/ui/MenuLabels.dtd index 103284ef42e..39a6b94d5a5 100644 --- a/grendel/sources/grendel/ui/MenuLabels.dtd +++ b/grendel/sources/grendel/ui/MenuLabels.dtd @@ -93,6 +93,9 @@ + + + @@ -109,19 +112,27 @@ - + + + + - - + + + + + + + @@ -177,8 +188,8 @@ - - + + @@ -188,3 +199,25 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/grendel/sources/grendel/ui/UnifiedMessageDisplayManager.java b/grendel/sources/grendel/ui/UnifiedMessageDisplayManager.java index 7c552c4df76..290fbc9bcbb 100644 --- a/grendel/sources/grendel/ui/UnifiedMessageDisplayManager.java +++ b/grendel/sources/grendel/ui/UnifiedMessageDisplayManager.java @@ -351,6 +351,7 @@ class UnifiedMessageFrame extends GeneralFrame { ActionFactory.GetPreferencesAction(), ActionFactory.GetSearchAction(), ActionFactory.GetRunFiltersAction(), + ActionFactory.GetShowAddressBookAction(), ActionFactory.GetShowTooltipsAction(), ActionFactory.GetRunIdentityPrefsAction(), ActionFactory.GetRunServerPrefsAction(), diff --git a/grendel/sources/grendel/ui/menus.xml b/grendel/sources/grendel/ui/menus.xml index 568012d2383..62a02aa422d 100644 --- a/grendel/sources/grendel/ui/menus.xml +++ b/grendel/sources/grendel/ui/menus.xml @@ -1,3 +1,38 @@ +/* ***** 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 Grendel mail/news client. + * + * The Initial Developer of the Original Code is + * R.J. Keller. + * Portions created by the Initial Developer are Copyright (C) 2005 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * 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 ***** */ - - + + + + + + + @@ -29,6 +69,8 @@ + + @@ -42,6 +84,12 @@ + + + + + + @@ -57,7 +105,7 @@ - + @@ -77,6 +125,8 @@ + + @@ -84,6 +134,14 @@ + + + + + + + + \ No newline at end of file