SmUI.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. * #include statements
  53. */
  54. #include <X11/Xlib.h>
  55. #include <Xm/Xm.h>
  56. #include "SmXSMP.h"
  57. /*
  58. * #define statements
  59. */
  60. /*
  61. * typedef statements
  62. */
  63. typedef struct
  64. {
  65. Widget confExit; /* Exit confirmation dialogs*/
  66. Widget qExit;
  67. Widget compatExit;
  68. Widget lockDialog; /* lock-login shell */
  69. Widget lockCoverDialog; /* lock-login shell */
  70. Widget coverDialog[10]; /* Cover shell*/
  71. Widget coverDrawing[10]; /* Cover drawing area */
  72. Widget matte[2]; /* lock dialog pieces */
  73. Widget loginMatte[2];
  74. Widget loginForm[2];
  75. Widget indLabel[2];
  76. Widget deadWid; /* Bms-dead dialog */
  77. Widget clientReasons; /* For client "reasons" */
  78. Widget confirmSession; /* Confirm session selection */
  79. Widget saveSession; /* Error dialog for Save_Session
  80. ToolTalk message */
  81. XmString okString, cancelString, helpString;
  82. XmString okLogoutString, cancelLogoutString;
  83. Widget noStart; /* Cant start dt dialog */
  84. Widget smHelpDialog; /* Help dialog for all topics */
  85. } DialogData;
  86. /*
  87. * External variables
  88. */
  89. extern DialogData smDD;
  90. extern Arg uiArgs[20];
  91. /*
  92. * External Interface
  93. */
  94. extern Widget CreateLockDialog( void ) ;
  95. extern void ExitSession( Tt_message ) ;
  96. extern int WarnMsgFailure( void ) ;
  97. extern Widget CreateLockDialogWithCover( Widget ) ;
  98. extern Widget CreateCoverDialog( int, Boolean ) ;
  99. extern void ImmediateExit( int, Tt_message, Boolean ) ;
  100. extern void ShowWaitState( Boolean ) ;
  101. extern Boolean InitCursorInfo( void ) ;
  102. extern void UpdatePasswdField( int );
  103. extern int WarnNoStartup( void );
  104. extern void DialogUp( Widget, XtPointer, XtPointer ) ;
  105. void PostSaveSessionErrorDialog ( void );
  106. extern int ConfirmExit( Tt_message, Boolean );
  107. extern Boolean ConfirmSessionCreation (
  108. short session_type,
  109. unsigned int argc,
  110. char **argv);
  111. extern void PostXSMPFailureDialog (
  112. XSMPFailure failure_code,
  113. Boolean check_errorlog);
  114. extern void PostReasonsDialog (
  115. char * progName,
  116. int numMsgs,
  117. char ** message,
  118. Boolean waitForResponse);
  119. #endif /*_smui_h*/
  120. /* DON'T ADD ANYTHING AFTER THIS #endif */