/*
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.gui.cmds; import gplx.*; import gplx.xowa.*; import gplx.xowa.gui.*;
public class Xog_cmd_ctg {
	public Xog_cmd_ctg(int tid, String key_str) {this.tid = tid; this.key_str = key_str; this.key_bry = Bry_.new_utf8_(key_str);}
	public int Tid() {return tid;} private int tid;
	public String Key_str() {return key_str;} private String key_str;
	public byte[] Key_bry() {return key_bry;} private byte[] key_bry;
	public String Name() {return name;} public Xog_cmd_ctg Name_(String v) {name = v; return this;} private String name;
	public String Info() {return info;} public Xog_cmd_ctg Info_(String v) {info = v; return this;} private String info;
}
class Xog_ctg_itm_ {
	public static final int
	  Tid__max			= 15
	, Tid_null			=  0
	, Tid_app			=  1
	, Tid_nav			=  1
	, Tid_nav_pages		=  2
	, Tid_font			=  3
	, Tid_page			=  4
	, Tid_edit			=  5
	, Tid_selection		=  6
	, Tid_browser		=  7
	, Tid_tabs			=  8
	, Tid_html			=  9
	, Tid_net			= 10
	, Tid_bookmarks		= 11
	, Tid_history		= 12
	, Tid_xtns			= 13
	, Tid_custom		= 14
	;
	public static final Xog_cmd_ctg[] Ary = new Xog_cmd_ctg[Tid__max];
	public static final Xog_cmd_ctg
	  Itm_null				= new_(Tid_null				, "xowa.null")
	, Itm_app				= new_(Tid_app				, "xowa.app")
	, Itm_nav				= new_(Tid_nav				, "xowa.nav")
	, Itm_nav_pages			= new_(Tid_nav_pages		, "xowa.nav.pages")
	, Itm_font				= new_(Tid_font				, "xowa.font")
	, Itm_page				= new_(Tid_page				, "xowa.page")
	, Itm_edit				= new_(Tid_edit				, "xowa.edit")
	, Itm_selection			= new_(Tid_selection		, "xowa.selection")
	, Itm_browser			= new_(Tid_browser			, "xowa.browser")
	, Itm_tabs				= new_(Tid_tabs				, "xowa.tabs")
	, Itm_html				= new_(Tid_html				, "xowa.html")
	, Itm_net				= new_(Tid_net				, "xowa.net")
	, Itm_bookmarks			= new_(Tid_bookmarks		, "xowa.bookmarks")
	, Itm_history			= new_(Tid_history			, "xowa.history")
	, Itm_xtns				= new_(Tid_xtns				, "xowa.xtns")
	, Itm_custom			= new_(Tid_custom			, "custom")
	;
	private static Xog_cmd_ctg new_(int tid, String code) {
		Xog_cmd_ctg rv = new Xog_cmd_ctg(tid, code);
		Ary[tid] = rv;
		return rv;
	}
}
