forked from bakagirl/Arachne-WWW-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI.H
127 lines (104 loc) · 3.52 KB
/
GUI.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
// ========================================================================
// Graphical user interface header file... 1998
// Cooperation with customer.h defined function for STYLE_CUSTOMER layout
// (c)1996-1999 Michael Polak, Arachne Labs
// ========================================================================
void onlinehelp(int b);
int onbutton(int x,int y);
void inputatom(char *msg1,char *msg2);
//!!glennmcc: Jan 23, 2005 -- at Ray's suggestion, unsigned int
unsigned int GUIEVENT(unsigned int key, unsigned int mys);
//int GUIEVENT(int key, int mys);
void getTXTprompt(char *str,int lim);
void setTXTprompt(char *str);
void ReadWriteTextarea(char sw);
void SearchInTextarea(char cont);
int activeatomtick(int key, char textareacmd);
int smothup(int rate);
int smothdown(int rate);
void hidehover(void);
//values for "textareacmd" argument of activeatomtick
#define TEXTAREA_NOPE 0
#define TEXTAREA_INIT 1
#define TEXTAREA_SCROLL 2
#define TEXTAREA_NOREFRESH 3
#define BLOCK_INK 0
#define BLOCK_PAPER 14
#define GUI_ACTION 1
#define GUI_MOUSE 10
#define GUI_MOUSE_BUTTON_LEFT 11
#define GUI_MOUSE_BUTTON_RIGHT 12
#define GUI_MOUSE_BUTTON_MIDDLE 13
#define MOUSE_LEFT 1 //JdS
#define MOUSE_RIGHT 2 //JdS
#define MOUSE_RELEASE 3
#define MOUSE_MIDDLE 4 //JdS
#ifdef AGB
#define REDRAW_KEY 0x3f00
#else
#define REDRAW_KEY 0x4300
#endif
//click events for online help, etc.
#define CLICK_PREVIOUS 1
#define CLICK_NEXT 2
#define CLICK_HOME 3
#define CLICK_RELOAD 4
#define CLICK_ADDHOTLIST 5
#define CLICK_HOTLIST 6
#define CLICK_ABORT 7
#define CLICK_SEARCHENGINE 8
#define CLICK_HELP 9
#define CLICK_ANY_BIG_BUTTON 10
#define CLICK_SPECIAL 900
#define CLICK_MEMINFO 901
#define CLICK_TCPIP 902
#define CLICK_NETHOME 903
#define CLICK_HISTORY 904
#define CLICK_ZOOM 905
#define CLICK_EXIT 906
#define CLICK_IMAGES 907
#define CLICK_DESKTOP 908
#define CLICK_ABOUT 909
#define CLICK_MAIL 910
#define CLICK_SAVE 911
//!!glennmcc: Sep 30, 2005
//moveing 'Up one Level' function to 'URL' instead of 'Arachne ver#'
#define CLICK_UPLEVEL 912
//!!glennmcc: end
#define ONMOUSE_TITLE 999
#define CLICK_CUSTOMER 1000
#define MOUSESTEP 8
#include "pckbrd.h"
#ifndef XTVERSION
extern int wheelqueue; //for wheel mice
extern int thisx,thisy,thisxx,thisyy;
int analysewheel(int mys);
void pressthatbutton(int nowait);
#endif
int onbig(int x, int y, int x0, int y0 );
int onverysmall(int x, int y, int x0, int y0 );
int onbutton(int x,int y);
char scrolllock(void);
char shift(void);
#ifdef VIRT_SCR
void smothscroll(long from,long to);
void novirtual(void);
void Try2DumpActiveVirtual(void);
#endif
void toolbar(char newtoolbarmode,char forced);
int gotoloc(void);
extern char toolbarmode; //0...HTML, 1...editor
int geticoninfo(char *name,char *icon,char *method,char *methodarg,char *desc1,char *desc2);
int endvtoolbar(void);
void hidehighlight(void);
extern int swapsavecount,swaploadcount;
extern char kbmouse;
#ifndef XTVERSION
extern int lasthisx,lasthisy,lasthisxx,lasthisyy;
#endif
#define MAXBUTT 200004l //max allowed animated button size
#define MAXHOVER (long)(IE_MAXSWAPLEN-4000l) //max allowed hover size
//!!glennmcc: Mar 18, 2006 -- for 'hooking' ScreenCapture to 'PrtScr' in toolbar
//see additional code in guievent.c
extern int g_PrtScr;
//!!glennmcc: end