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

« back to all changes in this revision

Viewing changes to source/3rdparty/qmon/Xbae/Input.h

  • 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
 * Copyright(c) 1999 Andrew Lister
 
3
 *
 
4
 *                        All rights reserved
 
5
 * Permission to use, copy, modify and distribute this material for
 
6
 * any purpose and without fee is hereby granted, provided that the
 
7
 * above copyright notice and this permission notice appear in all
 
8
 * copies, and that the name of the author not be used in advertising
 
9
 * or publicity pertaining to this material without the specific,
 
10
 * prior written permission of the author.
 
11
 *
 
12
 * THE AUTHOR MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EX-
 
13
 * PRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT
 
14
 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 
15
 * FITNESS FOR ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST IN-
 
16
 * FRINGEMENT OF PATENTS OR OTHER INTELLECTUAL PROPERTY RIGHTS.  THE
 
17
 * SOFTWARE IS PROVIDED "AS IS", AND IN NO EVENT SHALL THE AUTHOR OR
 
18
 * ANY OF ITS AFFILIATES BE LIABLE FOR ANY DAMAGES, INCLUDING ANY
 
19
 * LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES RELAT-
 
20
 * ING TO THE SOFTWARE.
 
21
 *
 
22
 * Author: Andrew Lister
 
23
 *
 
24
 * $Id$
 
25
 */
 
26
 
 
27
#ifndef _Xbae_Input_h
 
28
#define _Xbae_Input_h
 
29
 
 
30
#include <Xm/Xm.h>
 
31
#include <Xm/Text.h>
 
32
 
 
33
#ifndef XlibSpecificationRelease
 
34
# ifndef _XFUNCPROTOBEGIN
 
35
#   ifdef __cplusplus                      /* for C++ V2.0 */
 
36
#     define _XFUNCPROTOBEGIN extern "C" {   /* do not leave open across includes */
 
37
#     define _XFUNCPROTOEND }
 
38
#   else
 
39
#     define _XFUNCPROTOBEGIN
 
40
#     define _XFUNCPROTOEND
 
41
#   endif
 
42
# endif /* _XFUNCPROTOBEGIN */
 
43
#else
 
44
#include <X11/Xfuncproto.h>
 
45
#endif
 
46
 
 
47
#ifdef __cplusplus
 
48
extern "C" {
 
49
#endif
 
50
 
 
51
typedef struct _XbaeInputClassRec *XbaeInputWidgetClass;
 
52
typedef struct _XbaeInputRec *XbaeInputWidget;
 
53
 
 
54
externalref WidgetClass xbaeInputWidgetClass;
 
55
 
 
56
#ifndef XmNautoFill
 
57
#define XmNautoFill "autoFill"
 
58
#endif
 
59
#ifndef XmNoverwriteMode
 
60
#define XmNoverwriteMode "overwriteMode"
 
61
#endif
 
62
#ifndef XmNpattern
 
63
#define XmNpattern "pattern"
 
64
#endif
 
65
#ifndef XmNvalidateCallback
 
66
#define XmNvalidateCallback "validateCallback"
 
67
#endif
 
68
#ifndef XmNoutputFormat
 
69
#define XmNoutputFormat "outputFormat"
 
70
#endif    
 
71
#ifndef XmNconvertCase
 
72
#define XmNconvertCase "convertCase"
 
73
#endif    
 
74
 
 
75
/*
 
76
 * Prototype wrapper
 
77
 */
 
78
#ifndef P
 
79
#if defined(__STDC__) || defined (__cplusplus)
 
80
#define P(x)                x
 
81
#else
 
82
#define P(x)                ()
 
83
#define const
 
84
#define volatile
 
85
#endif
 
86
#endif
 
87
 
 
88
_XFUNCPROTOBEGIN
 
89
extern Widget XbaeCreateInput P((Widget, String, ArgList, Cardinal));
 
90
_XFUNCPROTOEND
 
91
 
 
92
typedef struct _XbaeInputValidateCallbackStruct
 
93
{
 
94
    int reason;
 
95
    XEvent *event;
 
96
    String pattern;
 
97
    String value;
 
98
    Boolean doit;
 
99
}
 
100
XbaeInputValidateCallbackStruct;
 
101
 
 
102
#ifndef XbaeIsXbaeInput
 
103
#define XbaeIsXbaeInput(w)    XtIsSubclass(w, xbaeInputWidgetClass)
 
104
#endif /* XbaeIsXbaeInput */
 
105
    
 
106
#ifdef __cplusplus
 
107
}  /* Close scope of 'extern "C"' declaration which encloses file. */
 
108
#endif
 
109
 
 
110
#endif
 
111
 
 
112