summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-11-20 14:06:10 +0200
committerYakov Goldberg <yakov.g@samsung.com>2014-11-25 16:38:15 +0200
commitef57aa9ea3f6f01e8fd8e69c28e3d2763674ee3d (patch)
tree0c8b84015d0f121624bfd1d418fa529e5b9531ac /src/bin
parent222e1f241e53db5bea7918828cd4536cd3bb7d7d (diff)
Move containing commands into json file
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/egui_gui/egui_layout.json22
-rw-r--r--src/bin/egui_gui/settings_view.c9
2 files changed, 19 insertions, 12 deletions
diff --git a/src/bin/egui_gui/egui_layout.json b/src/bin/egui_gui/egui_layout.json
index 3ebfedb..ab5a9de 100644
--- a/src/bin/egui_gui/egui_layout.json
+++ b/src/bin/egui_gui/egui_layout.json
@@ -14,6 +14,7 @@
14 "_itemview_item_del_but_clicked_cb":"_itemview_item_del_but_clicked_cb", 14 "_itemview_item_del_but_clicked_cb":"_itemview_item_del_but_clicked_cb",
15 "_rm_add_button_clicked":"_rm_add_button_clicked", 15 "_rm_add_button_clicked":"_rm_add_button_clicked",
16 "_settings_apply_button_clicked":"_settings_apply_button_clicked", 16 "_settings_apply_button_clicked":"_settings_apply_button_clicked",
17 "_settings_apply_button_enable": "_settings_apply_button_enable",
17 "_settings_win_request_delete":"_settings_win_request_delete", 18 "_settings_win_request_delete":"_settings_win_request_delete",
18 "_rm_win_request_delete":"_rm_win_request_delete", 19 "_rm_win_request_delete":"_rm_win_request_delete",
19 "_graphviz_button_clicked_cb":"_graphviz_button_clicked_cb", 20 "_graphviz_button_clicked_cb":"_graphviz_button_clicked_cb",
@@ -679,6 +680,13 @@
679 "Elm_Table.padding":[6, 7], 680 "Elm_Table.padding":[6, 7],
680 "Evas.Object.size_hint_align":[-1, -1], 681 "Evas.Object.size_hint_align":[-1, -1],
681 "Evas.Object.size_hint_weight":[1, 1] 682 "Evas.Object.size_hint_weight":[1, 1]
683 },
684 "Contains":
685 {
686 "project_name_label":[0, 0, 1, 1],
687 "project_name_entry":[1, 0, 1, 1],
688 "images_prefix_label":[0, 1, 1, 1],
689 "images_prefix_entry":[1, 1, 1, 1]
682 } 690 }
683 }, 691 },
684 "settings_buttons_box": 692 "settings_buttons_box":
@@ -722,8 +730,7 @@
722 "Desc": 730 "Desc":
723 { 731 {
724 "parent":"settings_table", 732 "parent":"settings_table",
725 "class":"Elm_Label", 733 "class":"Elm_Label"
726 "public":true
727 }, 734 },
728 "Properties": 735 "Properties":
729 { 736 {
@@ -747,6 +754,10 @@
747 "Elm_Entry.single_line":[true], 754 "Elm_Entry.single_line":[true],
748 "Elm_Interface_Scrollable.policy":["ELM_SCROLLER_POLICY_OFF", "ELM_SCROLLER_POLICY_OFF"], 755 "Elm_Interface_Scrollable.policy":["ELM_SCROLLER_POLICY_OFF", "ELM_SCROLLER_POLICY_OFF"],
749 "Evas.Object.visibility":[true] 756 "Evas.Object.visibility":[true]
757 },
758 "Callbacks":
759 {
760 "changed,user": ["Invoke", "_settings_apply_button_enable", null]
750 } 761 }
751 }, 762 },
752 "images_prefix_label": 763 "images_prefix_label":
@@ -754,8 +765,7 @@
754 "Desc": 765 "Desc":
755 { 766 {
756 "parent":"settings_table", 767 "parent":"settings_table",
757 "class":"Elm_Label", 768 "class":"Elm_Label"
758 "public":true
759 }, 769 },
760 "Properties": 770 "Properties":
761 { 771 {
@@ -779,6 +789,10 @@
779 "Elm_Entry.single_line":[true], 789 "Elm_Entry.single_line":[true],
780 "Elm_Interface_Scrollable.policy":["ELM_SCROLLER_POLICY_OFF", "ELM_SCROLLER_POLICY_OFF"], 790 "Elm_Interface_Scrollable.policy":["ELM_SCROLLER_POLICY_OFF", "ELM_SCROLLER_POLICY_OFF"],
781 "Evas.Object.visibility":[true] 791 "Evas.Object.visibility":[true]
792 },
793 "Callbacks":
794 {
795 "changed,user": ["Invoke", "_settings_apply_button_enable", null]
782 } 796 }
783 }, 797 },
784 "main_win": 798 "main_win":
diff --git a/src/bin/egui_gui/settings_view.c b/src/bin/egui_gui/settings_view.c
index 7ef92ba..01b44bf 100644
--- a/src/bin/egui_gui/settings_view.c
+++ b/src/bin/egui_gui/settings_view.c
@@ -20,7 +20,7 @@ void settings_win_set(Egui_Layout_Settings_Win_Widgets *settings_win)
20} 20}
21 21
22/* Enable "Apply" button." */ 22/* Enable "Apply" button." */
23static Eina_Bool 23Eina_Bool
24_settings_apply_button_enable(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 24_settings_apply_button_enable(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
25{ 25{
26 eo_do(g_settings_win->settings_button_apply, elm_obj_widget_disabled_set(EINA_FALSE)); 26 eo_do(g_settings_win->settings_button_apply, elm_obj_widget_disabled_set(EINA_FALSE));
@@ -38,14 +38,7 @@ _settingsview_toolbar_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *ev
38 38
39 const Gui_Context *ctx = _active_context_get(); 39 const Gui_Context *ctx = _active_context_get();
40 eo_do(g_settings_win->project_name_entry, elm_obj_widget_part_text_set(NULL, gui_context_project_name_get(ctx))); 40 eo_do(g_settings_win->project_name_entry, elm_obj_widget_part_text_set(NULL, gui_context_project_name_get(ctx)));
41 eo_do(g_settings_win->settings_table, elm_obj_table_pack(g_settings_win->project_name_label, 0, 0, 1, 1));
42 eo_do(g_settings_win->settings_table, elm_obj_table_pack(g_settings_win->project_name_entry, 1, 0, 1, 1));
43 eo_do(g_settings_win->project_name_entry, eo_event_callback_add(ELM_ENTRY_EVENT_CHANGED_USER, _settings_apply_button_enable, NULL));
44
45 eo_do(g_settings_win->images_prefix_entry, elm_obj_widget_part_text_set(NULL, gui_context_images_prefix_get(ctx))); 41 eo_do(g_settings_win->images_prefix_entry, elm_obj_widget_part_text_set(NULL, gui_context_images_prefix_get(ctx)));
46 eo_do(g_settings_win->settings_table, elm_obj_table_pack(g_settings_win->images_prefix_label, 0, 1, 1, 1));
47 eo_do(g_settings_win->settings_table, elm_obj_table_pack(g_settings_win->images_prefix_entry, 1, 1, 1, 1));
48 eo_do(g_settings_win->images_prefix_entry, eo_event_callback_add(ELM_ENTRY_EVENT_CHANGED_USER, _settings_apply_button_enable, NULL));
49} 42}
50 43
51/* "Apply" button "clicked" callback." */ 44/* "Apply" button "clicked" callback." */