mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.4.4.1'
This commit is contained in:
@@ -25,6 +25,7 @@ import gplx.xowa.apps.gfs.*;
|
||||
import gplx.xowa.htmls.hrefs.*; import gplx.xowa.htmls.core.htmls.utls.*; import gplx.xowa.htmls.bridges.*;
|
||||
import gplx.xowa.users.*;
|
||||
import gplx.xowa.wikis.*; import gplx.xowa.wikis.xwikis.*; import gplx.xowa.wikis.xwikis.parsers.*; import gplx.xowa.wikis.xwikis.sitelinks.*;
|
||||
import gplx.xowa.guis.cbks.*;
|
||||
import gplx.xowa.langs.*;
|
||||
import gplx.xowa.bldrs.wms.*;
|
||||
import gplx.langs.htmls.encoders.*;
|
||||
@@ -74,6 +75,7 @@ public class Xoav_app implements Xoa_app, GfoInvkAble {
|
||||
public Xoax_addon_mgr Addon_mgr() {return addon_mgr;} private final Xoax_addon_mgr addon_mgr = new Xoax_addon_mgr();
|
||||
public Xob_bldr Bldr() {return bldr;} private final Xob_bldr bldr;
|
||||
public Xoa_special_regy Special_regy() {return special_regy;} private final Xoa_special_regy special_regy = new Xoa_special_regy();
|
||||
public Xog_cbk_mgr Gui__cbk_mgr() {return gui__cbk_mgr;} private final Xog_cbk_mgr gui__cbk_mgr = new Xog_cbk_mgr();
|
||||
|
||||
public Xowmf_mgr Wmf_mgr() {return wmf_mgr;} private final Xowmf_mgr wmf_mgr = new Xowmf_mgr();
|
||||
public Gfo_usr_dlg Usr_dlg() {return usr_dlg;} public void Usr_dlg_(Gfo_usr_dlg v) {usr_dlg = v; Xoa_app_.Usr_dlg_(usr_dlg);} private Gfo_usr_dlg usr_dlg = Gfo_usr_dlg_.Noop;
|
||||
|
||||
@@ -18,14 +18,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package gplx.xowa.apps.apis.xowa.bldrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.apps.*; import gplx.xowa.apps.apis.*; import gplx.xowa.apps.apis.xowa.*;
|
||||
import gplx.xowa.apps.apis.xowa.bldrs.filters.*;
|
||||
import gplx.xowa.apps.apis.xowa.bldrs.imports.*;
|
||||
import gplx.xowa.apps.apis.xowa.bldrs.runners.*;
|
||||
public class Xoapi_bldr_wiki implements GfoInvkAble {
|
||||
public void Ctor_by_app(Xoa_app app) {filter.Ctor_by_app(app);}
|
||||
public Xoapi_filter Filter() {return filter;} private final Xoapi_filter filter = new Xoapi_filter();
|
||||
public Xoapi_import Import() {return import_api;} private final Xoapi_import import_api = new Xoapi_import();
|
||||
public void Ctor_by_app(Xoa_app app) {
|
||||
filter.Ctor_by_app(app);
|
||||
runner.Ctor_by_app(app);
|
||||
}
|
||||
public Xoapi_filter Filter() {return filter;} private final Xoapi_filter filter = new Xoapi_filter();
|
||||
public Xoapi_import Import() {return import_api;} private final Xoapi_import import_api = new Xoapi_import();
|
||||
public Xoapi_runner Runner() {return runner;} private final Xoapi_runner runner = new Xoapi_runner();
|
||||
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
|
||||
if (ctx.Match(k, Invk_filter)) return filter;
|
||||
else if (ctx.Match(k, Invk_import)) return import_api;
|
||||
else if (ctx.Match(k, Invk_runner)) return runner;
|
||||
else return GfoInvkAble_.Rv_unhandled;
|
||||
}
|
||||
private static final String Invk_filter = "filter", Invk_import = "import";
|
||||
private static final String Invk_filter = "filter", Invk_import = "import", Invk_runner = "runner";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
XOWA: the XOWA Offline Wiki Application
|
||||
Copyright (C) 2012 gnosygnu@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.apps.apis.xowa.bldrs.runners; import gplx.*; import gplx.xowa.*; import gplx.xowa.apps.*; import gplx.xowa.apps.apis.*; import gplx.xowa.apps.apis.xowa.*; import gplx.xowa.apps.apis.xowa.bldrs.*;
|
||||
public class Xoapi_runner implements GfoInvkAble {
|
||||
private Xoa_app app;
|
||||
public void Ctor_by_app(Xoa_app app) {this.app = app;}
|
||||
private void Exec(GfoMsg msg) {
|
||||
// int len = msg.Args_count();
|
||||
// String cmd = (String)msg.Args_getAt(0).Val();
|
||||
// Keyval[] args = new Keyval[len - 1];
|
||||
// for (int i = 1; i < len; ++i) {
|
||||
// String arg = (String)msg.Args_getAt(i).Val();
|
||||
// int eq_pos = String_.FindFwd(arg, "=");
|
||||
// String key = String_.Mid(arg, 0, eq_pos);
|
||||
// String val = String_.Mid(arg, eq_pos + 1);
|
||||
// args[i - 1] = Keyval_.new_(key, val);
|
||||
// }
|
||||
// gplx.core.ios.zips.Io_zip_decompress_task task = new gplx.core.ios.zips.Io_zip_decompress_task();
|
||||
// task.Init(true, Gfo
|
||||
app.Gui__cbk_mgr().Send_prog("test", "key_0", "val_0");
|
||||
}
|
||||
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
|
||||
if (ctx.Match(k, Invk_exec)) Exec(m);
|
||||
else return GfoInvkAble_.Rv_unhandled;
|
||||
return this;
|
||||
}
|
||||
private static final String Invk_exec = "exec";
|
||||
}
|
||||
class Xodl_prog_ui implements gplx.core.progs.Gfo_prog_ui {
|
||||
public void Prog__update_val(long cur, long max) {}
|
||||
public void Prog__end() {}
|
||||
}
|
||||
Reference in New Issue
Block a user