elm: rename elm_progressbar to Efl.Ui.Progressbar

ref T5360

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
Amitesh Singh 2017-05-23 18:30:00 +09:00
parent 997d0261fb
commit f6b81f0a1e
10 changed files with 76 additions and 78 deletions

View File

@ -150,7 +150,7 @@ src/lib/elementary/elm_photocam.c
src/lib/elementary/elm_plug.c src/lib/elementary/elm_plug.c
src/lib/elementary/elm_prefs.c src/lib/elementary/elm_prefs.c
src/lib/elementary/elm_prefs_data.c src/lib/elementary/elm_prefs_data.c
src/lib/elementary/elm_progressbar.c src/lib/elementary/efl_ui_progressbar.c
src/lib/elementary/efl_ui_radio.c src/lib/elementary/efl_ui_radio.c
src/lib/elementary/elm_route.c src/lib/elementary/elm_route.c
src/lib/elementary/elm_scroller.c src/lib/elementary/elm_scroller.c

View File

@ -57,7 +57,7 @@ elm_public_eolian_files = \
lib/elementary/elm_player.eo \ lib/elementary/elm_player.eo \
lib/elementary/elm_plug.eo \ lib/elementary/elm_plug.eo \
lib/elementary/elm_popup.eo \ lib/elementary/elm_popup.eo \
lib/elementary/elm_progressbar.eo \ lib/elementary/efl_ui_progressbar.eo \
lib/elementary/efl_ui_radio.eo \ lib/elementary/efl_ui_radio.eo \
lib/elementary/elm_route.eo \ lib/elementary/elm_route.eo \
lib/elementary/elm_scroller.eo \ lib/elementary/elm_scroller.eo \
@ -107,7 +107,7 @@ elm_public_eolian_files = \
lib/elementary/elm_notify_internal_part.eo \ lib/elementary/elm_notify_internal_part.eo \
lib/elementary/elm_panel_internal_part.eo \ lib/elementary/elm_panel_internal_part.eo \
lib/elementary/elm_player_internal_part.eo \ lib/elementary/elm_player_internal_part.eo \
lib/elementary/elm_progressbar_internal_part.eo \ lib/elementary/efl_ui_progressbar_internal_part.eo \
lib/elementary/elm_popup_internal_part.eo \ lib/elementary/elm_popup_internal_part.eo \
lib/elementary/elm_scroller_internal_part.eo \ lib/elementary/elm_scroller_internal_part.eo \
lib/elementary/elm_code_widget.eo \ lib/elementary/elm_code_widget.eo \
@ -260,7 +260,7 @@ includesunstable_HEADERS = \
lib/elementary/elm_widget_plug.h \ lib/elementary/elm_widget_plug.h \
lib/elementary/elm_widget_popup.h \ lib/elementary/elm_widget_popup.h \
lib/elementary/elm_widget_prefs.h \ lib/elementary/elm_widget_prefs.h \
lib/elementary/elm_widget_progressbar.h \ lib/elementary/efl_ui_progressbar_private.h \
lib/elementary/efl_ui_radio_private.h \ lib/elementary/efl_ui_radio_private.h \
lib/elementary/elm_widget_route.h \ lib/elementary/elm_widget_route.h \
lib/elementary/elm_widget_scroller.h \ lib/elementary/elm_widget_scroller.h \
@ -467,7 +467,7 @@ includesub_HEADERS = \
lib/elementary/elm_prefs_data.h \ lib/elementary/elm_prefs_data.h \
lib/elementary/elm_progressbar.h \ lib/elementary/elm_progressbar.h \
lib/elementary/elm_progressbar_common.h \ lib/elementary/elm_progressbar_common.h \
lib/elementary/elm_progressbar_eo.h \ lib/elementary/efl_ui_progressbar_eo.h \
lib/elementary/elm_progressbar_legacy.h \ lib/elementary/elm_progressbar_legacy.h \
lib/elementary/elm_radio.h \ lib/elementary/elm_radio.h \
lib/elementary/efl_ui_radio_eo.h \ lib/elementary/efl_ui_radio_eo.h \
@ -628,7 +628,7 @@ lib_elementary_libelementary_la_SOURCES = \
lib/elementary/elm_prefs.c \ lib/elementary/elm_prefs.c \
lib/elementary/elm_prefs_data.c \ lib/elementary/elm_prefs_data.c \
lib/elementary/elm_prefs_edd.x \ lib/elementary/elm_prefs_edd.x \
lib/elementary/elm_progressbar.c \ lib/elementary/efl_ui_progressbar.c \
lib/elementary/efl_ui_radio.c \ lib/elementary/efl_ui_radio.c \
lib/elementary/elm_route.c \ lib/elementary/elm_route.c \
lib/elementary/elm_scroller.c \ lib/elementary/elm_scroller.c \

View File

@ -8,15 +8,15 @@
#include <Elementary.h> #include <Elementary.h>
#include "elm_priv.h" #include "elm_priv.h"
#include "elm_widget_progressbar.h" #include "efl_ui_progressbar_private.h"
#include "elm_widget_layout.h" #include "elm_widget_layout.h"
#include "elm_progressbar_internal_part.eo.h" #include "efl_ui_progressbar_internal_part.eo.h"
#include "elm_part_helper.h" #include "elm_part_helper.h"
#define MY_CLASS ELM_PROGRESSBAR_CLASS #define MY_CLASS EFL_UI_PROGRESSBAR_CLASS
#define MY_CLASS_NAME "Elm_Progressbar" #define MY_CLASS_NAME "Efl.Ui.Progressbar"
#define MY_CLASS_NAME_LEGACY "elm_progressbar" #define MY_CLASS_NAME_LEGACY "elm_progressbar"
static const char SIG_CHANGED[] = "changed"; static const char SIG_CHANGED[] = "changed";
@ -47,18 +47,18 @@ static const Elm_Layout_Part_Alias_Description _text_aliases[] =
{NULL, NULL} {NULL, NULL}
}; };
static Elm_Progress_Status * static Efl_Ui_Progress_Status *
_progress_status_new(const char *part_name, double val) _progress_status_new(const char *part_name, double val)
{ {
Elm_Progress_Status *ps; Efl_Ui_Progress_Status *ps;
ps = calloc(1, sizeof(Elm_Progress_Status)); ps = calloc(1, sizeof(Efl_Ui_Progress_Status));
ps->part_name = eina_stringshare_add(part_name); ps->part_name = eina_stringshare_add(part_name);
ps->val = val; ps->val = val;
return ps; return ps;
} }
static inline void static inline void
_progress_status_free(Elm_Progress_Status *ps) _progress_status_free(Efl_Ui_Progress_Status *ps)
{ {
eina_stringshare_del(ps->part_name); eina_stringshare_del(ps->part_name);
free(ps); free(ps);
@ -117,7 +117,7 @@ _val_set(Evas_Object *obj)
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
rtl = elm_widget_mirrored_get(obj); rtl = elm_widget_mirrored_get(obj);
Elm_Progress_Status *ps; Efl_Ui_Progress_Status *ps;
Eina_List *l; Eina_List *l;
EINA_LIST_FOREACH(sd->progress_status, l, ps) EINA_LIST_FOREACH(sd->progress_status, l, ps)
@ -134,7 +134,7 @@ _val_set(Evas_Object *obj)
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_elm_layout_sizing_eval(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNUSED) _efl_ui_progressbar_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
{ {
Evas_Coord minw = -1, minh = -1; Evas_Coord minw = -1, minh = -1;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
@ -163,7 +163,7 @@ _icon_signal_emit(Evas_Object *obj)
* spot is elm.swallow.content, not elm.swallow.icon. Fix that * spot is elm.swallow.content, not elm.swallow.icon. Fix that
* whenever we can changed the theme API */ * whenever we can changed the theme API */
EOLIAN static Eina_Bool EOLIAN static Eina_Bool
_elm_progressbar_elm_widget_sub_object_del(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNUSED, Evas_Object *sobj) _efl_ui_progressbar_elm_widget_sub_object_del(Eo *obj, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED, Evas_Object *sobj)
{ {
Eina_Bool int_ret = EINA_FALSE; Eina_Bool int_ret = EINA_FALSE;
int_ret = elm_obj_widget_sub_object_del(efl_super(obj, MY_CLASS), sobj); int_ret = elm_obj_widget_sub_object_del(efl_super(obj, MY_CLASS), sobj);
@ -178,7 +178,7 @@ _elm_progressbar_elm_widget_sub_object_del(Eo *obj, Elm_Progressbar_Data *_pd EI
* spot is elm.swallow.content, not elm.swallow.icon. Fix that * spot is elm.swallow.content, not elm.swallow.icon. Fix that
* whenever we can changed the theme API */ * whenever we can changed the theme API */
static Eina_Bool static Eina_Bool
_elm_progressbar_content_set(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNUSED, const char *part, Evas_Object *content) _efl_ui_progressbar_content_set(Eo *obj, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED, const char *part, Evas_Object *content)
{ {
Eina_Bool int_ret = EINA_FALSE; Eina_Bool int_ret = EINA_FALSE;
int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), part), content); int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), part), content);
@ -190,7 +190,7 @@ _elm_progressbar_content_set(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNUSED, con
} }
EOLIAN static Elm_Theme_Apply EOLIAN static Elm_Theme_Apply
_elm_progressbar_elm_widget_theme_apply(Eo *obj, Elm_Progressbar_Data *sd) _efl_ui_progressbar_elm_widget_theme_apply(Eo *obj, Efl_Ui_Progressbar_Data *sd)
{ {
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED; Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
ELM_LAYOUT_DATA_GET(obj, ld); ELM_LAYOUT_DATA_GET(obj, ld);
@ -279,7 +279,7 @@ _access_state_cb(void *data EINA_UNUSED, Evas_Object *obj)
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_efl_canvas_group_group_add(Eo *obj, Elm_Progressbar_Data *priv) _efl_ui_progressbar_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Progressbar_Data *priv)
{ {
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
@ -318,9 +318,9 @@ _elm_progressbar_efl_canvas_group_group_add(Eo *obj, Elm_Progressbar_Data *priv)
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_efl_canvas_group_group_del(Eo *obj, Elm_Progressbar_Data *sd) _efl_ui_progressbar_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Progressbar_Data *sd)
{ {
Elm_Progress_Status *progress_obj; Efl_Ui_Progress_Status *progress_obj;
eina_stringshare_del(sd->units); eina_stringshare_del(sd->units);
sd->units = NULL; sd->units = NULL;
@ -336,13 +336,13 @@ _elm_progressbar_efl_canvas_group_group_del(Eo *obj, Elm_Progressbar_Data *sd)
} }
EOLIAN static const Elm_Layout_Part_Alias_Description* EOLIAN static const Elm_Layout_Part_Alias_Description*
_elm_progressbar_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *_pd EINA_UNUSED) _efl_ui_progressbar_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
{ {
return _text_aliases; return _text_aliases;
} }
EOLIAN static const Elm_Layout_Part_Alias_Description* EOLIAN static const Elm_Layout_Part_Alias_Description*
_elm_progressbar_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *_pd EINA_UNUSED) _efl_ui_progressbar_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
{ {
return _content_aliases; return _content_aliases;
} }
@ -356,7 +356,7 @@ elm_progressbar_add(Evas_Object *parent)
} }
EOLIAN static Eo * EOLIAN static Eo *
_elm_progressbar_efl_object_constructor(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNUSED) _efl_ui_progressbar_efl_object_constructor(Eo *obj, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
{ {
obj = efl_constructor(efl_super(obj, MY_CLASS)); obj = efl_constructor(efl_super(obj, MY_CLASS));
efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY); efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
@ -367,7 +367,7 @@ _elm_progressbar_efl_object_constructor(Eo *obj, Elm_Progressbar_Data *_pd EINA_
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_pulse_set(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd, Eina_Bool pulse) _efl_ui_progressbar_pulse_set(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd, Eina_Bool pulse)
{ {
pulse = !!pulse; pulse = !!pulse;
if (sd->pulse == pulse) return; if (sd->pulse == pulse) return;
@ -378,13 +378,13 @@ _elm_progressbar_pulse_set(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd, Eina_B
} }
EOLIAN static Eina_Bool EOLIAN static Eina_Bool
_elm_progressbar_pulse_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd) _efl_ui_progressbar_pulse_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd)
{ {
return sd->pulse; return sd->pulse;
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_efl_orientation_orientation_set(Eo *obj, Elm_Progressbar_Data *sd, Efl_Orient dir) _efl_ui_progressbar_efl_orientation_orientation_set(Eo *obj, Efl_Ui_Progressbar_Data *sd, Efl_Orient dir)
{ {
sd->orientation = dir; sd->orientation = dir;
@ -392,13 +392,13 @@ _elm_progressbar_efl_orientation_orientation_set(Eo *obj, Elm_Progressbar_Data *
} }
EOLIAN static Efl_Orient EOLIAN static Efl_Orient
_elm_progressbar_efl_orientation_orientation_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd) _efl_ui_progressbar_efl_orientation_orientation_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd)
{ {
return sd->orientation; return sd->orientation;
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_efl_ui_progress_span_size_set(Eo *obj, Elm_Progressbar_Data *sd, Evas_Coord size) _efl_ui_progressbar_efl_ui_progress_span_size_set(Eo *obj, Efl_Ui_Progressbar_Data *sd, Evas_Coord size)
{ {
if (sd->size == size) return; if (sd->size == size) return;
@ -417,13 +417,13 @@ _elm_progressbar_efl_ui_progress_span_size_set(Eo *obj, Elm_Progressbar_Data *sd
} }
EOLIAN static Evas_Coord EOLIAN static Evas_Coord
_elm_progressbar_efl_ui_progress_span_size_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd) _efl_ui_progressbar_efl_ui_progress_span_size_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd)
{ {
return sd->size; return sd->size;
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_efl_ui_progress_progress_value_set(Eo *obj, Elm_Progressbar_Data *sd, double val) _efl_ui_progressbar_efl_ui_progress_progress_value_set(Eo *obj, Efl_Ui_Progressbar_Data *sd, double val)
{ {
if (EINA_DBL_EQ(sd->val, val)) return; if (EINA_DBL_EQ(sd->val, val)) return;
@ -431,13 +431,13 @@ _elm_progressbar_efl_ui_progress_progress_value_set(Eo *obj, Elm_Progressbar_Dat
} }
EOLIAN static double EOLIAN static double
_elm_progressbar_efl_ui_progress_progress_value_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd) _efl_ui_progressbar_efl_ui_progress_progress_value_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd)
{ {
return sd->val; return sd->val;
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_efl_ui_progress_unit_format_set(Eo *obj, Elm_Progressbar_Data *sd, const char *units) _efl_ui_progressbar_efl_ui_progress_unit_format_set(Eo *obj, Efl_Ui_Progressbar_Data *sd, const char *units)
{ {
const char *sig; const char *sig;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
@ -452,13 +452,13 @@ _elm_progressbar_efl_ui_progress_unit_format_set(Eo *obj, Elm_Progressbar_Data *
} }
EOLIAN static const char * EOLIAN static const char *
_elm_progressbar_efl_ui_progress_unit_format_get(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd) _efl_ui_progressbar_efl_ui_progress_unit_format_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd)
{ {
return sd->units; return sd->units;
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_pulse(Eo *obj, Elm_Progressbar_Data *sd, Eina_Bool state) _efl_ui_progressbar_pulse(Eo *obj, Efl_Ui_Progressbar_Data *sd, Eina_Bool state)
{ {
state = !!state; state = !!state;
if ((!sd->pulse) || (sd->pulse_state == state)) return; if ((!sd->pulse) || (sd->pulse_state == state)) return;
@ -472,15 +472,15 @@ _elm_progressbar_pulse(Eo *obj, Elm_Progressbar_Data *sd, Eina_Bool state)
} }
EOLIAN static Eina_Bool EOLIAN static Eina_Bool
_elm_progressbar_is_pulsing_get(const Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd) _efl_ui_progressbar_is_pulsing_get(const Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd)
{ {
return (sd->pulse_state && sd->pulse); return (sd->pulse_state && sd->pulse);
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_part_value_set(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd, const char *part_name, double val) _efl_ui_progressbar_part_value_set(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd, const char *part_name, double val)
{ {
Elm_Progress_Status *ps; Efl_Ui_Progress_Status *ps;
Eina_Bool existing_ps = EINA_FALSE; Eina_Bool existing_ps = EINA_FALSE;
Eina_List *l; Eina_List *l;
@ -510,13 +510,13 @@ _elm_progressbar_part_value_set(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd, c
_val_set(obj); _val_set(obj);
_units_set(obj); _units_set(obj);
efl_event_callback_legacy_call efl_event_callback_legacy_call
(obj, ELM_PROGRESSBAR_EVENT_CHANGED, NULL); (obj, EFL_UI_PROGRESSBAR_EVENT_CHANGED, NULL);
} }
EOLIAN static double EOLIAN static double
_elm_progressbar_part_value_get(const Eo *obj EINA_UNUSED, Elm_Progressbar_Data *sd, const char* part) _efl_ui_progressbar_part_value_get(const Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *sd, const char* part)
{ {
Elm_Progress_Status *ps; Efl_Ui_Progress_Status *ps;
Eina_List *l; Eina_List *l;
EINA_LIST_FOREACH(sd->progress_status, l, ps) EINA_LIST_FOREACH(sd->progress_status, l, ps)
@ -528,43 +528,43 @@ _elm_progressbar_part_value_get(const Eo *obj EINA_UNUSED, Elm_Progressbar_Data
} }
EAPI void EAPI void
elm_progressbar_value_set(Elm_Progressbar *obj, double val) elm_progressbar_value_set(Evas_Object *obj, double val)
{ {
efl_ui_progress_value_set(obj, val); efl_ui_progress_value_set(obj, val);
} }
EAPI double EAPI double
elm_progressbar_value_get(const Elm_Progressbar *obj) elm_progressbar_value_get(const Evas_Object *obj)
{ {
return efl_ui_progress_value_get(obj); return efl_ui_progress_value_get(obj);
} }
EAPI void EAPI void
elm_progressbar_span_size_set(Elm_Progressbar *obj, Evas_Coord size) elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size)
{ {
efl_ui_progress_span_size_set(obj, size); efl_ui_progress_span_size_set(obj, size);
} }
EAPI Evas_Coord EAPI Evas_Coord
elm_progressbar_span_size_get(const Elm_Progressbar *obj) elm_progressbar_span_size_get(const Evas_Object *obj)
{ {
return efl_ui_progress_span_size_get(obj); return efl_ui_progress_span_size_get(obj);
} }
EAPI void EAPI void
elm_progressbar_unit_format_set(Elm_Progressbar *obj, const char *units) elm_progressbar_unit_format_set(Evas_Object *obj, const char *units)
{ {
efl_ui_progress_unit_format_set(obj, units); efl_ui_progress_unit_format_set(obj, units);
} }
EAPI const char * EAPI const char *
elm_progressbar_unit_format_get(const Elm_Progressbar *obj) elm_progressbar_unit_format_get(const Evas_Object *obj)
{ {
return efl_ui_progress_unit_format_get(obj); return efl_ui_progress_unit_format_get(obj);
} }
EAPI void EAPI void
elm_progressbar_unit_format_function_set(Elm_Progressbar *obj, progressbar_func_type func, progressbar_freefunc_type free_func) elm_progressbar_unit_format_function_set(Evas_Object *obj, progressbar_func_type func, progressbar_freefunc_type free_func)
{ {
const char *sig; const char *sig;
ELM_PROGRESSBAR_DATA_GET(obj, sd); ELM_PROGRESSBAR_DATA_GET(obj, sd);
@ -600,7 +600,7 @@ _orientation_get(Eina_Bool horizontal, Eina_Bool inverted)
} }
EAPI void EAPI void
elm_progressbar_horizontal_set(Elm_Progressbar *obj, Eina_Bool horizontal) elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
{ {
Efl_Orient dir; Efl_Orient dir;
ELM_PROGRESSBAR_DATA_GET(obj, sd); ELM_PROGRESSBAR_DATA_GET(obj, sd);
@ -611,7 +611,7 @@ elm_progressbar_horizontal_set(Elm_Progressbar *obj, Eina_Bool horizontal)
} }
EAPI Eina_Bool EAPI Eina_Bool
elm_progressbar_horizontal_get(const Elm_Progressbar *obj) elm_progressbar_horizontal_get(const Evas_Object *obj)
{ {
Efl_Orient dir; Efl_Orient dir;
dir = efl_orientation_get(obj); dir = efl_orientation_get(obj);
@ -620,7 +620,7 @@ elm_progressbar_horizontal_get(const Elm_Progressbar *obj)
} }
EAPI void EAPI void
elm_progressbar_inverted_set(Elm_Progressbar *obj, Eina_Bool inverted) elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted)
{ {
Efl_Orient dir; Efl_Orient dir;
ELM_PROGRESSBAR_DATA_GET(obj, sd); ELM_PROGRESSBAR_DATA_GET(obj, sd);
@ -631,7 +631,7 @@ elm_progressbar_inverted_set(Elm_Progressbar *obj, Eina_Bool inverted)
} }
EAPI Eina_Bool EAPI Eina_Bool
elm_progressbar_inverted_get(const Elm_Progressbar *obj) elm_progressbar_inverted_get(const Evas_Object *obj)
{ {
Efl_Orient dir; Efl_Orient dir;
dir = efl_orientation_get(obj); dir = efl_orientation_get(obj);
@ -640,34 +640,34 @@ elm_progressbar_inverted_get(const Elm_Progressbar *obj)
} }
EOLIAN static Eina_Bool EOLIAN static Eina_Bool
_elm_progressbar_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *_pd EINA_UNUSED) _efl_ui_progressbar_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
{ {
return EINA_FALSE; return EINA_FALSE;
} }
EOLIAN static Eina_Bool EOLIAN static Eina_Bool
_elm_progressbar_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, Elm_Progressbar_Data *_pd EINA_UNUSED) _efl_ui_progressbar_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
{ {
return EINA_FALSE; return EINA_FALSE;
} }
EOLIAN static void EOLIAN static void
_elm_progressbar_class_constructor(Efl_Class *klass) _efl_ui_progressbar_class_constructor(Efl_Class *klass)
{ {
evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass); evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
} }
/* Efl.Part begin */ /* Efl.Part begin */
ELM_PART_OVERRIDE(elm_progressbar, ELM_PROGRESSBAR, ELM_LAYOUT, Elm_Progressbar_Data, Elm_Part_Data) ELM_PART_OVERRIDE(efl_ui_progressbar, EFL_UI_PROGRESSBAR, ELM_LAYOUT, Efl_Ui_Progressbar_Data, Elm_Part_Data)
ELM_PART_OVERRIDE_CONTENT_SET(elm_progressbar, ELM_PROGRESSBAR, ELM_LAYOUT, Elm_Progressbar_Data, Elm_Part_Data) ELM_PART_OVERRIDE_CONTENT_SET(efl_ui_progressbar, EFL_UI_PROGRESSBAR, ELM_LAYOUT, Efl_Ui_Progressbar_Data, Elm_Part_Data)
#include "elm_progressbar_internal_part.eo.c" #include "efl_ui_progressbar_internal_part.eo.c"
/* Efl.Part end */ /* Efl.Part end */
/* Internal EO APIs and hidden overrides */ /* Internal EO APIs and hidden overrides */
#define ELM_PROGRESSBAR_EXTRA_OPS \ #define EFL_UI_PROGRESSBAR_EXTRA_OPS \
EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_progressbar) EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_progressbar)
#include "elm_progressbar.eo.c" #include "efl_ui_progressbar.eo.c"

View File

@ -1,10 +1,8 @@
class Elm.Progressbar (Elm.Layout, Efl.Ui.Progress, class Efl.Ui.Progressbar (Elm.Layout, Efl.Ui.Progress,
Efl.Orientation) Efl.Orientation)
{ {
[[Elementary progressbar class]] [[Elementary progressbar class]]
legacy_prefix: elm_progressbar; legacy_prefix: elm_progressbar;
eo_prefix: elm_obj_progressbar;
event_prefix: elm_progressbar;
methods { methods {
@property pulse { @property pulse {
[[Control whether a given progress bar widget is at "pulsing mode" or not. [[Control whether a given progress bar widget is at "pulsing mode" or not.

View File

@ -0,0 +1 @@
#include "efl_ui_progressbar.eo.h"

View File

@ -1,4 +1,4 @@
class Elm.Progressbar.Internal.Part (Elm.Layout.Internal.Part) class Efl.Ui.Progressbar.Internal.Part (Elm.Layout.Internal.Part)
{ {
[[Elementary progressbar internal part class]] [[Elementary progressbar internal part class]]
data: null; data: null;

View File

@ -1,5 +1,5 @@
#ifndef ELM_WIDGET_PROGRESSBAR_H #ifndef EFL_UI_PROGRESSBAR_PRIVATE_H
#define ELM_WIDGET_PROGRESSBAR_H #define EFL_UI_PROGRESSBAR_PRIVATE_H
#include "Elementary.h" #include "Elementary.h"
@ -23,10 +23,10 @@
/** /**
* Base layout smart data extended with progressbar instance data. * Base layout smart data extended with progressbar instance data.
*/ */
typedef struct _Elm_Progressbar_Data Elm_Progressbar_Data; typedef struct _Efl_Ui_Progressbar_Data Efl_Ui_Progressbar_Data;
typedef struct _Elm_Progress_Status Elm_Progress_Status; typedef struct _Efl_Ui_Progress_Status Efl_Ui_Progress_Status;
struct _Elm_Progressbar_Data struct _Efl_Ui_Progressbar_Data
{ {
Evas_Object *spacer; /**< The rect actual progressbar area, gets the progressbar size and gets the events */ Evas_Object *spacer; /**< The rect actual progressbar area, gets the progressbar size and gets the events */
const char *units; /**< The units will be displayed on progressbar */ const char *units; /**< The units will be displayed on progressbar */
@ -43,7 +43,7 @@ struct _Elm_Progressbar_Data
void (*unit_format_free)(char *str); /**< The freeing function for the format string */ void (*unit_format_free)(char *str); /**< The freeing function for the format string */
}; };
struct _Elm_Progress_Status struct _Efl_Ui_Progress_Status
{ {
const char *part_name; const char *part_name;
double val; double val;
@ -54,7 +54,7 @@ struct _Elm_Progress_Status
*/ */
#define ELM_PROGRESSBAR_DATA_GET(o, sd) \ #define ELM_PROGRESSBAR_DATA_GET(o, sd) \
Elm_Progressbar_Data * sd = efl_data_scope_get(o, ELM_PROGRESSBAR_CLASS) Efl_Ui_Progressbar_Data * sd = efl_data_scope_get(o, EFL_UI_PROGRESSBAR_CLASS)
#define ELM_PROGRESSBAR_DATA_GET_OR_RETURN(o, ptr) \ #define ELM_PROGRESSBAR_DATA_GET_OR_RETURN(o, ptr) \
ELM_PROGRESSBAR_DATA_GET(o, ptr); \ ELM_PROGRESSBAR_DATA_GET(o, ptr); \
@ -75,7 +75,7 @@ struct _Elm_Progress_Status
} }
#define ELM_PROGRESSBAR_CHECK(obj) \ #define ELM_PROGRESSBAR_CHECK(obj) \
if (EINA_UNLIKELY(!efl_isa((obj), ELM_PROGRESSBAR_CLASS))) \ if (EINA_UNLIKELY(!efl_isa((obj), EFL_UI_PROGRESSBAR_CLASS))) \
return return
#endif #endif

View File

@ -64,7 +64,7 @@
#include "elm_progressbar_common.h" #include "elm_progressbar_common.h"
#ifdef EFL_EO_API_SUPPORT #ifdef EFL_EO_API_SUPPORT
#include "elm_progressbar_eo.h" #include "efl_ui_progressbar_eo.h"
#endif #endif
#ifndef EFL_NOLEGACY_API_SUPPORT #ifndef EFL_NOLEGACY_API_SUPPORT
#include "elm_progressbar_legacy.h" #include "elm_progressbar_legacy.h"

View File

@ -1 +0,0 @@
#include "elm_progressbar.eo.h"

View File

@ -186,4 +186,4 @@ EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj);
*/ */
EAPI void elm_progressbar_unit_format_function_set(Evas_Object *obj, progressbar_func_type func, progressbar_freefunc_type free_func); EAPI void elm_progressbar_unit_format_function_set(Evas_Object *obj, progressbar_func_type func, progressbar_freefunc_type free_func);
#include "elm_progressbar.eo.legacy.h" #include "efl_ui_progressbar.eo.legacy.h"