6d3e19b40412d94d809ce683c9753345fa9ed15d
[oweals/cde.git] / SmUI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: SmUI.h /main/14 1996/05/31 09:18:17 barstow $ */
24 /*                                                                      *
25  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
26  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
27  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
28  * (c) Copyright 1993, 1994 Novell, Inc.                                *
29  */
30 /************************************<+>*************************************
31  ****************************************************************************
32  **
33  **   File:        SmUI.h
34  **
35  **   Project:     HP DT
36  **
37  **   Description
38  **   -----------
39  **   Variables and declarations needed for
40  **   User Interface for the session manager
41  **
42  **
43  **  (c) Copyright Hewlett-Packard Company, 1990.  
44  **
45  **
46  **
47  ****************************************************************************
48  ************************************<+>*************************************/
49 #ifndef _smui_h
50 #define _smui_h
51  
52 /* 
53  *  #include statements 
54  */
55 #include <X11/Xlib.h>
56 #include <Xm/Xm.h>
57 #include "SmXSMP.h"
58
59 /* 
60  *  #define statements 
61  */
62
63 /* 
64  * typedef statements 
65  */
66
67 typedef struct
68 {
69     Widget              confExit;               /* Exit confirmation dialogs*/
70     Widget              qExit;
71     Widget              compatExit;
72     Widget              lockDialog;             /* lock-login shell */
73     Widget              lockCoverDialog;        /* lock-login shell */
74     Widget              coverDialog[10];        /* Cover shell*/
75     Widget              coverDrawing[10];       /* Cover drawing area */
76     Widget              matte[2];               /* lock dialog pieces */
77     Widget              loginMatte[2];
78     Widget              loginForm[2];
79     Widget              indLabel[2];
80     Widget              deadWid;                /* Bms-dead dialog */
81     Widget              clientReasons;          /* For client "reasons" */
82     Widget              confirmSession;         /* Confirm session selection */
83     Widget              saveSession;            /* Error dialog for Save_Session
84                                                    ToolTalk message */
85     XmString            okString, cancelString, helpString;
86     XmString            okLogoutString, cancelLogoutString;
87     Widget              noStart;                /* Cant start dt dialog */
88     Widget              smHelpDialog;   /* Help dialog for all topics */
89 } DialogData;
90
91 /*
92  *  External variables  
93  */
94 extern DialogData       smDD;
95 extern Arg              uiArgs[20];
96
97
98 /*  
99  *  External Interface  
100  */
101 extern Widget CreateLockDialog( void ) ;
102 extern void ExitSession( Tt_message ) ;
103 extern int WarnMsgFailure( void ) ;
104 extern Widget CreateLockDialogWithCover( Widget ) ;
105 extern Widget CreateCoverDialog( int, Boolean ) ;
106 extern void ImmediateExit( int, Tt_message, Boolean ) ;
107 extern void ShowWaitState( Boolean ) ; 
108 extern Boolean InitCursorInfo( void ) ; 
109 extern void UpdatePasswdField( int );
110 extern int WarnNoStartup( void );
111 extern void DialogUp( Widget, XtPointer, XtPointer ) ;
112 void PostSaveSessionErrorDialog ( void );
113 extern int ConfirmExit( Tt_message, Boolean );
114
115 extern Boolean ConfirmSessionCreation ( 
116         short                   session_type,
117         unsigned int            argc,
118         char                    **argv);
119
120 extern void PostXSMPFailureDialog (
121         XSMPFailure             failure_code, 
122         Boolean                 check_errorlog);
123
124 extern void PostReasonsDialog (
125         char                    * progName,
126         int                     numMsgs,
127         char                    ** message,
128         Boolean                 waitForResponse);
129
130 #endif /*_smui_h*/
131 /* DON'T ADD ANYTHING AFTER THIS #endif */