annotate lwlib/lwlib.h @ 30411:41f228350eca

Got rid of all byte-compiler warnings on Emacs Load ada-xref.el before ada-prj.el, so that the Project menu is created when ada-prj tries to add to it. (ada-activate-keys-for-case): Suppress the characters that are not part of the Ada syntax. Better compatibility with else-mode (ada-adjust-case-interactive): When auto-casing is not active, correctly insert newlines (used to insert only ^M). Prevent the syntax table from being changed in case of an error (or '_' becomes part of a word and some commands are confused). Do nothing if ada-auto-case is nil. (ada-after-keyword-p): Ignore keywords that are also attributes (ada-batch-reformat): Update usage comment (ada-call-from-contextual-menu): New function (ada-case-read-exceptions): Reinitialize the casing exception list first to nil first, so that the casing exception file can be shared. (ada-check-defun-name): Handles "configure" keyword for gnatdist files. (ada-compile-goto-error): Fix regexp used to detect a file:line anywhere in the error message (ada-contextual-menu-last-point): New variable (ada-create-keymap): If the variable delete-key-deletes-forward is t on XEmacs, it means that DEL should delete one character forward. (ada-create-menu): Use :included instead of :visible for XEmacs. New submenu "Options". (ada-end-stmt-re): Correctly indent "select ... then abort" statements. (ada-fill-comment-paragraph): Correctly delete all leading '--' even if they don't match ada-fill-comment-prefix Fix handling of paragraphs on the first or last line of a file. (ada-format-paramlist): Fix handling of default parameter values. (ada-get-body-name): New function. (ada-get-current-indent): Optimized by searchling directly for an existing generic part or a statement outside of it. Handle ada-indent-align-comments when indenting comments Replaced some regexps by testing directly the next character. This results in a huge speedup on some files. New indentation scheme for renames statements. Stop looking for the 'while' or 'for' associated with a 'loop' at the first semicolon encountered. A "return" can also match an anonymous access subprogram declaration. (ada-get-indent-noindent): Ignore strings and comments when looking for the keywords "record" and "private". (ada-goto-matching-decl-start): When matching "if", make sure we are not in fact seeing "end if". Ignore "when" statements except when initial keyword was "begin". Fix handling of nested procedures. Add a recursive call to this function to skip over other 'end' statmts. Fix indentation for "when .. => begin" (ada-in-open-paren-p): Fix indentation for complex boolean expressions, where 'and then', 'or else' and parenthesis statements are mixed up. (ada-in-paramlist-p): Skip comments while searching for the beginning Fix handling of operator declarations. (ada-indent-align-comments): New variable (ada-indent-current): Change the syntax table only in the protected section, so that we are sure it is restored correctly. (ada-indent-on-previous-lines): Use ada-use-indent and ada-with-indent Correctly indent "select ... then" (ada-indent-region): Slight speedup. (ada-indent-renames): New variable. (ada-last-which-function-subprog, ada-last-which-function-line): New variables (ada-looking-at-semi-private): Correctly indent the 'private' keyword when it is the first word in a package declaration. (ada-loose-case-word): Stop searching if at the end of the buffer. (ada-loose-case-word, ada-capitalize-word): Recase the whole word even if point is not initially at the end of the word. (ada-matching-decl-start-re): Add "when". (ada-mode): Add support for abbrev-mode, outline-mode and which-func-mode Override the old find-file.el entry in ff-special-constructs since it is using the obsolete ada-spec-suffix variable (ada-no-auto-case): New function (ada-scan-paramlist): When parsing the argument type, accept spaces (as in "X 'Class", generated by Rational Rose). (ada-other-file-name): No longer loads the other file. (ada-popup-menu): Save and restore the current buffer and cursor position before and after displaying the menu. (ada-search-ignore-complex-boolean): New function. (ada-uncomment-region): Emacs21 already knows how to delete comments not starting in the first column. (ada-use-indent): New variable (ada-which-function): New function. (ada-with-indent): New variable (ada-xemacs): evaluate it at compile time too, so that ada-mode.el can be batch-compiled from the command line.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 24 Jul 2000 11:14:26 +0000
parents 6ed38ee607e9
children 32d440813da1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 #ifndef LWLIB_H
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 #define LWLIB_H
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 #include <X11/Intrinsic.h>
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 /*
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 ** Widget values depend on the Widget type:
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 **
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 ** widget: (name value key enabled data contents/selected)
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 **
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 ** label: ("name" "string" NULL NULL NULL NULL)
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 ** button: ("name" "string" "key" T/F data <default-button-p>)
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 ** button w/menu:
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 ** ("name" "string" "key" T/F data (label|button|button w/menu...))
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 ** menubar: ("name" NULL NULL T/F data (button w/menu))
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 ** selectable thing:
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 ** ("name" "string" "key" T/F data T/F)
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 ** checkbox: selectable thing
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 ** radio: ("name" NULL NULL T/F data (selectable thing...))
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 ** strings: ("name" NULL NULL T/F data (selectable thing...))
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 ** text: ("name" "string" <ign> T/F data)
8784
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
22 ** main: ("name")
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 typedef unsigned long LWLIB_ID;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 typedef enum _change_type
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 {
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 NO_CHANGE = 0,
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 INVISIBLE_CHANGE = 1,
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 VISIBLE_CHANGE = 2,
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 STRUCTURAL_CHANGE = 3
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 } change_type;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34
25035
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
35 enum button_type
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
36 {
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
37 BUTTON_TYPE_NONE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
38 BUTTON_TYPE_TOGGLE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
39 BUTTON_TYPE_RADIO
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
40 };
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
41
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
42 /* Menu separator types. */
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
43
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
44 enum menu_separator
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
45 {
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
46 /* These values are Motif compatible. */
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
47 SEPARATOR_NO_LINE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
48 SEPARATOR_SINGLE_LINE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
49 SEPARATOR_DOUBLE_LINE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
50 SEPARATOR_SINGLE_DASHED_LINE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
51 SEPARATOR_DOUBLE_DASHED_LINE,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
52 SEPARATOR_SHADOW_ETCHED_IN,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
53 SEPARATOR_SHADOW_ETCHED_OUT,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
54 SEPARATOR_SHADOW_ETCHED_IN_DASH,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
55 SEPARATOR_SHADOW_ETCHED_OUT_DASH,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
56
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
57 /* The following are supported by XEmacs' Lucid menus. */
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
58 SEPARATOR_SHADOW_DOUBLE_ETCHED_IN,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
59 SEPARATOR_SHADOW_DOUBLE_ETCHED_OUT,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
60 SEPARATOR_SHADOW_DOUBLE_ETCHED_IN_DASH,
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
61 SEPARATOR_SHADOW_DOUBLE_ETCHED_OUT_DASH
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
62 };
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
63
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 typedef struct _widget_value
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65 {
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 /* name of widget */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 char* name;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 /* value (meaning depend on widget type) */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 char* value;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 /* keyboard equivalent. no implications for XtTranslations */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 char* key;
27337
d895d4e8a6f0 (_widget_value): Add help string.
Gerd Moellmann <gerd@gnu.org>
parents: 25035
diff changeset
72 /* Help string or null if none. */
d895d4e8a6f0 (_widget_value): Add help string.
Gerd Moellmann <gerd@gnu.org>
parents: 25035
diff changeset
73 char *help;
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 /* true if enabled */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 Boolean enabled;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 /* true if selected */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 Boolean selected;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 /* true if was edited (maintained by get_value) */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 Boolean edited;
25035
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
80 /* The type of a button. */
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
81 enum button_type button_type;
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 /* true if has changed (maintained by lw library) */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 change_type change;
14878
487b03096cc5 (struct widget_value): New field this_one_change.
Richard M. Stallman <rms@gnu.org>
parents: 14018
diff changeset
84 /* true if this widget itself has changed,
487b03096cc5 (struct widget_value): New field this_one_change.
Richard M. Stallman <rms@gnu.org>
parents: 14018
diff changeset
85 but not counting the other widgets found in the `next' field. */
487b03096cc5 (struct widget_value): New field this_one_change.
Richard M. Stallman <rms@gnu.org>
parents: 14018
diff changeset
86 change_type this_one_change;
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 /* Contents of the sub-widgets, also selected slot for checkbox */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 struct _widget_value* contents;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 /* data passed to callback */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 XtPointer call_data;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 /* next one in the list */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 struct _widget_value* next;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 /* slot for the toolkit dependent part. Always initialize to NULL. */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 void* toolkit_data;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 /* tell us if we should free the toolkit data slot when freeing the
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 widget_value itself. */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 Boolean free_toolkit_data;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 /* we resource the widget_value structures; this points to the next
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 one on the free list if this one has been deallocated.
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 */
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 struct _widget_value *free_list;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 } widget_value;
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
106 typedef void (*lw_callback) __P ((Widget w, LWLIB_ID id, void* data));
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
108 void lw_register_widget __P ((char* type, char* name, LWLIB_ID id,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
109 widget_value* val, lw_callback pre_activate_cb,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
110 lw_callback selection_cb,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
111 lw_callback post_activate_cb,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
112 lw_callback highlight_cb));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
113 Widget lw_get_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
114 Widget lw_make_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
115 Widget lw_create_widget __P ((char* type, char* name, LWLIB_ID id,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
116 widget_value* val, Widget parent, Boolean pop_up_p,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
117 lw_callback pre_activate_cb,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
118 lw_callback selection_cb,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
119 lw_callback post_activate_cb,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
120 lw_callback highlight_cb));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
121 LWLIB_ID lw_get_widget_id __P ((Widget w));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
122 int lw_modify_all_widgets __P ((LWLIB_ID id, widget_value* val, Boolean deep_p));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
123 void lw_destroy_widget __P ((Widget w));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
124 void lw_destroy_all_widgets __P ((LWLIB_ID id));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
125 void lw_destroy_everything __P ((void));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
126 void lw_destroy_all_pop_ups __P ((void));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
127 Widget lw_raise_all_pop_up_widgets __P ((void));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
128 widget_value* lw_get_all_values __P ((LWLIB_ID id));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
129 Boolean lw_get_some_values __P ((LWLIB_ID id, widget_value* val));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
130 void lw_pop_up_all_widgets __P ((LWLIB_ID id));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
131 void lw_pop_down_all_widgets __P ((LWLIB_ID id));
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 widget_value *malloc_widget_value ();
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
133 void free_widget_value __P ((widget_value *));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
134 void lw_popup_menu __P ((Widget, XEvent *));
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 /* Toolkit independent way of focusing on a Widget at the Xt level. */
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
137 void lw_set_keyboard_focus __P ((Widget parent, Widget w));
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 /* Silly Energize hack to invert the "sheet" button */
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
140 void lw_show_busy __P ((Widget w, Boolean busy));
8784
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
141
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
142 /* Silly hack to assist with Lucid/Athena geometry management. */
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
143 void lw_refigure_widget __P ((Widget w, Boolean doit));
8784
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
144
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
145 /* Toolkit independent way of determining if an event occurred on a
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
146 menubar. */
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
147 Boolean lw_window_is_in_menubar __P ((Window win, Widget menubar_widget));
8784
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
148
0166e4ab659a *** empty log message ***
Paul Reilly <pmr@pajato.com>
parents: 5706
diff changeset
149 /* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
150 void lw_allow_resizing __P ((Widget w, Boolean flag));
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151
9064
d716ea8937e2 entered into RCS
Paul Reilly <pmr@pajato.com>
parents: 8784
diff changeset
152 /* Set up the main window. */
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
153 void lw_set_main_areas __P ((Widget parent,
9064
d716ea8937e2 entered into RCS
Paul Reilly <pmr@pajato.com>
parents: 8784
diff changeset
154 Widget menubar,
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
155 Widget work_area));
9064
d716ea8937e2 entered into RCS
Paul Reilly <pmr@pajato.com>
parents: 8784
diff changeset
156
25035
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
157 /* Value is non-zero if LABEL is a menu separator. If it is, *TYPE is
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
158 set to an appropriate enumerator of type enum menu_separator.
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
159 MOTIF_P non-zero means map separator types not supported by Motif
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
160 to similar ones that are supported. */
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
161
29466
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
162 int lw_separator_p __P ((char *label, enum menu_separator *type,
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
163 int motif_p));
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
164
6ed38ee607e9 Enable prototypes.
Dave Love <fx@gnu.org>
parents: 27996
diff changeset
165 void lwlib_bcopy __P ((char*, char*, int));
25035
d8d30f76cc61 (enum menu_separator): New.
Gerd Moellmann <gerd@gnu.org>
parents: 15630
diff changeset
166
5626
93bb7e0935ba Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 #endif /* LWLIB_H */