IconicPathP.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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: IconicPathP.h /main/4 1995/11/02 14:40:56 rswiston $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. *
  27. * FILE: IconicPathP.h
  28. *
  29. * COMPONENT_NAME: Desktop File Manager
  30. *
  31. * DESCRIPTION: Private header file for IconicPath.c
  32. *
  33. * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
  34. * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
  35. * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  36. * (c) Copyright 1993, 1994, 1995 Novell, Inc.
  37. *
  38. ****************************************************************************
  39. ************************************<+>*************************************/
  40. #ifndef _DtIconicPathP_h
  41. #define _DtIconicPathP_h
  42. #include <Xm/ManagerP.h>
  43. #include "IconicPath.h"
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. /* New fields for the IconicPath widget class record */
  48. typedef struct
  49. {
  50. int mumble; /* No new procedures */
  51. } DtIconicPathClassPart;
  52. /* Full class record declaration */
  53. typedef struct _DtIconicPathClassRec
  54. {
  55. CoreClassPart core_class;
  56. CompositeClassPart composite_class;
  57. ConstraintClassPart constraint_class;
  58. XmManagerClassPart manager_class;
  59. DtIconicPathClassPart iconic_path_class;
  60. } DtIconicPathClassRec;
  61. externalref DtIconicPathClassRec dtIconicPathClassRec;
  62. /* New fields for the IconicPath widget record */
  63. typedef struct
  64. {
  65. Dimension margin_width;
  66. Dimension margin_height;
  67. Dimension spacing;
  68. Dimension small_min_width;
  69. Dimension large_min_width;
  70. Boolean force_small_icons;
  71. Boolean buttons;
  72. Boolean dropzone;
  73. Boolean status_msg;
  74. Boolean force_large_icons;
  75. Boolean icons_changed;
  76. char * file_mgr_rec;
  77. char * current_directory;
  78. Boolean large_icons;
  79. char *msg_text;
  80. char * directory_shown;
  81. Boolean large_shown;
  82. Widget dotdot_button;
  83. Widget dropzone_icon;
  84. Widget status_label;
  85. int num_components;
  86. struct _IconicPathComponent {
  87. char *path;
  88. char *icon_name;
  89. Widget icon;
  90. Widget button;
  91. int width;
  92. } *components;
  93. int left_component;
  94. GC gc;
  95. } DtIconicPathPart;
  96. /****************************************************************
  97. *
  98. * Full instance record declaration
  99. *
  100. ****************************************************************/
  101. typedef struct _DtIconicPathRec
  102. {
  103. CorePart core;
  104. CompositePart composite;
  105. ConstraintPart constraint;
  106. XmManagerPart manager;
  107. DtIconicPathPart iconic_path;
  108. } DtIconicPathRec;
  109. /******** Private Function Declarations ********/
  110. extern void _DtIconicPathInput(
  111. Widget wid,
  112. XEvent *event,
  113. String *params,
  114. Cardinal *num_params) ;
  115. /******** End Private Function Declarations ********/
  116. #ifdef __cplusplus
  117. } /* Close scope of 'extern "C"' declaration which encloses file. */
  118. #endif
  119. #endif /* _DtIconicPathP_h */
  120. /* DON'T ADD ANYTHING AFTER THIS #endif */