summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-22 11:22:55 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-22 15:02:06 +0300
commit53cacc3757e33cf4dc093fbaa9c2409a7de28fc9 (patch)
tree767941d1ac9e71f25bcc4d931cf12a82a5356b32
parent0610a24226452a3f3d0abb306205b0737c1d0d39 (diff)
adding settings view
-rw-r--r--src/bin/egui_gui/CMakeLists.txt2
-rw-r--r--src/bin/egui_gui/egui_layout_c.json323
-rw-r--r--src/bin/egui_gui/egui_layout_h.json10
-rw-r--r--src/bin/egui_gui/egui_logic.c7
-rw-r--r--src/bin/egui_gui/settings_view.c60
-rw-r--r--src/bin/egui_gui/settings_view.h11
6 files changed, 412 insertions, 1 deletions
diff --git a/src/bin/egui_gui/CMakeLists.txt b/src/bin/egui_gui/CMakeLists.txt
index d0f7c79..18a5934 100644
--- a/src/bin/egui_gui/CMakeLists.txt
+++ b/src/bin/egui_gui/CMakeLists.txt
@@ -47,6 +47,7 @@ add_executable(${TARGET}
47 itemview.c 47 itemview.c
48 seqview.c 48 seqview.c
49 rmview.c 49 rmview.c
50 settings_view.c
50 editor.c 51 editor.c
51 ) 52 )
52 53
@@ -100,6 +101,7 @@ add_executable(${TARGET2}
100 itemview.c 101 itemview.c
101 seqview.c 102 seqview.c
102 rmview.c 103 rmview.c
104 settings_view.c
103 editor.c) 105 editor.c)
104# add this dependency to force build one after another, 106# add this dependency to force build one after another,
105# in order to delete and generate files in proper order 107# in order to delete and generate files in proper order
diff --git a/src/bin/egui_gui/egui_layout_c.json b/src/bin/egui_gui/egui_layout_c.json
index 2f889e4..f9d6968 100644
--- a/src/bin/egui_gui/egui_layout_c.json
+++ b/src/bin/egui_gui/egui_layout_c.json
@@ -22,6 +22,7 @@ static Eo *main_win;
22 "BigBang":"__BigBang__", 22 "BigBang":"__BigBang__",
23 "fs_win_show":"_sequence_fs_win_show_execute", 23 "fs_win_show":"_sequence_fs_win_show_execute",
24 "rm_win_show":"_sequence_rm_win_show_execute", 24 "rm_win_show":"_sequence_rm_win_show_execute",
25 "settings_win_show":"_sequence_settings_win_show_execute",
25 "graphviz_button_clicked":"_sequence_graphviz_button_clicked_execute", 26 "graphviz_button_clicked":"_sequence_graphviz_button_clicked_execute",
26 "itemview_item_add_but_clicked":"__itemview_item_add_but_clicked", 27 "itemview_item_add_but_clicked":"__itemview_item_add_but_clicked",
27 "itemview_item_nested_add_but_clicked":"__itemview_item_nested_add_but_clicked", 28 "itemview_item_nested_add_but_clicked":"__itemview_item_nested_add_but_clicked",
@@ -35,7 +36,10 @@ static Eo *main_win;
35 "_itemview_separator_add_but_clicked_cb":"_itemview_separator_add_but_clicked_cb", 36 "_itemview_separator_add_but_clicked_cb":"_itemview_separator_add_but_clicked_cb",
36 "_itemview_item_del_but_clicked_cb":"_itemview_item_del_but_clicked_cb", 37 "_itemview_item_del_but_clicked_cb":"_itemview_item_del_but_clicked_cb",
37 "_rm_add_button_clicked":"_rm_add_button_clicked", 38 "_rm_add_button_clicked":"_rm_add_button_clicked",
38 "_rm_win_show_post_cb":"_rm_win_show_post_cb" 39 "_settings_apply_button_clicked":"_settings_apply_button_clicked",
40 "_settings_win_request_delete":"_settings_win_request_delete",
41 "_rm_win_show_post_cb":"_rm_win_show_post_cb",
42 "_settings_win_show_post_cb":"_settings_win_show_post_cb"
39 } 43 }
40 } 44 }
41 } 45 }
@@ -51,7 +55,13 @@ _itemview_item_del_but_clicked_cb(void *data, Eo *obj, const Eo_Event_Descriptio
51extern Eina_Bool 55extern Eina_Bool
52_rm_add_button_clicked(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info); 56_rm_add_button_clicked(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
53extern Eina_Bool 57extern Eina_Bool
58_settings_apply_button_clicked(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
59extern Eina_Bool
60_settings_win_request_delete(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
61extern Eina_Bool
54_rm_win_show_post_cb(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info); 62_rm_win_show_post_cb(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
63extern Eina_Bool
64_settings_win_show_post_cb(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
55 65
56/* @egui 66/* @egui
57{ 67{
@@ -719,6 +729,291 @@ _create_rm_win()
719 eo_do(rm_win, evas_obj_visibility_set(EINA_TRUE)); 729 eo_do(rm_win, evas_obj_visibility_set(EINA_TRUE));
720} 730}
721 731
732static void
733_create_settings_win()
734{
735 Eo *settings_win;
736 Eo *settings_bg;
737 Eo *settings_vbox;
738 Eo *settings_toolbar;
739 Eo *settings_table;
740 Eo *settings_buttons_box;
741 Eo *settings_button_apply;
742
743 Eo *project_name_label;
744 Eo *project_name_entry;
745
746/* @egui
747{
748 "settings_win":
749 {
750 "Desc":
751 {
752 "parent":null,
753 "class":"Elm_Win",
754 "public":true,
755 "type":"widget"
756 },
757 "Properties":
758 {
759 "constructor":["elm_obj_win_constructor"],
760 "elm_obj_win_constructor":[null, "ELM_WIN_BASIC"],
761 "title":["Settings Manager"],
762 "autodel":[true],
763 "size":[640, 480],
764 "resize_object_add":["settings_bg"],
765 "resize_object_add":["settings_vbox"],
766 "modal":[true],
767 "visibility":[true]
768 },
769 "Callbacks":
770 {
771 "delete,request":"_settings_win_request_delete"
772 }
773 }
774 }
775@!egui */
776 settings_win = eo_add_custom(ELM_OBJ_WIN_CLASS, main_win, elm_obj_win_constructor(NULL, ELM_WIN_BASIC));
777 eo_unref(settings_win);
778 pub_widgets.settings_win = settings_win;
779 eo_do(settings_win, elm_obj_win_title_set("Settings Manager"));
780 eo_do(settings_win, elm_obj_win_autodel_set(EINA_TRUE));
781 eo_do(settings_win, evas_obj_size_set(640, 480));
782 eo_do(settings_win, elm_obj_win_modal_set(EINA_TRUE));
783 eo_do(settings_win, eo_event_callback_add(ELM_WIN_EVENT_DELETE_REQUEST, _settings_win_request_delete, NULL));
784/* @egui
785{
786 "settings_bg":
787 {
788 "Desc":
789 {
790 "parent":"settings_win",
791 "class":"Elm_Bg",
792 "type":"widget"
793 },
794 "Properties":
795 {
796 "color":[80, 80, 80, 255],
797 "size_hint_weight":[1, 1],
798 "visibility":[true]
799 }
800 }
801 }
802@!egui */
803 settings_bg = eo_add(ELM_OBJ_BG_CLASS, settings_win);
804 eo_unref(settings_bg);
805 eo_do(settings_bg, elm_obj_bg_color_set(80, 80, 80, 255));
806 eo_do(settings_bg, evas_obj_size_hint_weight_set(1.000000, 1.000000));
807 eo_do(settings_bg, evas_obj_visibility_set(EINA_TRUE));
808 eo_do(settings_win, elm_obj_win_resize_object_add(settings_bg));
809/* @egui
810{
811 "settings_vbox":
812 {
813 "Desc":
814 {
815 "parent":"settings_win",
816 "class":"Elm_Box",
817 "type":"widget"
818 },
819 "Properties":
820 {
821 "size_hint_weight":[1, 1],
822 "visibility":[true]
823 },
824 "Contains":["settings_toolbar", "settings_table", "settings_buttons_box"]
825 }
826 }
827@!egui */
828 settings_vbox = eo_add(ELM_OBJ_BOX_CLASS, settings_win);
829 eo_unref(settings_vbox);
830 eo_do(settings_vbox, evas_obj_size_hint_weight_set(1.000000, 1.000000));
831 eo_do(settings_vbox, evas_obj_visibility_set(EINA_TRUE));
832 eo_do(settings_win, elm_obj_win_resize_object_add(settings_vbox));
833/* @egui
834{
835 "settings_toolbar":
836 {
837 "Desc":
838 {
839 "parent":"settings_vbox",
840 "class":"Elm_Toolbar",
841 "public":true,
842 "type":"widget"
843 },
844 "Properties":
845 {
846 "style":["item_horizontal"],
847 "shrink_mode":["ELM_TOOLBAR_SHRINK_MENU"],
848 "select_mode":["ELM_OBJECT_SELECT_MODE_ALWAYS"],
849 "icon_size":[16],
850 "size_hint_weight":[1, 0],
851 "size_hint_align":[-1, 0],
852 "visibility":[true]
853 }
854 }
855 }
856@!egui */
857 settings_toolbar = eo_add(ELM_OBJ_TOOLBAR_CLASS, settings_vbox);
858 eo_unref(settings_toolbar);
859 pub_widgets.settings_toolbar = settings_toolbar;
860 eo_do(settings_toolbar, elm_obj_widget_style_set("item_horizontal"));
861 eo_do(settings_toolbar, elm_obj_toolbar_shrink_mode_set(ELM_TOOLBAR_SHRINK_MENU));
862 eo_do(settings_toolbar, elm_obj_toolbar_select_mode_set(ELM_OBJECT_SELECT_MODE_ALWAYS));
863 eo_do(settings_toolbar, elm_obj_toolbar_icon_size_set(16));
864 eo_do(settings_toolbar, evas_obj_size_hint_weight_set(1, 0));
865 eo_do(settings_toolbar, evas_obj_size_hint_align_set(EVAS_HINT_FILL, 0));
866 eo_do(settings_toolbar, evas_obj_visibility_set(EINA_TRUE));
867/* @egui
868{
869 "settings_table":
870 {
871 "Desc":
872 {
873 "parent":"settings_vbox",
874 "class":"Elm_Table",
875 "public":true,
876 "type":"widget"
877 },
878 "Properties":
879 {
880 "visibility":[true],
881 "padding":[6, 7],
882 "size_hint_align":[-1, -1],
883 "size_hint_weight":[1, 1]
884 }
885 }
886 }
887@!egui */
888 settings_table = eo_add(ELM_OBJ_TABLE_CLASS, settings_vbox);
889 eo_unref(settings_table);
890 pub_widgets.settings_table = settings_table;
891 eo_do(settings_table, evas_obj_visibility_set(EINA_TRUE));
892 eo_do(settings_table, elm_obj_table_padding_set(6, 7));
893 eo_do(settings_table, evas_obj_size_hint_align_set(-1, -1));
894 eo_do(settings_table, evas_obj_size_hint_weight_set(1.000000, 1));
895
896/* @egui
897{
898 "settings_buttons_box":
899 {
900 "Desc":
901 {
902 "parent":"settings_vbox",
903 "class":"Elm_Box",
904 "public":true,
905 "type":"widget"
906 },
907 "Properties":
908 {
909 "size_hint_weight":[1, 0],
910 "size_hint_align":[-1, 0],
911 "visibility":[true],
912 "horizontal":[true]
913 },
914 "Contains":["settings_button_apply"]
915 }
916 }
917@!egui */
918 settings_buttons_box = eo_add(ELM_OBJ_BOX_CLASS, settings_vbox);
919 eo_unref(settings_buttons_box);
920 pub_widgets.settings_buttons_box = settings_buttons_box;
921 eo_do(settings_buttons_box, evas_obj_size_hint_weight_set(1.000000, 0));
922 eo_do(settings_buttons_box, evas_obj_size_hint_align_set(-1.000000, 0));
923 eo_do(settings_buttons_box, evas_obj_visibility_set(EINA_TRUE));
924 eo_do(settings_buttons_box, elm_obj_box_horizontal_set(EINA_TRUE));
925 eo_do(settings_vbox, elm_obj_box_pack_end(settings_toolbar));
926 eo_do(settings_vbox, elm_obj_box_pack_end(settings_table));
927 eo_do(settings_vbox, elm_obj_box_pack_end(settings_buttons_box));
928
929/* @egui
930{
931 "settings_button_apply":
932 {
933 "Desc":
934 {
935 "parent":"settings_buttons_box",
936 "class":"Elm_Button",
937 "public":true,
938 "type":"widget"
939 },
940 "Properties":
941 {
942 "part_text":[null, "Apply"],
943 "visibility":[true]
944 },
945 "Callbacks":
946 {
947 "clicked":"_settings_apply_button_clicked"
948 }
949 }
950 }
951@!egui */
952 settings_button_apply = eo_add(ELM_OBJ_BUTTON_CLASS, settings_buttons_box);
953 eo_unref(settings_button_apply);
954 pub_widgets.settings_button_apply = settings_button_apply;
955 eo_do(settings_button_apply, elm_obj_widget_part_text_set(NULL, "Apply"));
956 eo_do(settings_button_apply, evas_obj_visibility_set(EINA_TRUE));
957 eo_do(settings_button_apply, eo_event_callback_add(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, _settings_apply_button_clicked, NULL));
958 eo_do(settings_buttons_box, elm_obj_box_pack_end(settings_button_apply));
959/* @egui
960{
961 "project_name_label":
962 {
963 "Desc":
964 {
965 "parent":"settings_table",
966 "class":"Elm_Label",
967 "public":true,
968 "type":"widget"
969 },
970 "Properties":
971 {
972 "part_text":[null, "Project Name:"],
973 "visibility":[true]
974 }
975 }
976 }
977@!egui */
978 project_name_label = eo_add(ELM_OBJ_LABEL_CLASS, settings_table);
979 eo_unref(project_name_label);
980 pub_widgets.project_name_label = project_name_label;
981 eo_do(project_name_label, elm_obj_widget_part_text_set(NULL, "Project Name"));
982 eo_do(project_name_label, evas_obj_visibility_set(EINA_TRUE));
983/* @egui
984{
985 "project_name_entry":
986 {
987 "Desc":
988 {
989 "parent":"settings_table",
990 "class":"Elm_Entry",
991 "public":true,
992 "type":"widget"
993 },
994 "Properties":
995 {
996 "size_hint_weight":[1, 0],
997 "size_hint_align":[-1, 0],
998 "scrollable":[true],
999 "single_line":[true],
1000 "policy":["ELM_SCROLLER_POLICY_OFF", "ELM_SCROLLER_POLICY_OFF"],
1001 "visibility":[true]
1002 }
1003 }
1004 }
1005@!egui */
1006 project_name_entry = eo_add(ELM_OBJ_ENTRY_CLASS, settings_table);
1007 eo_unref(project_name_entry);
1008 pub_widgets.project_name_entry = project_name_entry;
1009 eo_do(project_name_entry, evas_obj_size_hint_weight_set(1.000000, 0));
1010 eo_do(project_name_entry, evas_obj_size_hint_align_set(-1.000000, 0));
1011 eo_do(project_name_entry, elm_obj_entry_scrollable_set(EINA_TRUE));
1012 eo_do(project_name_entry, elm_obj_entry_single_line_set(EINA_TRUE));
1013 eo_do(project_name_entry, elm_interface_scrollable_policy_set(ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF));
1014 eo_do(project_name_entry, evas_obj_visibility_set(EINA_TRUE));
1015 eo_do(settings_win, evas_obj_visibility_set(EINA_TRUE));
1016}
722 1017
723/* @egui 1018/* @egui
724{ 1019{
@@ -746,6 +1041,32 @@ _sequence_rm_win_show_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const
746 return EO_CALLBACK_CONTINUE; 1041 return EO_CALLBACK_CONTINUE;
747} 1042}
748 1043
1044/* @egui
1045{
1046 "settings_win_show":
1047 {
1048 "Desc":
1049 {
1050 "type":"sequence",
1051 "public":true
1052 },
1053 "Actions":
1054 {
1055 "Creation":"settings_win",
1056 "User":["_settings_win_show_post_cb", ""]
1057 }
1058 }
1059 }
1060@!egui */
1061Eina_Bool
1062_sequence_settings_win_show_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
1063{
1064 _create_settings_win();
1065
1066 if (!_settings_win_show_post_cb(NULL, obj, desc, event_info)) return EO_CALLBACK_STOP;
1067 return EO_CALLBACK_CONTINUE;
1068}
1069
749static void 1070static void
750_create_main_win() 1071_create_main_win()
751{ 1072{
diff --git a/src/bin/egui_gui/egui_layout_h.json b/src/bin/egui_gui/egui_layout_h.json
index 07e8c5f..c621b21 100644
--- a/src/bin/egui_gui/egui_layout_h.json
+++ b/src/bin/egui_gui/egui_layout_h.json
@@ -56,6 +56,13 @@ typedef struct
56 Eo *propsview_toolbar; 56 Eo *propsview_toolbar;
57 Eo *propsview_sc; 57 Eo *propsview_sc;
58 Eo *propsview_box; 58 Eo *propsview_box;
59 Eo *settings_win;
60 Eo *settings_toolbar;
61 Eo *settings_table;
62 Eo *settings_buttons_box;
63 Eo *settings_button_apply;
64 Eo *project_name_label;
65 Eo *project_name_entry;
59 Eo *itemview_box; 66 Eo *itemview_box;
60 Eo *itemview_list; 67 Eo *itemview_list;
61 Eo *itemview_buttons_box; 68 Eo *itemview_buttons_box;
@@ -72,5 +79,8 @@ _sequence_fs_win_show_execute(void *data, Eo *obj, const Eo_Event_Description *d
72Eina_Bool 79Eina_Bool
73_sequence_rm_win_show_execute(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info); 80_sequence_rm_win_show_execute(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
74 81
82Eina_Bool
83_sequence_settings_win_show_execute(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
84
75GUI *get_gui(); 85GUI *get_gui();
76#endif 86#endif
diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c
index dac6c1b..9944a2a 100644
--- a/src/bin/egui_gui/egui_logic.c
+++ b/src/bin/egui_gui/egui_logic.c
@@ -51,6 +51,7 @@ enum
51 ITEM_NEW, 51 ITEM_NEW,
52 CTX_REFRESH, 52 CTX_REFRESH,
53 RSRC_MNGR, 53 RSRC_MNGR,
54 SETTINGS_WIN,
54 WDG_DELETE, 55 WDG_DELETE,
55 FACTORY_VIEW, 56 FACTORY_VIEW,
56 SEQUENCE_VIEW, 57 SEQUENCE_VIEW,
@@ -309,6 +310,11 @@ _toolbar_item_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
309 _sequence_rm_win_show_execute(NULL, NULL, NULL, NULL); 310 _sequence_rm_win_show_execute(NULL, NULL, NULL, NULL);
310 break; 311 break;
311 } 312 }
313 case SETTINGS_WIN:
314 {
315 _sequence_settings_win_show_execute(NULL, NULL, NULL, NULL);
316 break;
317 }
312 case CTX_REFRESH: 318 case CTX_REFRESH:
313 { 319 {
314 _guilogic_cbs->_layout_clear(_active_context_get(), EINA_FALSE); 320 _guilogic_cbs->_layout_clear(_active_context_get(), EINA_FALSE);
@@ -795,6 +801,7 @@ egui_start(char *filename)
795 elm_toolbar_item_separator_set(elm_toolbar_item_append(g->toolbar, NULL, NULL, NULL, NULL), EINA_TRUE); 801 elm_toolbar_item_separator_set(elm_toolbar_item_append(g->toolbar, NULL, NULL, NULL, NULL), EINA_TRUE);
796 802
797 elm_toolbar_item_append(g->toolbar, "emblem-web", "Resource manager", _toolbar_item_sel_cb, (void *) (intptr_t) RSRC_MNGR); 803 elm_toolbar_item_append(g->toolbar, "emblem-web", "Resource manager", _toolbar_item_sel_cb, (void *) (intptr_t) RSRC_MNGR);
804 elm_toolbar_item_append(g->toolbar, "preferences-system", "Settings", _toolbar_item_sel_cb, (void *) (intptr_t) SETTINGS_WIN);
798 elm_toolbar_item_append(g->toolbar, "view-refresh", "Reload context", _toolbar_item_sel_cb, (void *) (intptr_t) CTX_REFRESH); 805 elm_toolbar_item_append(g->toolbar, "view-refresh", "Reload context", _toolbar_item_sel_cb, (void *) (intptr_t) CTX_REFRESH);
799 elm_toolbar_item_append(g->toolbar, "edit-delete", "Delete widget", _toolbar_item_sel_cb, (void *) (intptr_t) WDG_DELETE); 806 elm_toolbar_item_append(g->toolbar, "edit-delete", "Delete widget", _toolbar_item_sel_cb, (void *) (intptr_t) WDG_DELETE);
800 807
diff --git a/src/bin/egui_gui/settings_view.c b/src/bin/egui_gui/settings_view.c
new file mode 100644
index 0000000..00b0ba7
--- /dev/null
+++ b/src/bin/egui_gui/settings_view.c
@@ -0,0 +1,60 @@
1
2#include <Elementary.h>
3#include "egui_log.h"
4#include "settings_view.h"
5#include "gui_widget.h"
6#include "egui_logic_private.h"
7
8#include "elm_widget.h"
9#include "elm_widget_container.h"
10#include "elm_interface_scrollable.h"
11
12static SettingsView_Type _toolbar_selected_type = SETTINGSVIEW_NOT_SELECTED;
13
14static void
15_settingsview_toolbar_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
16{
17 SettingsView_Type type = (int) (intptr_t) data;
18 if (_toolbar_selected_type == type)
19 return;
20 _toolbar_selected_type = type;
21
22 GUI *g = get_gui();
23 const Gui_Context *ctx = _active_context_get();
24 eo_do(g->settings_table, elm_obj_table_pack(g->project_name_label, 0, 0, 1, 1));
25 eo_do(g->settings_table, elm_obj_table_pack(g->project_name_entry, 1, 0, 1, 1));
26 eo_do(g->project_name_entry, elm_obj_widget_part_text_set(NULL, gui_context_project_name_get(ctx)));
27}
28
29/* "Apply" button "clicked" callback." */
30Eina_Bool
31_settings_apply_button_clicked(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
32{
33 GUI *_g = get_gui();
34 const Gui_Context *ctx = _active_context_get();
35 const char *new_project_name = NULL, *old_project_name;
36 eo_do(_g->project_name_entry, new_project_name = elm_obj_widget_part_text_get(NULL));
37 old_project_name = gui_context_project_name_get(ctx);
38
39 if (new_project_name && (strcmp(new_project_name, old_project_name)))
40 gui_context_project_name_set((Gui_Context *) ctx, new_project_name);
41 return EO_CALLBACK_CONTINUE;
42}
43
44/* Delete window callback. */
45Eina_Bool
46_settings_win_request_delete(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
47{
48 _toolbar_selected_type = SETTINGSVIEW_NOT_SELECTED;
49 return EO_CALLBACK_CONTINUE;
50}
51
52/* This callback is called in the end of creation of settings view window. */
53Eina_Bool
54_settings_win_show_post_cb(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
55{
56 GUI *g = get_gui();
57 eo_do(g->settings_toolbar, elm_obj_toolbar_item_append(NULL, "Project",
58 _settingsview_toolbar_clicked, (void *) (intptr_t) SETTINGSVIEW_MAIN));
59 return EO_CALLBACK_CONTINUE;
60}
diff --git a/src/bin/egui_gui/settings_view.h b/src/bin/egui_gui/settings_view.h
new file mode 100644
index 0000000..667ef97
--- /dev/null
+++ b/src/bin/egui_gui/settings_view.h
@@ -0,0 +1,11 @@
1
2#ifndef _SETTINGSVIEW_H
3#define _SETTINGSVIEW_H
4
5typedef enum
6{
7 SETTINGSVIEW_NOT_SELECTED,
8 SETTINGSVIEW_MAIN
9} SettingsView_Type;
10
11#endif