Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: src/ibusenginedesc.h

Issue 1702015: Support engine specific hotkey. (Closed) Base URL: ssh://git@chromiumos-git/ibus.git
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ibus/enginedesc.py ('k') | src/ibusenginedesc.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* vim:set et sts=4: */ 1 /* vim:set et sts=4: */
2 /* bus - The Input Bus 2 /* bus - The Input Bus
3 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com> 3 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
4 * Copyright (C) 2008-2010 Red Hat, Inc. 4 * Copyright (C) 2008-2010 Red Hat, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public 7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 /** 70 /**
71 * IBusEngineDesc: 71 * IBusEngineDesc:
72 * @name: Name of the engine. 72 * @name: Name of the engine.
73 * @longname: Long name of the input method engine. 73 * @longname: Long name of the input method engine.
74 * @description: Input method engine description. 74 * @description: Input method engine description.
75 * @language: Language (e.g. zh, jp) supported by this input method engine. 75 * @language: Language (e.g. zh, jp) supported by this input method engine.
76 * @license: License of the input method engine. 76 * @license: License of the input method engine.
77 * @author: Author of the input method engine. 77 * @author: Author of the input method engine.
78 * @icon: Icon file of this engine. 78 * @icon: Icon file of this engine.
79 * @layout: Keyboard layout 79 * @layout: Keyboard layout
80 * @hotkeys: One or more hotkeys for switching to this engine, separated by
81 * semi-colon.
80 * @rank: Preference rank among engines, the highest ranked IME will put in 82 * @rank: Preference rank among engines, the highest ranked IME will put in
81 * the front. 83 * the front.
82 * 84 *
83 * Input method engine description data. 85 * Input method engine description data.
84 */ 86 */
85 struct _IBusEngineDesc { 87 struct _IBusEngineDesc {
86 IBusSerializable parent; 88 IBusSerializable parent;
87 /* instance members */ 89 /* instance members */
88 90
89 /*< public >*/ 91 /*< public >*/
90 gchar *name; 92 gchar *name;
91 gchar *longname; 93 gchar *longname;
92 gchar *description; 94 gchar *description;
93 gchar *language; 95 gchar *language;
94 gchar *license; 96 gchar *license;
95 gchar *author; 97 gchar *author;
96 gchar *icon; 98 gchar *icon;
97 gchar *layout; 99 gchar *layout;
100 gchar *hotkeys;
98 guint rank; 101 guint rank;
99 }; 102 };
100 103
101 struct _IBusEngineDescClass { 104 struct _IBusEngineDescClass {
102 IBusSerializableClass parent; 105 IBusSerializableClass parent;
103 /* class members */ 106 /* class members */
104 }; 107 };
105 108
106 GType ibus_engine_desc_get_type (void); 109 GType ibus_engine_desc_get_type (void);
107 110
(...skipping 12 matching lines...) Expand all
120 * New a IBusEngineDesc. 123 * New a IBusEngineDesc.
121 */ 124 */
122 IBusEngineDesc *ibus_engine_desc_new (const gchar *name, 125 IBusEngineDesc *ibus_engine_desc_new (const gchar *name,
123 const gchar *longname, 126 const gchar *longname,
124 const gchar *description, 127 const gchar *description,
125 const gchar *language, 128 const gchar *language,
126 const gchar *license, 129 const gchar *license,
127 const gchar *author, 130 const gchar *author,
128 const gchar *icon, 131 const gchar *icon,
129 const gchar *layout); 132 const gchar *layout);
133
134 /**
135 * ibus_engine_desc_new2:
136 * @name: Name of the engine.
137 * @longname: Long name of the input method engine.
138 * @description: Input method engine description.
139 * @language: Language (e.g. zh, jp) supported by this input method engine.
140 * @license: License of the input method engine.
141 * @author: Author of the input method engine.
142 * @icon: Icon file of this engine.
143 * @layout: Keyboard layout
144 * @hotkeys: Hotkeys for switching to this engine.
145 * @returns: A newly allocated IBusEngineDesc.
146 *
147 * New a IBusEngineDesc.
148 */
149 IBusEngineDesc *ibus_engine_desc_new2 (const gchar *name,
150 const gchar *longname,
151 const gchar *description,
152 const gchar *language,
153 const gchar *license,
154 const gchar *author,
155 const gchar *icon,
156 const gchar *layout,
157 const gchar *hotkeys);
158
130 /** 159 /**
131 * ibus_engine_desc_new_from_xml_node: 160 * ibus_engine_desc_new_from_xml_node:
132 * @node: An XML node 161 * @node: An XML node
133 * @returns: A newly allocated IBusEngineDesc that contains description from 162 * @returns: A newly allocated IBusEngineDesc that contains description from
134 * @node. 163 * @node.
135 * 164 *
136 * New a IBusEngineDesc from an XML node. 165 * New a IBusEngineDesc from an XML node.
137 * <note><para>This function is called by ibus_component_new_from_file(), 166 * <note><para>This function is called by ibus_component_new_from_file(),
138 * so developers normally do not need to call it directly. 167 * so developers normally do not need to call it directly.
139 * </para></note> 168 * </para></note>
140 */ 169 */
141 IBusEngineDesc *ibus_engine_desc_new_from_xml_node 170 IBusEngineDesc *ibus_engine_desc_new_from_xml_node
142 (XMLNode *node); 171 (XMLNode *node);
143 /** 172 /**
144 * ibus_engine_desc_output: 173 * ibus_engine_desc_output:
145 * @info: An IBusEngineDesc 174 * @info: An IBusEngineDesc
146 * @output: XML-formatted Input method engine description. 175 * @output: XML-formatted Input method engine description.
147 * @indent: Number of indent (showed as 4 spaces). 176 * @indent: Number of indent (showed as 4 spaces).
148 * 177 *
149 * Output XML-formatted input method engine description. 178 * Output XML-formatted input method engine description.
150 * The result will be append to GString specified in @output. 179 * The result will be append to GString specified in @output.
151 */ 180 */
152 void ibus_engine_desc_output (IBusEngineDesc *info, 181 void ibus_engine_desc_output (IBusEngineDesc *info,
153 GString *output, 182 GString *output,
154 gint indent); 183 gint indent);
155 G_END_DECLS 184 G_END_DECLS
156 #endif 185 #endif
157
OLDNEW
« no previous file with comments | « ibus/enginedesc.py ('k') | src/ibusenginedesc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698