123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /*****************************<+>*************************************
- *********************************************************************
- **
- ** File: WsmM.h
- **
- ** RCS: $XConsortium: WsmM.h /main/3 1995/10/26 15:14:36 rswiston $
- ** Project: DT Workspace Manager
- **
- ** Description: Defines parameters necessary for messaging with
- ** the workspace manager.
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- **
- *********************************************************************
- *****************************<+>*************************************/
- #ifndef _Dt_WsmM_h
- #define _Dt_WsmM_h
- /*
- * Messaging definitions
- */
- /* Workspace manager tool class (for old messages) */
- #define DtWM_TOOL_CLASS "WORKSPACEMGR"
- /* Workspace manager tool class (for new messages) */
- #define DtWSM_TOOL_CLASS "WORKSPACE_MANAGER"
- /* Workspace manager tool class (for front panel messages) */
- #define DtFP_TOOL_CLASS "FRONTPANEL"
- /* Request from dtstyle to change backdrop */
- #define DtWM_BACKDROP_CHANGE "BACKDROP_CHANGE"
- /* Request from session manager to unlock the display (depress button) */
- #define DtWM_UNLOCK_DISPLAY "UNLOCK_DISPLAY"
- /* Request from session manager to cancel an exit (depress button) */
- #define DtWM_CANCEL_EXIT "CANCEL_EXIT"
- /* Request from session manager to retore the front panel to default state */
- #define DtWM_RESTORE_PANEL "RESTORE_PANEL"
- /* Notification from Workspace manager of a new workspace */
- #define DtWSM_NEW_WORKSPACE "ACTIVE_WORKSPACE"
- #define DtWSM_NEW_WORKSPACE_ARG_NAME 0
- #define DtWSM_NEW_WORKSPACE_ARG_ATOM 1
- /* Request to set the current workspace */
- #define DtWSM_SET_WORKSPACE "SET_WORKSPACE"
- #define DtWSM_SET_WORKSPACE_ARG_ATOM 0
- /* Request to change the title of a workspace */
- #define DtWSM_SET_WORKSPACE_TITLE "SET_WORKSPACE_TITLE"
- #define DtWSM_SET_WORKSPACE_TITLE_ARG_ATOM 0
- #define DtWSM_SET_WORKSPACE_TITLE_ARG_TITLE 1
- /* Request to add a workspace */
- #define DtWSM_ADD_WORKSPACE "ADD_WORKSPACE"
- #define DtWSM_ADD_WORKSPACE_ARG_TITLE 0
- /* Request to delete a workspace */
- #define DtWSM_DELETE_WORKSPACE "DELETE_WORKSPACE"
- #define DtWSM_DELETE_WORKSPACE_ARG_ATOM 0
- /* Notification from Workspace manager of a modified workspace */
- #define DtWSM_MODIFY_WORKSPACE "MODIFY_WORKSPACE"
- #define DtWSM_MODIFY_WORKSPACE_ARG_ATOM 0
- #define DtWSM_MODIFY_WORKSPACE_ARG_TYPE 1
- #define DtWSM_MODIFY_WORKSPACE_TYPE_ADD 0
- #define DtWSM_MODIFY_WORKSPACE_TYPE_DELETE 1
- #define DtWSM_MODIFY_WORKSPACE_TYPE_BACKDROP 2
- #define DtWSM_MODIFY_WORKSPACE_TYPE_TITLE 3
- #define DtWSM_MODIFY_WORKSPACE_TYPE_ACTIVE 4
- /* Notification from Workspace manager of a modified workspace */
- #define DtWSM_MARQUEE_SELECTION "MARQUEE_SELECTION"
- #define DtWSM_MARQUEE_SELECTION_ARG_TYPE 0
- #define DtWSM_MARQUEE_SELECTION_ARG_X 1
- #define DtWSM_MARQUEE_SELECTION_ARG_Y 2
- #define DtWSM_MARQUEE_SELECTION_ARG_WIDTH 3
- #define DtWSM_MARQUEE_SELECTION_ARG_HEIGHT 4
- #define DtWSM_MARQUEE_SELECTION_TYPE_BEGIN 1
- #define DtWSM_MARQUEE_SELECTION_TYPE_CONTINUE 2
- #define DtWSM_MARQUEE_SELECTION_TYPE_END 3
- #define DtWSM_MARQUEE_SELECTION_TYPE_CANCEL 4
- /*
- * Macros to set and fetch argument fields into a message
- *
- * (NOTE: Since sending the request breaks out the zero'th
- * field, there is a difference of one in these two macros.)
- */
- #define DtWSM_SET_FIELD(fields,ix,value) ((fields)[(ix)]=(value))
- #define DtWSM_GET_FIELD(fields,ix) ((fields)[((ix)+1)])
- #endif /* _Dt_WsmM_h */
- /* Do not add anything after this endif. */
|