1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Gui: Fix Read / Edit / HTML not working by keyboard shortcuts / in personal wikis [#392]

This commit is contained in:
gnosygnu
2019-03-20 08:33:30 -04:00
parent ab4cbbd3c1
commit 71232e4402
27 changed files with 100 additions and 76 deletions

View File

@@ -14,6 +14,21 @@ 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.wikis.pages; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
public class Xopg_page_ {
public static final byte Tid_read = 0, Tid_edit = 1, Tid_html = 2;
public class Xopg_view_mode_ {
public static final byte
Tid__read = 0
, Tid__edit = 1
, Tid__html = 2;
public static final byte[]
Bry__read = Bry_.new_a7("read")
, Bry__edit = Bry_.new_a7("edit")
, Bry__html = Bry_.new_a7("html");
public static byte[] To_bry(byte tid) {
switch (tid) {
case Tid__read: return Bry__read;
case Tid__edit: return Bry__edit;
case Tid__html: return Bry__html;
default: throw Err_.new_unhandled_default(tid);
}
}
}