Mercurial > emacs
annotate lwlib/xlwmenuP.h @ 42829:07bd6e693cb6
(easy-mmode-defmap): Enable "Up Stack", "Down Stack", and
"Finish Function" menu map entries for jdb mode.
(gud-jdb-use-classpath): New customization variable.
(gud-jdb-command-name): Add customization.
(gud-jdb-classpath, gud-marker-acc-max-length): New variables.
(gud-jdb-classpath-string): New variable.
(gud-jdb-source-files, gud-jdb-class-source-alist): Add doc strings.
(gud-jdb-build-source-files-list): Likewise.
(gud-jdb-massage-args): Record any command argument classpath
string in `gud-jdb-classpath-string'.
(gud-jdb-lowest-stack-level): New function, finds bottom of current
java call stack in jdb output.
(gud-jdb-find-source-using-classpath, gud-jdb-find-source)
(gud-jdb-parse-classpath-string): New functions.
(gud-jdb-marker-filter): Search/detect classpath information in
jdb's output. marker regexp updated to match oldjdb and jdb output
formats. Expand search for source files to include new/old methods
using new functions above. Do not allow `gud-marker-acc' to grow
without bound.
(jdb): Set classpath information (if available) as jdb is started.
Change `gud-break' and `gud-remove'
to use new %c ("class") escape in format strings. Add
`gud-finish', `gud-up', `gud-down' command string functions, and
add them to the local menu map. Update `comint-prompt-regexp' for
jdb and oldjdb. If attaching to an already running java VM and
configured to use classpath, send command to query for classpath,
else use previous method for finding and parsing java
sources. Set `gud-jdb-find-source' function accordingly.
(gud-mode): Doc fix.
(gud-format-command): Add support for new %c ("class") escape.
(gud-find-class): New function in support of %c escape.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 18 Jan 2002 18:57:20 +0000 |
parents | bb36becbd66b |
children | 762469b26903 |
rev | line source |
---|---|
7359 | 1 #ifndef _XlwMenuP_h |
2 #define _XlwMenuP_h | |
3 | |
4 #include "xlwmenu.h" | |
5 #include <X11/CoreP.h> | |
6 | |
7 /* Elements in the stack arrays. */ | |
8 typedef struct _window_state | |
9 { | |
10 Window window; | |
11 Position x; | |
12 Position y; | |
13 Dimension width; | |
14 Dimension height; | |
15 Dimension label_width; | |
25033
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
16 |
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
17 /* Width of toggle buttons or radio buttons. */ |
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
18 Dimension button_width; |
7359 | 19 } window_state; |
20 | |
21 | |
22 /* New fields for the XlwMenu widget instance record */ | |
23 typedef struct _XlwMenu_part | |
24 { | |
25 /* slots set by the resources */ | |
26 XFontStruct* font; | |
7360 | 27 Pixel foreground; |
7359 | 28 Pixel button_foreground; |
29 Dimension margin; | |
30 Dimension horizontal_spacing; | |
31 Dimension vertical_spacing; | |
32 Dimension arrow_spacing; | |
33 Dimension shadow_thickness; | |
34 Pixel top_shadow_color; | |
35 Pixel bottom_shadow_color; | |
36 Pixmap top_shadow_pixmap; | |
37 Pixmap bottom_shadow_pixmap; | |
7360 | 38 Cursor cursor_shape; |
7359 | 39 XtCallbackList open; |
27340
1d84a7873d7c
(_XlwMenu_part): Add `highlight' callback list.
Gerd Moellmann <gerd@gnu.org>
parents:
25033
diff
changeset
|
40 XtCallbackList select, highlight; |
7359 | 41 widget_value* contents; |
42 int horizontal; | |
29699
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
43 |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
44 /* True means top_shadow_color and/or bottom_shadow_color must be freed. */ |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
45 unsigned free_top_shadow_color_p : 1; |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
46 unsigned free_bottom_shadow_color_p : 1; |
7359 | 47 |
48 /* State of the XlwMenu */ | |
49 int old_depth; | |
50 widget_value** old_stack; | |
51 int old_stack_length; | |
52 | |
53 /* New state after the user moved */ | |
54 int new_depth; | |
55 widget_value** new_stack; | |
56 int new_stack_length; | |
57 | |
58 /* Window resources */ | |
59 window_state* windows; | |
60 int windows_length; | |
61 | |
62 /* Internal part, set by the XlwMenu */ | |
63 GC foreground_gc; | |
64 GC button_gc; | |
65 GC background_gc; | |
66 GC inactive_gc; | |
67 GC inactive_button_gc; | |
68 GC shadow_top_gc; | |
69 GC shadow_bottom_gc; | |
70 Cursor cursor; | |
71 Boolean popped_up; | |
72 Pixmap gray_pixmap; | |
73 } XlwMenuPart; | |
74 | |
75 /* Full instance record declaration */ | |
76 typedef struct _XlwMenuRec | |
77 { | |
78 CorePart core; | |
79 XlwMenuPart menu; | |
80 } XlwMenuRec; | |
81 | |
82 /* New fields for the XlwMenu widget class record */ | |
83 typedef struct | |
84 { | |
85 int dummy; | |
86 } XlwMenuClassPart; | |
87 | |
88 /* Full class record declaration. */ | |
89 typedef struct _XlwMenuClassRec | |
90 { | |
91 CoreClassPart core_class; | |
92 XlwMenuClassPart menu_class; | |
93 } XlwMenuClassRec; | |
94 | |
95 /* Class pointer. */ | |
96 extern XlwMenuClassRec xlwMenuClassRec; | |
97 | |
98 #endif /* _XlwMenuP_h */ |