improvements to the tabbed e_fwin. changing tabs will not cause a reload, since each tab holds its own fm object.

ctrl+w will close the current tab. if there are no more tabs, the window will be closed


SVN revision: 40447
This commit is contained in:
Viktor Kojouharov 2009-04-28 17:38:09 +00:00
parent 5f4f968653
commit d9f453e443
5 changed files with 459 additions and 362 deletions

View File

@ -147,6 +147,15 @@ e_toolbar_show(E_Toolbar *tbar)
evas_object_show(tbar->o_base);
}
EAPI void
e_toolbar_hide(E_Toolbar *tbar)
{
E_OBJECT_CHECK(tbar);
E_OBJECT_TYPE_CHECK(tbar, E_TOOLBAR_TYPE);
evas_object_hide(tbar->o_event);
evas_object_hide(tbar->o_base);
}
EAPI void
e_toolbar_move(E_Toolbar *tbar, int x, int y)
{

View File

@ -34,6 +34,7 @@ EAPI E_Win *e_toolbar_fwin_get (E_Toolbar *tbar);
EAPI void e_toolbar_fm2_set (E_Toolbar *tbar, Evas_Object *fm2);
EAPI Evas_Object *e_toolbar_fm2_get (E_Toolbar *tbar);
EAPI void e_toolbar_show (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_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);

View File

@ -134,6 +134,23 @@ e_widget_toolbar_item_append(Evas_Object *obj, Evas_Object *icon, const char *la
e_widget_min_size_set(obj, mw + (500 - vw), mh + (500 - vh));
}
EAPI void
e_widget_toolbar_item_remove(Evas_Object *obj, int num)
{
E_Widget_Data *wd;
Item *it;
wd = e_widget_data_get(obj);
it = eina_list_nth(wd->items, num);
if (it)
{
evas_object_del(it->o_base);
evas_object_del(it->o_icon);
wd->items = eina_list_remove(wd->items, it);
free(it);
}
}
EAPI void
e_widget_toolbar_item_select(Evas_Object *obj, int num)
{

View File

@ -8,6 +8,7 @@
EAPI Evas_Object *e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h);
EAPI void e_widget_toolbar_item_append(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data1, void *data2), const void *data1, const void *data2);
EAPI void e_widget_toolbar_item_remove(Evas_Object *obj, int num);
EAPI void e_widget_toolbar_item_select(Evas_Object *obj, int num);
EAPI void e_widget_toolbar_item_label_set(Evas_Object *obj, int num, const char *label);
EAPI void e_widget_toolbar_scrollable_set(Evas_Object *obj, Evas_Bool scrollable);

File diff suppressed because it is too large Load Diff