aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorAdrian Robert2008-07-15 18:15:18 +0000
committerAdrian Robert2008-07-15 18:15:18 +0000
commitedfda78355c5528eee489fa8a7f9c73bf8e734f2 (patch)
tree78d2414d9791e1efc17ec9b35b438ae35602340a /src/keyboard.h
parent1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff)
downloademacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz
emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h53
1 files changed, 51 insertions, 2 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 2f0f434909a..e21766273a8 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -314,8 +314,7 @@ extern Lisp_Object unuse_menu_items P_ ((Lisp_Object dummy));
314 confined to an extended version of this with sections of code below 314 confined to an extended version of this with sections of code below
315 using it unconditionally. */ 315 using it unconditionally. */
316#ifndef HAVE_NTGUI 316#ifndef HAVE_NTGUI
317#ifdef USE_GTK 317#if defined (USE_GTK) || defined (HAVE_NS)
318/* gtk just uses utf-8. */
319# define ENCODE_MENU_STRING(str) ENCODE_UTF_8 (str) 318# define ENCODE_MENU_STRING(str) ENCODE_UTF_8 (str)
320#elif defined HAVE_X_I18N 319#elif defined HAVE_X_I18N
321#define ENCODE_MENU_STRING(str) ENCODE_SYSTEM (str) 320#define ENCODE_MENU_STRING(str) ENCODE_SYSTEM (str)
@@ -325,6 +324,56 @@ extern Lisp_Object unuse_menu_items P_ ((Lisp_Object dummy));
325#else /* HAVE_NTGUI */ 324#else /* HAVE_NTGUI */
326#define ENCODE_MENU_STRING(str) (str) 325#define ENCODE_MENU_STRING(str) (str)
327#endif 326#endif
327
328#if defined (HAVE_NS) || defined (HAVE_NTGUI)
329
330typedef void * XtPointer;
331typedef unsigned char Boolean;
332
333/* Definitions copied from lwlib.h */
334
335enum button_type
336{
337 BUTTON_TYPE_NONE,
338 BUTTON_TYPE_TOGGLE,
339 BUTTON_TYPE_RADIO
340};
341
342/* This structure is based on the one in ../lwlib/lwlib.h, with unused portions
343 removed. No term uses these. */
344typedef struct _widget_value
345{
346 /* name of widget */
347 Lisp_Object lname;
348 char* name;
349 /* value (meaning depend on widget type) */
350 char* value;
351 /* keyboard equivalent. no implications for XtTranslations */
352 Lisp_Object lkey;
353 char* key;
354 /* Help string or nil if none.
355 GC finds this string through the frame's menu_bar_vector
356 or through menu_items. */
357 Lisp_Object help;
358 /* true if enabled */
359 Boolean enabled;
360 /* true if selected */
361 Boolean selected;
362 /* The type of a button. */
363 enum button_type button_type;
364#if defined (HAVE_NTGUI)
365 /* true if menu title */
366 Boolean title;
367#endif
368 /* Contents of the sub-widgets, also selected slot for checkbox */
369 struct _widget_value* contents;
370 /* data passed to callback */
371 XtPointer call_data;
372 /* next one in the list */
373 struct _widget_value* next;
374} widget_value;
375#endif
376
328 377
329/* Macros for dealing with lispy events. */ 378/* Macros for dealing with lispy events. */
330 379