annotate lisp/oobr/br-menu.el @ 164:4e0740e5aab2

Added tag r20-3b8 for changeset 0132846995bd
author cvs
date Mon, 13 Aug 2007 09:43:39 +0200
parents 4be1180a9e89
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;!emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; FILE: br-menu.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; SUMMARY: Pulldown and popup menus for the OO-Browser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; USAGE: GNU Emacs Lisp Library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; KEYWORDS: mouse, oop, tools
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; AUTHOR: Bob Weiner
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
9 ;; ORG: InfoDock Associates
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; ORIG-DATE: 27-Oct-93 at 21:13:36
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
12 ;; LAST-MOD: 21-Feb-97 at 16:58:26 by Bob Weiner
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
14 ;; Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; See the file BR-COPY for license information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; This file is part of the OO-Browser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; DESCRIPTION:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; DESCRIP-END.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; Public variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; This definition is used by InfoDock only.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (defconst id-menubar-br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ("OO-Browser"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ["Copyright" br-copyright t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ["Help-Commands" br-help t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ["Help-Mode" describe-mode t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ["Help-Mouse" br-help-ms t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ["Manual" (id-info "(oo-browser.info)Top") t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ["Version" br-version t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ["Compose-Mail-to-List"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (progn (br-quit)
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
39 (mail nil "oo-browser@infodock.com"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 "Replace this line with a descriptive sentence.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (search-forward "Subject: " nil t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ["Mail-List-Request"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (progn (br-quit)
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
45 (mail nil "oo-browser-request@infodock.com")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
46 (insert "The subject line of this message will not be used.\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
47 "Remove everything in the body of this message except one\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
48 "or more lines of the following form:\n\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
49 " subscribe oo-browser [<your-email-address>]\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
50 " or\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
51 " unsubscribe oo-browser [<your-email-address>]\n\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
52 "For example: subscribe oo-browser joe@nowhere.gov\n"))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
53 t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ["Reinitialize" br-refresh t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ["Exit-Temporarily" (id-tool-quit '(br-quit)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ["Quit" (id-tool-quit '(br-quit t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ("Class"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ["Match-from-Listing" br-match t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ["Where-is-Any" (br-where t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ["Where-is-Current" br-where t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ["Graphical-Descendants" br-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ["Ancestors" (br-ancestors -1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ["Children" br-children t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ["Descendants" br-descendants t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ["Features" br-features t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ["Info" br-class-info t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ["Level" br-at t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ["Parents" br-parents t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ["Class-Statistics" br-class-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ("Environment"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ["Create" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ["Load" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ["Rebuild" br-env-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ["Rebuild-Lib-Part" br-lib-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ["Rebuild-Sys-Part" br-sys-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ["Save" br-env-save t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ["Statistics" br-env-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ["Add-File" br-add-class-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ["Delete-Class" br-delete t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ("Feature"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ["View-Friend-Def" br-view-friend t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ["Implementors" br-implementors t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ["Signature" br-ftr-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ("List-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ["Graphical-View" br-tree-graph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ["Graphical-Descendants" (br-tree t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 ["Kill-Graphical-Views" br-tree-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 ["Write (Save as)" br-write-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ["Count-Entries" br-count t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ["Order-Entries" (progn (br-order 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (br-unique)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ["Ancestors" (br-ancestors -2) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ["Children" (br-children t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 ["Descendants" (br-descendants t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ["Features" (br-features 1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 ["Files" br-buffer-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ["Level" (br-at t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ["Parents" (br-parents t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ["Show-All-Classes" (br-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ["Show-All-Lib-Classes" (br-lib-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ["Show-All-Sys-Classes" (br-sys-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ["Show-Top-Classes" br-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ["Show-Top-Lib-Classes" br-lib-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ["Show-Top-Sys-Classes" br-sys-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ["Exit-This-Level" br-exit-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ["Narrow-by-10" br-resize-narrow t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ["Widen-by-10" br-resize-widen t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ("Options"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ["Keep-Viewed-Classes" br-toggle-keep-viewed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 :style toggle :selected br-keep-viewed-classes]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
133 ["Graphical-Add-Features" br-tree-features-toggle
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 :style toggle :selected br-show-features]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
135 ["Show-Inherited-Features"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
136 (setq br-inherited-features-flag
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
137 (not br-inherited-features-flag))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
138 :style toggle :selected br-inherited-features-flag]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ("View-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ["Full-Frame" br-view-full-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ["Kill-Buffer" br-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ["Move-To-or-From" br-to-from-viewer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ;;; This definition is used by InfoDock and XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (defconst id-popup-br-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 '("OO-Browser"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 ["Copyright" br-copyright t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ["Help-Commands" br-help t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ["Help-Mode" describe-mode t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ["Help-Mouse" br-help-ms t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ["Manual" (id-info "(oo-browser.info)Top") t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ["Version" br-version t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ["Compose-Mail-to-List"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (progn (br-quit)
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
159 (mail nil "oo-browser@infodock.com"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 "Replace this line with a descriptive sentence.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (search-forward "Subject: " nil t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ["Mail-List-Request"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (progn (br-quit)
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
165 (mail nil "oo-browser-request@infodock.com")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
166 (insert "The subject line of this message will not be used.\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
167 "Remove everything in the body of this message except one\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
168 "or more lines of the following form:\n\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
169 " subscribe oo-browser [<your-email-address>]\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
170 " or\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
171 " unsubscribe oo-browser [<your-email-address>]\n\n"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
172 "For example: subscribe oo-browser joe@nowhere.gov\n"))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
173 t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 ("Class"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 ["Match-from-Listing" br-match t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ["Where-is-Any" (br-where t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ["Where-is-Current" br-where t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 ["Graphical-View" br-tree-graph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ["Graphical-Descendants" (br-tree t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ["Kill-Graphical-Views" br-tree-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ["Ancestors" (br-ancestors -1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ["Children" br-children t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ["Descendants" br-descendants t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 ["Features" br-features t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ["Info" br-class-info t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ["Level" br-at t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ["Parents" br-parents t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ["Class-Statistics" br-class-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ("Environment"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ["Create" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ["Load" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ["Rebuild" br-env-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ["Rebuild-Lib-Part" br-lib-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 ["Rebuild-Sys-Part" br-sys-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ["Save" br-env-save t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ["Statistics" br-env-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ["Add-File" br-add-class-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 ["Delete-Class" br-delete t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ("Feature"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 ["View-Friend-Def" br-view-friend t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 ["Implementors" br-implementors t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 ["Signature" br-feature-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ("List-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ["Write (Save as)" br-write-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 ["Count-Entries" br-count t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 ["Order-Entries" (progn (br-order 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 (br-unique)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ["Ancestors" (br-ancestors -2) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ["Children" (br-children t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 ["Descendants" (br-descendants t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ["Features" (br-features 1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ["Files" br-buffer-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ["Level" (br-at t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ["Parents" (br-parents t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ["Show-All-Classes" (br-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ["Show-All-Lib-Classes" (br-lib-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ["Show-All-Sys-Classes" (br-sys-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ["Show-Top-Classes" br-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ["Show-Top-Lib-Classes" br-lib-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ["Show-Top-Sys-Classes" br-sys-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ["Exit-This-Level" br-exit-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ["Narrow-by-10" br-resize-narrow t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ["Widen-by-10" br-resize-widen t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 ("Options"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ["Keep-Viewed-Classes" br-toggle-keep-viewed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 :style toggle :selected br-keep-viewed-classes]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
247 ["Graphical-Add-Features" br-tree-features-toggle
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 :style toggle :selected br-show-features]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
249 ["Show-Inherited-Features"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
250 (setq br-inherited-features-flag
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
251 (not br-inherited-features-flag))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
252 :style toggle :selected br-inherited-features-flag]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 ("View-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ["Full-Frame" br-view-full-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ["Kill-Buffer" br-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ["Move-To-or-From" br-to-from-viewer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ["Reinitialize" br-refresh t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 ["Exit-Temporarily" (id-tool-quit '(br-quit)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 ["Quit" (id-tool-quit '(br-quit t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ;;; Public functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ;;; This definition is used only by XEmacs and Emacs19.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 (defun br-menubar-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 "Add an OO-Browser menu to the menubar for each listing buffer."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 (cond ((fboundp 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 (setq mode-popup-menu id-popup-br-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 (hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 (define-key br-mode-map 'button3 'br-popup-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 (t ;; hyperb:emacs19-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (define-key br-mode-map [down-mouse-3] 'br-popup-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 (define-key br-mode-map [mouse-3] nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 (if (and (boundp 'current-menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 (or hyperb:emacs19-p current-menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 (not (car (find-menu-item current-menubar '("OO-Browser")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 (set-buffer-menubar (copy-sequence current-menubar))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 (if (fboundp 'add-submenu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 (add-submenu nil id-popup-br-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (add-menu nil (car id-popup-br-menu) (cdr id-popup-br-menu))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ;;; This definition is used only by XEmacs and Emacs19.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 (defun br-popup-menu (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 "Popup the OO-Browser listing buffer menu."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 (interactive "@e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 (mouse-set-point event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 (if (fboundp 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 (popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 (popup-menu id-popup-br-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 (cond ((null hyperb:window-system))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 ((fboundp 'id-menubar-set)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 ;; InfoDock under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 (require 'id-menubars)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 (id-menubar-set 'br-mode 'id-menubar-br))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 (hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 ;; XEmacs under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 (add-hook 'br-mode-hook 'br-menubar-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 (hyperb:emacs19-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 ;; Emacs 19 under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 (require 'lmenu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 (add-hook 'br-mode-hook 'br-menubar-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 (provide 'br-menu)