-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaxArea.h
114 lines (104 loc) · 3.93 KB
/
axArea.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* Copyright (c) 2002 Berliner Speicherring-Gesellschaft fuer Synchrotron-
* Strahlung mbH (BESSY).
* Copyright (c) 2002 Southeastern Universities Research Association, as
* Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
/* axArea.h */
/************************DESCRIPTION***********************************
Area structure definitions
**********************************************************************/
#ifndef INCaxAreah
#define INCaxAreah
#include <X11/Intrinsic.h>
#include <X11/Xlib.h>
#include <Xm/Xm.h>
#include "sllLib.h"
#define PushButtonGadgetClass 0
#define SeparatorGadgetClass 1
#define ToggleButtonGadgetClass 2
typedef struct areaLink{
SNODE node;
int mapped;
int managed;
int programId;
/* area widget info */
/* runtime window widgets */
Widget runtimeToplevel;
Widget runtimeForm;
Widget blinkButton;
/* main window widgets */
Widget toplevel;
Widget icon;
Widget form_main;
Widget menubar;
Widget messageArea;
Widget scale;
Widget label_filename;
Widget label_groupAlarm;
Widget label_channelAlarm;
Widget label_mask;
Widget silenceOneHour;
Widget silenceCurrent;
Widget silenceForever;
Widget silenceForeverLabel;
Widget beepSeverity;
Widget beepSeverityLabel;
Widget disabledForcePVCountLabel;
Widget label_filenameTitle;
Widget treeWindowForm;
Widget groupWindowForm;
/* ----- Config info ----- */
struct mainGroup *pmainGroup;
int changed;
char *blinkString;
/* ----- setup info ----- */
int (* viewFilter)();
int beepCondition;
int disabledForcePVCount;
char *configFile;
char *alarmlogFile;
char *opmodFile;
char *histFile;
/* ----- subWindow inf ----- */
void *treeWindow;
void *groupWindow;
void *propWindow;
void *forceMaskWindow;
void *forcePVWindow;
void *maskWindow;
void *beepSevrWindow;
void *noAckWindow;
/* ----- Current Selection groupLine info ----- */
void *selectionWindow;
void *selectionLink;
int selectionType;
Widget selectionWidget;
/* ----- Current alarm window info ----- */
int currentAlarmIndex;
Widget currentAlarmForm;
Widget currentAlarm[10];
char currentAlarmString[10][128];
int w;
int h;
} ALINK;
typedef struct _menu_item {
char *label; /* the label for the item */
int class; /* pushbutton, label, separator... */
char mnemonic; /* mnemonic; NULL if none */
char *accelerator; /* accelerator; NULL if none */
char *accel_text; /* to be converted to compound string */
void (*callback)( Widget,XtPointer,XtPointer); /* routine to call; NULL if note */
XtPointer callback_data; /* client_data for callback() */
struct _menu_item *subitems; /* pullright menu items, if not NULL */
Boolean initial_state; /* initial state of toggleButton/toggleButtonGadget menu items */
} MenuItem;
#endif /* INCaxAreah */