dtcm: Coverity 88353
[oweals/cde.git] / cde / programs / dtwm / WmPanelP.h
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:        WmPanelP.h
27  **
28  **  Project:     HP/Motif Workspace Manager (dtwm)
29  **
30  **  Description:
31  **  -----------
32  **  This file contains private declarations for the Front Panel
33  **  subsystem.
34  **
35  **
36  **********************************************************************
37  **
38  ** (c) Copyright 1992 HEWLETT-PACKARD COMPANY
39  ** ALL RIGHTS RESERVED
40  **
41  **********************************************************************
42  **********************************************************************
43  **
44  **
45  **********************************************************************
46  ******************************<+>*************************************/
47
48 #ifndef _WmPanelP_h
49 #define _WmPanelP_h
50
51 #include <Xm/XmP.h>
52 #include "WmGlobal.h"
53
54 #include "DataBaseLoad.h"
55
56 typedef struct PanelData * WmPanelistObject;
57
58 #define O_Panel(o) panel.form
59
60
61 #include <time.h>
62 #if defined(_AIX)
63 #include <sys/time.h> /* needed for timeval */
64 #endif
65
66
67 typedef struct
68     {
69     String       pchResName;    /* match res_name member of WM_CLASS prop */
70     Widget       wControl;      /* control associated with client */
71     Window       winParent;     /* window to reparent client to */
72     Position     x, y;          /* position of client in winParent */
73     Dimension    width, height; /* required size of client */
74     ClientData  *pCD;           /* filled in when managed, else NULL */
75     }   WmFpEmbeddedClientData, *WmFpEmbeddedClientList;
76
77 typedef struct _WmFpPushRecallClientData
78 {
79    String           pchResName;         /* match res_name member of WM_CLASS prop */
80    Widget           wControl;           /* control associated with client */
81    ClientData     * pCD;                /* filled in when managed, else NULL */
82    struct timeval   tvTimeout;          /* Time for client to start */
83 } WmFpPushRecallClientData, *WmFpPushRecallClientList;
84
85
86
87 void    WmSubpanelPosted (Display *, Window);
88 Widget  WmPanelistAllocate(Widget, XtPointer, XtPointer);
89 void    WmPanelistShow (Widget);
90 void    WmPanelistSetWorkspace (Widget, int);
91 void    WmFrontPanelSetBusy (Boolean);
92 Widget  WmPanelistWindowToSubpanel (Display *, Window);
93 void    WmFrontPanelSessionSaveData ();
94
95
96
97 #endif /* _WmPanelP_h */
98 /* DON'T ADD ANYTHING AFTER THIS #endif */