-
Notifications
You must be signed in to change notification settings - Fork 6
/
StripDefines.h
136 lines (108 loc) · 4.77 KB
/
StripDefines.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
#ifndef _StripDefines
#define _StripDefines
#define STRIPGRAPH_TITLE "StripTool Graph Window"
#define STRIPGRAPH_ICON_NAME "Graph"
#define STRIPDIALOG_TITLE "StripTool Controls"
#define STRIPDIALOG_ICON_NAME "Controls"
/* the maximum number of curves
*
* Note: increasing this value will require modifying StripConfig
*/
#if !defined (STRIP_MAX_CURVES)
# define STRIP_MAX_CURVES 10
#endif
/* user and site application defaults files
* The site default file is first read, then the user default.
* Both of these are read after the X-toolkit has finished
* its own resource merging, so these will both override
* .Xdefaults files and command-line parameters.
*/
/* define this in Makefile.Host if you want site-specific values */
#define STRIP_USER_DEFAULTS_FILE ".StripToolrc"
#define STRIP_SITE_DEFAULTS_FILE_ENV "STRIP_SITE_DEFAULTS"
#ifndef STRIP_SITE_DEFAULTS_FILE
# define STRIP_SITE_DEFAULTS_FILE "./StripToolrc"
#endif
/* Strip Tool help uses Netscape to display help. Define a default
* URL for Strip Tool help here. This value will be overwritten if
* STRIP_HELP_PATH is defined in the environment..
* */
#ifndef STRIP_HELP_PATH
# if 1
# define STRIP_HELP_PATH \
"http://www.aps.anl.gov/epics/extensions/StripTool/index.php"
# else
# define STRIP_HELP_PATH \
"http://www.jlab.org/~larrieu/work/StripTool/info.html"
# endif
#endif
/* maximum number of bytes to use for caching sampled data */
#define STRIP_MAX_CACHE_BYTES (8L*1024L*1024L) /* 8 megs */
/* the maximum number of characters in a curve's name string */
#define STRIP_MAX_NAME_CHAR 63
/* the maximum number of characters in a curve's engineering units string */
#define STRIP_MAX_EGU_CHAR 31
/* the maximum number of characters in a curve's comment string */
#define STRIP_MAX_COMMENT_CHAR 255
/* the smallest fraction of a second which is still accurate */
#define STRIP_TIMER_ACCURACY 0.001
#if 0
/* KE: No longer used. Uses ca_poll instead */
/* timeout period for handling Channel Access events */
#define STRIP_CA_PEND_TIMEOUT 0.1 /* Albert 0.001 */
#endif
/* timeout period for handling cdev events */
#define STRIP_CDEV_PEND_TIMEOUT 0.005
/* number of seconds to wait for a curve to connect to its data source
* before taking some action */
#define STRIP_CONNECTION_TIMEOUT 5.0
/* the default fallback font name */
#define STRIP_FALLBACK_FONT_STR "*fixed-medium-r-normal--10*"
/* the default dimensions (in millimeters) for the graph window */
#define STRIP_GRAPH_WIDTH_MM 250.0 /* 200 Albert */
#define STRIP_GRAPH_HEIGHT_MM 180.0 /* 100 Albert */
/* the default number of seconds of data displayed on plot */
#define STRIP_DEFAULT_TIMESPAN 300
/* the maximum font height (in millimeters) */
#define STRIP_FONT_MAXHEIGHT_MM 8.0 /* 4.0 Albert */
/* the default configuration filename */
#define STRIP_DEFAULT_FILENAME "StripTool.stp"
/* the search path for finding config files specified on command line */
#ifdef USE_OLD_FILE_SEARCH
#define STRIP_FILE_SEARCH_PATH_ENV "EPICS_DISPLAY_PATH"
#else
#define STRIP_FILE_SEARCH_PATH_ENV "STRIP_FILE_SEARCH_PATH"
#endif
/* the default directory for the file selection dialog */
/* ("." will be changed to the CWD. Others will be used as is) */
#ifndef STRIP_CONFIGFILE_DIR
# define STRIP_CONFIGFILE_DIR "."
#endif
/* the default wildcard for the file selection dialog */
#ifndef STRIP_CONFIGFILE_PATTERN
#define STRIP_CONFIGFILE_PATTERN "*.stp"
#endif
#define STRIP_PRINTER_NAME_ENV "STRIP_PRINTER_NAME"
#define STRIP_PRINTER_DEVICE_ENV "STRIP_PRINTER_DEVICE"
#define STRIP_PRINTER_NAME_FALLBACK_ENV "PSPRINTER"
#define STRIP_PRINTER_DEVICE_FALLBACK "ps"
/* hard-coded printer info --fallback fallback */
/* define these in Makefile.Host if you want site-specific values */
#ifndef STRIP_PRINTER_DEVICE
#define STRIP_PRINTER_DEVICE "ps"
#endif
#ifndef STRIP_PRINTER_NAME
#define STRIP_PRINTER_NAME "lp"
#endif
#define STRIP_DUMP_TYPE_DEFAULT_ENV "STRIP_DUMP_TYPE_DEFAULT"
#endif /* #ifndef _StripDefines */