efl_ui: remove efl_ui_text headers from Efl_Ui.h for now

these require legacy types and headers, which should not be brought into
this header

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10235
This commit is contained in:
Mike Blumenkrantz 2019-09-27 11:07:17 -04:00 committed by Marcel Hollerbach
parent 525790b6b3
commit 96be3cd83d
17 changed files with 32 additions and 13 deletions

View File

@ -3,7 +3,7 @@
#endif
#include <Elementary.h>
#include <Efl_Ui.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
#ifndef EFL_BETA_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif

View File

@ -4,7 +4,7 @@
#define EO_BETA_API
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static void
_apply_style(Eo *obj, size_t start_pos, size_t end_pos, const char *style)
{

View File

@ -5,7 +5,7 @@
#include <Elementary.h>
#include <Efl_Ui.h>
#include "elm_spinner_eo.h"
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static const int default_font_size = 48;
typedef struct _Filter_Image

View File

@ -3,7 +3,7 @@
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
#define MAX_NUM_OF_CONTENT 17
const Efl_Class *content_class[MAX_NUM_OF_CONTENT];

View File

@ -3,7 +3,7 @@
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static const struct {
Evas_Image_Orient orient;
const char *name;

View File

@ -3,7 +3,7 @@
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
/* A simple test, just displaying clock in its default format */
Evas_Object *dt1, *dt2, *dt3, *dt4;

View File

@ -2,6 +2,7 @@
# include "elementary_config.h"
#endif
#include <Elementary.h>
#include <Efl_Ui.h>
static void

View File

@ -3,7 +3,7 @@
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static void
_inc_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
{

View File

@ -3,7 +3,7 @@
#endif
#include <Elementary.h>
#include <Efl_Ui.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static const struct {
Efl_Gfx_Image_Orientation orient;
const char *name;

View File

@ -2,6 +2,7 @@
# include "elementary_config.h"
#endif
#include <Elementary.h>
#include <Efl_Ui.h>
static Efl_Ui_Widget*

View File

@ -1,11 +1,11 @@
#include "test.h"
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
#include "test.h"
static Eo *layout, *btn1, *btn2, *btn3;
typedef enum {

View File

@ -3,7 +3,7 @@
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static void
_slider_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
{

View File

@ -3,7 +3,7 @@
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static double
_step_size_calculate(double min, double max)
{

View File

@ -4,6 +4,8 @@
#include <Efl_Ui.h>
#include <Elementary.h>
#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
static void
_bt_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{

View File

@ -13,6 +13,13 @@
#include <Eio.h>
#include <stdio.h>
//FIXME this can go away when efl_ui_text doesn't need elm_general
# include <elm_general.h>
# include <efl_text_interactive.eo.h>
# include <efl_ui_text.eo.h>
# include <efl_ui_text_editable.eo.h>
# include <efl_ui_text_async.eo.h>
#define NUM_ITEMS 400
typedef struct _List_Scroll_Data {

View File

@ -245,12 +245,13 @@ EAPI Eina_Bool efl_ui_win_autodel_get(const Efl_Ui_Win *obj);
# include <efl_ui_win_socket.eo.h>
# include <efl_ui_relative_layout.eo.h>
/* FIXME: Efl.Ui.Text must not use elm_general.h */
/* FIXME: Efl.Ui.Text must not use elm_general.h
# include <elm_general.h>
# include <efl_text_interactive.eo.h>
# include <efl_ui_text.eo.h>
# include <efl_ui_text_editable.eo.h>
# include <efl_ui_text_async.eo.h>
*/
# include <efl_ui_animation_view.eo.h>
# include <efl_ui_clock.eo.h>

View File

@ -166,6 +166,13 @@
# include "efl_ui_selection_manager.eo.h"
# include "efl_datetime_manager.eo.h"
//FIXME this needs to not use elm_general.h and go to Efl_Ui.h
# include <elm_general.h>
# include <efl_text_interactive.eo.h>
# include <efl_ui_text.eo.h>
# include <efl_ui_text_editable.eo.h>
# include <efl_ui_text_async.eo.h>
extern const char *_efl_model_property_itemw;
extern const char *_efl_model_property_itemh;
extern const char *_efl_model_property_selfw;