WsmM.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. /*****************************<+>*************************************
  24. *********************************************************************
  25. **
  26. ** File: WsmM.h
  27. **
  28. ** RCS: $XConsortium: WsmM.h /main/3 1995/10/26 15:14:36 rswiston $
  29. ** Project: DT Workspace Manager
  30. **
  31. ** Description: Defines parameters necessary for messaging with
  32. ** the workspace manager.
  33. **
  34. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  35. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  36. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  37. ** (c) Copyright 1993, 1994 Novell, Inc.
  38. **
  39. *********************************************************************
  40. *****************************<+>*************************************/
  41. #ifndef _Dt_WsmM_h
  42. #define _Dt_WsmM_h
  43. /*
  44. * Messaging definitions
  45. */
  46. /* Workspace manager tool class (for old messages) */
  47. #define DtWM_TOOL_CLASS "WORKSPACEMGR"
  48. /* Workspace manager tool class (for new messages) */
  49. #define DtWSM_TOOL_CLASS "WORKSPACE_MANAGER"
  50. /* Workspace manager tool class (for front panel messages) */
  51. #define DtFP_TOOL_CLASS "FRONTPANEL"
  52. /* Request from dtstyle to change backdrop */
  53. #define DtWM_BACKDROP_CHANGE "BACKDROP_CHANGE"
  54. /* Request from session manager to unlock the display (depress button) */
  55. #define DtWM_UNLOCK_DISPLAY "UNLOCK_DISPLAY"
  56. /* Request from session manager to cancel an exit (depress button) */
  57. #define DtWM_CANCEL_EXIT "CANCEL_EXIT"
  58. /* Request from session manager to retore the front panel to default state */
  59. #define DtWM_RESTORE_PANEL "RESTORE_PANEL"
  60. /* Notification from Workspace manager of a new workspace */
  61. #define DtWSM_NEW_WORKSPACE "ACTIVE_WORKSPACE"
  62. #define DtWSM_NEW_WORKSPACE_ARG_NAME 0
  63. #define DtWSM_NEW_WORKSPACE_ARG_ATOM 1
  64. /* Request to set the current workspace */
  65. #define DtWSM_SET_WORKSPACE "SET_WORKSPACE"
  66. #define DtWSM_SET_WORKSPACE_ARG_ATOM 0
  67. /* Request to change the title of a workspace */
  68. #define DtWSM_SET_WORKSPACE_TITLE "SET_WORKSPACE_TITLE"
  69. #define DtWSM_SET_WORKSPACE_TITLE_ARG_ATOM 0
  70. #define DtWSM_SET_WORKSPACE_TITLE_ARG_TITLE 1
  71. /* Request to add a workspace */
  72. #define DtWSM_ADD_WORKSPACE "ADD_WORKSPACE"
  73. #define DtWSM_ADD_WORKSPACE_ARG_TITLE 0
  74. /* Request to delete a workspace */
  75. #define DtWSM_DELETE_WORKSPACE "DELETE_WORKSPACE"
  76. #define DtWSM_DELETE_WORKSPACE_ARG_ATOM 0
  77. /* Notification from Workspace manager of a modified workspace */
  78. #define DtWSM_MODIFY_WORKSPACE "MODIFY_WORKSPACE"
  79. #define DtWSM_MODIFY_WORKSPACE_ARG_ATOM 0
  80. #define DtWSM_MODIFY_WORKSPACE_ARG_TYPE 1
  81. #define DtWSM_MODIFY_WORKSPACE_TYPE_ADD 0
  82. #define DtWSM_MODIFY_WORKSPACE_TYPE_DELETE 1
  83. #define DtWSM_MODIFY_WORKSPACE_TYPE_BACKDROP 2
  84. #define DtWSM_MODIFY_WORKSPACE_TYPE_TITLE 3
  85. #define DtWSM_MODIFY_WORKSPACE_TYPE_ACTIVE 4
  86. /* Notification from Workspace manager of a modified workspace */
  87. #define DtWSM_MARQUEE_SELECTION "MARQUEE_SELECTION"
  88. #define DtWSM_MARQUEE_SELECTION_ARG_TYPE 0
  89. #define DtWSM_MARQUEE_SELECTION_ARG_X 1
  90. #define DtWSM_MARQUEE_SELECTION_ARG_Y 2
  91. #define DtWSM_MARQUEE_SELECTION_ARG_WIDTH 3
  92. #define DtWSM_MARQUEE_SELECTION_ARG_HEIGHT 4
  93. #define DtWSM_MARQUEE_SELECTION_TYPE_BEGIN 1
  94. #define DtWSM_MARQUEE_SELECTION_TYPE_CONTINUE 2
  95. #define DtWSM_MARQUEE_SELECTION_TYPE_END 3
  96. #define DtWSM_MARQUEE_SELECTION_TYPE_CANCEL 4
  97. /*
  98. * Macros to set and fetch argument fields into a message
  99. *
  100. * (NOTE: Since sending the request breaks out the zero'th
  101. * field, there is a difference of one in these two macros.)
  102. */
  103. #define DtWSM_SET_FIELD(fields,ix,value) ((fields)[(ix)]=(value))
  104. #define DtWSM_GET_FIELD(fields,ix) ((fields)[((ix)+1)])
  105. #endif /* _Dt_WsmM_h */
  106. /* Do not add anything after this endif. */