enventor - code clean up.

hide data types as possible.
This commit is contained in:
ChunEon Park 2014-02-04 21:48:06 +09:00
parent 29e4aa94c6
commit 542e2a9075
7 changed files with 12 additions and 17 deletions

View File

@ -1,11 +1,11 @@
#include <Elementary.h>
#include "common.h"
struct base_s
typedef struct base_s
{
Evas_Object *win;
Evas_Object *layout;
};
} base_data;
static base_data *g_bd = NULL;

View File

@ -1,7 +1,7 @@
#include <Elementary.h>
#include "common.h"
struct config_s
typedef struct config_s
{
const char *edc_path;
const char *edj_path;
@ -28,9 +28,7 @@ struct config_s
Eina_Bool dummy_swallow : 1;
Eina_Bool auto_indent : 1;
Eina_Bool hotkeys : 1;
};
typedef struct config_s config_data;
} config_data;
static config_data *g_cd = NULL;

View File

@ -1,14 +1,12 @@
#include <Elementary.h>
#include "common.h"
struct ctxpopup_data_s {
typedef struct ctxpopup_data_s {
Evas_Smart_Cb selected_cb;
Evas_Smart_Cb relay_cb;
Evas_Object *ctxpopup;
void *data;
};
typedef struct ctxpopup_data_s ctxpopup_data;
} ctxpopup_data;
static void
btn_plus_cb(void *data, Evas_Object *obj EINA_UNUSED,

View File

@ -10,12 +10,12 @@ typedef struct part_obj_s
Eina_Stringshare *name;
} part_obj;
struct dummy_obj_s
typedef struct dummy_obj_s
{
Evas_Object *layout;
Eina_List *swallows;
Ecore_Animator *animator;
};
} dummy_obj;
const char *DUMMYOBJ = "dummy_obj";

View File

@ -3,7 +3,7 @@
#include "config.h"
#include "common.h"
struct app_s
typedef struct app_s
{
edit_data *ed;
edj_mgr *em;
@ -13,7 +13,7 @@ struct app_s
Eina_Bool ctrl_pressed : 1;
Eina_Bool shift_pressed : 1;
};
} app_data;
int main(int argc, char **argv);

View File

@ -253,4 +253,6 @@ panes_init(Evas_Object *parent)
pd->state = PANES_SPLIT_VIEW;
evas_object_data_set(panes, PANES_DATA, pd);
return panes;
}

View File

@ -2,17 +2,14 @@
#define __COMMON_H__
typedef struct viewer_s view_data;
typedef struct app_s app_data;
typedef struct statusbar_s stats_data;
typedef struct editor_s edit_data;
typedef struct syntax_color_s color_data;
typedef struct parser_s parser_data;
typedef struct attr_value_s attr_value;
typedef struct dummy_obj_s dummy_obj;
typedef struct syntax_helper_s syntax_helper;
typedef struct indent_s indent_data;
typedef struct edj_mgr_s edj_mgr;
typedef struct base_s base_data;
#include "edc_editor.h"
#include "menu.h"