~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qmon/Xmt310/Xmt/LayoutSpace.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * Motif Tools Library, Version 3.1
 
3
 * $Id$
 
4
 * 
 
5
 * Written by David Flanagan.
 
6
 * Copyright (c) 1992-2001 by David Flanagan.
 
7
 * All Rights Reserved.  See the file COPYRIGHT for details.
 
8
 * This is open source software.  See the file LICENSE for details.
 
9
 * There is no warranty for this software.  See NO_WARRANTY for details.
 
10
 *
 
11
 * $Log$
 
12
 * Revision 1.1.1.1  2001/07/18 11:06:02  root
 
13
 * Initial checkin.
 
14
 *
 
15
 * Revision 1.2  2001/06/12 16:25:28  andre
 
16
 * *** empty log message ***
 
17
 *
 
18
 *
 
19
 */
 
20
 
 
21
#include <Xmt/Xmt.h>
 
22
#include <Xmt/LayoutGP.h>
 
23
 
 
24
#if NeedFunctionPrototypes
 
25
static void Initialize(Widget, Widget, ArgList, Cardinal *);
 
26
static XtGeometryResult QueryGeometry(Widget, XtWidgetGeometry *,
 
27
                                      XtWidgetGeometry *);
 
28
#else
 
29
static void Initialize();
 
30
static XtGeometryResult QueryGeometry();
 
31
#endif
 
32
 
 
33
#define superclass (&xmtLayoutGadgetClassRec)
 
34
 
 
35
externaldef(xmtlayoutspaceclassrec)
 
36
XmtLayoutSpaceClassRec xmtLayoutSpaceClassRec = {
 
37
{   /* rect_class fields  */
 
38
    /* superclass         */    (WidgetClass)superclass,
 
39
    /* class_name         */    "XmtLayoutSpace",
 
40
    /* widget_size        */    sizeof(XmtLayoutSpaceRec),
 
41
    /* class_initialize   */    NULL,
 
42
    /* class_part_initialize*/  NULL,
 
43
    /* class_inited       */    FALSE,
 
44
    /* initialize         */    Initialize,
 
45
    /* initialize_hook    */    NULL,           
 
46
    /* rect1              */    NULL,
 
47
    /* rect2              */    NULL,
 
48
    /* rect3              */    0,
 
49
    /* resources          */    NULL,
 
50
    /* num_resources      */    0,
 
51
    /* xrm_class          */    NULLQUARK,
 
52
    /* rect4              */    FALSE,
 
53
    /* rect5              */    FALSE,
 
54
    /* rect6              */    FALSE,
 
55
    /* rect7              */    FALSE,
 
56
    /* destroy            */    NULL,
 
57
    /* resize             */    NULL,
 
58
    /* expose             */    NULL,
 
59
    /* set_values         */    NULL,
 
60
    /* set_values_hook    */    NULL,                   
 
61
    /* set_values_almost  */    XtInheritSetValuesAlmost,  
 
62
    /* get_values_hook    */    NULL,                   
 
63
    /* rect9              */    NULL,
 
64
    /* version            */    XtVersion,
 
65
    /* callback_offsets   */    NULL,
 
66
    /* rect10             */    NULL,
 
67
    /* query_geometry     */    QueryGeometry,
 
68
    /* rect11             */    NULL,
 
69
    /* extension            */  NULL
 
70
  }, 
 
71
  { /* XmtLayoutGadget field */
 
72
    /* change_font        */    NULL
 
73
  },
 
74
  { /* XmtLayoutSpace fields */
 
75
    /* extension          */    NULL
 
76
  }
 
77
};
 
78
 
 
79
externaldef(xmtlayoutspacegadgetclass)
 
80
WidgetClass xmtLayoutSpaceGadgetClass = (WidgetClass) &xmtLayoutSpaceClassRec;
 
81
 
 
82
/* ARGSUSED */
 
83
#if NeedFunctionPrototypes
 
84
static void Initialize(Widget request, Widget init,
 
85
                       ArgList arglist, Cardinal *num_args)
 
86
#else
 
87
static void Initialize(request, init, arglist, num_args)
 
88
Widget request;
 
89
Widget init;
 
90
ArgList arglist;
 
91
Cardinal *num_args;
 
92
#endif
 
93
{
 
94
    Constraint(init, type) = XmtLayoutSpace;
 
95
}
 
96
 
 
97
/* ARGSUSED */
 
98
#if NeedFunctionPrototypes
 
99
static XtGeometryResult QueryGeometry(Widget w,
 
100
                                      XtWidgetGeometry *request,
 
101
                                      XtWidgetGeometry *reply)
 
102
#else
 
103
static XtGeometryResult QueryGeometry(w, request, reply)
 
104
Widget w;
 
105
XtWidgetGeometry *request;
 
106
XtWidgetGeometry *reply;
 
107
#endif
 
108
{
 
109
    reply->request_mode = CWWidth | CWHeight;
 
110
    reply->width = reply->height = 0;
 
111
    return XtGeometryYes;
 
112
}
 
113
 
 
114
 
 
115
#if NeedFunctionPrototypes
 
116
Widget XmtCreateLayoutSpace(Widget parent, String name,
 
117
                            ArgList arglist, Cardinal num_args)
 
118
#else
 
119
Widget XmtCreateLayoutSpace(parent, name, arglist, num_args)
 
120
Widget parent;
 
121
String name;
 
122
ArgList arglist;
 
123
Cardinal num_args;
 
124
#endif
 
125
{
 
126
    return XtCreateWidget(name, xmtLayoutSpaceGadgetClass, parent,
 
127
                          arglist, num_args);
 
128
}