SharedProcs.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
  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: SharedProcs.h
  34. **
  35. ** Project: SUI
  36. **
  37. ** Description: Public include file for some shared functions.
  38. **
  39. **
  40. ** (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
  41. **
  42. **
  43. **
  44. ****************************************************************************
  45. ************************************<+>*************************************/
  46. #ifndef _SharedProcs_h
  47. #define _SharedProcs_h
  48. /******** Public Function Declarations ********/
  49. extern String _DtStripSpaces(
  50. String string) ;
  51. extern void _DtMessage(
  52. Widget w,
  53. char *title,
  54. char *message_text,
  55. XtPointer helpIdStr,
  56. void (*helpCallback)()) ;
  57. extern Widget _DtMessageDialog(
  58. Widget w,
  59. char *title,
  60. char *message_text,
  61. XtPointer helpIdStr,
  62. Boolean cancel_btn,
  63. void (*cancel_callback)(),
  64. void (*ok_callback)(),
  65. void (*close_callback)(),
  66. void (*help_callback)(),
  67. Boolean deleteOnClose,
  68. int dialogType) ;
  69. extern void _DtMessageOK(
  70. Widget w,
  71. XtPointer client_data,
  72. XtPointer call_data) ;
  73. extern void _DtMessageClose(
  74. Widget w,
  75. XtPointer client_data,
  76. XEvent *event) ;
  77. /******** End Public Function Declarations ********/
  78. /* _DtMessage Dialog build defines */
  79. #define ERROR_DIALOG 1
  80. #define WARNING_DIALOG 2
  81. #define QUESTION_DIALOG 3
  82. /* Flag which can be used to prevent error dialogs from being posted */
  83. extern Boolean messageDisplayEnabled;
  84. /* Flag controlling whether dialogs are auto-positioned */
  85. extern Boolean disableDialogAutoPlacement;
  86. /* Generic overlay for all dialog 'Rec' structures */
  87. typedef struct
  88. {
  89. Widget shell;
  90. } GenericRecord;
  91. #endif /* _SharedProcs_h */
  92. /* DON'T ADD ANYTHING AFTER THIS #endif */