1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-29 23:10:52 +00:00

Full-text search: Change popups to pub-sub system

This commit is contained in:
gnosygnu 2017-03-18 13:22:46 -04:00
parent a1d2e69211
commit 67548465fc
3 changed files with 33 additions and 1 deletions

View File

@ -36,5 +36,6 @@ public class Xoh_head_itm_ {
, Key__bmk = Bry_.new_a7("bmk") , Key__bmk = Bry_.new_a7("bmk")
, Key__server = Bry_.new_a7("server") , Key__server = Bry_.new_a7("server")
, Key__tabber = Bry_.new_a7("tabber") , Key__tabber = Bry_.new_a7("tabber")
, Key__xo_elem = Bry_.new_a7("xo.elem")
; ;
} }

View File

@ -0,0 +1,29 @@
/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012-2017 gnosygnu@gmail.com
XOWA is licensed under the terms of the General Public License (GPL) Version 3,
or alternatively under the terms of the Apache License Version 2.0.
You may use XOWA according to either of these licenses as is most appropriate
for your project on a case-by-case basis.
The terms of each license can be found in the source code repository:
GPLv3 License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-GPLv3.txt
Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
*/
package gplx.xowa.htmls.heads; import gplx.*; import gplx.xowa.*; import gplx.xowa.htmls.*;
import gplx.xowa.guis.*;
public class Xoh_head_itm__xo_elem extends Xoh_head_itm__base {
@Override public byte[] Key() {return Xoh_head_itm_.Key__xo_elem;}
@Override public int Flags() {return Flag__js_include;}
@Override public void Write_js_include(Xoae_app app, Xowe_wiki wiki, Xoae_page page, Xoh_head_wtr wtr) {
if (Url__xo_elem_js == null) {
Io_url dir = app.Fsys_mgr().Bin_any_dir().GenSubDir_nest("xowa", "html", "res", "src", "xowa", "xoelem");
Url__xo_elem_js = dir.GenSubFil("xo.elem.js").To_http_file_bry();
}
wtr.Write_js_include(Url__xo_elem_js);
}
private static byte[] Url__xo_elem_js;
}

View File

@ -29,13 +29,14 @@ public class Xoh_head_mgr implements gplx.core.brys.Bfr_arg {
, list__js_window_onload = new Xoh_head_wkr() , list__js_window_onload = new Xoh_head_wkr()
; ;
public Xoh_head_mgr() { public Xoh_head_mgr() {
Itms_add(itm__css, itm__globals, itm__server, itm__popups, itm__toc, itm__collapsible, itm__navframe, itm__gallery, itm__gallery_styles Itms_add(itm__css, itm__globals, itm__xo_elem, itm__server, itm__popups, itm__toc, itm__collapsible, itm__navframe, itm__gallery, itm__gallery_styles
, itm__mathjax, itm__graph, itm__hiero, itm__top_icon, itm__title_rewrite, itm__search_suggest, itm__timeline , itm__mathjax, itm__graph, itm__hiero, itm__top_icon, itm__title_rewrite, itm__search_suggest, itm__timeline
, itm__dbui, itm__pgbnr, itm__tabber , itm__dbui, itm__pgbnr, itm__tabber
); );
} }
public Xoh_head_itm__css Itm__css() {return itm__css;} private final Xoh_head_itm__css itm__css = new Xoh_head_itm__css(); public Xoh_head_itm__css Itm__css() {return itm__css;} private final Xoh_head_itm__css itm__css = new Xoh_head_itm__css();
public Xoh_head_itm__globals Itm__globals() {return itm__globals;} private final Xoh_head_itm__globals itm__globals = new Xoh_head_itm__globals(); public Xoh_head_itm__globals Itm__globals() {return itm__globals;} private final Xoh_head_itm__globals itm__globals = new Xoh_head_itm__globals();
public Xoh_head_itm__xo_elem Itm__xo_elem() {return itm__xo_elem;} private final Xoh_head_itm__xo_elem itm__xo_elem = new Xoh_head_itm__xo_elem();
public Xoh_head_itm__server Itm__server() {return itm__server;} private final Xoh_head_itm__server itm__server = new Xoh_head_itm__server(); public Xoh_head_itm__server Itm__server() {return itm__server;} private final Xoh_head_itm__server itm__server = new Xoh_head_itm__server();
public Xoh_head_itm__popups Itm__popups() {return itm__popups;} private final Xoh_head_itm__popups itm__popups = new Xoh_head_itm__popups(); public Xoh_head_itm__popups Itm__popups() {return itm__popups;} private final Xoh_head_itm__popups itm__popups = new Xoh_head_itm__popups();
public Xoh_head_itm__toc Itm__toc() {return itm__toc;} private final Xoh_head_itm__toc itm__toc = new Xoh_head_itm__toc(); public Xoh_head_itm__toc Itm__toc() {return itm__toc;} private final Xoh_head_itm__toc itm__toc = new Xoh_head_itm__toc();
@ -64,6 +65,7 @@ public class Xoh_head_mgr implements gplx.core.brys.Bfr_arg {
if (app.Addon_mgr().Itms__search__htmlbar().Enabled()) itm__search_suggest.Enabled_y_(); if (app.Addon_mgr().Itms__search__htmlbar().Enabled()) itm__search_suggest.Enabled_y_();
itm__css.Enabled_y_(); itm__css.Enabled_y_();
itm__globals.Enabled_y_(); // for now, always mark this and rest as exists; DATE:2014-06-09 itm__globals.Enabled_y_(); // for now, always mark this and rest as exists; DATE:2014-06-09
itm__xo_elem.Enabled_y_();
itm__collapsible.Enabled_y_(); itm__collapsible.Enabled_y_();
itm__navframe.Enabled_y_(); itm__navframe.Enabled_y_();
boolean popups_enabled boolean popups_enabled