Control.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */
  24. /**---------------------------------------------------------------------
  25. ***
  26. *** file: Control.h
  27. ***
  28. *** project: MotifPlus Widgets
  29. ***
  30. *** description: Public include file for DtControl class.
  31. ***
  32. ***
  33. *** (c) Copyright 1992 by Hewlett-Packard Company.
  34. ***
  35. ***
  36. ***-------------------------------------------------------------------*/
  37. #ifndef _DtControl_h
  38. #define _DtControl_h
  39. #include <Xm/Xm.h>
  40. #if defined(__cplusplus) || defined(c_plusplus)
  41. extern "C" {
  42. #endif
  43. #define XmCONTROL_NONE 0
  44. #define XmCONTROL_BLANK 1
  45. #define XmCONTROL_BUSY 2
  46. #define XmCONTROL_BUTTON 3
  47. #define XmCONTROL_CLIENT 4
  48. #define XmCONTROL_DATE 5
  49. #define XmCONTROL_MAIL 6
  50. #define XmCONTROL_MONITOR 7
  51. #define XmCONTROL_SWITCH 8
  52. #define NUM_LIST_ITEMS 10
  53. #define XmCR_BUSY_START 60
  54. #define XmCR_BUSY_STOP 61
  55. #define XmCR_MONITOR 62
  56. #define DtMONITOR_OFF 0
  57. #define DtMONITOR_ON 1
  58. #define XmNuseLabelAdjustment "use_label_adjustment"
  59. #ifndef DtIsControl
  60. #define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass)
  61. #endif /* DtIsControl */
  62. extern Widget _DtCreateControl (Widget, String, ArgList, int);
  63. extern void _DtControlSetFileChanged (Widget, Boolean);
  64. extern void _DtControlSetBusy (Widget, Boolean);
  65. extern void _DtControlAddDropAnimationImage (Widget, String, int);
  66. extern void _DtControlDoDropAnimation (Widget);
  67. extern void _DtControlAddPushAnimationImage (Widget, String, int);
  68. extern void _DtControlDoPushAnimation (Widget);
  69. extern char _DtControlGetMonitorState(Widget);
  70. extern WidgetClass dtControlGadgetClass;
  71. typedef struct _DtControlClassRec * DtControlClass;
  72. typedef struct _DtControlRec * DtControlGadget;
  73. #define XmCR_FILE_CHANGED 51
  74. typedef struct
  75. {
  76. int reason;
  77. XEvent *event;
  78. Boolean set;
  79. unsigned char control_type;
  80. XtPointer push_function;
  81. XtPointer push_argument;
  82. Widget subpanel;
  83. long file_size;
  84. } DtControlCallbackStruct;
  85. #if defined(__cplusplus) || defined(c_plusplus)
  86. } /* Close scope of 'extern "C"' declaration which encloses file. */
  87. #endif
  88. #endif /* _DtControl_h */
  89. /* DON'T ADD ANYTHING AFTER THIS #endif */