annotate src/nav.h @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents 2650456b8199
children
rev   line source
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
1 #ifndef __NAV_H__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
2 #define __NAV_H__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
3
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
4 #include "bw.h"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
5
19
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
6 /*
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
7 * useful macros for the navigation stack
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
8 */
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
9 #define NAV_UIDX(bw, i) a_Nav_get_uidx(bw, i)
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
10 #define NAV_TOP_UIDX(bw) a_Nav_get_top_uidx(bw)
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
11
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
12 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
13 extern "C" {
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
14 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
15
1037
a72e5506e280 Implemented Instant client-side redirects (META refresh with delay=0)
Jorge Arellano Cid <jcid@dillo.org>
parents: 260
diff changeset
16 void a_Nav_redirection0(BrowserWindow *bw, const DilloUrl *new_url);
1644
2650456b8199 filter automatic requests
corvid <corvid@lavabit.com>
parents: 1600
diff changeset
17 void a_Nav_push(BrowserWindow *bw, const DilloUrl *url,
2650456b8199 filter automatic requests
corvid <corvid@lavabit.com>
parents: 1600
diff changeset
18 const DilloUrl *requester);
138
a44a6214d4ac - Added support for "charset" in the META element.
jcid
parents: 94
diff changeset
19 void a_Nav_repush(BrowserWindow *bw);
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
20 void a_Nav_back(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
21 void a_Nav_forw(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
22 void a_Nav_home(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
23 void a_Nav_reload(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
24 void a_Nav_jump(BrowserWindow *bw, int offset, int new_bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
25 void a_Nav_free(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
26 void a_Nav_cancel_expect (BrowserWindow *bw);
1277
8a9fb20be467 Bugfix: remove the empty cache entry lingering after connection abort
Jorge Arellano Cid <jcid@dillo.org>
parents: 1037
diff changeset
27 void a_Nav_cancel_expect_if_eq(BrowserWindow *bw, const DilloUrl *url);
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
28 void a_Nav_expect_done(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
29 int a_Nav_stack_ptr(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
30 int a_Nav_stack_size(BrowserWindow *bw);
19
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
31 int a_Nav_get_uidx(BrowserWindow *bw, int i);
145bd87089e7 Implemented a new scheme of scroll-position remembering. This is one per
jcid
parents: 0
diff changeset
32 int a_Nav_get_top_uidx(BrowserWindow *bw);
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
33
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
34 void a_Nav_save_url(BrowserWindow *bw,
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
35 const DilloUrl *url, const char *filename);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
36 int a_Nav_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
260
81fc5011ea56 - Moved charset decoding into cache.
jcid
parents: 138
diff changeset
37 void a_Nav_unref_buf(const DilloUrl *Url);
1600
f50835ca545e Fix "view source" for POST URLs
Jorge Arellano Cid <jcid@dillo.org>
parents: 1577
diff changeset
38 void a_Nav_set_vsource_url(const DilloUrl *Url);
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
39
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
40 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
41 }
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
42 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
43
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
44 #endif /* __NAV_H__ */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
45
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
46