FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot-old/src/mouse.h at pm3d · gnuplot/gnuplot-old · GitHub
gnuplot
gnuplot-old
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot-old
/
src
/
mouse.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
215 lines (191 loc) · 5.53 KB
Breadcrumbs
gnuplot-old
/
src
/
mouse.h
Copy path
File metadata and controls
215 lines (191 loc) · 5.53 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/*
* $Id: mouse.h,v 1.2.2.1 2000/05/03 21:26:11 joze Exp $
*/
/* GNUPLOT - mouse.h */
/*[
* Permission to use, copy, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation.
*
* Permission to modify the software is granted, but not the right to
* distribute the complete modified source code. Modifications are to
* be distributed as patches to the released version. Permission to
* distribute binaries produced by compiling modified sources is granted,
* provided you
* 1. distribute the corresponding source modifications from the
* released version in the form of a patch file along with the binaries,
* 2. add special version identification to distinguish your version
* in addition to the base release version number,
* 3. provide your name and address as the primary contact for the
* support of your modified version, and
* 4. retain our contact information in regard to use of the base
* software.
* Permission to distribute the released version of the source code along
* with corresponding source modifications in the form of a patch file is
* granted with same provisions 2 through 4 for binary distributions.
*
* This software is provided "as is" without express or implied warranty
* to the extent permitted by applicable law.
]*/
/*
* AUTHORS
*
* Original Software (October 1999 - January 2000):
* Pieter-Tjerk de Boer <ptdeboer@cs.utwente.nl>
* Petr Mikulik <mikulik@physics.muni.cz>
* Johannes Zellner <johannes@zellner.org>
*/
#include
"mousecmn.h"
#ifndef
_HAVE_MOUSE_H
#define
_HAVE_MOUSE_H
/* Zoom queue
*/
struct
t_zoom
{
double
xmin
,
ymin
,
xmax
,
ymax
;
double
x2min
,
y2min
,
x2max
,
y2max
;
struct
t_zoom
*
prev
,
*
next
;
};
typedef
struct
mouse_setting_t
{
int
on
;
/* ... */
int
doubleclick
;
/* Button1 double / single click resolution */
int
annotate_zoom_box
;
/* draw coordinates at zoom box */
int
label
;
/* draw real gnuplot labels on Button 2 */
int
polardistance
;
/* display dist. to ruler in polar coordinates */
int
verbose
;
/* display ipc commands */
int
warp_pointer
;
/* warp pointer after starting a zoom box */
char
fmt
[
0xff
];
/* fprintf format for printing numbers */
char
labelopts
[
0xff
];
/* label options */
}
mouse_setting_t
;
#if
defined(
_MOUSE_C
)
||
defined(
_GPLT_X11
)
mouse_setting_t
mouse_setting
=
{
1
,
300
/* ms */
,
1
,
0
,
0
,
0
,
0
,
"% #g"
,
"pointstyle 1"
};
/* the status of the shift, ctrl and alt keys
*/
static
int
modifier_mask
=
0
;
/* definition of Mod_Shift, Mod_Ctrl and Mod_Alt has moved to mousecmn.h
*/
#else
extern
mouse_setting_t
mouse_setting
;
#endif
/* enum of GP_ -keycodes has moved to mousecmn.h so that it can be
* accessed by standalone terminals too */
enum
{
MODE_QUERY
,
MODE_PLOT
,
MODE_SPLOT
};
#ifdef
_MOUSE_C
/* the following table must match exactly the
* enum's of GP_ and end with a NULL pointer! */
static
char
*
special_keys
[]
=
{
"GP_FIRST_KEY"
,
/* keep this dummy there */
"BackSpace"
,
"Tab"
,
"Linefeed"
,
"Clear"
,
"Return"
,
"Pause"
,
"Scroll_Lock"
,
"Sys_Req"
,
"Escape"
,
"Insert"
,
"Delete"
,
"Home"
,
"Left"
,
"Up"
,
"Right"
,
"Down"
,
"PageUp"
,
"PageDown"
,
"End"
,
"Begin"
,
"KP_Space"
,
"KP_Tab"
,
"KP_Enter"
,
"KP_F1"
,
"KP_F2"
,
"KP_F3"
,
"KP_F4"
,
/* see KP_0 - KP_9 */
"KP_Insert"
,
"KP_End"
,
"KP_Down"
,
"KP_PageDown"
,
"KP_Left"
,
"KP_Begin"
,
"KP_Right"
,
"KP_Home"
,
"KP_Up"
,
"KP_PageUp"
,
"KP_Delete"
,
"KP_Equal"
,
"KP_Multiply"
,
"KP_Add"
,
"KP_Separator"
,
"KP_Subtract"
,
"KP_Decimal"
,
"KP_Divide"
,
"KP_0"
,
"KP_1"
,
"KP_2"
,
"KP_3"
,
"KP_4"
,
"KP_5"
,
"KP_6"
,
"KP_7"
,
"KP_8"
,
"KP_9"
,
"F1"
,
"F2"
,
"F3"
,
"F4"
,
"F5"
,
"F6"
,
"F7"
,
"F8"
,
"F9"
,
"F10"
,
"F11"
,
"F12"
,
"GP_LAST_KEY"
,
(
char
*
)
0
/* must be the last line */
};
#endif
/* _MOUSE_C */
enum
{
MOUSE_COORDINATES_REAL
=
0
,
MOUSE_COORDINATES_REAL1
,
/* w/o brackets */
MOUSE_COORDINATES_FRACTIONAL
,
#if
0
MOUSE_COORDINATES_PIXELS
,
MOUSE_COORDINATES_SCREEN
,
#endif
MOUSE_COORDINATES_TIMEFMT
,
MOUSE_COORDINATES_XDATE
,
MOUSE_COORDINATES_XTIME
,
MOUSE_COORDINATES_XDATETIME
,
MOUSE_COORDINATES_ALT
/* alternative format as specified by the user */
};
#if
defined(
_MOUSE_C
)
long
mouse_mode
=
MOUSE_COORDINATES_REAL
;
long
clipboard_mode
=
MOUSE_COORDINATES_REAL
;
char
*
mouse_alt_string
=
(
char
*
)
0
;
char
*
clipboard_alt_string
=
(
char
*
)
0
;
#else
extern
long
mouse_mode
;
extern
long
clipboard_mode
;
extern
char
*
mouse_alt_string
;
extern
char
*
clipboard_alt_string
;
#endif
void
recalc_statusline
__PROTO
((
void
));
void
update_ruler
__PROTO
((
void
));
void
UpdateStatusline
__PROTO
((
void
));
void
do_event
__PROTO
((
struct
gp_event_t
*
ge
));
int
plot_mode
__PROTO
((
int
mode
));
void
event_reset
__PROTO
((
struct
gp_event_t
*
ge
));
void
event_plotdone
__PROTO
((
void
));
#ifdef
OS2
void
update_menu_items_PM_terminal
__PROTO
((
void
));
#endif
/* bind prototype(s) */
void
bind_process
__PROTO
((
char
*
lhs
,
char
*
rhs
));
void
bind_remove_all
__PROTO
((
void
));
#endif
/* !_HAVE_MOUSE_H */
Back
|
FazBrowse Home
|
New Git URL