forked from enlightenment/efl
elm_conformant: remove all legacy usage from eo files
this takes the current generated output from eolian for legacy code in efl and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8162
This commit is contained in:
parent
4e1ec2d3e9
commit
baac840c32
|
@ -187,7 +187,6 @@ elm_private_eolian_files = \
|
||||||
elm_legacy_eolian_files = \
|
elm_legacy_eolian_files = \
|
||||||
lib/elementary/efl_ui_clock_legacy.eo \
|
lib/elementary/efl_ui_clock_legacy.eo \
|
||||||
lib/elementary/elm_interface_fileselector.eo \
|
lib/elementary/elm_interface_fileselector.eo \
|
||||||
lib/elementary/elm_conformant.eo \
|
|
||||||
lib/elementary/elm_ctxpopup.eo \
|
lib/elementary/elm_ctxpopup.eo \
|
||||||
lib/elementary/elm_dayselector.eo \
|
lib/elementary/elm_dayselector.eo \
|
||||||
lib/elementary/elm_entry.eo \
|
lib/elementary/elm_entry.eo \
|
||||||
|
@ -340,6 +339,7 @@ lib/elementary/elm_color_item_eo.legacy.c \
|
||||||
lib/elementary/elm_color_item_eo.c \
|
lib/elementary/elm_color_item_eo.c \
|
||||||
lib/elementary/elm_colorselector_eo.legacy.c \
|
lib/elementary/elm_colorselector_eo.legacy.c \
|
||||||
lib/elementary/elm_colorselector_eo.c \
|
lib/elementary/elm_colorselector_eo.c \
|
||||||
|
lib/elementary/elm_conformant_eo.c \
|
||||||
lib/elementary/elm_hoversel_eo.c \
|
lib/elementary/elm_hoversel_eo.c \
|
||||||
lib/elementary/elm_hoversel_item_eo.c \
|
lib/elementary/elm_hoversel_item_eo.c \
|
||||||
lib/elementary/elm_hoversel_item_eo.legacy.c
|
lib/elementary/elm_hoversel_item_eo.legacy.c
|
||||||
|
@ -409,6 +409,8 @@ lib/elementary/elm_color_item_eo.h \
|
||||||
lib/elementary/elm_color_item_eo.legacy.h \
|
lib/elementary/elm_color_item_eo.legacy.h \
|
||||||
lib/elementary/elm_colorselector_eo.h \
|
lib/elementary/elm_colorselector_eo.h \
|
||||||
lib/elementary/elm_colorselector_eo.legacy.h \
|
lib/elementary/elm_colorselector_eo.legacy.h \
|
||||||
|
lib/elementary/elm_conformant_eo.h \
|
||||||
|
lib/elementary/elm_conformant_eo.legacy.h \
|
||||||
lib/elementary/elm_hoversel_eo.h \
|
lib/elementary/elm_hoversel_eo.h \
|
||||||
lib/elementary/elm_hoversel_eo.legacy.h \
|
lib/elementary/elm_hoversel_eo.legacy.h \
|
||||||
lib/elementary/elm_hoversel_item_eo.h \
|
lib/elementary/elm_hoversel_item_eo.h \
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include "elm_widget_plug.h"
|
#include "elm_widget_plug.h"
|
||||||
#include "elm_scroller.eo.h"
|
#include "elm_scroller.eo.h"
|
||||||
#include "elm_genlist.eo.h"
|
#include "elm_genlist.eo.h"
|
||||||
#include "elm_conformant.eo.h"
|
#include "elm_conformant_eo.h"
|
||||||
|
|
||||||
#define MY_CLASS ELM_CONFORMANT_CLASS
|
#define MY_CLASS ELM_CONFORMANT_CLASS
|
||||||
#define MY_CLASS_PFX elm_conformant
|
#define MY_CLASS_PFX elm_conformant
|
||||||
|
@ -1034,4 +1034,4 @@ ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT(MY_CLASS_PFX)
|
||||||
ELM_LAYOUT_CONTENT_ALIASES_OPS(MY_CLASS_PFX), \
|
ELM_LAYOUT_CONTENT_ALIASES_OPS(MY_CLASS_PFX), \
|
||||||
EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_conformant)
|
EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_conformant)
|
||||||
|
|
||||||
#include "elm_conformant.eo.c"
|
#include "elm_conformant_eo.c"
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
class Elm.Conformant extends Efl.Ui.Layout_Base implements Efl.Ui.Legacy
|
|
||||||
{
|
|
||||||
[[Elementary conformant class]]
|
|
||||||
legacy_prefix: elm_conformant;
|
|
||||||
eo_prefix: elm_obj_conformant;
|
|
||||||
event_prefix: elm_conformant;
|
|
||||||
implements {
|
|
||||||
class.constructor;
|
|
||||||
Efl.Object.constructor;
|
|
||||||
Efl.Ui.Widget.widget_parent { set; }
|
|
||||||
Efl.Ui.Widget.theme_apply;
|
|
||||||
}
|
|
||||||
events {
|
|
||||||
virtualkeypad,state,on: void; [[Called when virtualkeypad was enabled]]
|
|
||||||
virtualkeypad,state,off: void; [[Called when virtualkeypad was disabled]]
|
|
||||||
clipboard,state,on: void; [[Called when clipboard was enabled]]
|
|
||||||
clipboard,state,off: void; [[Called when clipboard was disabled]]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
EWAPI const Efl_Event_Description _ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_ON =
|
||||||
|
EFL_EVENT_DESCRIPTION("virtualkeypad,state,on");
|
||||||
|
EWAPI const Efl_Event_Description _ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_OFF =
|
||||||
|
EFL_EVENT_DESCRIPTION("virtualkeypad,state,off");
|
||||||
|
EWAPI const Efl_Event_Description _ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_ON =
|
||||||
|
EFL_EVENT_DESCRIPTION("clipboard,state,on");
|
||||||
|
EWAPI const Efl_Event_Description _ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_OFF =
|
||||||
|
EFL_EVENT_DESCRIPTION("clipboard,state,off");
|
||||||
|
|
||||||
|
Efl_Object *_elm_conformant_efl_object_constructor(Eo *obj, Elm_Conformant_Data *pd);
|
||||||
|
|
||||||
|
|
||||||
|
void _elm_conformant_efl_ui_widget_widget_parent_set(Eo *obj, Elm_Conformant_Data *pd, Efl_Ui_Widget *parent);
|
||||||
|
|
||||||
|
|
||||||
|
Eina_Error _elm_conformant_efl_ui_widget_theme_apply(Eo *obj, Elm_Conformant_Data *pd);
|
||||||
|
|
||||||
|
|
||||||
|
static Eina_Bool
|
||||||
|
_elm_conformant_class_initializer(Efl_Class *klass)
|
||||||
|
{
|
||||||
|
const Efl_Object_Ops *opsp = NULL;
|
||||||
|
|
||||||
|
const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
|
||||||
|
|
||||||
|
#ifndef ELM_CONFORMANT_EXTRA_OPS
|
||||||
|
#define ELM_CONFORMANT_EXTRA_OPS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
EFL_OPS_DEFINE(ops,
|
||||||
|
EFL_OBJECT_OP_FUNC(efl_constructor, _elm_conformant_efl_object_constructor),
|
||||||
|
EFL_OBJECT_OP_FUNC(efl_ui_widget_parent_set, _elm_conformant_efl_ui_widget_widget_parent_set),
|
||||||
|
EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_conformant_efl_ui_widget_theme_apply),
|
||||||
|
ELM_CONFORMANT_EXTRA_OPS
|
||||||
|
);
|
||||||
|
opsp = &ops;
|
||||||
|
|
||||||
|
return efl_class_functions_set(klass, opsp, ropsp);
|
||||||
|
}
|
||||||
|
|
||||||
|
static const Efl_Class_Description _elm_conformant_class_desc = {
|
||||||
|
EO_VERSION,
|
||||||
|
"Elm.Conformant",
|
||||||
|
EFL_CLASS_TYPE_REGULAR,
|
||||||
|
sizeof(Elm_Conformant_Data),
|
||||||
|
_elm_conformant_class_initializer,
|
||||||
|
_elm_conformant_class_constructor,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
EFL_DEFINE_CLASS(elm_conformant_class_get, &_elm_conformant_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_LEGACY_INTERFACE, NULL);
|
|
@ -0,0 +1,56 @@
|
||||||
|
#ifndef _ELM_CONFORMANT_EO_H_
|
||||||
|
#define _ELM_CONFORMANT_EO_H_
|
||||||
|
|
||||||
|
#ifndef _ELM_CONFORMANT_EO_CLASS_TYPE
|
||||||
|
#define _ELM_CONFORMANT_EO_CLASS_TYPE
|
||||||
|
|
||||||
|
typedef Eo Elm_Conformant;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _ELM_CONFORMANT_EO_TYPES
|
||||||
|
#define _ELM_CONFORMANT_EO_TYPES
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
/** Elementary conformant class
|
||||||
|
*
|
||||||
|
* @ingroup Elm_Conformant
|
||||||
|
*/
|
||||||
|
#define ELM_CONFORMANT_CLASS elm_conformant_class_get()
|
||||||
|
|
||||||
|
EWAPI const Efl_Class *elm_conformant_class_get(void);
|
||||||
|
|
||||||
|
EWAPI extern const Efl_Event_Description _ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_ON;
|
||||||
|
|
||||||
|
/** Called when virtualkeypad was enabled
|
||||||
|
*
|
||||||
|
* @ingroup Elm_Conformant
|
||||||
|
*/
|
||||||
|
#define ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_ON (&(_ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_ON))
|
||||||
|
|
||||||
|
EWAPI extern const Efl_Event_Description _ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_OFF;
|
||||||
|
|
||||||
|
/** Called when virtualkeypad was disabled
|
||||||
|
*
|
||||||
|
* @ingroup Elm_Conformant
|
||||||
|
*/
|
||||||
|
#define ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_OFF (&(_ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_OFF))
|
||||||
|
|
||||||
|
EWAPI extern const Efl_Event_Description _ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_ON;
|
||||||
|
|
||||||
|
/** Called when clipboard was enabled
|
||||||
|
*
|
||||||
|
* @ingroup Elm_Conformant
|
||||||
|
*/
|
||||||
|
#define ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_ON (&(_ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_ON))
|
||||||
|
|
||||||
|
EWAPI extern const Efl_Event_Description _ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_OFF;
|
||||||
|
|
||||||
|
/** Called when clipboard was disabled
|
||||||
|
*
|
||||||
|
* @ingroup Elm_Conformant
|
||||||
|
*/
|
||||||
|
#define ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_OFF (&(_ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_OFF))
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef _ELM_CONFORMANT_EO_LEGACY_H_
|
||||||
|
#define _ELM_CONFORMANT_EO_LEGACY_H_
|
||||||
|
|
||||||
|
#ifndef _ELM_CONFORMANT_EO_CLASS_TYPE
|
||||||
|
#define _ELM_CONFORMANT_EO_CLASS_TYPE
|
||||||
|
|
||||||
|
typedef Eo Elm_Conformant;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _ELM_CONFORMANT_EO_TYPES
|
||||||
|
#define _ELM_CONFORMANT_EO_TYPES
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,7 +1,6 @@
|
||||||
pub_legacy_eo_files = [
|
pub_legacy_eo_files = [
|
||||||
'efl_ui_clock_legacy.eo',
|
'efl_ui_clock_legacy.eo',
|
||||||
'elm_interface_fileselector.eo',
|
'elm_interface_fileselector.eo',
|
||||||
'elm_conformant.eo',
|
|
||||||
'elm_ctxpopup.eo',
|
'elm_ctxpopup.eo',
|
||||||
'elm_dayselector.eo',
|
'elm_dayselector.eo',
|
||||||
'elm_entry.eo',
|
'elm_entry.eo',
|
||||||
|
@ -733,6 +732,8 @@ elementary_pub_headers = [
|
||||||
'elm_color_item_eo.legacy.h',
|
'elm_color_item_eo.legacy.h',
|
||||||
'elm_colorselector_eo.h',
|
'elm_colorselector_eo.h',
|
||||||
'elm_colorselector_eo.legacy.h',
|
'elm_colorselector_eo.legacy.h',
|
||||||
|
'elm_conformant_eo.h',
|
||||||
|
'elm_conformant_eo.legacy.h',
|
||||||
'elm_hoversel_eo.h',
|
'elm_hoversel_eo.h',
|
||||||
'elm_hoversel_eo.legacy.h',
|
'elm_hoversel_eo.legacy.h',
|
||||||
'elm_hoversel_item_eo.h',
|
'elm_hoversel_item_eo.h',
|
||||||
|
|
Loading…
Reference in New Issue