annotate lisp/oobr/br-menu.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 4103f0995bd7
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; ORG: Motorola Inc.
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; LAST-MOD: 22-Oct-95 at 00:41:44 by Bob Weiner
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; Copyright (C) 1994, 1995 Free Software Foundation, Inc.
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)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (mail nil "oo-browser@hub.ucsb.edu"
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)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (mail nil "oo-browser-request@hub.ucsb.edu")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (insert "Use a subject line like one of the following:\n"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 " Subject: Subscribe <joe@any.com> (Joe Williams).\n"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 " Subject: Unsubscribe <joe@any.com>.\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (search-forward "Subject: " nil t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ["Reinitialize" br-refresh t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ["Exit-Temporarily" (id-tool-quit '(br-quit)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ["Quit" (id-tool-quit '(br-quit t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ("Class"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ["Match-from-Listing" br-match t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ["Where-is-Any" (br-where t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ["Where-is-Current" br-where t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ["Graphical-Descendants" br-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ["Ancestors" (br-ancestors -1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ["Children" br-children t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ["Descendants" br-descendants t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ["Features" br-features t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ["Info" br-class-info t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ["Level" br-at t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ["Parents" br-parents t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ["Class-Statistics" br-class-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ("Environment"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ["Create" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ["Load" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ["Rebuild" br-env-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ["Rebuild-Lib-Part" br-lib-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ["Rebuild-Sys-Part" br-sys-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ["Save" br-env-save t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ["Statistics" br-env-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ["Add-File" br-add-class-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ["Delete-Class" br-delete 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 ("Feature"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ["View-Friend-Def" br-view-friend t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ["Implementors" br-implementors t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ["Signature" br-ftr-signature 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 ("List-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ["Graphical-View" br-tree-graph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ["Graphical-Descendants" (br-tree t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ["Kill-Graphical-Views" br-tree-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ["Write (Save as)" br-write-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 ["Count-Entries" br-count t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 ["Order-Entries" (progn (br-order 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (br-unique)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ["Ancestors" (br-ancestors -2) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 ["Children" (br-children t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 ["Descendants" (br-descendants t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ["Features" (br-features 1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ["Files" br-buffer-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 ["Level" (br-at t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ["Parents" (br-parents t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ["Show-All-Classes" (br-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ["Show-All-Lib-Classes" (br-lib-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ["Show-All-Sys-Classes" (br-sys-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ["Show-Top-Classes" br-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ["Show-Top-Lib-Classes" br-lib-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ["Show-Top-Sys-Classes" br-sys-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ["Exit-This-Level" br-exit-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ["Narrow-by-10" br-resize-narrow t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ["Widen-by-10" br-resize-widen t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ("Options"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ["Keep-Viewed-Classes" br-toggle-keep-viewed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 :style toggle :selected br-keep-viewed-classes]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ["Graphical-Show-Features" br-tree-features-toggle
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 :style toggle :selected br-show-features]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ("View-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ["Full-Frame" br-view-full-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ["Kill-Buffer" br-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ["Move-To-or-From" br-to-from-viewer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ;;; This definition is used by InfoDock and XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (defconst id-popup-br-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 '("OO-Browser"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ["Copyright" br-copyright t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 ["Help-Commands" br-help t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ["Help-Mode" describe-mode t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 ["Help-Mouse" br-help-ms t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ["Manual" (id-info "(oo-browser.info)Top") t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 ["Version" br-version t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 ["Compose-Mail-to-List"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (progn (br-quit)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (mail nil "oo-browser@hub.ucsb.edu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 "Replace this line with a descriptive sentence.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 (search-forward "Subject: " nil t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ["Mail-List-Request"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 (progn (br-quit)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (mail nil "oo-browser-request@hub.ucsb.edu")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (insert "Use a subject line like one of the following:\n"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 " Subject: Subscribe <joe@any.com> (Joe Williams).\n"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 " Subject: Unsubscribe <joe@any.com>.\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (search-forward "Subject: " nil t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ("Class"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ["Match-from-Listing" br-match t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 ["Where-is-Any" (br-where t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ["Where-is-Current" br-where t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 ["Graphical-View" br-tree-graph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 ["Graphical-Descendants" (br-tree t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ["Kill-Graphical-Views" br-tree-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ["Ancestors" (br-ancestors -1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ["Children" br-children t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 ["Descendants" br-descendants t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ["Features" br-features t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ["Info" br-class-info t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 ["Level" br-at t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 ["Parents" br-parents t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ["Class-Statistics" br-class-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 ("Environment"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ["Create" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ["Load" (id-tool-invoke id-tool-oo-browser) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ["Rebuild" br-env-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 ["Rebuild-Lib-Part" br-lib-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ["Rebuild-Sys-Part" br-sys-rebuild t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ["Save" br-env-save t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ["Statistics" br-env-stats t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 ["Add-File" br-add-class-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ["Delete-Class" br-delete t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ("Feature"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ["Edit-Current" br-edit-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ["Edit-Named" br-find t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 ["View-Current" br-view-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ["View-Friend-Def" br-view-friend t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 ["Implementors" br-implementors t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ["Signature" br-feature-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ("List-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ["Write (Save as)" br-write-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 ["Count-Entries" br-count t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ["Order-Entries" (progn (br-order 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (br-unique)) 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 ["Ancestors" (br-ancestors -2) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 ["Children" (br-children t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 ["Descendants" (br-descendants t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ["Features" (br-features 1) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ["Files" br-buffer-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 ["Level" (br-at t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 ["Parents" (br-parents t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 ["Show-All-Classes" (br-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 ["Show-All-Lib-Classes" (br-lib-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ["Show-All-Sys-Classes" (br-sys-top-classes t) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ["Show-Top-Classes" br-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 ["Show-Top-Lib-Classes" br-lib-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ["Show-Top-Sys-Classes" br-sys-top-classes t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ["Exit-This-Level" br-exit-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ["Narrow-by-10" br-resize-narrow t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ["Widen-by-10" br-resize-widen t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ("Options"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ["Keep-Viewed-Classes" br-toggle-keep-viewed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 :style toggle :selected br-keep-viewed-classes]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ["Graphical-Show-Features" br-tree-features-toggle
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 :style toggle :selected br-show-features]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ("View-Window"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ["Full-Frame" br-view-full-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ["Kill-Buffer" br-kill t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ["Move-To-or-From" br-to-from-viewer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ["Reinitialize" br-refresh t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ["Exit-Temporarily" (id-tool-quit '(br-quit)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ["Quit" (id-tool-quit '(br-quit t)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ;;; Public functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ;;; This definition is used only by XEmacs and Emacs19.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 (defun br-menubar-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 "Add an OO-Browser menu to the menubar for each listing buffer."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 (cond ((fboundp 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 (setq mode-popup-menu id-popup-br-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 (hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 (define-key br-mode-map 'button3 'br-popup-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 (t ;; hyperb:emacs19-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 (define-key br-mode-map [down-mouse-3] 'br-popup-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (define-key br-mode-map [mouse-3] nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 (if (and (boundp 'current-menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 (or hyperb:emacs19-p current-menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (not (car (find-menu-item current-menubar '("OO-Browser")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 (set-buffer-menubar (copy-sequence current-menubar))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 (if (fboundp 'add-submenu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 (add-submenu nil id-popup-br-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 (add-menu nil (car id-popup-br-menu) (cdr id-popup-br-menu))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 ;;; This definition is used only by XEmacs and Emacs19.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 (defun br-popup-menu (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 "Popup the OO-Browser listing buffer menu."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (interactive "@e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 (mouse-set-point event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 (if (fboundp 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 (popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 (popup-menu id-popup-br-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 (cond ((null hyperb:window-system))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ((fboundp 'id-menubar-set)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 ;; InfoDock under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (require 'id-menubars)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 (id-menubar-set 'br-mode 'id-menubar-br))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 (hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 ;; XEmacs under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 (add-hook 'br-mode-hook 'br-menubar-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 (hyperb:emacs19-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ;; Emacs 19 under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 (require 'lmenu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 (add-hook 'br-mode-hook 'br-menubar-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 (provide 'br-menu)