File: appUtil.h

package info (click to toggle)
ted 2.6-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,928 kB
  • ctags: 8,734
  • sloc: ansic: 71,878; makefile: 2,363; sh: 159
file content (66 lines) | stat: -rw-r--r-- 2,247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/************************************************************************/
/*  Make/Manage puldowns that are usable.				*/
/************************************************************************/

#   include	<X11/Intrinsic.h>

extern void appPulldownSetWidth(	Widget		w,
					Dimension	newWidth	);

extern void appMakePulldownList(	Widget *	pPulldown,
					Widget *	pMenu,
					Widget		parentForm );

extern void appEmptyPulldownList(	Widget	pulldown	);

extern Widget appPulldownMakeOption(	Widget		pulldown,
					const char *	label,
					int		width,
					XtCallbackProc	callBack,
					void *		target );

/************************************************************************/
/*  Use the text of a menu option as the title of a tool.		*/
/************************************************************************/

extern void appSetShellTitle(	Widget			shell,
				Widget			option,
				const char *		applicationName );

/************************************************************************/
/*  Event handler to set minimum size.					*/
/************************************************************************/

extern void appSetSizeAsMinimum(	Widget			w,
					void *			through,
					XEvent *		event,
					Boolean *		pRefused );

extern void appFixSize(			Widget			w,
					void *			through,
					XEvent *		event,
					Boolean *		pRefused );

/************************************************************************/
/*  Names of the X11 events.						*/
/************************************************************************/
extern char * APP_X11EventNames[];

/************************************************************************/
/*  Attach a dialog to its subject.					*/
/************************************************************************/

extern int appSetRelativeArgs(	Arg *		al,
				Widget		relative );

extern void appDialogRelative(	Widget		relative,
				Widget		dialog );

extern void appSetRelativeCallback(		Widget		relative,
						Widget		dialog );

/************************************************************************/
/*  Move the keyboard focus to a modal dialog.				*/
/************************************************************************/

extern void appSetFocusCallback(		Widget		dialog );