rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=cb73fdc8796cceeff6a0d4cae26e835549e784f7

commit cb73fdc8796cceeff6a0d4cae26e835549e784f7
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Tue Mar 29 10:27:44 2016 +0300

    menu: add items for basic primitives manipulations
    
    Change-Id: Ibc56c4c932e8a85a98dca8fd2f5b2518958a5b38
---
 src/bin/ui/main_window.h |  5 +++++
 src/bin/ui/menu.c        | 28 ++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/src/bin/ui/main_window.h b/src/bin/ui/main_window.h
index c1c9966..9299519 100644
--- a/src/bin/ui/main_window.h
+++ b/src/bin/ui/main_window.h
@@ -60,6 +60,11 @@ enum Menu_Item
    MENU_EDIT,
       MENU_EDIT_UNDO,
       MENU_EDIT_REDO,
+      MENU_EDIT_GROUP_ADD,
+      MENU_EDIT_PART_ADD,
+      MENU_EDIT_STATE_ADD,
+      MENU_EDIT_ITEM_ADD,
+      MENU_EDIT_PROGRAM_ADD,
       MENU_EDITORS_IMAGE,
       MENU_EDITORS_SOUND,
       MENU_EDITORS_COLORCLASS,
diff --git a/src/bin/ui/menu.c b/src/bin/ui/menu.c
index 97f52c8..804dffb 100644
--- a/src/bin/ui/menu.c
+++ b/src/bin/ui/menu.c
@@ -36,6 +36,7 @@ int MENU_ITEMS_LIST_BASE[] = {
    MENU_EDITORS_SOUND,
    MENU_EDITORS_COLORCLASS,
    MENU_EDITORS_TEXT_STYLE,
+   MENU_EDIT_GROUP_ADD,
 
    MENU_NULL
 };
@@ -51,6 +52,10 @@ int MENU_ITEMS_LIST_STYLE_ONLY[] = {
    MENU_VIEW_RULERS_REL,
    MENU_VIEW_RULERS_BOTH,
    MENU_FILE_EXPORT_EDC_GROUP,
+   MENU_EDIT_PART_ADD,
+   MENU_EDIT_STATE_ADD,
+   MENU_EDIT_ITEM_ADD,
+   MENU_EDIT_PROGRAM_ADD,
 
    MENU_NULL
 };
@@ -162,6 +167,22 @@ _menu_cb(void *data __UNUSED__,
       case MENU_EDIT_REDO:
          evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_REDO, NULL);
          break;
+      case MENU_EDIT_GROUP_ADD:
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ADD_GROUP, 
NULL);
+         break;
+      case MENU_EDIT_PART_ADD:
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ADD_PART, 
NULL);
+         break;
+      case MENU_EDIT_STATE_ADD:
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ADD_STATE, 
NULL);
+         break;
+      case MENU_EDIT_ITEM_ADD:
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ADD_ITEM, 
NULL);
+         break;
+      case MENU_EDIT_PROGRAM_ADD:
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ADD_PROGRAM, 
NULL);
+         break;
+
       case MENU_EDITORS_IMAGE:
          tabs_menu_tab_open(TAB_IMAGE_EDITOR);
          break;
@@ -265,6 +286,13 @@ ui_menu_add(void)
       ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_UNDO, NULL, _("Undo"), "Ctrl-Z")
       ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_REDO, NULL, _("Redo"), "Ctrl-Y")
       ___(MENU_EDIT);
+      ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_GROUP_ADD, NULL, _("Add group"), 
"Ctrl-N")
+      ___(MENU_EDIT);
+      ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_PART_ADD, NULL, _("Add part"), "q")
+      ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_STATE_ADD, NULL, _("Add state"), "w")
+      ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_ITEM_ADD, NULL, _("Add item"), "e")
+      ITEM_MENU_ADD(MENU_EDIT, MENU_EDIT_PROGRAM_ADD, NULL, _("Add program"), 
"r")
+      ___(MENU_EDIT);
       ITEM_MENU_ADD(MENU_EDIT, MENU_EDITORS_IMAGE, "image", _("Image 
manager"), "F7")
       ITEM_MENU_ADD(MENU_EDIT, MENU_EDITORS_SOUND, "sound", _("Sound 
manager"), "F8")
       ITEM_MENU_ADD(MENU_EDIT, MENU_EDITORS_TEXT_STYLE, "text", _("Textblock 
styles manager"), "F9")

-- 


Reply via email to