From b59616c9ab85b0f58c0318f62e39f197932a712b Mon Sep 17 00:00:00 2001 From: Andrew Timmins Date: Mon, 26 Jul 2004 20:13:45 +0000 Subject: [PATCH] [project @ 2004-07-26 20:13:45 by atimmins] Updated to support new config options (homepage, open on startup). Bug fixes with new config pane window (sticky selected radio icon bug!). Also includes up-to-date French templates. svn path=/import/netsurf/; revision=1150 --- !NCNetSurf/Resources/en/Templates,fec | Bin 7233 -> 8475 bytes !NCNetSurf/Resources/fr/Templates,fec | Bin 7233 -> 8583 bytes !NetSurf/Resources/en/Templates,fec | Bin 7899 -> 8371 bytes !NetSurf/Resources/fr/Templates,fec | Bin 7227 -> 8569 bytes desktop/browser.c | 1 + desktop/netsurf.c | 22 +++++++++++++++++++++- riscos/dialog.c | 20 ++++++++++++++++++++ riscos/gui.c | 14 +++++++++++--- riscos/gui.h | 5 +++++ riscos/menus.c | 15 +++++++++++++++ riscos/options.h | 11 ++++++++--- riscos/window.c | 11 +++++++++++ 12 files changed, 92 insertions(+), 7 deletions(-) diff --git a/!NCNetSurf/Resources/en/Templates,fec b/!NCNetSurf/Resources/en/Templates,fec index 455e2c1011e6eaf815655878a533f92fa977c89e..c9c9a875e02f3eb945acfff0a42f744f61b200cc 100644 GIT binary patch delta 3315 zcmbW3e{5A}8ONV{inIVUT;=;nD7>F#9h-#WQ|?5CwT& z_9?UV$x{4@AQ&pgyDQE1#rZ++UT=3;YBjyUY>am5Ck%qYFq4g%v{#wETFTE`HoeCy z5Asp9Sy@n@*E_N&9^sK1v)XvzzF^cJ4AOl8cIGO(R{qgNF=_6z zg?k%T6zXc$C2VSI&80-8;&tX0HamA$U+-(`38yki%G0;*O(fjH2aECvcWS8ixkRC- zer3|e>7}(WRo_VT?fON^{QHuviG&qeQ=t@Px2tWY=Kc1wwSyQ^8bn-$G6>Uso#_HCrrbL zPh2VHqlD9O!WrQE80%woB)FH0#hSMCvQB zo;iH>YN`F|n13C1U=Bak9VcAC*H3;f^&Q}M5F?Oxb9 zlIwRjM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/!NetSurf/Resources/fr/Templates,fec b/!NetSurf/Resources/fr/Templates,fec index 6f97d68939fb08af225b772a40e3cc26563fa4bf..f522f27fbab589aca170b69eaddbe473b17193a6 100644 GIT binary patch delta 3665 zcmbW4YitzP702(|27{e(@B^_hQk&v761 z$*b5+;2%%LoWR|@T5il&1N%|ONfzzp6~_F9M$}F^I%pT`%vKunc%l8Q@f;`N#nXNr z`z~Xi2r4*zhwXl^P~~6HC4qf3>ZanULEk@LWz2y>LuSD4%M`2xbGI?oK|lk}Xe!}E z2UKCG+L+Fuos>P=Yp1fFKenIM7*jtF#GJ%{?ONuywZ^;{G}P~;V)3Adk$NVA*`SIk z*n9hMH%FR`d8F)P_O$C9u`Vn(W^2%X;O`CL-yCkfIf9QsZ`zuk2~~u0=POg`fY->nh&ssHZ2>ym~8k8 z@H(;>2LU;>GM2z0TuHpzW8$)lzcG)mfPF6DhWZ|S5gHe>l!@C2+k`M=vjY1e2BZOx zqid(K&EYoSPGnKw&=NQt@EtwsTD*G@ecJ^_0w z;QQ%#l6ude=g^z>5}{Uv3GheQVSC*fHx}99AA*b<_2N#->W+@sR@WC>9@yOBJYwyL zruyxK)wN#l{e_q9t}{Ap=N6Q;X6>YHbvM({Fb!?)@P=fty4G4<7l-X=#_D#X198WR z#aar5lvSwg-h%WD%_Z&OTY$as;r?5g={D;Rz!XDi6aLS8&3436xWg1~4%-S(#_TT6kwD#Z;>K;S1 zSsJ{AZU`K{0~|-R3H6+TeUmBI5>%I(@Q+}p5VDFH$9@X?R)QDT;X4g`9U;$}L)d4q zkD;IFL)tG5AruUqCB>Kf@^IH9`g8QC0xr3g8<2 zKS(ivG3@GR60HC}gxx@>nl%D)Pyj^-Wrr$65w;^+;0j;}tpFNf6#b*F0M=1HO?`0% za6f!KQb*l4uy4SA2|a*rVhJ|DHX;`N`yHq?b)eIv4%&ef^CWtozr)gqmj(RbJgxxd z;0oYVa0PG}?jpqiF2fZ-16%=QU?Ye{|Gv`)?13vdoWfBJoB%$7(6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+oiTgL1S=@QRMdUdPU1{A#pLFbD30 zudm=8eT(Oy>;61o3y2C{fP#ak56~a<_4VE!%VuJZWv8NXGumZ3+q0Se(AH<%4}yzl zcg2RSftX`v-7n_1EWI{phPF51GK5Pw%Bx<>dr`kZ|E90EK#KqyP}J(I+00&Qq(0k?rDzZO2q_;ikrR-hB{DZpuy6$lzYmp}t7U@bAd0RDypDDl zXae_a%4{@M+=ZEY_NQAFDVv+NlUAP@O~*3P_|N^ZtP^rqMpjk&^q`fplz6~>Gg4}V z+#e%R_wz_3xXbMIUc%*MQ30;7f3N?4qAz*-*PW;-&oz=$DcFQpGx<(o)B0WH{V*S^ zCz8}fPx%`7cJzd=cfhR&#nU_muZQv$cHSpauZOi4aBa#4a0I@U@n>}WO(`2Tq*q38 z$RlRqzRHj#UeWmrx&ND; zgkEEX`|XJ?J3DN~vZGOt9cpQ52|d@={Afqlfa!!bnnV7zICP&r7)$Z*=6)UcsHu%A z|H1SDQq)ztq$yFI^O`cYZPG322pCcK+gX;;={{DvnDzy)-J|W~yQR}5Q0WR4#=Ley z+sO+Rs|`cklFI!?&^=VS8Tp$^b^6t7!=XHUIIMhk_`~jXB(Wd7Lt)36y!aHBDmXTC zsV-78-A?*+YSUV{eYCrFXUeghq#1v_a2>e$@Guh%S6K~uln*e4?y8lzo(6ivYu(#b m8%bkb^^)*cAr`)s9J-GNq * Copyright 2004 James Bursa + * Copyright 2004 Andrew Timmins */ /** \file diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 507840454..b38f198a1 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -4,6 +4,7 @@ * http://www.opensource.org/licenses/gpl-license * Copyright 2003 Phil Mellor * Copyright 2004 James Bursa + * Copyright 2004 Andrew Timmins */ #include @@ -13,7 +14,11 @@ #include "netsurf/utils/config.h" #include "netsurf/content/fetch.h" #include "netsurf/content/fetchcache.h" -#include "netsurf/desktop/options.h" +#ifdef riscos + #include "netsurf/riscos/options.h" +#else + #include "netsurf/desktop/options.h" +#endif #include "netsurf/desktop/netsurf.h" #include "netsurf/desktop/browser.h" #include "netsurf/desktop/gui.h" @@ -38,12 +43,27 @@ static void lib_init(void); int main(int argc, char** argv) { + char url[80]; + int length; + netsurf_init(argc, argv); #ifdef WITH_KIOSK_BROWSING browser_window_create("file://Docs/Intro_En", NULL); #endif + if (option_open_browser_at_startup == true){ + if (!(option_homepage_url == NULL)){ + browser_window_create(option_homepage_url, NULL); + } + else { + if ((length = snprintf(url, sizeof(url), + "file://Docs/intro_%s", + option_language)) >= 0 && length < (int)sizeof(url)) + browser_window_create(url, NULL); + } + } + while (!netsurf_quit) netsurf_poll(); diff --git a/riscos/dialog.c b/riscos/dialog.c index 2449fb011..0f48448c4 100644 --- a/riscos/dialog.c +++ b/riscos/dialog.c @@ -537,6 +537,16 @@ void ro_gui_dialog_open_config(void) wimp_CHILD_LINKS_PARENT_VISIBLE_TOP_OR_RIGHT << wimp_CHILD_TS_EDGE_SHIFT)) { LOG(("Unable to open config proxy pane window")); } + + /* Always reset the selected panes to the default option */ + ro_gui_set_icon_selected_state(dialog_config, ICON_CONFIG_PROXY, + true); + ro_gui_set_icon_selected_state(dialog_config, ICON_CONFIG_BROWSER, + false); + ro_gui_set_icon_selected_state(dialog_config, ICON_CONFIG_THEME, + false); + ro_gui_set_icon_selected_state(dialog_config, ICON_CONFIG_MISC, + false); } /** @@ -952,6 +962,12 @@ void set_browser_choices(void) { ro_gui_set_icon_string(dialog_config_br, ICON_CONFIG_BR_ALANG, language_name(option_accept_language ? option_accept_language : "en")); + ro_gui_set_icon_string(dialog_config_br, ICON_CONFIG_BR_HOMEPAGE_URL, + option_homepage_url); + + ro_gui_set_icon_selected_state(dialog_config_br, ICON_CONFIG_BR_OPENBROWSER, + option_open_browser_at_startup); + } @@ -962,6 +978,10 @@ void set_browser_choices(void) { void get_browser_choices(void) { option_font_size = font_size; option_font_min_size = font_min_size; + option_homepage_url = ro_gui_get_icon_string(dialog_config_br, + ICON_CONFIG_BR_HOMEPAGE_URL); + option_open_browser_at_startup = ro_gui_get_icon_selected_state(dialog_config_br, + ICON_CONFIG_BR_OPENBROWSER); } diff --git a/riscos/gui.c b/riscos/gui.c index 90e73096a..3ee556698 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -807,10 +807,18 @@ void ro_gui_icon_bar_click(wimp_pointer *pointer) char url[80]; int length; - if ((length = snprintf(url, sizeof(url), + /* Open the homepage based on our the user options. */ + if (!(option_homepage_url == NULL)){ + browser_window_create(option_homepage_url, NULL); + } + else { + if ((length = snprintf(url, sizeof(url), "file://Docs/intro_%s", option_language)) >= 0 && length < (int)sizeof(url)) - browser_window_create(url, NULL); + browser_window_create(url, NULL); + } + + } else if (pointer->buttons == wimp_CLICK_ADJUST) { /* I've no idea what the correct way to scan for keys is when in the desktop, so I've used os_byte to scan directly. This may cause some @@ -995,7 +1003,7 @@ void ro_msg_dataload(wimp_message *message) url = ro_gui_url_file_parse(message->data.data_xfer.file_name); else if (file_type == 0xfaf || file_type == 0xf78 || - file_type == 0xf83 || + file_type == 0xf83 || file_type == 0x695 || file_type == 0xaff || file_type == 0xb60 || diff --git a/riscos/gui.h b/riscos/gui.h index 152da4826..9d23ef1e5 100644 --- a/riscos/gui.h +++ b/riscos/gui.h @@ -284,6 +284,11 @@ void ro_gui_debugwin_redraw(wimp_draw *redraw); #define ICON_CONFIG_BR_LANG_PICK 12 #define ICON_CONFIG_BR_ALANG 15 #define ICON_CONFIG_BR_ALANG_PICK 16 +#define ICON_CONFIG_BR_HOMEPAGE_URL 20 +#define ICON_CONFIG_BR_HOMEPAGE_CURRENT 21 +#define ICON_CONFIG_BR_HOMEPAGE_DEFAULT 22 +#define ICON_CONFIG_BR_HOMEPAGE_BLANK 23 +#define ICON_CONFIG_BR_OPENBROWSER 24 #define ICON_CONFIG_PROX_OK 0 #define ICON_CONFIG_PROX_CANCEL 1 diff --git a/riscos/menus.c b/riscos/menus.c index 651962416..65577c5d4 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -571,6 +571,8 @@ void ro_gui_popup_menu(wimp_menu *menu, wimp_w w, wimp_i i) void ro_gui_menu_selection(wimp_selection *selection) { + char url[80]; + int length; wimp_pointer pointer; wimp_window_state state; os_error *error; @@ -720,6 +722,19 @@ void ro_gui_menu_selection(wimp_selection *selection) case MENU_NAVIGATE: switch (selection->items[1]) { case 0: /* Home */ + + /* Open the homepage based on our the user options. */ + + if (!(option_homepage_url == NULL)){ + browser_window_create(option_homepage_url, NULL); + } + else { + if ((length = snprintf(url, sizeof(url), + "file://Docs/intro_%s", + option_language)) >= 0 && length < (int)sizeof(url)) + browser_window_create(url, NULL); + } + break; case 1: /* Back */ history_back(current_gui->bw, diff --git a/riscos/options.h b/riscos/options.h index 8e6f1d4fa..6b6d1a60f 100644 --- a/riscos/options.h +++ b/riscos/options.h @@ -45,6 +45,8 @@ extern bool option_background_images; extern bool option_background_blending; extern bool option_buffer_animations; extern bool option_buffer_everything; +extern char *option_homepage_url; +extern bool option_open_browser_at_startup; #define EXTRA_OPTION_DEFINE \ bool option_use_mouse_gestures = false;\ @@ -75,7 +77,9 @@ int option_minimum_gif_delay = 10; \ bool option_background_images = true; \ bool option_background_blending = true; \ bool option_buffer_animations = true; \ -bool option_buffer_everything = false; +bool option_buffer_everything = false; \ +char *option_homepage_url =0;\ +bool option_open_browser_at_startup = false; #define EXTRA_OPTION_TABLE \ { "use_mouse_gestures", OPTION_BOOL, &option_use_mouse_gestures },\ @@ -106,6 +110,7 @@ bool option_buffer_everything = false; { "background_images", OPTION_BOOL, &option_background_images }, \ { "background_blending", OPTION_BOOL, &option_background_blending }, \ { "buffer_animations", OPTION_BOOL, &option_buffer_animations }, \ -{ "buffer_everything", OPTION_BOOL, &option_buffer_animations } - +{ "buffer_everything", OPTION_BOOL, &option_buffer_animations }, \ +{ "homepage_url", OPTION_STRING, &option_homepage_url }, \ +{ "open_browser_at_startup",OPTION_BOOL, &option_open_browser_at_startup } #endif diff --git a/riscos/window.c b/riscos/window.c index 0c451934e..0aeaa7c8a 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1258,10 +1258,21 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar) ro_gui_open_help_page("docs"); return true; + case wimp_KEY_F5: /* Refresh. */ + browser_window_reload(g->bw, false); + return true; + case wimp_KEY_F6: /* Help. */ ro_gui_hotlist_show(); return true; + case wimp_KEY_F7: /* Toggle fullscreen browsing. */ + + + + return true; + + case wimp_KEY_F8: /* View source. */ ro_gui_view_source(content); return true;