tools: renew tools items.

remove new/save/load
add menu
This commit is contained in:
ChunEon Park 2014-08-11 17:56:33 +09:00
parent 80b59d3b15
commit c4e3ac89fd
6 changed files with 21 additions and 25 deletions

View File

@ -1,11 +1,10 @@
images {
image: "plus.png" COMP;
image: "minus.png" COMP;
image: "file.png" COMP;
image: "menu.png" COMP;
image: "find.png" COMP;
image: "highlight.png" COMP;
image: "lines.png" COMP;
image: "new.png" COMP;
image: "console.png" COMP;
image: "status.png" COMP;
image: "swallow_s.png" COMP;
@ -30,12 +29,12 @@ group { name: "line";
}
}
group { name: "file";
group { name: "menu";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "file.png";
image.normal: "menu.png";
}
}
}
@ -73,16 +72,6 @@ group { name: "lines";
}
}
}
group { name: "new";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "new.png";
}
}
}
}
group { name: "console";
parts {

View File

@ -43,11 +43,10 @@ EXTRA_DIST = \
vgrad_med_lighter.png \
warning.png \
pm_fill.png \
file.png \
menu.png \
find.png \
highlight.png \
lines.png \
new.png \
setting_icon.png \
console.png \
status.png \

Binary file not shown.

Before

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

View File

@ -759,7 +759,10 @@ menu_toggle(void)
//Main Menu
if (md->active_request) menu_close(md);
else menu_open(md);
else
{
menu_open(md);
}
}
void

View File

@ -18,9 +18,18 @@ item_unselect(Elm_Object_Item *it)
}
static void
new_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
menu_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
{
menu_edc_new();
edit_data *ed = data;
if (search_is_opened() || goto_is_opened())
{
goto_close();
search_close();
edit_focus_set(ed);
}
menu_toggle();
item_unselect((Elm_Object_Item *)event_info);
}
@ -123,12 +132,8 @@ tools_create(Evas_Object *parent, edit_data *ed)
elm_object_focus_allow_set(toolbar, EINA_FALSE);
Elm_Object_Item *it;
it = elm_toolbar_item_append(toolbar, NULL, "New", new_cb, NULL);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "new");
it = elm_toolbar_item_append(toolbar, NULL, "Save", save_cb, NULL);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "file");
it = elm_toolbar_item_append(toolbar, NULL, "Load", load_cb, NULL);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "file");
it = elm_toolbar_item_append(toolbar, NULL, "Menu", menu_cb, ed);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "menu");
it = elm_toolbar_item_append(toolbar, NULL, "Highlight", highlight_cb, ed);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "highlight");
it = elm_toolbar_item_append(toolbar, NULL, "Swallow", swallow_cb, NULL);