DialogBox.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 librararies 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: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */
  24. /**---------------------------------------------------------------------
  25. ***
  26. *** file: DialogBox.h
  27. ***
  28. *** project: MotifPlus Widgets
  29. ***
  30. *** description: Public include file for DtDialogBox class.
  31. ***
  32. ***
  33. *** (c) Copyright 1990 by Hewlett-Packard Company.
  34. ***
  35. ***
  36. ***-------------------------------------------------------------------*/
  37. #ifndef _DtDialogBox_h
  38. #define _DtDialogBox_h
  39. #include <Xm/Xm.h>
  40. #include <Dt/DtStrDefs.h>
  41. #ifndef DtIsDialogBox
  42. #define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass)
  43. #endif /* XmIsDialogBox */
  44. extern Widget _DtCreateDialogBox(
  45. Widget parent,
  46. char *name,
  47. ArgList arglist,
  48. Cardinal argcount) ;
  49. extern Widget __DtCreateDialogBoxDialog(
  50. Widget ds_p,
  51. String name,
  52. ArgList db_args,
  53. Cardinal db_n) ;
  54. extern Widget _DtDialogBoxGetButton(
  55. Widget w,
  56. Cardinal pos) ;
  57. extern Widget _DtDialogBoxGetWorkArea(
  58. Widget w) ;
  59. extern WidgetClass dtDialogBoxWidgetClass;
  60. typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass;
  61. typedef struct _DtDialogBoxRec * DtDialogBoxWidget;
  62. #define XmBUTTON 11
  63. #define XmCR_DIALOG_BUTTON 100
  64. typedef struct
  65. {
  66. int reason;
  67. XEvent * event;
  68. Cardinal button_position;
  69. Widget button;
  70. } DtDialogBoxCallbackStruct;
  71. #endif /* _DtDialogBox_h */
  72. /* DON'T ADD ANYTHING AFTER THIS #endif */