Upload initial version
[platform/core/uifw/libscl-ui-nui.git] / xml2binary / include / _auto_metadata.h
1 /*
2  * Copyright (c) 2012 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 /*This file is generated by auto_codes.py.*/
19
20 #ifndef __AUTO_METADATA_H__
21 #define __AUTO_METADATA_H__
22
23 #include <memory.h>
24 typedef struct _Input_mode_configure_width {
25         int name;
26         int layout_portrait;
27         int layout_landscape;
28         int use_virtual_window;
29         int use_dim_window;
30         int timeout;
31 }Input_mode_configure_width;
32
33 typedef struct _Layout_width {
34         int name;
35         int display_mode;
36         int style;
37         int width;
38         int height;
39         int use_sw_button;
40         int use_magnifier_window;
41         int extract_background;
42         int key_width;
43         int key_height;
44         int key_spacing;
45         int row_spacing;
46         int use_sw_background;
47         int bg_color;
48         int bg_line_width;
49         int bg_line_color;
50         int add_grab_left;
51         int add_grab_right;
52         int add_grab_top;
53         int add_grab_bottom;
54         int image_path;
55         int key_background_image;
56         int sound_style;
57         int vibe_style;
58         int label_type;
59         int modifier_decorator;
60 }Layout_width;
61
62 typedef struct _Key_coordinate_record_width {
63         int x;
64         int y;
65         int width;
66         int height;
67         int add_hit_left;
68         int add_hit_right;
69         int add_hit_top;
70         int add_hit_bottom;
71         int popup_relative_x;
72         int popup_relative_y;
73         int extract_offset_x;
74         int extract_offset_y;
75         int sub_layout;
76         int magnifier_offset_x;
77         int magnifier_offset_y;
78         int custom_id;
79         int button_type;
80         int key_type;
81         int popup_type;
82         int use_magnifier;
83         int use_long_key_magnifier;
84         int popup_input_mode;
85         int sound_style;
86         int vibe_style;
87         int is_side_button;
88         int label_count;
89         int label;
90         int label_type;
91         int image_label_path;
92         int image_label_type;
93         int bg_image_path;
94         int key_value_count;
95         int key_value;
96         int key_event;
97         int long_key_type;
98         int long_key_value;
99         int long_key_event;
100         int use_repeat_key;
101         int autopopup_key_labels;
102         int autopopup_key_values;
103         int autopopup_key_events;
104         int dont_close_popup;
105         int extra_option;
106         int multitouch_type;
107         int modifier_decorator;
108         int magnifier_label;
109         int hint_string;
110 }Key_coordinate_record_width;
111
112 typedef struct _Label_properties_record_width {
113         int label_type;
114         int font_name;
115         int font_size;
116         int font_color;
117         int alignment;
118         int padding_x;
119         int padding_y;
120         int inner_width;
121         int inner_height;
122         int shadow_distance;
123         int shadow_direction;
124         int shadow_color;
125 }Label_properties_record_width;
126
127 typedef struct _Default_configure_width {
128         int display_mode;
129         int input_mode;
130         int image_file_base_path;
131         int target_screen_width;
132         int target_screen_height;
133         int auto_detect_landscape;
134         int use_magnifier_window;
135         int use_auto_popup;
136         int use_zoom_window;
137         int on_error_noti_send;
138         int use_word_deletion;
139         int sw_button_style;
140         int touch_offset_level;
141         int touch_offset;
142         int default_sub_layout;
143         int use_actual_dim_window;
144         int dim_color;
145 }Default_configure_width;
146
147 typedef struct _Magnifier_configure_width {
148         int style;
149         int width;
150         int height;
151         int label_area_rect;
152         int bg_image_path;
153         int bg_shift_image_path;
154         int bg_shift_lock_image_path;
155         int bg_long_key_image_path;
156         int use_actual_window;
157         int label_type;
158         int padding_x;
159         int padding_y;
160         int show_shift_label;
161 }Magnifier_configure_width;
162
163 typedef struct _Autopopup_configure_width {
164         int bg_image_path;
165         int bg_color;
166         int bg_line_width;
167         int bg_line_color;
168         int bg_padding;
169         int button_image_path;
170         int sw_button_style;
171         int button_width;
172         int button_height;
173         int button_spacing;
174         int label_type;
175         int decoration_image_path;
176         int decoration_size;
177         int max_column;
178         int add_grab_left;
179         int add_grab_right;
180         int add_grab_top;
181         int add_grab_bottom;
182 }Autopopup_configure_width;
183
184 typedef struct _Modifier_decoration_width {
185         int extract_background;
186         int name;
187         int bg_image_path;
188 }Modifier_decoration_width;
189
190 typedef struct _Nine_patch_width {
191         int image_path;
192         int left;
193         int right;
194         int top;
195         int bottom;
196 }Nine_patch_width;
197
198 template <class T>
199 void set_input_mode_configure_width(T& md_helper,
200         Input_mode_configure_width & record_width) {
201         md_helper.set_current_metadata_record("input_mode_configure");
202         memset(&record_width, 0x00, sizeof(Input_mode_configure_width));
203
204         record_width.name = md_helper.get_width("name");
205         record_width.layout_portrait = md_helper.get_width("layout_portrait");
206         record_width.layout_landscape = md_helper.get_width("layout_landscape");
207         record_width.use_virtual_window = md_helper.get_width("use_virtual_window");
208         record_width.use_dim_window = md_helper.get_width("use_dim_window");
209         record_width.timeout = md_helper.get_width("timeout");
210 }
211
212 template <class T>
213 void set_layout_width(T& md_helper,
214         Layout_width & record_width) {
215         md_helper.set_current_metadata_record("layout");
216         memset(&record_width, 0x00, sizeof(Layout_width));
217
218         record_width.name = md_helper.get_width("name");
219         record_width.display_mode = md_helper.get_width("display_mode");
220         record_width.style = md_helper.get_width("style");
221         record_width.width = md_helper.get_width("width");
222         record_width.height = md_helper.get_width("height");
223         record_width.use_sw_button = md_helper.get_width("use_sw_button");
224         record_width.use_magnifier_window = md_helper.get_width("use_magnifier_window");
225         record_width.extract_background = md_helper.get_width("extract_background");
226         record_width.key_width = md_helper.get_width("key_width");
227         record_width.key_height = md_helper.get_width("key_height");
228         record_width.key_spacing = md_helper.get_width("key_spacing");
229         record_width.row_spacing = md_helper.get_width("row_spacing");
230         record_width.use_sw_background = md_helper.get_width("use_sw_background");
231         record_width.bg_color = md_helper.get_width("bg_color");
232         record_width.bg_line_width = md_helper.get_width("bg_line_width");
233         record_width.bg_line_color = md_helper.get_width("bg_line_color");
234         record_width.add_grab_left = md_helper.get_width("add_grab_left");
235         record_width.add_grab_right = md_helper.get_width("add_grab_right");
236         record_width.add_grab_top = md_helper.get_width("add_grab_top");
237         record_width.add_grab_bottom = md_helper.get_width("add_grab_bottom");
238         record_width.image_path = md_helper.get_width("image_path");
239         record_width.key_background_image = md_helper.get_width("key_background_image");
240         record_width.sound_style = md_helper.get_width("sound_style");
241         record_width.vibe_style = md_helper.get_width("vibe_style");
242         record_width.label_type = md_helper.get_width("label_type");
243         record_width.modifier_decorator = md_helper.get_width("modifier_decorator");
244 }
245
246 template <class T>
247 void set_key_coordinate_record_width(T& md_helper,
248         Key_coordinate_record_width & record_width) {
249         md_helper.set_current_metadata_record("key_coordinate_record");
250         memset(&record_width, 0x00, sizeof(Key_coordinate_record_width));
251
252         record_width.x = md_helper.get_width("x");
253         record_width.y = md_helper.get_width("y");
254         record_width.width = md_helper.get_width("width");
255         record_width.height = md_helper.get_width("height");
256         record_width.add_hit_left = md_helper.get_width("add_hit_left");
257         record_width.add_hit_right = md_helper.get_width("add_hit_right");
258         record_width.add_hit_top = md_helper.get_width("add_hit_top");
259         record_width.add_hit_bottom = md_helper.get_width("add_hit_bottom");
260         record_width.popup_relative_x = md_helper.get_width("popup_relative_x");
261         record_width.popup_relative_y = md_helper.get_width("popup_relative_y");
262         record_width.extract_offset_x = md_helper.get_width("extract_offset_x");
263         record_width.extract_offset_y = md_helper.get_width("extract_offset_y");
264         record_width.sub_layout = md_helper.get_width("sub_layout");
265         record_width.magnifier_offset_x = md_helper.get_width("magnifier_offset_x");
266         record_width.magnifier_offset_y = md_helper.get_width("magnifier_offset_y");
267         record_width.custom_id = md_helper.get_width("custom_id");
268         record_width.button_type = md_helper.get_width("button_type");
269         record_width.key_type = md_helper.get_width("key_type");
270         record_width.popup_type = md_helper.get_width("popup_type");
271         record_width.use_magnifier = md_helper.get_width("use_magnifier");
272         record_width.use_long_key_magnifier = md_helper.get_width("use_long_key_magnifier");
273         record_width.popup_input_mode = md_helper.get_width("popup_input_mode");
274         record_width.sound_style = md_helper.get_width("sound_style");
275         record_width.vibe_style = md_helper.get_width("vibe_style");
276         record_width.is_side_button = md_helper.get_width("is_side_button");
277         record_width.label_count = md_helper.get_width("label_count");
278         record_width.label = md_helper.get_width("label");
279         record_width.label_type = md_helper.get_width("label_type");
280         record_width.image_label_path = md_helper.get_width("image_label_path");
281         record_width.image_label_type = md_helper.get_width("image_label_type");
282         record_width.bg_image_path = md_helper.get_width("bg_image_path");
283         record_width.key_value_count = md_helper.get_width("key_value_count");
284         record_width.key_value = md_helper.get_width("key_value");
285         record_width.key_event = md_helper.get_width("key_event");
286         record_width.long_key_type = md_helper.get_width("long_key_type");
287         record_width.long_key_value = md_helper.get_width("long_key_value");
288         record_width.long_key_event = md_helper.get_width("long_key_event");
289         record_width.use_repeat_key = md_helper.get_width("use_repeat_key");
290         record_width.autopopup_key_labels = md_helper.get_width("autopopup_key_labels");
291         record_width.autopopup_key_values = md_helper.get_width("autopopup_key_values");
292         record_width.autopopup_key_events = md_helper.get_width("autopopup_key_events");
293         record_width.dont_close_popup = md_helper.get_width("dont_close_popup");
294         record_width.extra_option = md_helper.get_width("extra_option");
295         record_width.multitouch_type = md_helper.get_width("multitouch_type");
296         record_width.modifier_decorator = md_helper.get_width("modifier_decorator");
297         record_width.magnifier_label = md_helper.get_width("magnifier_label");
298         record_width.hint_string = md_helper.get_width("hint_string");
299 }
300
301 template <class T>
302 void set_label_properties_record_width(T& md_helper,
303         Label_properties_record_width & record_width) {
304         md_helper.set_current_metadata_record("label_properties_record");
305         memset(&record_width, 0x00, sizeof(Label_properties_record_width));
306
307         record_width.label_type = md_helper.get_width("label_type");
308         record_width.font_name = md_helper.get_width("font_name");
309         record_width.font_size = md_helper.get_width("font_size");
310         record_width.font_color = md_helper.get_width("font_color");
311         record_width.alignment = md_helper.get_width("alignment");
312         record_width.padding_x = md_helper.get_width("padding_x");
313         record_width.padding_y = md_helper.get_width("padding_y");
314         record_width.inner_width = md_helper.get_width("inner_width");
315         record_width.inner_height = md_helper.get_width("inner_height");
316         record_width.shadow_distance = md_helper.get_width("shadow_distance");
317         record_width.shadow_direction = md_helper.get_width("shadow_direction");
318         record_width.shadow_color = md_helper.get_width("shadow_color");
319 }
320
321 template <class T>
322 void set_default_configure_width(T& md_helper,
323         Default_configure_width & record_width) {
324         md_helper.set_current_metadata_record("default_configure");
325         memset(&record_width, 0x00, sizeof(Default_configure_width));
326
327         record_width.display_mode = md_helper.get_width("display_mode");
328         record_width.input_mode = md_helper.get_width("input_mode");
329         record_width.image_file_base_path = md_helper.get_width("image_file_base_path");
330         record_width.target_screen_width = md_helper.get_width("target_screen_width");
331         record_width.target_screen_height = md_helper.get_width("target_screen_height");
332         record_width.auto_detect_landscape = md_helper.get_width("auto_detect_landscape");
333         record_width.use_magnifier_window = md_helper.get_width("use_magnifier_window");
334         record_width.use_auto_popup = md_helper.get_width("use_auto_popup");
335         record_width.use_zoom_window = md_helper.get_width("use_zoom_window");
336         record_width.on_error_noti_send = md_helper.get_width("on_error_noti_send");
337         record_width.use_word_deletion = md_helper.get_width("use_word_deletion");
338         record_width.sw_button_style = md_helper.get_width("sw_button_style");
339         record_width.touch_offset_level = md_helper.get_width("touch_offset_level");
340         record_width.touch_offset = md_helper.get_width("touch_offset");
341         record_width.default_sub_layout = md_helper.get_width("default_sub_layout");
342         record_width.use_actual_dim_window = md_helper.get_width("use_actual_dim_window");
343         record_width.dim_color = md_helper.get_width("dim_color");
344 }
345
346 template <class T>
347 void set_magnifier_configure_width(T& md_helper,
348         Magnifier_configure_width & record_width) {
349         md_helper.set_current_metadata_record("magnifier_configure");
350         memset(&record_width, 0x00, sizeof(Magnifier_configure_width));
351
352         record_width.style = md_helper.get_width("style");
353         record_width.width = md_helper.get_width("width");
354         record_width.height = md_helper.get_width("height");
355         record_width.label_area_rect = md_helper.get_width("label_area_rect");
356         record_width.bg_image_path = md_helper.get_width("bg_image_path");
357         record_width.bg_shift_image_path = md_helper.get_width("bg_shift_image_path");
358         record_width.bg_shift_lock_image_path = md_helper.get_width("bg_shift_lock_image_path");
359         record_width.bg_long_key_image_path = md_helper.get_width("bg_long_key_image_path");
360         record_width.use_actual_window = md_helper.get_width("use_actual_window");
361         record_width.label_type = md_helper.get_width("label_type");
362         record_width.padding_x = md_helper.get_width("padding_x");
363         record_width.padding_y = md_helper.get_width("padding_y");
364         record_width.show_shift_label = md_helper.get_width("show_shift_label");
365 }
366
367 template <class T>
368 void set_autopopup_configure_width(T& md_helper,
369         Autopopup_configure_width & record_width) {
370         md_helper.set_current_metadata_record("autopopup_configure");
371         memset(&record_width, 0x00, sizeof(Autopopup_configure_width));
372
373         record_width.bg_image_path = md_helper.get_width("bg_image_path");
374         record_width.bg_color = md_helper.get_width("bg_color");
375         record_width.bg_line_width = md_helper.get_width("bg_line_width");
376         record_width.bg_line_color = md_helper.get_width("bg_line_color");
377         record_width.bg_padding = md_helper.get_width("bg_padding");
378         record_width.button_image_path = md_helper.get_width("button_image_path");
379         record_width.sw_button_style = md_helper.get_width("sw_button_style");
380         record_width.button_width = md_helper.get_width("button_width");
381         record_width.button_height = md_helper.get_width("button_height");
382         record_width.button_spacing = md_helper.get_width("button_spacing");
383         record_width.label_type = md_helper.get_width("label_type");
384         record_width.decoration_image_path = md_helper.get_width("decoration_image_path");
385         record_width.decoration_size = md_helper.get_width("decoration_size");
386         record_width.max_column = md_helper.get_width("max_column");
387         record_width.add_grab_left = md_helper.get_width("add_grab_left");
388         record_width.add_grab_right = md_helper.get_width("add_grab_right");
389         record_width.add_grab_top = md_helper.get_width("add_grab_top");
390         record_width.add_grab_bottom = md_helper.get_width("add_grab_bottom");
391 }
392
393 template <class T>
394 void set_modifier_decoration_width(T& md_helper,
395         Modifier_decoration_width & record_width) {
396         md_helper.set_current_metadata_record("modifier_decoration");
397         memset(&record_width, 0x00, sizeof(Modifier_decoration_width));
398
399         record_width.extract_background = md_helper.get_width("extract_background");
400         record_width.name = md_helper.get_width("name");
401         record_width.bg_image_path = md_helper.get_width("bg_image_path");
402 }
403
404 template <class T>
405 void set_nine_patch_width(T& md_helper,
406         Nine_patch_width & record_width) {
407         md_helper.set_current_metadata_record("nine_patch");
408         memset(&record_width, 0x00, sizeof(Nine_patch_width));
409
410         record_width.image_path = md_helper.get_width("image_path");
411         record_width.left = md_helper.get_width("left");
412         record_width.right = md_helper.get_width("right");
413         record_width.top = md_helper.get_width("top");
414         record_width.bottom = md_helper.get_width("bottom");
415 }
416
417
418 #endif //End __AUTO_METADATA_H__