jackdanielz pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=4e7398be22e90ed8000bb6df20cb2238d4c52572
commit 4e7398be22e90ed8000bb6df20cb2238d4c52572 Author: Daniel Zaoui <[email protected]> Date: Tue Nov 24 14:21:27 2015 +0200 Add first snippet inside factory --- data/layouts/factory.json | 36 ++++++++++++++++++++++++++++ src/bin/gui/egui_layout.json | 57 +++++++++++++++++++++++++++++++++++++++++++- src/bin/gui/egui_logic.c | 2 ++ 3 files changed, 94 insertions(+), 1 deletion(-) diff --git a/data/layouts/factory.json b/data/layouts/factory.json index 25ce811..96434bc 100644 --- a/data/layouts/factory.json +++ b/data/layouts/factory.json @@ -602,6 +602,42 @@ "Efl.Gfx.Base.visible":[true], "Evas.Image.filled":[true] } + }, + "Snippet_Win": + { + "Desc": + { + "class":"Elm.Win" + }, + "Properties": + { + "Elm.Win.title":["elm_win1"], + "Evas.Object.size_hint_weight":[1, 1], + "Efl.Gfx.Base.visible":[true], + "Elm.Win.type":["ELM_WIN_BASIC"], + "Elm.Win.autodel":[true], + "Elm.Win.conformant":[true], + "Efl.Gfx.Base.size":[382, 570] + }, + "Contains":["Snippet_Conformant"] + }, + "Snippet_Conformant": + { + "Desc": + { + "parent":"Snippet_Win", + "class":"Elm.Conformant" + }, + "Properties": + { + "Evas.Object.size_hint_weight":[1, 1], + "Efl.Gfx.Base.visible":[true] + }, + "Contains": + { + "Bg":["elm.swallow.bg"], + "Naviframe":["elm.swallow.content"] + } } } } diff --git a/src/bin/gui/egui_layout.json b/src/bin/gui/egui_layout.json index bacbc4e..9d229de 100644 --- a/src/bin/gui/egui_layout.json +++ b/src/bin/gui/egui_layout.json @@ -1172,7 +1172,7 @@ "Evas.Object.size_hint_align":[-1, 0], "Efl.Gfx.Base.visible":[true] }, - "Contains":["fctr_table_sep_0", "fctr_table_label_1", "fctr_table_sep_1", "fctr_table", "fctr_table_sep_2", "fctr_table_label_2", "fctr_table_sep_3", "fctr_table_containers", "fctr_table_sep_4", "fctr_table_label_3", "fctr_table_sep_5", "fctr_table_item_widgets", "fctr_table_sep_6", "fctr_table_label_4", "fctr_table_sep_7", "fctr_table_evas"] + "Contains":["fctr_table_sep_0", "fctr_table_label_5", "fctr_table_sep_8", "fctr_table_snippets", "fctr_table_sep_9", "fctr_table_label_1", "fctr_table_sep_1", "fctr_table", "fctr_table_sep_2", "fctr_table_label_2", "fctr_table_sep_3", "fctr_table_containers", "fctr_table_sep_4", "fctr_table_label_3", "fctr_table_sep_5", "fctr_table_item_widgets", "fctr_table_sep_6", "fctr_table_label_4", "fctr_table_sep_7", "fctr_table_evas"] }, "fctr_table_sep_0": { @@ -1187,6 +1187,61 @@ "Efl.Gfx.Base.visible":[true] } }, + "fctr_table_label_5": + { + "Desc": + { + "parent":"fctr_scroll_box", + "class":"Elm.Label" + }, + "Properties": + { + "Evas.Object.size_hint_align":[0.05, 0], + "Elm.Widget.part_text":[null, "Snippets"], + "Efl.Gfx.Base.visible":[true] + } + }, + "fctr_table_sep_8": + { + "Desc": + { + "parent":"fctr_scroll_box", + "class":"Elm.Separator" + }, + "Properties": + { + "Elm.Separator.horizontal":[true], + "Efl.Gfx.Base.visible":[true] + } + }, + "fctr_table_snippets": + { + "Desc": + { + "parent":"fctr_scroll_box", + "class":"Elm.Table", + "public":true + }, + "Properties": + { + "Evas.Object.size_hint_align":[0.05, -1], + "Elm.Table.padding":[2, 2], + "Efl.Gfx.Base.visible":[true] + } + }, + "fctr_table_sep_9": + { + "Desc": + { + "parent":"fctr_scroll_box", + "class":"Elm.Separator" + }, + "Properties": + { + "Elm.Separator.horizontal":[true], + "Efl.Gfx.Base.visible":[true] + } + }, "fctr_table_label_1": { "Desc": diff --git a/src/bin/gui/egui_logic.c b/src/bin/gui/egui_logic.c index 412d190..78bcfcf 100644 --- a/src/bin/gui/egui_logic.c +++ b/src/bin/gui/egui_logic.c @@ -1086,6 +1086,8 @@ egui_start(const char *filename) } gui_parser_json_file_read((Gui_Context *)global_context_get(), PACKAGE_DATA_DIR"/layouts/factory.json"); + FACTORY_IMG_CREATE(Snippet_Win, "factory_layout.png", fctr_table_snippets, 0, 0, 1, 1); + FACTORY_IMG_CREATE(Win, "factory_layout.png", fctr_table, 0, 0, 1, 1); FACTORY_IMG_CREATE(Bg, "factory_bg.png", fctr_table, 1, 0, 1, 1); FACTORY_CREATE(Button, fctr_table, 2, 0, 1, 1); --
