annotate src/uicmd.hh @ 0:6ee11bf9e3ea

Initial revision
author jcid
date Sun, 07 Oct 2007 00:36:34 +0200
parents
children 4a5942beffdf
rev   line source
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
1 #ifndef __UICMD_HH__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
2 #define __UICMD_HH__
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
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
6 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
7 extern "C" {
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
8 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
9
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
10
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
11 BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
12 void a_UIcmd_open_urlstr(void *vbw, const char *urlstr);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
13 void a_UIcmd_open_url_nw(BrowserWindow *bw, DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
14 void a_UIcmd_back(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
15 void a_UIcmd_back_popup(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
16 void a_UIcmd_forw(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
17 void a_UIcmd_forw_popup(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
18 void a_UIcmd_home(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
19 void a_UIcmd_reload(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
20 void a_UIcmd_save(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
21 void a_UIcmd_stop(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
22 void a_UIcmd_save_link(BrowserWindow *bw, const DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
23 void a_UIcmd_open_file(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
24 void a_UIcmd_open_url_dialog(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
25 void a_UIcmd_search_dialog(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
26 void a_UIcmd_book(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
27 void a_UIcmd_add_bookmark(BrowserWindow *bw, DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
28 void a_UIcmd_fullscreen_toggle(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
29 void a_UIcmd_page_popup(void *vbw, DilloUrl *url, const char *bugs_txt);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
30 void a_UIcmd_link_popup(void *vbw, DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
31 void a_UIcmd_view_page_source(DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
32 void a_UIcmd_view_page_bugs(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
33 void a_UIcmd_bugmeter_popup(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
34 int *a_UIcmd_get_history(BrowserWindow *bw, int direction);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
35 void a_UIcmd_nav_jump(BrowserWindow *bw, int offset, int new_bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
36
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
37 void a_UIcmd_close_bw(void *vbw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
38 void a_UIcmd_close_all_bw();
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
39
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
40 const char *a_UIcmd_get_save_dir();
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
41 void a_UIcmd_set_save_dir(const char *dir);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
42
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
43
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
44 // UI binding functions -------------------------------------------------------
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
45
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
46 void a_UIcmd_get_wh(BrowserWindow *bw, int *w, int *h);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
47 char *a_UIcmd_get_location_text(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
48 void a_UIcmd_set_location_text(void *vbw, const char *text);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
49 void a_UIcmd_set_page_prog(BrowserWindow *bw, size_t nbytes, int cmd);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
50 void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
51 void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
52 void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
53 void a_UIcmd_set_msg(BrowserWindow *bw, const char *format, ...);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
54 void a_UIcmd_set_buttons_sens(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
55 void a_UIcmd_fullscreen_toggle(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
56
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
57
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
58 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
59 }
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
60 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
61
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
62 #endif // __UICMD_HH__