Desktop.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: Desktop.h /main/4 1996/10/03 17:04:47 mustafa $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. *
  27. * FILE: Desktop.h
  28. *
  29. * COMPONENT_NAME: Desktop File Manager
  30. *
  31. * DESCRIPTION: Public include file for the desktop.
  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 _Desktop_h
  41. #define _Desktop_h
  42. #include "FileMgr.h"
  43. #define MAX_CACHED_ICONS 20
  44. #define INVALID_TYPE 999
  45. typedef struct
  46. {
  47. Widget shell;
  48. Widget frame;
  49. Widget drawA;
  50. Widget iconGadget;
  51. Widget text;
  52. Position root_x, root_y;
  53. Pixel background;
  54. char *workspace_name;
  55. int workspace_num;
  56. unsigned char view;
  57. unsigned char order;
  58. unsigned char direction;
  59. unsigned char positionEnabled;
  60. char * restricted_directory;
  61. char * title;
  62. char * helpVol;
  63. Boolean toolbox;
  64. Boolean registered;
  65. char *host;
  66. char *dir_linked_to;
  67. char *file_name;
  68. FileViewData *file_view_data;
  69. } DesktopRec;
  70. typedef struct
  71. {
  72. char *name;
  73. int number;
  74. int files_selected;
  75. DesktopRec **selectedDTWindows;
  76. DialogData * primaryHelpDialog;
  77. int secondaryHelpDialogCount;
  78. DialogData ** secondaryHelpDialogList;
  79. } WorkspaceRec;
  80. typedef struct
  81. {
  82. Widget popup;
  83. Widget removeDT;
  84. Widget openFolder;
  85. Widget rename;
  86. char * action_pane_file_type;
  87. } PopupRec;
  88. typedef struct
  89. {
  90. int numIconsUsed;
  91. int numCachedIcons;
  92. int popup_name_count;
  93. PopupRec *popupMenu;
  94. int numWorkspaces;
  95. WorkspaceRec ** workspaceData;
  96. DesktopRec ** desktopWindows;
  97. XButtonEvent event;
  98. } DesktopData, *DesktopDataPtr;
  99. extern DesktopData *desktop_data;
  100. #endif /* _Desktop_h */
  101. /* DON'T ADD ANYTHING AFTER THIS #endif */