Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    COPYRIGHT NOTICE
3
 
4
    This program is the proprietary property of IXI Ltd, a subsidiary
5
    of the Santa Cruz Operation (SCO). Use, reproduction, production
6
    of amended versions and/or transfer of this program is permitted
7
    PROVIDED THAT:
8
 
9
    (a)  This legend be preserved on any such reproduction and amended
10
         version.
11
 
12
    (b)  Any recipient of such reproduction or amended version accept
13
         the conditions set out in this legend.
14
 
15
    IXI accepts no liability whatsoever in relation to any use to
16
    which this program may be put and gives no warranty as to the
17
    program's suitability for any purpose.
18
 
19
    All rights reserved.
20
 
21
    Copyright (c) 1995, 1996
22
 
23
*/
24
 
25
 
26
/*
27
 *	Allow subclassing of bulletin boards.  Probably not complete.
28
 */
29
 
30
/* SCO CID (IXI) BulletinBP.h,v 1.1 1996/08/08 14:12:15 wendland Exp */
31
 
32
%%
33
#ifndef __MOTIF_P_HEADERS
34
#error Unexpected access to Motif P headers
35
#endif
36
%%
37
 
38
+USE "motif/1_2", "Xm/BulletinB.h";
39
+USE "motif/1_2", "Xm/ManagerP.h" ;
40
 
41
+CONST char *XmDIALOG_SUFFIX;
42
+CONST int XmDIALOG_SUFFIX_SIZE;
43
 
44
+FIELD ( struct ) XmBulletinBoardClassPart := {
45
	Boolean			always_install_accelerators;
46
	XmGeoCreateProc         geo_matrix_create ;
47
	XmFocusMovedProc	focus_moved_proc ;
48
	XtPointer		extension;
49
};
50
 
51
+FIELD (struct) _XmBulletinBoardClassRec := {
52
	CoreClassPart			core_class;
53
	CompositeClassPart		composite_class;
54
	ConstraintClassPart		constraint_class;
55
	XmManagerClassPart		manager_class;
56
	XmBulletinBoardClassPart	bulletin_board_class;
57
};
58
 
59
+TYPEDEF _XmBulletinBoardClassRec XmBulletinBoardClassRec;
60
 
61
+EXP lvalue XmBulletinBoardClassRec xmBulletinBoardClassRec;
62
 
63
+FIELD ( struct ) XmBulletinBoardPart := {
64
	Dimension	margin_width;
65
	Dimension	margin_height;
66
 
67
	Widget		default_button;
68
	Widget		dynamic_default_button;
69
	Widget		cancel_button;
70
	Widget		dynamic_cancel_button;
71
 
72
	XtCallbackList	focus_callback;
73
	XtCallbackList	map_callback;
74
	XtCallbackList	unmap_callback;
75
 
76
	XtTranslations	text_translations;
77
 
78
	XmFontList	button_font_list;
79
	XmFontList	label_font_list;
80
	XmFontList	text_font_list;
81
 
82
	Boolean		allow_overlap;
83
	Boolean		default_position;
84
	Boolean		auto_unmanage;
85
	unsigned char	resize_policy;
86
 
87
	Dimension	old_width;
88
	Dimension	old_height;
89
	Dimension	old_shadow_thickness;
90
	unsigned char	shadow_type;
91
 
92
	Boolean		in_set_values;
93
	Boolean		initial_focus ;
94
 
95
	Boolean		no_resize;
96
	unsigned char	dialog_style;
97
	XmString	dialog_title;
98
	Widget		shell;
99
	Widget		_UNUSED;
100
 
101
	XmGeoMatrix     geo_cache ;
102
};
103
 
104
+TYPEDEF _XmBulletinBoardRec XmBulletinBoardRec;
105
 
106
+FIELD (struct) _XmBulletinBoardRec := {
107
	CorePart		core;
108
	CompositePart		composite;
109
	ConstraintPart		constraint;
110
	XmManagerPart		manager;
111
	XmBulletinBoardPart	bulletin_board;
112
};
113
 
114
+MACRO Widget BB_CancelButton(Widget);
115
+MACRO Widget BB_DynamicCancelButton(Widget);
116
+MACRO Widget BB_DefaultButton(Widget);
117
+MACRO Widget BB_DynamicDefaultButton(Widget);
118
+MACRO Dimension BB_MarginHeight(Widget);
119
+MACRO Dimension BB_MarginWidth(Widget);
120
+MACRO XmFontList BB_ButtonFontList(Widget);
121
+MACRO XmFontList BB_LabelFontList(Widget);
122
+MACRO XmFontList BB_TextFontList(Widget);
123
+MACRO int BB_StringDirection(Widget);
124
+MACRO unsigned char BB_ResizePolicy(Widget);
125
+MACRO Boolean BB_InSetValues(Widget);
126
+MACRO Boolean BB_InitialFocus(Widget);
127
 
128
 
129
+FUNC Widget _XmBB_CreateButtonG(Widget bb, XmString l_string, char *name) ;
130
+FUNC Widget _XmBB_CreateLabelG(Widget bb, XmString l_string, char *name) ;
131
 
132
+FUNC void _XmBulletinBoardSizeUpdate(Widget wid) ;
133
+FUNC void _XmBulletinBoardFocusMoved(Widget wid, XtPointer client_data, XtPointer data) ;
134
+FUNC void _XmBulletinBoardReturn(Widget wid, XEvent *event, String *params, Cardinal *numParams) ;
135
+FUNC void _XmBulletinBoardCancel(Widget wid, XEvent *event, String *params, Cardinal *numParams) ;
136
+FUNC void _XmBulletinBoardMap(Widget wid, XEvent *event, String *params, Cardinal *numParams) ;
137
+FUNC void _XmBulletinBoardSetDefaultShadow(Widget button) ;
138
+FUNC void _XmBulletinBoardSetDynDefaultButton(Widget wid, Widget newDefaultButton) ;
139
+FUNC void _XmBBUpdateDynDefaultButton(Widget bb) ;
140