01: /*
02: * SendMailModeToolBar.java
03: *
04: * Copyright (C) 2000-2002 Peter Graves
05: * $Id: SendMailModeToolBar.java,v 1.1.1.1 2002/09/24 16:10:04 piso Exp $
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2
10: * of the License, or (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20: */
21:
22: package org.armedbear.j.mail;
23:
24: import org.armedbear.j.Frame;
25: import org.armedbear.j.ToolBar;
26:
27: /*package*/final class SendMailModeToolBar extends ToolBar {
28: /*package*/SendMailModeToolBar(Frame frame) {
29: super (frame);
30: addButton("New", ICON_NEW, "newBuffer");
31: addButton("Open", ICON_OPEN, "openFile");
32: addButton("Save", ICON_SAVE, "save");
33: addButton("Close", ICON_CLOSE, "killBuffer");
34: addSeparator();
35: addButton("Undo", ICON_UNDO, "undo");
36: addButton("Redo", ICON_REDO, "redo");
37: addSeparator();
38: addButton("Cut", ICON_CUT, "killRegion");
39: addButton("Copy", ICON_COPY, "copyRegion");
40: addButton("Paste", ICON_PASTE, "paste");
41: addSeparator();
42: addButton("Find", ICON_FIND, "find");
43: addButton("Replace", ICON_REPLACE, "replace");
44: addSeparator();
45: addButton("Attach", ICON_MAIL_ATTACH, "attachFile");
46: addButton("Send", ICON_MAIL_SEND, "send");
47: addSeparator();
48: addButton("Home", ICON_HOME, "dirHomeDir");
49: maybeAddInboxButton();
50: addSeparator();
51: addButton("Exit", ICON_EXIT, "quit");
52: }
53: }
|