forked from enlightenment/efl
elm: Rename some EO widget class names
It was discussed a while ago that Zoomable was a poor name in some languages, like python. This changes, in Efl.Ui, to use underscores: - Image.Zoomable - Grid.Static - Box.Flow - Box.Stack
This commit is contained in:
parent
c4ac589455
commit
031ae12c2f
|
@ -718,7 +718,7 @@ add_tests:
|
|||
ADD_TEST(NULL, "New Containers", "Ui.Box", test_ui_box);
|
||||
ADD_TEST(NULL, "New Containers", "Ui.Grid", test_ui_grid);
|
||||
ADD_TEST(NULL, "New Containers", "Ui.Grid Linear", test_ui_grid_linear);
|
||||
ADD_TEST(NULL, "New Containers", "Ui.Grid.Static", test_grid_static);
|
||||
ADD_TEST(NULL, "New Containers", "Ui.Grid_Static", test_grid_static);
|
||||
|
||||
//------------------------------//
|
||||
ADD_TEST(NULL, "New Events", "Event Refeed", test_events);
|
||||
|
|
|
@ -890,7 +890,7 @@ test_box_stack(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|||
char buf[PATH_MAX];
|
||||
|
||||
win = efl_add(EFL_UI_WIN_CLASS, NULL,
|
||||
efl_text_set(efl_added, "Efl.Ui.Box.Stack"),
|
||||
efl_text_set(efl_added, "Efl.Ui.Box_Stack"),
|
||||
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
|
||||
|
||||
efl_gfx_color_set(efl_part(win, "background"), 24, 24, 64, 255);
|
||||
|
|
|
@ -807,7 +807,7 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
|
|||
|
||||
win = efl_add(EFL_UI_WIN_CLASS, NULL,
|
||||
efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
|
||||
efl_text_set(efl_added, "Efl.Ui.Image.Zoomable animation"),
|
||||
efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"),
|
||||
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
|
||||
|
||||
bx = efl_add(EFL_UI_BOX_CLASS, win,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Efl.Ui.Box.Flow (Efl.Ui.Box, Efl.Pack.Layout)
|
||||
class Efl.Ui.Box_Flow (Efl.Ui.Box, Efl.Pack.Layout)
|
||||
{
|
||||
[[A custom layout engine for @Efl.Ui.Box.]]
|
||||
methods {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Efl.Ui.Box.Stack (Efl.Ui.Box, Efl.Pack.Layout)
|
||||
class Efl.Ui.Box_Stack (Efl.Ui.Box, Efl.Pack.Layout)
|
||||
{
|
||||
[[A custom layout engine for @Efl.Ui.Box that stacks items.
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#define MY_CLASS EFL_UI_CLOCK_CLASS
|
||||
|
||||
#define MY_CLASS_NAME "Efl_Ui_Clock"
|
||||
#define MY_CLASS_NAME "Efl.Ui.Clock"
|
||||
#define MY_CLASS_NAME_LEGACY "efl_ui_clock"
|
||||
|
||||
#ifdef HAVE_LOCALE_H
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "efl_ui_grid_private.h"
|
||||
|
||||
#define MY_CLASS EFL_UI_GRID_STATIC_CLASS
|
||||
#define MY_CLASS_NAME "Efl.Ui.Grid.Static"
|
||||
#define MY_CLASS_NAME "Efl.Ui.Grid_Static"
|
||||
#define MY_CLASS_NAME_LEGACY "elm_grid"
|
||||
|
||||
EOLIAN static Eo *
|
||||
|
@ -46,7 +46,7 @@ _efl_ui_grid_static_efl_pack_layout_layout_update(Eo *obj, void *_pd EINA_UNUSED
|
|||
|
||||
if (!gd->req_cols || !gd->req_rows)
|
||||
{
|
||||
WRN("Grid.Static size must be set before using! Default to 100x100.");
|
||||
WRN("Grid_Static size must be set before using! Default to 100x100.");
|
||||
efl_pack_grid_size_set(obj, 100, 100);
|
||||
if (!gd->req_cols || !gd->req_rows) goto err;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Efl.Ui.Grid.Static (Efl.Ui.Grid)
|
||||
class Efl.Ui.Grid_Static (Efl.Ui.Grid)
|
||||
{
|
||||
[[Efl UI grid static class]]
|
||||
data: null;
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
|
||||
#define MY_PAN_CLASS EFL_UI_IMAGE_ZOOMABLE_PAN_CLASS
|
||||
|
||||
#define MY_PAN_CLASS_NAME "Efl.Ui.Image.Zoomable.Pan"
|
||||
#define MY_PAN_CLASS_NAME "Efl.Ui.Image_Zoomable_Pan"
|
||||
#define MY_PAN_CLASS_NAME_LEGACY "elm_photocam_pan"
|
||||
|
||||
#define MY_CLASS EFL_UI_IMAGE_ZOOMABLE_CLASS
|
||||
|
||||
#define MY_CLASS_NAME "Efl.Ui.Image.Zoomable"
|
||||
#define MY_CLASS_NAME "Efl.Ui.Image_Zoomable"
|
||||
#define MY_CLASS_NAME_LEGACY "elm_photocam"
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Efl.Ui.Image.Zoomable (Elm.Widget, Efl.Ui.Image, Efl.Ui.Zoom,
|
||||
class Efl.Ui.Image_Zoomable (Elm.Widget, Efl.Ui.Image, Efl.Ui.Zoom,
|
||||
Elm.Interface_Scrollable,
|
||||
Efl.Ui.Scrollable)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Efl.Ui.Image.Zoomable.Pan (Elm.Pan)
|
||||
class Efl.Ui.Image_Zoomable_Pan (Elm.Pan)
|
||||
{
|
||||
[[Elementary photocom pan class]]
|
||||
legacy_prefix: elm_photocam_pan;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#define MY_CLASS EFL_UI_LAYOUT_CLASS
|
||||
#define MY_CLASS_PFX efl_ui_layout
|
||||
|
||||
#define MY_CLASS_NAME "Elm_Layout"
|
||||
#define MY_CLASS_NAME "Efl.Ui.Layout"
|
||||
#define MY_CLASS_NAME_LEGACY "elm_layout"
|
||||
|
||||
Eo *_efl_ui_layout_pack_proxy_get(Efl_Ui_Layout *obj, Edje_Part_Type type, const char *part);
|
||||
|
|
Loading…
Reference in New Issue