parent
4c0fa2d381
commit
ae3dfcabca
|
@ -1,23 +1,23 @@
|
||||||
#include "e.h"
|
#include "e.h"
|
||||||
|
|
||||||
/* local function protos */
|
/* local function protos */
|
||||||
static void _e_toolbar_free(E_Toolbar *tbar);
|
static void _e_toolbar_free(E_Toolbar *tbar);
|
||||||
static void _e_toolbar_cb_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_cb_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_menu_cb_post(void *data, E_Menu *mn);
|
static void _e_toolbar_menu_cb_post(void *data, E_Menu *mn);
|
||||||
static void _e_toolbar_menu_cb_pre(void *data, E_Menu *mn);
|
static void _e_toolbar_menu_cb_pre(void *data, E_Menu *mn);
|
||||||
static void _e_toolbar_menu_append(E_Toolbar *tbar, E_Menu *mn);
|
static void _e_toolbar_menu_append(E_Toolbar *tbar, E_Menu *mn);
|
||||||
static void _e_toolbar_menu_cb_edit(void *data, E_Menu *mn, E_Menu_Item *mi);
|
static void _e_toolbar_menu_cb_edit(void *data, E_Menu *mn, E_Menu_Item *mi);
|
||||||
static void _e_toolbar_menu_cb_config(void *data, E_Menu *mn, E_Menu_Item *mi);
|
static void _e_toolbar_menu_cb_config(void *data, E_Menu *mn, E_Menu_Item *mi);
|
||||||
static void _e_toolbar_menu_cb_contents(void *data, E_Menu *mn, E_Menu_Item *mi);
|
static void _e_toolbar_menu_cb_contents(void *data, E_Menu *mn, E_Menu_Item *mi);
|
||||||
static void _e_toolbar_gadcon_size_request(void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h);
|
static void _e_toolbar_gadcon_size_request(void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h);
|
||||||
static const char *_e_toolbar_orient_string_get(E_Toolbar *tbar);
|
static const char *_e_toolbar_orient_string_get(E_Toolbar *tbar);
|
||||||
static void _e_toolbar_fm2_changed(void *data, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_fm2_changed(void *data, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_fm2_dir_changed(void *data, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_fm2_dir_changed(void *data, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_fm2_dir_deleted(void *data, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_fm2_dir_deleted(void *data, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_fm2_files_deleted(void *data, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_fm2_files_deleted(void *data, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_fm2_selected(void *data, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_fm2_selected(void *data, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_fm2_selection_changed(void *data, Evas_Object *obj, void *event_info);
|
static void _e_toolbar_fm2_selection_changed(void *data, Evas_Object *obj, void *event_info);
|
||||||
static void _e_toolbar_menu_items_append(void *data, E_Gadcon_Client *gcc, E_Menu *mn);
|
static void _e_toolbar_menu_items_append(void *data, E_Gadcon_Client *gcc, E_Menu *mn);
|
||||||
|
|
||||||
/* local vars */
|
/* local vars */
|
||||||
static Eina_List *toolbars = NULL;
|
static Eina_List *toolbars = NULL;
|
||||||
|
@ -33,10 +33,10 @@ e_toolbar_shutdown(void)
|
||||||
{
|
{
|
||||||
while (toolbars)
|
while (toolbars)
|
||||||
{
|
{
|
||||||
E_Toolbar *tbar;
|
E_Toolbar *tbar;
|
||||||
|
|
||||||
tbar = eina_list_data_get(toolbars);
|
tbar = eina_list_data_get(toolbars);
|
||||||
e_object_del(E_OBJECT(tbar));
|
e_object_del(E_OBJECT(tbar));
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -62,44 +62,44 @@ e_toolbar_new(Evas *evas, const char *name, E_Win *fwin, Evas_Object *fm2)
|
||||||
tbar->fm2 = fm2;
|
tbar->fm2 = fm2;
|
||||||
|
|
||||||
evas_object_smart_callback_add(tbar->fm2, "changed",
|
evas_object_smart_callback_add(tbar->fm2, "changed",
|
||||||
_e_toolbar_fm2_changed, tbar);
|
_e_toolbar_fm2_changed, tbar);
|
||||||
evas_object_smart_callback_add(tbar->fm2, "dir_changed",
|
evas_object_smart_callback_add(tbar->fm2, "dir_changed",
|
||||||
_e_toolbar_fm2_dir_changed, tbar);
|
_e_toolbar_fm2_dir_changed, tbar);
|
||||||
evas_object_smart_callback_add(tbar->fm2, "dir_deleted",
|
evas_object_smart_callback_add(tbar->fm2, "dir_deleted",
|
||||||
_e_toolbar_fm2_dir_deleted, tbar);
|
_e_toolbar_fm2_dir_deleted, tbar);
|
||||||
evas_object_smart_callback_add(tbar->fm2, "files_deleted",
|
evas_object_smart_callback_add(tbar->fm2, "files_deleted",
|
||||||
_e_toolbar_fm2_files_deleted, tbar);
|
_e_toolbar_fm2_files_deleted, tbar);
|
||||||
evas_object_smart_callback_add(tbar->fm2, "selected",
|
evas_object_smart_callback_add(tbar->fm2, "selected",
|
||||||
_e_toolbar_fm2_selected, tbar);
|
_e_toolbar_fm2_selected, tbar);
|
||||||
evas_object_smart_callback_add(tbar->fm2, "selection_change",
|
evas_object_smart_callback_add(tbar->fm2, "selection_change",
|
||||||
_e_toolbar_fm2_selection_changed, tbar);
|
_e_toolbar_fm2_selection_changed, tbar);
|
||||||
|
|
||||||
tbar->o_event = evas_object_rectangle_add(evas);
|
tbar->o_event = evas_object_rectangle_add(evas);
|
||||||
evas_object_color_set(tbar->o_event, 0, 0, 0, 0);
|
evas_object_color_set(tbar->o_event, 0, 0, 0, 0);
|
||||||
evas_object_resize(tbar->o_event, tbar->w, tbar->h);
|
evas_object_resize(tbar->o_event, tbar->w, tbar->h);
|
||||||
evas_object_event_callback_add(tbar->o_event, EVAS_CALLBACK_MOUSE_DOWN,
|
evas_object_event_callback_add(tbar->o_event, EVAS_CALLBACK_MOUSE_DOWN,
|
||||||
_e_toolbar_cb_mouse_down, tbar);
|
_e_toolbar_cb_mouse_down, tbar);
|
||||||
evas_object_layer_set(tbar->o_event, 0);
|
evas_object_layer_set(tbar->o_event, 0);
|
||||||
evas_object_show(tbar->o_event);
|
evas_object_show(tbar->o_event);
|
||||||
|
|
||||||
tbar->o_base = edje_object_add(evas);
|
tbar->o_base = edje_object_add(evas);
|
||||||
evas_object_resize(tbar->o_base, tbar->w, tbar->h);
|
evas_object_resize(tbar->o_base, tbar->w, tbar->h);
|
||||||
e_theme_edje_object_set(tbar->o_base, "base/theme/fileman/toolbar",
|
e_theme_edje_object_set(tbar->o_base, "base/theme/fileman/toolbar",
|
||||||
"e/fileman/toolbar/default/base");
|
"e/fileman/toolbar/default/base");
|
||||||
|
|
||||||
e_toolbar_move_resize(tbar, tbar->x, tbar->y, tbar->w, tbar->h);
|
e_toolbar_move_resize(tbar, tbar->x, tbar->y, tbar->w, tbar->h);
|
||||||
|
|
||||||
tbar->gadcon = e_gadcon_swallowed_new(tbar->name, tbar->id, tbar->o_base,
|
tbar->gadcon = e_gadcon_swallowed_new(tbar->name, tbar->id, tbar->o_base,
|
||||||
"e.swallow.content");
|
"e.swallow.content");
|
||||||
e_gadcon_size_request_callback_set(tbar->gadcon,
|
e_gadcon_size_request_callback_set(tbar->gadcon,
|
||||||
_e_toolbar_gadcon_size_request, tbar);
|
_e_toolbar_gadcon_size_request, tbar);
|
||||||
/* FIXME: We want to implement "styles" here ? */
|
/* FIXME: We want to implement "styles" here ? */
|
||||||
|
|
||||||
e_toolbar_orient(tbar, E_GADCON_ORIENT_TOP);
|
e_toolbar_orient(tbar, E_GADCON_ORIENT_TOP);
|
||||||
|
|
||||||
e_gadcon_toolbar_set(tbar->gadcon, tbar);
|
e_gadcon_toolbar_set(tbar->gadcon, tbar);
|
||||||
e_gadcon_util_menu_attach_func_set(tbar->gadcon,
|
e_gadcon_util_menu_attach_func_set(tbar->gadcon,
|
||||||
_e_toolbar_menu_items_append, tbar);
|
_e_toolbar_menu_items_append, tbar);
|
||||||
e_gadcon_populate(tbar->gadcon);
|
e_gadcon_populate(tbar->gadcon);
|
||||||
|
|
||||||
toolbars = eina_list_append(toolbars, tbar);
|
toolbars = eina_list_append(toolbars, tbar);
|
||||||
|
@ -206,7 +206,7 @@ e_toolbar_orient(E_Toolbar *tbar, E_Gadcon_Orient orient)
|
||||||
E_OBJECT_TYPE_CHECK(tbar, E_TOOLBAR_TYPE);
|
E_OBJECT_TYPE_CHECK(tbar, E_TOOLBAR_TYPE);
|
||||||
e_gadcon_orient(tbar->gadcon, orient);
|
e_gadcon_orient(tbar->gadcon, orient);
|
||||||
snprintf(buf, sizeof(buf), "e,state,orientation,%s",
|
snprintf(buf, sizeof(buf), "e,state,orientation,%s",
|
||||||
_e_toolbar_orient_string_get(tbar));
|
_e_toolbar_orient_string_get(tbar));
|
||||||
edje_object_signal_emit(tbar->o_base, buf, "e");
|
edje_object_signal_emit(tbar->o_base, buf, "e");
|
||||||
edje_object_message_signal_process(tbar->o_base);
|
edje_object_message_signal_process(tbar->o_base);
|
||||||
}
|
}
|
||||||
|
@ -224,32 +224,36 @@ e_toolbar_position_calc(E_Toolbar *tbar)
|
||||||
{
|
{
|
||||||
case E_GADCON_ORIENT_HORIZ:
|
case E_GADCON_ORIENT_HORIZ:
|
||||||
case E_GADCON_ORIENT_TOP:
|
case E_GADCON_ORIENT_TOP:
|
||||||
tbar->x = 0;
|
tbar->x = 0;
|
||||||
tbar->y = 0;
|
tbar->y = 0;
|
||||||
tbar->h = 32;
|
tbar->h = 32;
|
||||||
tbar->w = tbar->fwin->w;
|
tbar->w = tbar->fwin->w;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_BOTTOM:
|
case E_GADCON_ORIENT_BOTTOM:
|
||||||
tbar->x = 0;
|
tbar->x = 0;
|
||||||
tbar->h = 32;
|
tbar->h = 32;
|
||||||
tbar->w = tbar->fwin->w;
|
tbar->w = tbar->fwin->w;
|
||||||
tbar->y = (tbar->fwin->h - tbar->h);
|
tbar->y = (tbar->fwin->h - tbar->h);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_VERT:
|
case E_GADCON_ORIENT_VERT:
|
||||||
case E_GADCON_ORIENT_LEFT:
|
case E_GADCON_ORIENT_LEFT:
|
||||||
tbar->x = 0;
|
tbar->x = 0;
|
||||||
tbar->w = 32;
|
tbar->w = 32;
|
||||||
tbar->h = tbar->fwin->h;
|
tbar->h = tbar->fwin->h;
|
||||||
tbar->y = 0;
|
tbar->y = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_RIGHT:
|
case E_GADCON_ORIENT_RIGHT:
|
||||||
tbar->y = 0;
|
tbar->y = 0;
|
||||||
tbar->w = 32;
|
tbar->w = 32;
|
||||||
tbar->x = (tbar->fwin->w - tbar->w);
|
tbar->x = (tbar->fwin->w - tbar->w);
|
||||||
tbar->h = tbar->fwin->h;
|
tbar->h = tbar->fwin->h;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
e_toolbar_move_resize(tbar, tbar->x, tbar->y, tbar->w, tbar->h);
|
e_toolbar_move_resize(tbar, tbar->x, tbar->y, tbar->w, tbar->h);
|
||||||
}
|
}
|
||||||
|
@ -270,9 +274,9 @@ _e_toolbar_free(E_Toolbar *tbar)
|
||||||
|
|
||||||
if (tbar->menu)
|
if (tbar->menu)
|
||||||
{
|
{
|
||||||
e_menu_post_deactivate_callback_set(tbar->menu, NULL, NULL);
|
e_menu_post_deactivate_callback_set(tbar->menu, NULL, NULL);
|
||||||
e_object_del(E_OBJECT(tbar->menu));
|
e_object_del(E_OBJECT(tbar->menu));
|
||||||
tbar->menu = NULL;
|
tbar->menu = NULL;
|
||||||
}
|
}
|
||||||
if (tbar->cfg_dlg) e_object_del(E_OBJECT(tbar->cfg_dlg));
|
if (tbar->cfg_dlg) e_object_del(E_OBJECT(tbar->cfg_dlg));
|
||||||
e_object_del(E_OBJECT(tbar->gadcon));
|
e_object_del(E_OBJECT(tbar->gadcon));
|
||||||
|
@ -301,7 +305,7 @@ _e_toolbar_cb_mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __U
|
||||||
zone = e_util_zone_current_get(e_manager_current_get());
|
zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
ecore_x_pointer_xy_get(zone->container->win, &x, &y);
|
ecore_x_pointer_xy_get(zone->container->win, &x, &y);
|
||||||
e_menu_activate_mouse(mn, zone, x, y, 1, 1,
|
e_menu_activate_mouse(mn, zone, x, y, 1, 1,
|
||||||
E_MENU_POP_DIRECTION_DOWN, ev->timestamp);
|
E_MENU_POP_DIRECTION_DOWN, ev->timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -417,53 +421,59 @@ _e_toolbar_gadcon_size_request(void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coor
|
||||||
{
|
{
|
||||||
case E_GADCON_ORIENT_TOP:
|
case E_GADCON_ORIENT_TOP:
|
||||||
case E_GADCON_ORIENT_BOTTOM:
|
case E_GADCON_ORIENT_BOTTOM:
|
||||||
w = ww;
|
w = ww;
|
||||||
h = 32;
|
h = 32;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_LEFT:
|
case E_GADCON_ORIENT_LEFT:
|
||||||
case E_GADCON_ORIENT_RIGHT:
|
case E_GADCON_ORIENT_RIGHT:
|
||||||
w = 32;
|
w = 32;
|
||||||
h = hh;
|
h = hh;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
e_gadcon_swallowed_min_size_set(gc, w, h);
|
e_gadcon_swallowed_min_size_set(gc, w, h);
|
||||||
edje_object_size_min_calc(tbar->o_base, &nw, &nh);
|
edje_object_size_min_calc(tbar->o_base, &nw, &nh);
|
||||||
switch (gc->orient)
|
switch (gc->orient)
|
||||||
{
|
{
|
||||||
case E_GADCON_ORIENT_TOP:
|
case E_GADCON_ORIENT_TOP:
|
||||||
nx = ny = 0;
|
nx = ny = 0;
|
||||||
nw = tbar->w;
|
nw = tbar->w;
|
||||||
nh = tbar->h;
|
nh = tbar->h;
|
||||||
if (nw > tbar->fwin->w) nw = tbar->fwin->w;
|
if (nw > tbar->fwin->w) nw = tbar->fwin->w;
|
||||||
if (nh > tbar->fwin->h) nh = 32;
|
if (nh > tbar->fwin->h) nh = 32;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_BOTTOM:
|
case E_GADCON_ORIENT_BOTTOM:
|
||||||
nx = 0;
|
nx = 0;
|
||||||
nw = tbar->w;
|
nw = tbar->w;
|
||||||
nh = tbar->h;
|
nh = tbar->h;
|
||||||
if (nw > tbar->fwin->w) nw = tbar->fwin->w;
|
if (nw > tbar->fwin->w) nw = tbar->fwin->w;
|
||||||
if (nh > tbar->fwin->h) nh = 32;
|
if (nh > tbar->fwin->h) nh = 32;
|
||||||
ny = (tbar->fwin->h - nh);
|
ny = (tbar->fwin->h - nh);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_LEFT:
|
case E_GADCON_ORIENT_LEFT:
|
||||||
nx = ny = 0;
|
nx = ny = 0;
|
||||||
nw = tbar->w;
|
nw = tbar->w;
|
||||||
nh = tbar->h;
|
nh = tbar->h;
|
||||||
if (nh > tbar->fwin->h) nh = tbar->fwin->h;
|
if (nh > tbar->fwin->h) nh = tbar->fwin->h;
|
||||||
if (nw > tbar->fwin->w) nw = 32;
|
if (nw > tbar->fwin->w) nw = 32;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_RIGHT:
|
case E_GADCON_ORIENT_RIGHT:
|
||||||
ny = 0;
|
ny = 0;
|
||||||
nh = tbar->h;
|
nh = tbar->h;
|
||||||
nw = tbar->w;
|
nw = tbar->w;
|
||||||
if (nw > tbar->fwin->w) nw = 32;
|
if (nw > tbar->fwin->w) nw = 32;
|
||||||
if (nh > tbar->fwin->h) nh = tbar->fwin->h;
|
if (nh > tbar->fwin->h) nh = tbar->fwin->h;
|
||||||
nx = (tbar->fwin->w - tbar->w);
|
nx = (tbar->fwin->w - tbar->w);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
e_toolbar_move_resize(tbar, nx, ny, nw, nh);
|
e_toolbar_move_resize(tbar, nx, ny, nw, nh);
|
||||||
}
|
}
|
||||||
|
@ -476,25 +486,31 @@ _e_toolbar_orient_string_get(E_Toolbar *tbar)
|
||||||
switch (tbar->gadcon->orient)
|
switch (tbar->gadcon->orient)
|
||||||
{
|
{
|
||||||
case E_GADCON_ORIENT_HORIZ:
|
case E_GADCON_ORIENT_HORIZ:
|
||||||
sig = "horizontal";
|
sig = "horizontal";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_VERT:
|
case E_GADCON_ORIENT_VERT:
|
||||||
sig = "vertical";
|
sig = "vertical";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_LEFT:
|
case E_GADCON_ORIENT_LEFT:
|
||||||
sig = "left";
|
sig = "left";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_RIGHT:
|
case E_GADCON_ORIENT_RIGHT:
|
||||||
sig = "right";
|
sig = "right";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_TOP:
|
case E_GADCON_ORIENT_TOP:
|
||||||
sig = "top";
|
sig = "top";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_GADCON_ORIENT_BOTTOM:
|
case E_GADCON_ORIENT_BOTTOM:
|
||||||
sig = "bottom";
|
sig = "bottom";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return sig;
|
return sig;
|
||||||
}
|
}
|
||||||
|
@ -510,8 +526,8 @@ _e_toolbar_fm2_changed(void *data, Evas_Object *obj __UNUSED__, void *event_info
|
||||||
if (!tbar) return;
|
if (!tbar) return;
|
||||||
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
||||||
{
|
{
|
||||||
if (!gcc) continue;
|
if (!gcc) continue;
|
||||||
evas_object_smart_callback_call(gcc->o_base, "changed", tbar);
|
evas_object_smart_callback_call(gcc->o_base, "changed", tbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -526,8 +542,8 @@ _e_toolbar_fm2_dir_changed(void *data, Evas_Object *obj __UNUSED__, void *event_
|
||||||
if (!tbar) return;
|
if (!tbar) return;
|
||||||
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
||||||
{
|
{
|
||||||
if (!gcc) continue;
|
if (!gcc) continue;
|
||||||
evas_object_smart_callback_call(gcc->o_base, "dir_changed", tbar);
|
evas_object_smart_callback_call(gcc->o_base, "dir_changed", tbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -542,8 +558,8 @@ _e_toolbar_fm2_dir_deleted(void *data, Evas_Object *obj __UNUSED__, void *event_
|
||||||
if (!tbar) return;
|
if (!tbar) return;
|
||||||
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
||||||
{
|
{
|
||||||
if (!gcc) continue;
|
if (!gcc) continue;
|
||||||
evas_object_smart_callback_call(gcc->o_base, "dir_deleted", tbar);
|
evas_object_smart_callback_call(gcc->o_base, "dir_deleted", tbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -558,8 +574,8 @@ _e_toolbar_fm2_files_deleted(void *data, Evas_Object *obj __UNUSED__, void *even
|
||||||
if (!tbar) return;
|
if (!tbar) return;
|
||||||
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
||||||
{
|
{
|
||||||
if (!gcc) continue;
|
if (!gcc) continue;
|
||||||
evas_object_smart_callback_call(gcc->o_base, "files_deleted", tbar);
|
evas_object_smart_callback_call(gcc->o_base, "files_deleted", tbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,8 +590,8 @@ _e_toolbar_fm2_selected(void *data, Evas_Object *obj __UNUSED__, void *event_inf
|
||||||
if (!tbar) return;
|
if (!tbar) return;
|
||||||
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
||||||
{
|
{
|
||||||
if (!gcc) continue;
|
if (!gcc) continue;
|
||||||
evas_object_smart_callback_call(gcc->o_base, "selected", tbar);
|
evas_object_smart_callback_call(gcc->o_base, "selected", tbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -590,7 +606,8 @@ _e_toolbar_fm2_selection_changed(void *data, Evas_Object *obj __UNUSED__, void *
|
||||||
if (!tbar) return;
|
if (!tbar) return;
|
||||||
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
EINA_LIST_FOREACH(tbar->gadcon->clients, l, gcc)
|
||||||
{
|
{
|
||||||
if (!gcc) continue;
|
if (!gcc) continue;
|
||||||
evas_object_smart_callback_call(gcc->o_base, "selection_changed", tbar);
|
evas_object_smart_callback_call(gcc->o_base, "selection_changed", tbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,39 +8,39 @@ typedef struct _E_Toolbar E_Toolbar;
|
||||||
|
|
||||||
#define E_TOOLBAR_TYPE 0xE0b0101f
|
#define E_TOOLBAR_TYPE 0xE0b0101f
|
||||||
|
|
||||||
struct _E_Toolbar
|
struct _E_Toolbar
|
||||||
{
|
{
|
||||||
E_Object e_obj_inherit;
|
E_Object e_obj_inherit;
|
||||||
|
|
||||||
int x, y, w, h, id;
|
int x, y, w, h, id;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
Evas *evas;
|
Evas *evas;
|
||||||
E_Gadcon *gadcon;
|
E_Gadcon *gadcon;
|
||||||
E_Menu *menu;
|
E_Menu *menu;
|
||||||
|
|
||||||
E_Win *fwin;
|
E_Win *fwin;
|
||||||
Evas_Object *fm2;
|
Evas_Object *fm2;
|
||||||
|
|
||||||
E_Config_Dialog *cfg_dlg;
|
E_Config_Dialog *cfg_dlg;
|
||||||
Evas_Object *o_base, *o_event;
|
Evas_Object *o_base, *o_event;
|
||||||
};
|
};
|
||||||
|
|
||||||
EINTERN int e_toolbar_init(void);
|
EINTERN int e_toolbar_init(void);
|
||||||
EINTERN int e_toolbar_shutdown(void);
|
EINTERN int e_toolbar_shutdown(void);
|
||||||
EAPI E_Toolbar *e_toolbar_new(Evas *evas, const char *name, E_Win *fwin, Evas_Object *fm2);
|
EAPI E_Toolbar *e_toolbar_new(Evas *evas, const char *name, E_Win *fwin, Evas_Object *fm2);
|
||||||
EAPI void e_toolbar_fwin_set(E_Toolbar *tbar, E_Win *fwin);
|
EAPI void e_toolbar_fwin_set(E_Toolbar *tbar, E_Win *fwin);
|
||||||
EAPI E_Win *e_toolbar_fwin_get(E_Toolbar *tbar);
|
EAPI E_Win *e_toolbar_fwin_get(E_Toolbar *tbar);
|
||||||
EAPI void e_toolbar_fm2_set(E_Toolbar *tbar, Evas_Object *fm2);
|
EAPI void e_toolbar_fm2_set(E_Toolbar *tbar, Evas_Object *fm2);
|
||||||
EAPI Evas_Object *e_toolbar_fm2_get(E_Toolbar *tbar);
|
EAPI Evas_Object *e_toolbar_fm2_get(E_Toolbar *tbar);
|
||||||
EAPI void e_toolbar_show(E_Toolbar *tbar);
|
EAPI void e_toolbar_show(E_Toolbar *tbar);
|
||||||
EAPI void e_toolbar_hide(E_Toolbar *tbar);
|
EAPI void e_toolbar_hide(E_Toolbar *tbar);
|
||||||
EAPI void e_toolbar_move(E_Toolbar *tbar, int x, int y);
|
EAPI void e_toolbar_move(E_Toolbar *tbar, int x, int y);
|
||||||
EAPI void e_toolbar_resize(E_Toolbar *tbar, int w, int h);
|
EAPI void e_toolbar_resize(E_Toolbar *tbar, int w, int h);
|
||||||
EAPI void e_toolbar_move_resize(E_Toolbar *tbar, int x, int y, int w, int h);
|
EAPI void e_toolbar_move_resize(E_Toolbar *tbar, int x, int y, int w, int h);
|
||||||
EAPI void e_toolbar_orient(E_Toolbar *tbar, E_Gadcon_Orient orient);
|
EAPI void e_toolbar_orient(E_Toolbar *tbar, E_Gadcon_Orient orient);
|
||||||
EAPI void e_toolbar_position_calc(E_Toolbar *tbar);
|
EAPI void e_toolbar_position_calc(E_Toolbar *tbar);
|
||||||
EAPI void e_toolbar_populate(E_Toolbar *tbar);
|
EAPI void e_toolbar_populate(E_Toolbar *tbar);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue