2
0

View.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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: View.h /main/3 1995/10/26 09:35:11 rswiston $ */
  24. /**---------------------------------------------------------------------
  25. ***
  26. *** file: View.h
  27. ***
  28. *** project: MotifPlus Widgets
  29. ***
  30. *** description: Public include file for DtView class.
  31. ***
  32. ***
  33. *** (c) Copyright 1990 by Hewlett-Packard Company.
  34. ***
  35. ***
  36. ***-------------------------------------------------------------------*/
  37. #ifndef _DtView_h
  38. #define _DtView_h
  39. #include <Xm/Xm.h>
  40. #if defined(__cplusplus) || defined(c_plusplus)
  41. extern "C" {
  42. #endif
  43. /* Temporary location for resource definition. Need to */
  44. /* move into the string defs file. */
  45. #define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect"
  46. #define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect"
  47. #define XmNsubpanelTorn "subpanelTorn"
  48. #define XmCSubpanelTorn "SubpanelTorn"
  49. /* These macros are also defined in DtStrDefs.h */
  50. /* Control->View.h */
  51. /* Control.c->Control.h->Icon.h->DtStrDefs.h */
  52. #ifndef XmNleftInset
  53. #define XmNleftInset "leftInset"
  54. #endif /* XmNleftInset */
  55. #ifndef XmNrightInset
  56. #define XmNrightInset "rightInset"
  57. #endif /* XmNrightInset */
  58. #ifndef XmNtopInset
  59. #define XmNtopInset "topInset"
  60. #endif /* XmNtopInset */
  61. #ifndef XmNbottomInset
  62. #define XmNbottomInset "bottomInset"
  63. #endif /* XmNbottomInset */
  64. #ifndef XmNwidthIncrement
  65. #define XmNwidthIncrement "widthIncrement"
  66. #endif /* XmNwidthIncrement */
  67. #ifndef XmNheightIncrement
  68. #define XmNheightIncrement "heightIncrement"
  69. #endif /* XmNheightIncrement */
  70. #ifndef XmNboxType
  71. #define XmNboxType "boxType"
  72. #endif /* XmNboxType */
  73. #ifndef XmCBoxType
  74. #define XmCBoxType "BoxType"
  75. #endif /* XmCBoxType */
  76. #ifndef XmRBoxType
  77. #define XmRBoxType "BoxType"
  78. #endif /* XmRBoxType */
  79. #define XmBOX_NONE 0
  80. #define XmBOX_PRIMARY 1
  81. #define XmBOX_SECONDARY 2
  82. #define XmBOX_SUBPANEL 3
  83. #define XmBOX_SWITCH 4
  84. #ifndef DtIsView
  85. #define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass)
  86. #endif /* XmIsView */
  87. extern Widget _DtCreateView();
  88. extern WidgetClass dtViewWidgetClass;
  89. typedef struct _DtViewClassRec * DtViewWidgetClass;
  90. typedef struct _DtViewRec * DtViewWidget;
  91. typedef struct
  92. {
  93. int reason;
  94. XEvent * event;
  95. int category_index;
  96. XmString category;
  97. int item_index;
  98. XmString item;
  99. } DtViewCallbackStruct;
  100. #define XmCR_SELECT XmCR_SINGLE_SELECT
  101. #if defined(__cplusplus) || defined(c_plusplus)
  102. } /* Close scope of 'extern "C"' declaration which encloses file. */
  103. #endif
  104. #endif /* _DtView_h */
  105. /* DON'T ADD ANYTHING AFTER THIS #endif */