1 //%% (c) Copyright 1993, 1994 Hewlett-Packard Company
2 //%% (c) Copyright 1993, 1994 International Business Machines Corp.
3 //%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
4 //%% (c) Copyright 1993, 1994 Novell, Inc.
5 //%% $XConsortium: DtTt.h /main/5 1996/03/19 10:48:06 barstow $
11 #include "ttChooser_ui.h"
12 #include "stringChooser_ui.h"
29 _DtTtChooserMessageOpen,
30 _DtTtChooserMessageCreateStandard,
31 _DtTtChooserMessageOpSet,
32 _DtTtChooserMessageHandlerSet,
33 _DtTtChooserMessageDestroy,
34 _DtTtChooserPatternOpen,
35 _DtTtChooserPatternOpAdd,
36 _DtTtChooserPatternSenderAdd,
37 _DtTtChooserPatternDestroy,
38 _DtTtChooserDtSessionQuit,
39 _DtTtChooserDtFileDeleted,
40 _DtTtChooserDtFileModified,
41 _DtTtChooserDtFileReverted,
42 _DtTtChooserDtFileMoved,
43 _DtTtChooserDtFileSaved,
44 _DtTtChooserDtFileQuit,
45 _DtTtChooserProcidSetDefault,
46 _DtTtChooserProcidSuspend,
47 _DtTtChooserProcidResume,
48 _DtTtChooserDtProcidClose
53 _DtStringChoosePatternOp,
54 _DtStringChoosePatternOtype,
55 _DtStringChoosePatternObject,
56 _DtStringChoosePatternSenderPtype,
57 _DtStringChooseMessageOtype,
58 _DtStringChooseMessageObject,
59 _DtStringChooseMessageHandlerPtype,
60 _DtStringChooseMessageSenderPtype,
61 _DtStringChooseMessageStatusString,
62 _DtStringChooseMessageArgValSet,
63 _DtStringChoosePtype2Declare,
64 _DtStringChooseMediaPtype2Declare,
65 _DtStringChoosePtype2UnDeclare,
66 _DtStringChoosePtype2SetDefault,
67 _DtStringChoosePtype2Exists,
68 _DtStringChooseSystem,
69 _DtStringChoosePutenv,
70 _DtStringChooseNetfile2File
71 } _DtStringChooserAction;
75 _DtSessionChoosePattern,
76 _DtSessionChooseMessage,
78 _DtSessionChooseDtJoin,
80 _DtSessionChooseDefault
81 } _DtSessionChooserAction;
85 _DtFileChoosePatternAdd,
86 _DtFileChooseMessageSet,
91 _DtFileChooseGetModified,
96 _DtFileChooseTypesLoad
97 } _DtFileChooserAction;
99 typedef enum { // invariant: IArgAdd == ArgAdd + 1
101 _DtArgChoosePatternArgAdd,
102 _DtArgChoosePatternIArgAdd,
103 _DtArgChoosePatternContextAdd,
104 _DtArgChoosePatternIContextAdd,
105 _DtArgChooseMessageArgAdd,
106 _DtArgChooseMessageIArgAdd,
107 _DtArgChooseMessageArgSet,
108 _DtArgChooseMessageIArgSet,
109 _DtArgChooseMessageContextSet,
110 _DtArgChooseMessageIContextSet,
111 _DtArgChooseContextJoin,
112 _DtArgChooseIContextJoin,
113 _DtArgChooseContextQuit,
114 _DtArgChooseIContextQuit
115 } _DtArgChooserAction;
117 typedef void (*DtTtMessageUpdateCallback)(
121 Tt_status lastOperation,
126 * Returns elem2Append on success, 0 on failure
128 #define listAppend( list, listCount, type, elem2Append ) \
129 ( listGrow( (void **)&list, listCount, sizeof( type ) ) \
130 ? (list[ listCount - 1 ] = elem2Append) \
135 unsigned int & listCount,
139 XmString DtTtStatusString(
142 Tt_status DtTtCreated(
145 const void * clientData = 0
147 Tt_status DtTtCreated(
156 void * DtTtNthClientDatum(
160 void DtTtNthClientDatumSet(
163 const void * clientData
169 Tt_status DtTtDestroyed(
173 void DtTtMessageWidgetUpdate(
177 Tt_status lastOperation,
180 Widget DtTtMessageWidgetCreate(
183 DtTtMessageUpdateCallback notifyProc
185 Widget DtTtMessageWidget(
188 Widget DtTtPatternWidgetCreate(
191 Tt_message_callback notifyProc
193 Widget DtTtPatternWidget(
196 Tt_status DtTtSetLabel(
200 Tt_status DtTtSetLabel(
202 const char * funcName,
205 Tt_status DtTtSetLabel(
207 const char * funcName,
212 const char * funcName,
216 void _DtTtChooserSet(
217 _DtTtChooserAction choice,
220 XmString * _DtTtChoices(
224 void _DtStringChooserSet(
225 _DtStringChooserAction choice,
228 void _DtStringChooserSet(
229 _DtStringChooserAction choice,
233 void _DtSessionChooserSet(
234 _DtSessionChooserAction choice,
237 void _DtFileChooserSet(
238 _DtFileChooserAction choice,
241 void _DtArgChooserSet(
242 _DtArgChooserAction choice,
246 void _DtArgChooserSet(
247 _DtArgChooserAction choice,
251 Boolean noValue = True,
256 void _DtTtMsgCbChooserSet(
259 void _DtTtMsgCbChooserSet(
262 Tt_message _DtTtMediaLoadPatCb(
267 unsigned char *contents,
272 void _DtTtPatternUpdate(
274 _DtStringChooserAction choice,
277 void _DtTtPatternUpdate(
279 _DtSessionChooserAction choice,
282 void _DtTtPatternUpdate(
284 _DtFileChooserAction choice,
287 void _DtTtPatternUpdate(
289 _DtTtChooserAction choice,
292 void _DtTtPatternUpdate(
294 _DtArgChooserAction choice,
300 void _DtTtPatternUpdate(
302 Tt_message_callback cb
304 void _DtTtMessageUpdate(
306 _DtStringChooserAction choice,
309 void _DtTtMessageUpdate(
311 _DtSessionChooserAction choice,
314 void _DtTtMessageUpdate(
316 _DtFileChooserAction choice,
319 void _DtTtMessageUpdate(
321 _DtTtChooserAction choice,
324 void _DtTtMessageUpdate(
326 _DtArgChooserAction choice,
333 void _DtTtMessageUpdate(
335 Tt_message_callback cb
340 const char * tempnamTemplate
350 const char * tempnamTemplate
365 const char * callBackType,
369 Boolean printPat = False
373 extern int _DtTtPatsNameKey;