diff --git a/src/modules/illume-home/Makefile.am b/src/modules/illume-home/Makefile.am
new file mode 100644
index 000000000..35bbe3ea6
--- /dev/null
+++ b/src/modules/illume-home/Makefile.am
@@ -0,0 +1,33 @@
+MAINTAINERCLEANFILES = Makefile.in
+MODULE = illume-home
+
+# data files for the module
+filesdir = $(libdir)/enlightenment/modules/$(MODULE)
+files_DATA = \
+e-module-$(MODULE).edj module.desktop
+
+EXTRA_DIST = $(files_DATA)
+
+# the module .so file
+INCLUDES = -I. \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/src/modules/$(MODULE) \
+ -I$(top_srcdir)/src/bin \
+ -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/modules \
+ @e_cflags@
+pkgdir = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
+pkg_LTLIBRARIES = module.la
+module_la_SOURCES = e_mod_main.c \
+ e_mod_main.h \
+ e_mod_config.c \
+ e_mod_config.h \
+ e_busycover.c \
+ e_busycover.h
+
+module_la_LIBADD = @e_libs@ @dlopen_libs@
+module_la_LDFLAGS = -module -avoid-version
+module_la_DEPENDENCIES = $(top_builddir)/config.h
+
+uninstall:
+ rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)
diff --git a/src/modules/illume-home/e-module-illume-home.edj b/src/modules/illume-home/e-module-illume-home.edj
new file mode 100644
index 000000000..f6dc60946
Binary files /dev/null and b/src/modules/illume-home/e-module-illume-home.edj differ
diff --git a/src/modules/illume-home/e_busycover.c b/src/modules/illume-home/e_busycover.c
new file mode 100644
index 000000000..610b13302
--- /dev/null
+++ b/src/modules/illume-home/e_busycover.c
@@ -0,0 +1,92 @@
+#include "e.h"
+#include "e_busycover.h"
+#include "e_mod_config.h"
+
+/* local function prototypes */
+static void _e_busycover_cb_free(E_Busycover *cover);
+
+EAPI E_Busycover *
+e_busycover_new(E_Win *win)
+{
+ E_Busycover *cover;
+ char buff[PATH_MAX];
+
+ cover = E_OBJECT_ALLOC(E_Busycover, E_BUSYCOVER_TYPE, _e_busycover_cb_free);
+ if (!cover) return NULL;
+ snprintf(buff, sizeof(buff), "%s/e-module-illume-home.edj",
+ il_home_cfg->mod_dir);
+
+ cover->o_base = edje_object_add(e_win_evas_get(win));
+ if (!e_theme_edje_object_set(cover->o_base,
+ "base/theme/modules/illume-home",
+ "modules/illume-home/busycover"))
+ edje_object_file_set(cover->o_base, buff, "modules/illume-home/busycover");
+ edje_object_part_text_set(cover->o_base, "e.text.title", _("LOADING"));
+ evas_object_move(cover->o_base, win->x, win->y);
+ evas_object_resize(cover->o_base, win->w, win->h);
+ evas_object_layer_set(cover->o_base, 999);
+ return cover;
+}
+
+EAPI E_Busycover_Handle *
+e_busycover_push(E_Busycover *cover, const char *msg, const char *icon)
+{
+ E_Busycover_Handle *handle;
+
+ E_OBJECT_CHECK(cover);
+ E_OBJECT_TYPE_CHECK_RETURN(cover, E_BUSYCOVER_TYPE, NULL);
+
+ handle = E_NEW(E_Busycover_Handle, 1);
+ handle->cover = cover;
+ if (msg) handle->msg = eina_stringshare_add(msg);
+ if (icon) handle->icon = eina_stringshare_add(icon);
+ cover->handles = eina_list_append(cover->handles, handle);
+ edje_object_part_text_set(cover->o_base, "e.text.title", msg);
+ evas_object_show(cover->o_base);
+ return handle;
+}
+
+EAPI void
+e_busycover_pop(E_Busycover *cover, E_Busycover_Handle *handle)
+{
+ E_OBJECT_CHECK(cover);
+ E_OBJECT_TYPE_CHECK(cover, E_BUSYCOVER_TYPE);
+ if (!eina_list_data_find(cover->handles, handle)) return;
+ cover->handles = eina_list_remove(cover->handles, handle);
+ if (handle->msg) eina_stringshare_del(handle->msg);
+ if (handle->icon) eina_stringshare_del(handle->icon);
+ E_FREE(handle);
+ if (cover->handles)
+ {
+ handle = cover->handles->data;
+ edje_object_part_text_set(cover->o_base, "e.text.title", handle->msg);
+ }
+ else
+ evas_object_hide(cover->o_base);
+}
+
+EAPI void
+e_busycover_resize(E_Busycover *cover, int w, int h)
+{
+ E_OBJECT_CHECK(cover);
+ E_OBJECT_TYPE_CHECK(cover, E_BUSYCOVER_TYPE);
+ evas_object_resize(cover->o_base, w, h);
+}
+
+/* local function prototypes */
+static void
+_e_busycover_cb_free(E_Busycover *cover)
+{
+ Eina_List *l;
+ E_Busycover_Handle *handle;
+
+ EINA_LIST_FREE(cover->handles, handle)
+ {
+ if (handle->msg) eina_stringshare_del(handle->msg);
+ if (handle->icon) eina_stringshare_del(handle->icon);
+ E_FREE(handle);
+ }
+
+ if (cover->o_base) evas_object_del(cover->o_base);
+ E_FREE(cover);
+}
diff --git a/src/modules/illume-home/e_busycover.h b/src/modules/illume-home/e_busycover.h
new file mode 100644
index 000000000..35e084984
--- /dev/null
+++ b/src/modules/illume-home/e_busycover.h
@@ -0,0 +1,26 @@
+#ifndef E_BUSYCOVER_H
+# define E_BUSYCOVER_H
+
+# define E_BUSYCOVER_TYPE 0xE1b0782
+
+typedef struct _E_Busycover E_Busycover;
+typedef struct _E_Busycover_Handle E_Busycover_Handle;
+
+struct _E_Busycover
+{
+ E_Object e_obj_inherit;
+ Evas_Object *o_base;
+ Eina_List *handles;
+};
+struct _E_Busycover_Handle
+{
+ E_Busycover *cover;
+ const char *msg, *icon;
+};
+
+EAPI E_Busycover *e_busycover_new(E_Win *win);
+EAPI E_Busycover_Handle *e_busycover_push(E_Busycover *cover, const char *msg, const char *icon);
+EAPI void e_busycover_pop(E_Busycover *cover, E_Busycover_Handle *handle);
+EAPI void e_busycover_resize(E_Busycover *cover, int w, int h);
+
+#endif
diff --git a/src/modules/illume-home/e_mod_config.c b/src/modules/illume-home/e_mod_config.c
new file mode 100644
index 000000000..5e206c62f
--- /dev/null
+++ b/src/modules/illume-home/e_mod_config.c
@@ -0,0 +1,200 @@
+#include "e.h"
+#include "e_mod_main.h"
+#include "e_mod_config.h"
+
+/* local function prototypes */
+static void *_il_home_config_create(E_Config_Dialog *cfd);
+static void _il_home_config_free(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
+static Evas_Object *_il_home_config_ui(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
+static void _il_home_config_changed(void *data, Evas_Object *obj, void *event);
+static void _il_home_config_click_changed(void *data, Evas_Object *obj, void *event);
+static int _il_home_config_change_timeout(void *data);
+
+/* local variables */
+EAPI Il_Home_Config *il_home_cfg = NULL;
+static E_Config_DD *conf_edd = NULL;
+Ecore_Timer *_il_home_config_change_timer = NULL;
+Evas_Object *delay_label, *delay_slider;
+
+/* public functions */
+int
+il_home_config_init(E_Module *m)
+{
+ conf_edd = E_CONFIG_DD_NEW("Illume-Home_Cfg", Il_Home_Config);
+ #undef T
+ #undef D
+ #define T Il_Home_Config
+ #define D conf_edd
+ E_CONFIG_VAL(D, T, version, INT);
+ E_CONFIG_VAL(D, T, icon_size, INT);
+ E_CONFIG_VAL(D, T, single_click, INT);
+ E_CONFIG_VAL(D, T, single_click_delay, INT);
+
+ il_home_cfg = e_config_domain_load("module.illume-home", conf_edd);
+ if ((il_home_cfg) &&
+ ((il_home_cfg->version >> 16) < IL_CONFIG_MAJ))
+ {
+ E_FREE(il_home_cfg);
+ il_home_cfg = NULL;
+ }
+ if (!il_home_cfg)
+ {
+ il_home_cfg = E_NEW(Il_Home_Config, 1);
+ il_home_cfg->version = 0;
+ il_home_cfg->icon_size = 120;
+ il_home_cfg->single_click = 1;
+ il_home_cfg->single_click_delay = 50;
+ }
+ if (il_home_cfg)
+ {
+ /* Add new config variables here */
+ /* if ((il_home_cfg->version & 0xffff) < 1) */
+ il_home_cfg->version = (IL_CONFIG_MAJ << 16) | IL_CONFIG_MIN;
+ }
+
+ il_home_cfg->mod_dir = eina_stringshare_add(m->dir);
+
+ e_configure_registry_category_add("illume", 0, _("Illume"), NULL,
+ "enlightenment/display");
+ e_configure_registry_generic_item_add("illume/home", 0, _("Home"),
+ NULL, "enlightenment/launcher",
+ il_home_config_show);
+ return 1;
+}
+
+int
+il_home_config_shutdown(void)
+{
+ il_home_cfg->cfd = NULL;
+
+ e_configure_registry_item_del("illume/home");
+ e_configure_registry_category_del("illume");
+
+ if (il_home_cfg->mod_dir) eina_stringshare_del(il_home_cfg->mod_dir);
+
+ E_FREE(il_home_cfg);
+ il_home_cfg = NULL;
+
+ E_CONFIG_DD_FREE(conf_edd);
+ return 1;
+}
+
+int
+il_home_config_save(void)
+{
+ e_config_domain_save("module.illume-home", conf_edd, il_home_cfg);
+ return 1;
+}
+
+void
+il_home_config_show(E_Container *con, const char *params)
+{
+ E_Config_Dialog *cfd;
+ E_Config_Dialog_View *v = NULL;
+
+ if (e_config_dialog_find("E", "_config_illume_home_settings")) return;
+
+ v = E_NEW(E_Config_Dialog_View, 1);
+ v->create_cfdata = _il_home_config_create;
+ v->free_cfdata = _il_home_config_free;
+ v->basic.create_widgets = _il_home_config_ui;
+ v->basic_only = 1;
+ v->normal_win = 1;
+ v->scroll = 1;
+
+ cfd = e_config_dialog_new(con, _("Home Settings"), "E",
+ "_config_illume_home_settings",
+ "enlightenment/launcher_settings", 0, v, NULL);
+ e_dialog_resizable_set(cfd->dia, 1);
+ il_home_cfg->cfd = cfd;
+}
+
+/* local functions */
+static void *
+_il_home_config_create(E_Config_Dialog *cfd)
+{
+ return NULL;
+}
+
+static void
+_il_home_config_free(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
+{
+ il_home_cfg->cfd = NULL;
+ il_home_win_cfg_update();
+}
+
+static Evas_Object *
+_il_home_config_ui(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
+{
+ Evas_Object *list, *of, *o;
+ E_Radio_Group *rg;
+
+ list = e_widget_list_add(evas, 0, 0);
+
+ of = e_widget_framelist_add(evas, _("Icon Size"), 0);
+ rg = e_widget_radio_group_new(&(il_home_cfg->icon_size));
+ o = e_widget_radio_add(evas, _("Small"), 60, rg);
+ e_widget_framelist_object_append(of, o);
+ evas_object_smart_callback_add(o, "changed", _il_home_config_changed, NULL);
+ o = e_widget_radio_add(evas, _("Medium"), 80, rg);
+ e_widget_framelist_object_append(of, o);
+ evas_object_smart_callback_add(o, "changed", _il_home_config_changed, NULL);
+ o = e_widget_radio_add(evas, _("Large"), 120, rg);
+ e_widget_framelist_object_append(of, o);
+ evas_object_smart_callback_add(o, "changed", _il_home_config_changed, NULL);
+ o = e_widget_radio_add(evas, _("Very Large"), 160, rg);
+ e_widget_framelist_object_append(of, o);
+ evas_object_smart_callback_add(o, "changed", _il_home_config_changed, NULL);
+ o = e_widget_radio_add(evas, _("Massive"), 240, rg);
+ e_widget_framelist_object_append(of, o);
+ evas_object_smart_callback_add(o, "changed", _il_home_config_changed, NULL);
+ e_widget_list_object_append(list, of, 1, 0, 0.0);
+
+ of = e_widget_framelist_add(evas, _("Launch Action"), 0);
+ o = e_widget_check_add(evas, _("Single press"),
+ &(il_home_cfg->single_click));
+ e_widget_framelist_object_append(of, o);
+ evas_object_smart_callback_add(o, "changed",
+ _il_home_config_click_changed, NULL);
+ o = e_widget_label_add(evas, _("Press Delay"));
+ delay_label = o;
+ e_widget_disabled_set(o, !(il_home_cfg->single_click));
+ e_widget_framelist_object_append(of, o);
+ o = e_widget_slider_add(evas, 1, 0, "%1.0f ms", 0, 350, 1, 0, NULL,
+ &(il_home_cfg->single_click_delay), 150);
+ delay_slider = o;
+ /* Slider does not emit a changed signal */
+// evas_object_smart_callback_add(o, "changed",
+// _il_home_config_changed, NULL);
+ e_widget_disabled_set(o, !(il_home_cfg->single_click));
+ e_widget_framelist_object_append(of, o);
+ e_widget_list_object_append(list, of, 1, 0, 0.0);
+
+ return list;
+}
+
+static void
+_il_home_config_changed(void *data, Evas_Object *obj, void *event)
+{
+ if (_il_home_config_change_timer)
+ ecore_timer_del(_il_home_config_change_timer);
+ _il_home_config_change_timer =
+ ecore_timer_add(0.5, _il_home_config_change_timeout, data);
+}
+
+static void
+_il_home_config_click_changed(void *data, Evas_Object *obj, void *event)
+{
+ e_widget_disabled_set(delay_label, !il_home_cfg->single_click);
+ e_widget_disabled_set(delay_slider, !il_home_cfg->single_click);
+ _il_home_config_changed(data, obj, event);
+}
+
+static int
+_il_home_config_change_timeout(void *data)
+{
+ il_home_win_cfg_update();
+ e_config_save_queue();
+ _il_home_config_change_timer = NULL;
+ return 0;
+}
diff --git a/src/modules/illume-home/e_mod_config.h b/src/modules/illume-home/e_mod_config.h
new file mode 100644
index 000000000..b7b04a9ff
--- /dev/null
+++ b/src/modules/illume-home/e_mod_config.h
@@ -0,0 +1,27 @@
+#ifndef E_MOD_CONFIG_H
+#define E_MOD_CONFIG_H
+
+#define IL_CONFIG_MIN 0
+#define IL_CONFIG_MAJ 0
+
+typedef struct _Il_Home_Config Il_Home_Config;
+
+struct _Il_Home_Config
+{
+ int version;
+ int mode, icon_size;
+ int single_click, single_click_delay;
+
+ // Not User Configurable. Placeholders
+ const char *mod_dir;
+ E_Config_Dialog *cfd;
+};
+
+int il_home_config_init(E_Module *m);
+int il_home_config_shutdown(void);
+int il_home_config_save(void);
+void il_home_config_show(E_Container *con, const char *params);
+
+extern EAPI Il_Home_Config *il_home_cfg;
+
+#endif
diff --git a/src/modules/illume-home/e_mod_main.c b/src/modules/illume-home/e_mod_main.c
new file mode 100644
index 000000000..20f2935e6
--- /dev/null
+++ b/src/modules/illume-home/e_mod_main.c
@@ -0,0 +1,903 @@
+#include "e.h"
+#include "e_mod_main.h"
+#include "e_mod_config.h"
+#include "e_busycover.h"
+
+#define IL_HOME_WIN_TYPE 0xE0b0102f
+
+/* local structures */
+typedef struct _Instance Instance;
+typedef struct _Il_Home_Win Il_Home_Win;
+typedef struct _Il_Home_Exec Il_Home_Exec;
+
+struct _Instance
+{
+ E_Gadcon_Client *gcc;
+ Evas_Object *o_btn;
+ Eina_List *wins, *handlers;
+};
+
+struct _Il_Home_Win
+{
+ E_Object e_obj_inherit;
+
+ E_Win *win;
+ Evas_Object *o_bg, *o_sf, *o_fm, *o_cover;
+ E_Busycover *cover;
+ E_Zone *zone;
+};
+
+struct _Il_Home_Exec
+{
+ E_Busycover *cover;
+ Efreet_Desktop *desktop;
+ Ecore_Exe *exec;
+ E_Border *border;
+ E_Zone *zone;
+ Ecore_Timer *timeout;
+ int startup_id;
+ pid_t pid;
+ void *handle;
+};
+
+/* local function prototypes */
+static E_Gadcon_Client *_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style);
+static void _gc_shutdown(E_Gadcon_Client *gcc);
+static void _gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient);
+static char *_gc_label(E_Gadcon_Client_Class *cc);
+static Evas_Object *_gc_icon(E_Gadcon_Client_Class *cc, Evas *evas);
+static const char *_gc_id_new(E_Gadcon_Client_Class *cc);
+static void _il_home_btn_cb_click(void *data, void *data2);
+static void _il_home_win_new(Instance *inst);
+static void _il_home_win_cb_free(Il_Home_Win *hwin);
+static void _il_home_win_cb_resize(E_Win *win);
+static void _il_home_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
+static void _il_home_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
+static void _il_home_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
+static void _il_home_pan_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
+static void _il_home_cb_selected(void *data, Evas_Object *obj, void *event);
+static void _il_home_desktop_run(Il_Home_Win *hwin, Efreet_Desktop *desktop);
+static void _il_home_apps_populate(void);
+static void _il_home_apps_unpopulate(void);
+static void _il_home_fmc_set(Evas_Object *obj);
+static void _il_home_desks_populate(void);
+static int _il_home_desktop_list_change(void *data, int type, void *event);
+static int _il_home_desktop_change(void *data, int type, void *event);
+static int _il_home_update_deferred(void *data);
+static int _il_home_win_cb_exe_del(void *data, int type, void *event);
+static E_Border *_il_home_desktop_find_border(E_Zone *zone, Efreet_Desktop *desktop);
+static int _il_home_win_cb_timeout(void *data);
+static int _il_home_border_add(void *data, int type, void *event);
+static int _il_home_border_remove(void *data, int type, void *event);
+static int _il_home_cb_client_message(void *data, int type, void *event);
+static int _il_home_cb_prop_change(void *data, int type, void *event);
+
+/* local variables */
+static Eina_List *instances = NULL;
+static Eina_List *desks = NULL;
+static Eina_List *handlers = NULL;
+static Eina_List *exes = NULL;
+static Ecore_Timer *defer = NULL;
+
+static const E_Gadcon_Client_Class _gc_class =
+{
+ GADCON_CLIENT_CLASS_VERSION, "illume-home",
+ { _gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon, _gc_id_new, NULL,
+ e_gadcon_site_is_not_toolbar
+ }, E_GADCON_CLIENT_STYLE_PLAIN
+};
+
+/* public functions */
+EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Home" };
+
+EAPI void *
+e_modapi_init(E_Module *m)
+{
+ if (!il_home_config_init(m)) return NULL;
+
+ _il_home_apps_unpopulate();
+ _il_home_apps_populate();
+
+ handlers =
+ eina_list_append(handlers,
+ ecore_event_handler_add(EFREET_EVENT_DESKTOP_LIST_CHANGE,
+ _il_home_desktop_list_change,
+ NULL));
+ handlers =
+ eina_list_append(handlers,
+ ecore_event_handler_add(EFREET_EVENT_DESKTOP_CHANGE,
+ _il_home_desktop_change, NULL));
+
+ handlers =
+ eina_list_append(handlers,
+ ecore_event_handler_add(E_EVENT_BORDER_ADD,
+ _il_home_border_add, NULL));
+ handlers =
+ eina_list_append(handlers,
+ ecore_event_handler_add(E_EVENT_BORDER_REMOVE,
+ _il_home_border_remove, NULL));
+
+ handlers =
+ eina_list_append(handlers,
+ ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
+ _il_home_win_cb_exe_del, NULL));
+
+ e_gadcon_provider_register(&_gc_class);
+ return m;
+}
+
+EAPI int
+e_modapi_shutdown(E_Module *m)
+{
+ Ecore_Event_Handler *handle;
+ Il_Home_Exec *exe;
+
+ EINA_LIST_FREE(exes, exe)
+ {
+ if (exe->exec)
+ {
+ ecore_exe_terminate(exe->exec);
+ ecore_exe_free(exe->exec);
+ exe->exec = NULL;
+ }
+ if (exe->handle)
+ {
+ e_busycover_pop(exe->cover, exe->handle);
+ exe->handle = NULL;
+ }
+ if (exe->timeout) ecore_timer_del(exe->timeout);
+ E_FREE(exe);
+ }
+
+ _il_home_apps_unpopulate();
+
+ EINA_LIST_FREE(handlers, handle)
+ ecore_event_handler_del(handle);
+
+ e_gadcon_provider_unregister(&_gc_class);
+
+ il_home_config_shutdown();
+ return 1;
+}
+
+EAPI int
+e_modapi_save(E_Module *m)
+{
+ return il_home_config_save();
+}
+
+void
+il_home_win_cfg_update(void)
+{
+ _il_home_apps_unpopulate();
+ _il_home_apps_populate();
+}
+
+/* local functions */
+static E_Gadcon_Client *
+_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
+{
+ Instance *inst;
+ Evas_Object *icon;
+ Ecore_X_Window xwin;
+ Ecore_X_Illume_Mode mode;
+ char buff[PATH_MAX];
+
+ snprintf(buff, sizeof(buff), "%s/e-module-illume-home.edj",
+ il_home_cfg->mod_dir);
+
+ inst = E_NEW(Instance, 1);
+ inst->o_btn = e_widget_button_add(gc->evas, NULL, NULL,
+ _il_home_btn_cb_click, inst, NULL);
+ icon = e_icon_add(evas_object_evas_get(inst->o_btn));
+ e_icon_file_edje_set(icon, buff, "icon");
+ e_widget_button_icon_set(inst->o_btn, icon);
+
+ inst->gcc = e_gadcon_client_new(gc, name, id, style, inst->o_btn);
+ inst->gcc->data = inst;
+
+ _il_home_win_new(inst);
+
+ xwin = inst->gcc->gadcon->zone->black_win;
+ mode = ecore_x_e_illume_mode_get(xwin);
+ if (mode > ECORE_X_ILLUME_MODE_SINGLE)
+ _il_home_win_new(inst);
+
+ inst->handlers =
+ eina_list_append(inst->handlers,
+ ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE,
+ _il_home_cb_client_message, inst));
+ inst->handlers =
+ eina_list_append(inst->handlers,
+ ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROPERTY,
+ _il_home_cb_prop_change, inst));
+
+ instances = eina_list_append(instances, inst);
+ return inst->gcc;
+}
+
+static void
+_gc_shutdown(E_Gadcon_Client *gcc)
+{
+ Instance *inst;
+ Il_Home_Win *hwin;
+ Ecore_Event_Handler *hdl;
+
+ if (!(inst = gcc->data)) return;
+
+ instances = eina_list_remove(instances, inst);
+
+ EINA_LIST_FREE(inst->handlers, hdl)
+ ecore_event_handler_del(hdl);
+
+ if (inst->o_btn) evas_object_del(inst->o_btn);
+
+ EINA_LIST_FREE(inst->wins, hwin)
+ e_object_del(E_OBJECT(hwin));
+
+ E_FREE(inst);
+}
+
+static void
+_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient)
+{
+ e_gadcon_client_aspect_set(gcc, 16, 16);
+ e_gadcon_client_min_size_set(gcc, 16, 16);
+}
+
+static char *
+_gc_label(E_Gadcon_Client_Class *cc)
+{
+ return _("Illume-Home");
+}
+
+static Evas_Object *
+_gc_icon(E_Gadcon_Client_Class *cc, Evas *evas)
+{
+ Evas_Object *o;
+ char buff[PATH_MAX];
+
+ snprintf(buff, sizeof(buff), "%s/e-module-illume-home.edj",
+ il_home_cfg->mod_dir);
+ o = edje_object_add(evas);
+ edje_object_file_set(o, buff, "icon");
+ return o;
+}
+
+static const char *
+_gc_id_new(E_Gadcon_Client_Class *cc)
+{
+ char buff[PATH_MAX];
+
+ snprintf(buff, sizeof(buff), "%s.%d", _gc_class.name,
+ eina_list_count(instances));
+ return strdup(buff);
+}
+
+static void
+_il_home_btn_cb_click(void *data, void *data2)
+{
+ Instance *inst;
+
+ if (!(inst = data)) return;
+
+ /* if there are less than 2 home windows, create a new one */
+ if (eina_list_count(inst->wins) < 2)
+ _il_home_win_new(inst);
+ else
+ {
+ E_Zone *zone;
+
+ zone = inst->gcc->gadcon->zone;
+
+ /* already 2 home windows, so tell illume to focus one */
+ ecore_x_e_illume_focus_home_send(zone->black_win);
+ }
+}
+
+static void
+_il_home_win_new(Instance *inst)
+{
+ Il_Home_Win *hwin;
+ E_Zone *zone;
+ char buff[PATH_MAX];
+
+ if (!inst) return;
+
+ hwin = E_OBJECT_ALLOC(Il_Home_Win, IL_HOME_WIN_TYPE,
+ _il_home_win_cb_free);
+ if (!hwin) return;
+ inst->wins = eina_list_append(inst->wins, hwin);
+
+ zone = inst->gcc->gadcon->zone;
+ hwin->zone = zone;
+
+ hwin->win = e_win_new(zone->container);
+ if (!hwin->win)
+ {
+ e_object_del(E_OBJECT(hwin));
+ return;
+ }
+ hwin->win->data = inst;
+ e_win_title_set(hwin->win, _("Illume Home"));
+ e_win_name_class_set(hwin->win, "Illume-Home", "Illume-Home");
+ e_win_resize_callback_set(hwin->win, _il_home_win_cb_resize);
+ e_win_no_remember_set(hwin->win, EINA_TRUE);
+
+ /* don't accept focus */
+ ecore_x_icccm_hints_set(hwin->win->evas_win, 0, 0, 0, 0, 0, 0, 0);
+
+ snprintf(buff, sizeof(buff), "%s/e-module-illume-home.edj",
+ il_home_cfg->mod_dir);
+
+ hwin->o_bg = edje_object_add(e_win_evas_get(hwin->win));
+ if (!e_theme_edje_object_set(hwin->o_bg,
+ "base/theme/modules/illume-home",
+ "modules/illume-home/window"))
+ edje_object_file_set(hwin->o_bg, buff, "modules/illume-home/window");
+ evas_object_move(hwin->o_bg, 0, 0);
+ evas_object_show(hwin->o_bg);
+
+ hwin->o_sf = e_scrollframe_add(e_win_evas_get(hwin->win));
+ e_scrollframe_single_dir_set(hwin->o_sf, 1);
+ evas_object_move(hwin->o_sf, 0, 0);
+ evas_object_show(hwin->o_sf);
+
+ e_scrollframe_custom_edje_file_set(hwin->o_sf, buff,
+ "modules/illume-home/launcher/scrollview");
+
+ hwin->o_fm = e_fm2_add(e_win_evas_get(hwin->win));
+ _il_home_fmc_set(hwin->o_fm);
+ evas_object_show(hwin->o_fm);
+ e_user_dir_concat_static(buff, "appshadow");
+ e_fm2_path_set(hwin->o_fm, NULL, buff);
+
+ e_fm2_window_object_set(hwin->o_fm, E_OBJECT(hwin->win));
+
+ e_scrollframe_extern_pan_set(hwin->o_sf, hwin->o_fm,
+ _il_home_pan_set,
+ _il_home_pan_get,
+ _il_home_pan_max_get,
+ _il_home_pan_child_size_get);
+ evas_object_propagate_events_set(hwin->o_fm, 0);
+ evas_object_smart_callback_add(hwin->o_fm, "selected",
+ _il_home_cb_selected, hwin);
+
+ hwin->cover = e_busycover_new(hwin->win);
+
+ e_win_move_resize(hwin->win, zone->x, zone->y, zone->w, (zone->h / 2));
+ e_win_show(hwin->win);
+
+ e_border_zone_set(hwin->win->border, zone);
+
+ if (hwin->win->evas_win)
+ e_drop_xdnd_register_set(hwin->win->evas_win, 1);
+}
+
+static void
+_il_home_win_cb_free(Il_Home_Win *hwin)
+{
+ if (hwin->win->evas_win)
+ e_drop_xdnd_register_set(hwin->win->evas_win, 0);
+
+ if (hwin->cover) e_object_del(E_OBJECT(hwin->cover));
+ hwin->cover = NULL;
+
+ if (hwin->o_bg) evas_object_del(hwin->o_bg);
+ hwin->o_bg = NULL;
+ if (hwin->o_sf) evas_object_del(hwin->o_sf);
+ hwin->o_sf = NULL;
+ if (hwin->o_fm) evas_object_del(hwin->o_fm);
+ hwin->o_fm = NULL;
+
+ if (hwin->win) e_object_del(E_OBJECT(hwin->win));
+ hwin->win = NULL;
+}
+
+static void
+_il_home_win_cb_resize(E_Win *win)
+{
+ Instance *inst;
+ Il_Home_Win *hwin;
+ Eina_List *l;
+
+ if (!(inst = win->data)) return;
+ EINA_LIST_FOREACH(inst->wins, l, hwin)
+ {
+ if (hwin->win != win)
+ {
+ hwin = NULL;
+ continue;
+ }
+ else break;
+ }
+ if (!hwin) return;
+
+ if (hwin->o_bg) evas_object_resize(hwin->o_bg, win->w, win->h);
+ if (hwin->o_sf) evas_object_resize(hwin->o_sf, win->w, win->h);
+ if (hwin->cover) e_busycover_resize(hwin->cover, win->w, win->h);
+}
+
+static void
+_il_home_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
+{
+ e_fm2_pan_set(obj, x, y);
+}
+
+static void
+_il_home_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
+{
+ e_fm2_pan_get(obj, x, y);
+}
+
+static void
+_il_home_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
+{
+ e_fm2_pan_max_get(obj, x, y);
+}
+
+static void
+_il_home_pan_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
+{
+ e_fm2_pan_child_size_get(obj, w, h);
+}
+
+static void
+_il_home_cb_selected(void *data, Evas_Object *obj, void *event)
+{
+ Il_Home_Win *hwin;
+ Eina_List *selected;
+ E_Fm2_Icon_Info *ici;
+
+ if (!(hwin = data)) return;
+ if (!(selected = e_fm2_selected_list_get(hwin->o_fm))) return;
+ EINA_LIST_FREE(selected, ici)
+ {
+ Efreet_Desktop *desktop;
+
+ if (ici)
+ {
+ if (ici->real_link)
+ {
+ desktop = efreet_desktop_get(ici->real_link);
+ if (desktop)
+ _il_home_desktop_run(hwin, desktop);
+ }
+ }
+ }
+}
+
+static void
+_il_home_desktop_run(Il_Home_Win *hwin, Efreet_Desktop *desktop)
+{
+ E_Exec_Instance *eins;
+ Il_Home_Exec *exe;
+ Eina_List *l;
+ E_Border *b;
+ char buff[PATH_MAX];
+
+ if ((!desktop) || (!desktop->exec)) return;
+
+ EINA_LIST_FOREACH(exes, l, exe)
+ {
+ if (exe->desktop == desktop)
+ {
+ if ((exe->border) &&
+ (exe->border->zone == hwin->win->border->zone))
+ {
+ e_border_uniconify(exe->border);
+ e_border_show(exe->border);
+ e_border_raise(exe->border);
+ e_border_focus_set(exe->border, 1, 1);
+ return;
+ }
+ }
+ }
+
+ b = _il_home_desktop_find_border(hwin->win->border->zone, desktop);
+ if (b)
+ {
+ e_border_uniconify(b);
+ e_border_show(b);
+ e_border_raise(b);
+ e_border_focus_set(b, 1, 1);
+ return;
+ }
+
+ exe = E_NEW(Il_Home_Exec, 1);
+ if (!exe) return;
+ exe->cover = hwin->cover;
+
+ eins = e_exec(hwin->win->border->zone, desktop, NULL, NULL, "illume-home");
+ exe->desktop = desktop;
+ exe->zone = hwin->win->border->zone;
+ if (eins)
+ {
+ exe->exec = eins->exe;
+ exe->startup_id = eins->startup_id;
+ if (eins->exe)
+ exe->pid = ecore_exe_pid_get(eins->exe);
+ }
+
+ exe->timeout = ecore_timer_add(20.0, _il_home_win_cb_timeout, exe);
+ snprintf(buff, sizeof(buff), "Starting %s", desktop->name);
+ exe->handle = e_busycover_push(hwin->cover, buff, NULL);
+ exes = eina_list_append(exes, exe);
+}
+
+static void
+_il_home_apps_populate(void)
+{
+ Eina_List *l, *ll;
+ Instance *inst;
+ char buff[PATH_MAX];
+
+ e_user_dir_concat_static(buff, "appshadow");
+ ecore_file_mkpath(buff);
+
+ _il_home_desks_populate();
+
+ EINA_LIST_FOREACH(instances, l, inst)
+ {
+ Il_Home_Win *hwin;
+
+ EINA_LIST_FOREACH(inst->wins, ll, hwin)
+ {
+ if (!hwin) continue;
+ _il_home_fmc_set(hwin->o_fm);
+ e_fm2_path_set(hwin->o_fm, NULL, buff);
+ }
+ }
+}
+
+static void
+_il_home_apps_unpopulate(void)
+{
+ Efreet_Desktop *desktop;
+ Eina_List *files;
+ char buff[PATH_MAX], *file;
+ size_t len;
+
+ EINA_LIST_FREE(desks, desktop)
+ efreet_desktop_free(desktop);
+
+ len = e_user_dir_concat_static(buff, "appshadow");
+ if ((len + 2) >= sizeof(buff)) return;
+
+ files = ecore_file_ls(buff);
+ buff[len] = '/';
+ len++;
+
+ EINA_LIST_FREE(files, file)
+ {
+ if (eina_strlcpy(buff + len, file, sizeof(buff) - len) >= sizeof(buff) - len)
+ continue;
+ ecore_file_unlink(buff);
+ free(file);
+ }
+}
+
+static void
+_il_home_fmc_set(Evas_Object *obj)
+{
+ E_Fm2_Config fmc;
+
+ if (!obj) return;
+ memset(&fmc, 0, sizeof(E_Fm2_Config));
+ fmc.view.mode = E_FM2_VIEW_MODE_GRID_ICONS;
+ fmc.view.open_dirs_in_place = 1;
+ fmc.view.selector = 0;
+ fmc.view.single_click = il_home_cfg->single_click;
+ fmc.view.single_click_delay = il_home_cfg->single_click_delay;
+ fmc.view.no_subdir_jump = 1;
+ fmc.icon.extension.show = 0;
+ fmc.icon.icon.w = il_home_cfg->icon_size * e_scale / 2.0;
+ fmc.icon.icon.h = il_home_cfg->icon_size * e_scale / 2.0;
+ fmc.icon.fixed.w = il_home_cfg->icon_size * e_scale / 2.0;
+ fmc.icon.fixed.h = il_home_cfg->icon_size * e_scale / 2.0;
+ fmc.list.sort.no_case = 0;
+ fmc.list.sort.dirs.first = 1;
+ fmc.list.sort.dirs.last = 0;
+ fmc.selection.single = 1;
+ fmc.selection.windows_modifiers = 0;
+ e_fm2_config_set(obj, &fmc);
+}
+
+static void
+_il_home_desks_populate(void)
+{
+ Efreet_Menu *menu;
+
+ menu = efreet_menu_get();
+ if (menu)
+ {
+ Eina_List *l, *ll;
+ Efreet_Menu *entry, *subentry;
+ Eina_List *settings, *sys, *kbd;
+ int num = 0;
+
+ settings = efreet_util_desktop_category_list("Settings");
+ sys = efreet_util_desktop_category_list("System");
+ kbd = efreet_util_desktop_category_list("Keyboard");
+ EINA_LIST_FOREACH(menu->entries, l, entry)
+ {
+ if (entry->type != EFREET_MENU_ENTRY_MENU) continue;
+ EINA_LIST_FOREACH(entry->entries, ll, subentry)
+ {
+ Efreet_Desktop *desktop;
+
+ if (subentry->type != EFREET_MENU_ENTRY_DESKTOP) continue;
+ if (!(desktop = subentry->desktop)) continue;
+ if ((settings) && (sys) &&
+ (eina_list_data_find(settings, desktop)) &&
+ (eina_list_data_find(sys, desktop))) continue;
+ if ((kbd) && (eina_list_data_find(kbd, desktop)))
+ continue;
+ if (!desktop) continue;
+ desks = eina_list_append(desks, desktop);
+ efreet_desktop_ref(desktop);
+ if (desktop)
+ {
+ char buff[PATH_MAX];
+
+ e_user_dir_snprintf(buff, sizeof(buff),
+ "appshadow/%04x.desktop", num);
+ ecore_file_symlink(desktop->orig_path, buff);
+ }
+ num++;
+ }
+ }
+ }
+}
+
+static int
+_il_home_desktop_list_change(void *data, int type, void *event)
+{
+ if (defer) ecore_timer_del(defer);
+ defer = ecore_timer_add(1.0, _il_home_update_deferred, NULL);
+ return 1;
+}
+
+static int
+_il_home_desktop_change(void *data, int type, void *event)
+{
+ if (defer) ecore_timer_del(defer);
+ defer = ecore_timer_add(1.0, _il_home_update_deferred, NULL);
+ return 1;
+}
+
+static int
+_il_home_update_deferred(void *data)
+{
+ _il_home_apps_unpopulate();
+ _il_home_apps_populate();
+ defer = NULL;
+ return 0;
+}
+
+static int
+_il_home_win_cb_exe_del(void *data, int type, void *event)
+{
+ Il_Home_Exec *exe;
+ Ecore_Exe_Event_Del *ev;
+ Eina_List *l;
+
+ ev = event;
+ EINA_LIST_FOREACH(exes, l, exe)
+ {
+ if (exe->pid == ev->pid)
+ {
+ if (exe->handle)
+ {
+ e_busycover_pop(exe->cover, exe->handle);
+ exe->handle = NULL;
+ }
+ exes = eina_list_remove_list(exes, l);
+ if (exe->timeout) ecore_timer_del(exe->timeout);
+ E_FREE(exe);
+ return 1;
+ }
+ }
+ return 1;
+}
+
+static E_Border *
+_il_home_desktop_find_border(E_Zone *zone, Efreet_Desktop *desktop)
+{
+ Eina_List *l;
+ E_Border *bd;
+ char *exe = NULL, *p;
+
+ if (!desktop) return NULL;
+ if (!desktop->exec) return NULL;
+ p = strchr(desktop->exec, ' ');
+ if (!p)
+ exe = strdup(desktop->exec);
+ else
+ {
+ exe = malloc(p - desktop->exec + 1);
+ memset(exe, 0, sizeof(exe));
+ if (exe) eina_strlcpy(exe, desktop->exec, p - desktop->exec + 1);
+ }
+ if (exe)
+ {
+ p = strrchr(exe, '/');
+ if (p) strcpy(exe, p + 1);
+ }
+
+ EINA_LIST_FOREACH(e_border_client_list(), l, bd)
+ {
+ if (bd->zone != zone) continue;
+ if (e_exec_startup_id_pid_find(bd->client.netwm.pid,
+ bd->client.netwm.startup_id) == desktop)
+ {
+ if (exe) free(exe);
+ return bd;
+ }
+ if (exe)
+ {
+ if (bd->client.icccm.command.argv)
+ {
+ char *pp;
+
+ pp = strrchr(bd->client.icccm.command.argv[0], '/');
+ if (!pp) pp = bd->client.icccm.command.argv[0];
+ if (!strcmp(exe, pp))
+ {
+ free(exe);
+ return bd;
+ }
+ }
+ if ((bd->client.icccm.name) &&
+ (!strcasecmp(bd->client.icccm.name, exe)))
+ {
+ free(exe);
+ return bd;
+ }
+ }
+ }
+ if (exe) free(exe);
+ return NULL;
+}
+
+static int
+_il_home_win_cb_timeout(void *data)
+{
+ Il_Home_Exec *exe;
+
+ if (!(exe = data)) return 1;
+
+ if (exe->handle) e_busycover_pop(exe->cover, exe->handle);
+ exe->handle = NULL;
+
+ if (!exe->border)
+ {
+ exes = eina_list_remove(exes, exe);
+ E_FREE(exe);
+ return 0;
+ }
+ exe->timeout = NULL;
+ return 0;
+}
+
+static int
+_il_home_border_add(void *data, int type, void *event)
+{
+ E_Event_Border_Add *ev;
+ Il_Home_Exec *exe;
+ Eina_List *l;
+
+ ev = event;
+ EINA_LIST_FOREACH(exes, l, exe)
+ {
+ if (!exe->border)
+ {
+ if ((exe->startup_id == ev->border->client.netwm.startup_id) ||
+ (exe->pid == ev->border->client.netwm.pid))
+ {
+ exe->border = ev->border;
+ }
+ }
+ if (!exe->border) continue;
+ if (exe->border->zone != exe->zone)
+ {
+ exe->border->zone = exe->zone;
+ exe->border->x = exe->zone->x;
+ exe->border->y = exe->zone->y;
+ exe->border->changes.pos = 1;
+ exe->border->changed = 1;
+ }
+ if (exe->handle)
+ {
+ e_busycover_pop(exe->cover, exe->handle);
+ exe->handle = NULL;
+ }
+ if (exe->timeout) ecore_timer_del(exe->timeout);
+ exe->timeout = NULL;
+ }
+ return 1;
+}
+
+static int
+_il_home_border_remove(void *data, int type, void *event)
+{
+ E_Event_Border_Remove *ev;
+ Il_Home_Exec *exe;
+ Eina_List *l;
+
+ ev = event;
+ EINA_LIST_FOREACH(exes, l, exe)
+ {
+ if (exe->border == ev->border)
+ {
+ if (exe->exec) ecore_exe_free(exe->exec);
+ exe->exec = NULL;
+ if (exe->handle) e_busycover_pop(exe->cover, exe->handle);
+ exe->handle = NULL;
+ exe->border = NULL;
+ break;
+ }
+ }
+ return 1;
+}
+
+static int
+_il_home_cb_client_message(void *data, int type, void *event)
+{
+ Ecore_X_Event_Client_Message *ev;
+ Instance *inst;
+
+ ev = event;
+ if (!(inst = data)) return 1;
+ if (ev->message_type == ECORE_X_ATOM_E_ILLUME_HOME_NEW)
+ {
+ E_Zone *zone;
+
+ zone = inst->gcc->gadcon->zone;
+ if (zone->black_win != ev->win) return 1;
+ _il_home_win_new(inst);
+ }
+ else if (ev->message_type == ECORE_X_ATOM_E_ILLUME_HOME_DEL)
+ {
+ E_Border *bd;
+ Eina_List *l;
+ Il_Home_Win *hwin;
+
+ if (!(bd = e_border_find_by_client_window(ev->win))) return 1;
+ EINA_LIST_FOREACH(inst->wins, l, hwin)
+ {
+ if (hwin->win->border == bd)
+ {
+ inst->wins = eina_list_remove_list(inst->wins, inst->wins);
+ e_object_del(E_OBJECT(hwin));
+ break;
+ }
+ }
+ }
+
+ return 1;
+}
+
+static int
+_il_home_cb_prop_change(void *data, int type, void *event)
+{
+ Instance *inst;
+ Ecore_X_Event_Window_Property *ev;
+ Eina_List *l;
+ Il_Home_Win *hwin;
+
+ ev = event;
+ if (!(inst = data)) return 1;
+// if (ev->win != ecore_x_window_root_first_get()) return 1;
+ if (strcmp(ecore_x_atom_name_get(ev->atom), "ENLIGHTENMENT_SCALE"))
+ return 1;
+
+ EINA_LIST_FOREACH(inst->wins, l, hwin)
+ if (hwin->o_fm)
+ {
+ _il_home_fmc_set(hwin->o_fm);
+ e_fm2_refresh(hwin->o_fm);
+ }
+
+ return 1;
+}
diff --git a/src/modules/illume-home/e_mod_main.h b/src/modules/illume-home/e_mod_main.h
new file mode 100644
index 000000000..04c4f9724
--- /dev/null
+++ b/src/modules/illume-home/e_mod_main.h
@@ -0,0 +1,12 @@
+#ifndef E_MOD_MAIN_H
+#define E_MOD_MAIN_H
+
+EAPI extern E_Module_Api e_modapi;
+
+EAPI void *e_modapi_init(E_Module *m);
+EAPI int e_modapi_shutdown(E_Module *m);
+EAPI int e_modapi_save(E_Module *m);
+
+void il_home_win_cfg_update(void);
+
+#endif
diff --git a/src/modules/illume-home/module.desktop.in b/src/modules/illume-home/module.desktop.in
new file mode 100644
index 000000000..c5e5ce227
--- /dev/null
+++ b/src/modules/illume-home/module.desktop.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Link
+Name=Illume-Home
+Icon=e-module-illume-home
+X-Enlightenment-ModuleType=system
+Comment=
Illume Home for Embedded
+Comment[fr]=Illume pour l'embarqué – Home
+Comment[it]=Illume per sistemi embedded – modulo Home
diff --git a/src/modules/illume-indicator/Makefile.am b/src/modules/illume-indicator/Makefile.am
new file mode 100644
index 000000000..688486ac9
--- /dev/null
+++ b/src/modules/illume-indicator/Makefile.am
@@ -0,0 +1,51 @@
+MAINTAINERCLEANFILES = Makefile.in
+MODULE = illume-indicator
+SUBDIRS = images
+
+EDJE_CC = @edje_cc@
+EDJE_FLAGS = -v \
+ -id $(top_srcdir)/src/modules/$(MODULE)/images \
+ @EDJE_DEF@
+
+# data files for the module
+filesdir = $(libdir)/enlightenment/modules/$(MODULE)
+files_DATA = \
+ e-module-$(MODULE).edj \
+ module.desktop
+
+EXTRA_DIST = \
+ e-module-$(MODULE).edc \
+ module.desktop.in
+
+# the module .so file
+INCLUDES = -I. \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/src/modules/$(MODULE) \
+ -I$(top_srcdir)/src/bin \
+ -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/modules \
+ @e_cflags@
+
+pkgdir = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
+pkg_LTLIBRARIES = module.la
+
+module_la_SOURCES = \
+ e_mod_ind_win.c \
+ e_mod_ind_win.h \
+ e_mod_main.c \
+ e_mod_main.h
+
+module_la_LIBADD = @e_libs@ @dlopen_libs@
+module_la_LDFLAGS = -module -avoid-version
+module_la_DEPENDENCIES = $(top_builddir)/config.h
+
+e-module-$(MODULE).edj: Makefile $(EXTRA_DIST)
+ $(EDJE_CC) $(EDJE_FLAGS) \
+ $(top_srcdir)/src/modules/$(MODULE)/e-module-$(MODULE).edc \
+ $(top_builddir)/src/modules/$(MODULE)/e-module-$(MODULE).edj
+
+clean-local:
+ rm -f *.edj
+
+uninstall:
+ rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)
diff --git a/src/modules/illume-indicator/e-module-illume-indicator.edc b/src/modules/illume-indicator/e-module-illume-indicator.edc
new file mode 100644
index 000000000..df8d9197d
--- /dev/null
+++ b/src/modules/illume-indicator/e-module-illume-indicator.edc
@@ -0,0 +1,57 @@
+collections
+{
+ group
+ {
+ images.image: "module_icon.png" COMP;
+ name: "icon";
+ max: 128 128;
+ parts
+ {
+ part
+ {
+ name: "base";
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "module_icon.png";
+ }
+ }
+ }
+ }
+ group
+ {
+ images.image: "base_bg.png" COMP;
+ name: "modules/illume-indicator/window";
+ parts
+ {
+ part
+ {
+ name: "base";
+ type: IMAGE;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ color_class: "shelf_base";
+ image.normal: "base_bg.png";
+ image.border: 2 2 2 2;
+ fill.smooth: 0;
+ }
+ }
+ part
+ {
+ name: "e.swallow.content";
+ type: SWALLOW;
+ description
+ {
+ state: "default" 0.0;
+ rel1.offset: 3 3;
+ rel2.offset: -4 -4;
+ }
+ }
+ }
+ }
+}
diff --git a/src/modules/illume-indicator/e_mod_ind_win.c b/src/modules/illume-indicator/e_mod_ind_win.c
new file mode 100644
index 000000000..8de4b5d8d
--- /dev/null
+++ b/src/modules/illume-indicator/e_mod_ind_win.c
@@ -0,0 +1,475 @@
+#include "e.h"
+#include "e_mod_main.h"
+#include "e_mod_ind_win.h"
+
+/* local function prototypes */
+static void _e_mod_ind_win_cb_free(Ind_Win *iwin);
+static int _e_mod_ind_win_cb_win_prop(void *data, int type __UNUSED__, void *event);
+static void _e_mod_ind_win_cb_resize(E_Win *win);
+static void _e_mod_ind_win_cb_mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event);
+static void _e_mod_ind_win_cb_mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event);
+static void _e_mod_ind_win_cb_mouse_move(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event);
+static void _e_mod_ind_win_cb_min_size_request(void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h);
+static void _e_mod_ind_win_cb_size_request(void *data __UNUSED__, E_Gadcon *gc __UNUSED__, Evas_Coord w __UNUSED__, Evas_Coord h __UNUSED__);
+static Evas_Object *_e_mod_ind_win_cb_frame_request(void *data __UNUSED__, E_Gadcon_Client *gcc __UNUSED__, const char *style __UNUSED__);
+static void _e_mod_ind_win_cb_menu_items_append(void *data, E_Gadcon_Client *gcc __UNUSED__, E_Menu *mn);
+static void _e_mod_ind_win_cb_menu_append(Ind_Win *iwin, E_Menu *mn);
+static void _e_mod_ind_win_cb_menu_pre(void *data, E_Menu *mn);
+static void _e_mod_ind_win_cb_menu_post(void *data, E_Menu *mn __UNUSED__);
+static void _e_mod_ind_win_cb_menu_contents(void *data, E_Menu *mn __UNUSED__, E_Menu_Item *mi __UNUSED__);
+static void _e_mod_ind_win_cb_menu_edit(void *data, E_Menu *mn __UNUSED__, E_Menu_Item *mi __UNUSED__);
+
+Ind_Win *
+e_mod_ind_win_new(E_Zone *zone)
+{
+ Ind_Win *iwin;
+ Ecore_X_Window_State states[2];
+
+ /* create our new indicator window object */
+ iwin = E_OBJECT_ALLOC(Ind_Win, IND_WIN_TYPE, _e_mod_ind_win_cb_free);
+ if (!iwin) return NULL;
+
+ iwin->zone = zone;
+
+ /* hook into property change so we can adjust w/ e_scale */
+ iwin->scale_hdl =
+ ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROPERTY,
+ _e_mod_ind_win_cb_win_prop, iwin);
+
+ /* create new window */
+ iwin->win = e_win_new(zone->container);
+ iwin->win->data = iwin;
+
+ /* set some properties on the window */
+ e_win_title_set(iwin->win, _("Illume Indicator"));
+ e_win_name_class_set(iwin->win, "Illume-Indicator", "Illume-Indicator");
+ e_win_no_remember_set(iwin->win, EINA_TRUE);
+
+ /* hook into window resize so we can resize our objects */
+ e_win_resize_callback_set(iwin->win, _e_mod_ind_win_cb_resize);
+
+ /* set this window to not show in taskbar or pager */
+ states[0] = ECORE_X_WINDOW_STATE_SKIP_TASKBAR;
+ states[1] = ECORE_X_WINDOW_STATE_SKIP_PAGER;
+ ecore_x_netwm_window_state_set(iwin->win->evas_win, states, 2);
+
+ /* set this window to not accept or take focus */
+ ecore_x_icccm_hints_set(iwin->win->evas_win, 0, 0, 0, 0, 0, 0, 0);
+
+ /* create our event rectangle */
+ iwin->o_event = evas_object_rectangle_add(iwin->win->evas);
+ evas_object_color_set(iwin->o_event, 0, 0, 0, 0);
+ evas_object_event_callback_add(iwin->o_event, EVAS_CALLBACK_MOUSE_DOWN,
+ _e_mod_ind_win_cb_mouse_down, iwin);
+ evas_object_event_callback_add(iwin->o_event, EVAS_CALLBACK_MOUSE_UP,
+ _e_mod_ind_win_cb_mouse_up, iwin);
+ evas_object_event_callback_add(iwin->o_event, EVAS_CALLBACK_MOUSE_MOVE,
+ _e_mod_ind_win_cb_mouse_move, iwin);
+ evas_object_move(iwin->o_event, 0, 0);
+ evas_object_show(iwin->o_event);
+
+ /* create our base object */
+ iwin->o_base = edje_object_add(iwin->win->evas);
+ if (!e_theme_edje_object_set(iwin->o_base,
+ "base/theme/modules/illume-indicator",
+ "modules/illume-indicator/window"))
+ {
+ char buff[PATH_MAX];
+
+ snprintf(buff, sizeof(buff),
+ "%s/e-module-illume-indicator.edj", _ind_mod_dir);
+ edje_object_file_set(iwin->o_base, buff,
+ "modules/illume-indicator/window");
+ }
+ evas_object_move(iwin->o_base, 0, 0);
+ evas_object_show(iwin->o_base);
+
+ /* create our gadget container */
+ iwin->gadcon = e_gadcon_swallowed_new("illume-indicator", zone->id,
+ iwin->o_base, "e.swallow.content");
+// iwin->gadcon->instant_edit = 1;
+ edje_extern_object_min_size_set(iwin->gadcon->o_container, zone->w,
+ (32 * e_scale));
+ edje_object_part_swallow(iwin->o_base, "e.swallow.container",
+ iwin->gadcon->o_container);
+ e_gadcon_min_size_request_callback_set(iwin->gadcon,
+ _e_mod_ind_win_cb_min_size_request,
+ iwin);
+ e_gadcon_size_request_callback_set(iwin->gadcon,
+ _e_mod_ind_win_cb_size_request, iwin);
+ e_gadcon_frame_request_callback_set(iwin->gadcon,
+ _e_mod_ind_win_cb_frame_request, iwin);
+ e_gadcon_orient(iwin->gadcon, E_GADCON_ORIENT_FLOAT);
+ e_gadcon_zone_set(iwin->gadcon, zone);
+ e_gadcon_ecore_evas_set(iwin->gadcon, iwin->win->ecore_evas);
+ e_gadcon_util_menu_attach_func_set(iwin->gadcon,
+ _e_mod_ind_win_cb_menu_items_append, iwin);
+ e_gadcon_populate(iwin->gadcon);
+
+ /* set minimum size of this window */
+ e_win_size_min_set(iwin->win, zone->w, (32 * e_scale));
+
+ /* position and resize this window */
+ e_win_move_resize(iwin->win, zone->x, zone->y, zone->w, (32 * e_scale));
+
+ /* show the window */
+ e_win_show(iwin->win);
+
+ /* set this window on proper zone */
+ e_border_zone_set(iwin->win->border, zone);
+
+ /* set this window to be a dock window. This needs to be done after show
+ * as E will sometimes reset the window type */
+ ecore_x_netwm_window_type_set(iwin->win->evas_win, ECORE_X_WINDOW_TYPE_DOCK);
+
+ /* tell conformant apps our position and size */
+ ecore_x_e_illume_indicator_geometry_set(zone->black_win, zone->x, zone->y,
+ zone->w, (32 * e_scale));
+
+ return iwin;
+}
+
+/* local function prototypes */
+static void
+_e_mod_ind_win_cb_free(Ind_Win *iwin)
+{
+ /* delete the scale handler */
+ if (iwin->scale_hdl) ecore_event_handler_del(iwin->scale_hdl);
+ iwin->scale_hdl = NULL;
+
+ /* delete the border hook */
+ if (iwin->hook) e_border_hook_del(iwin->hook);
+ iwin->hook = NULL;
+
+ /* delete the menu */
+ if (iwin->menu)
+ {
+ e_menu_post_deactivate_callback_set(iwin->menu, NULL, NULL);
+ e_object_del(E_OBJECT(iwin->menu));
+ }
+ iwin->menu = NULL;
+
+ /* delete the gadget container */
+ if (iwin->gadcon) e_object_del(E_OBJECT(iwin->gadcon));
+ iwin->gadcon = NULL;
+
+ /* delete the objects */
+ if (iwin->o_base) evas_object_del(iwin->o_base);
+ iwin->o_base = NULL;
+ if (iwin->o_event) evas_object_del(iwin->o_event);
+ iwin->o_event = NULL;
+
+ /* tell conformant apps our position and size */
+ ecore_x_e_illume_indicator_geometry_set(iwin->zone->black_win, 0, 0, 0, 0);
+ ecore_x_e_illume_zone_set(iwin->win->border->client.win, iwin->zone->black_win);
+
+ /* delete the window */
+ if (iwin->win) e_object_del(E_OBJECT(iwin->win));
+ iwin->win = NULL;
+
+ /* free the allocated object */
+ E_FREE(iwin);
+}
+
+static int
+_e_mod_ind_win_cb_win_prop(void *data, int type __UNUSED__, void *event)
+{
+ Ind_Win *iwin;
+ Ecore_X_Event_Window_Property *ev;
+
+ ev = event;
+
+ if (!(iwin = data)) return 1;
+ if (ev->win != ecore_x_window_root_get(iwin->win->evas_win)) return 1;
+ if (strcmp(ecore_x_atom_name_get(ev->atom), "ENLIGHTENMENT_SCALE")) return 1;
+
+ /* set minimum size of this window */
+ e_win_size_min_set(iwin->win, iwin->zone->w, (32 * e_scale));
+
+ /* resize this window */
+ e_win_resize(iwin->win, iwin->zone->w, (32 * e_scale));
+
+ /* tell conformant apps our position and size */
+ ecore_x_e_illume_indicator_geometry_set(iwin->zone->black_win,
+ iwin->win->x, iwin->win->y,
+ iwin->win->w, (32 * e_scale));
+
+ return 1;
+}
+
+static void
+_e_mod_ind_win_cb_resize(E_Win *win)
+{
+ Ind_Win *iwin;
+
+ if (!(iwin = win->data)) return;
+ if (iwin->o_event) evas_object_resize(iwin->o_event, win->w, win->h);
+ if (iwin->o_base) evas_object_resize(iwin->o_base, win->w, win->h);
+ if (iwin->gadcon->o_container)
+ edje_extern_object_min_size_set(iwin->gadcon->o_container, win->w, win->h);
+}
+
+static void
+_e_mod_ind_win_cb_mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event)
+{
+ Ind_Win *iwin;
+ Evas_Event_Mouse_Down *ev;
+
+ ev = event;
+ if (!(iwin = data)) return;
+ if (ev->button == 1)
+ {
+ iwin->mouse_down = 1;
+
+ /* make sure we can drag */
+ if (iwin->win->border->client.illume.drag.locked) return;
+
+ iwin->drag.start = 1;
+ iwin->drag.dnd = 0;
+ iwin->drag.y = ev->output.y;
+ iwin->drag.by = iwin->win->border->y;
+
+ /* change mouse pointer to indicate we are dragging */
+ if (iwin->win->border->pointer)
+ e_pointer_type_push(iwin->win->border->pointer,
+ iwin->win->border, "move");
+ }
+ else if (ev->button == 3)
+ {
+ int x, y;
+
+ /* create our popup menu */
+ iwin->menu = e_menu_new();
+ e_menu_post_deactivate_callback_set(iwin->menu,
+ _e_mod_ind_win_cb_menu_post, iwin);
+
+ /* append items to our menu */
+ _e_mod_ind_win_cb_menu_append(iwin, iwin->menu);
+
+ /* show menu */
+ e_gadcon_canvas_zone_geometry_get(iwin->gadcon, &x, &y, NULL, NULL);
+ e_menu_activate_mouse(iwin->menu, iwin->zone, x + ev->output.x,
+ y + ev->output.y, 1, 1,
+ E_MENU_POP_DIRECTION_AUTO, ev->timestamp);
+ }
+}
+
+static void
+_e_mod_ind_win_cb_mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event)
+{
+ Ind_Win *iwin;
+ Evas_Event_Mouse_Up *ev;
+
+ ev = event;
+ if (ev->button != 1) return;
+ if (!(iwin = data)) return;
+
+ /* if we are not dragging, send message to show quickpanel */
+ if ((!iwin->drag.dnd) && (iwin->mouse_down == 1))
+ {
+ Ecore_X_Window xwin;
+
+ xwin = iwin->win->border->zone->black_win;
+ ecore_x_e_illume_quickpanel_state_send
+ (xwin, ECORE_X_ILLUME_QUICKPANEL_STATE_ON);
+ }
+ else if (iwin->drag.dnd)
+ {
+ E_Border *bd;
+
+ bd = iwin->win->border;
+
+ /* reset mouse pointer */
+ if (bd->pointer) e_pointer_type_pop(bd->pointer, bd, "move");
+
+ /* tell edj we are done moving */
+ edje_object_signal_emit(iwin->o_base, "e,action,move,stop", "e");
+
+ /* send message that we are done dragging */
+ ecore_x_e_illume_drag_end_send(bd->client.win);
+
+ /* update quickpanel position if needed */
+ if (bd->y != iwin->drag.by)
+ ecore_x_e_illume_quickpanel_position_update_send(bd->client.win);
+ }
+ iwin->drag.start = 0;
+ iwin->drag.dnd = 0;
+ iwin->drag.y = 0;
+ iwin->drag.by = 0;
+ iwin->mouse_down = 0;
+}
+
+static void
+_e_mod_ind_win_cb_mouse_move(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event)
+{
+ Ind_Win *iwin;
+ Evas_Event_Mouse_Move *ev;
+ E_Border *bd;
+
+ ev = event;
+ if (!(iwin = data)) return;
+ bd = iwin->win->border;
+ if (iwin->drag.start)
+ {
+ iwin->drag.dnd = 1;
+ iwin->drag.start = 0;
+
+ /* tell edj we are going to start moving */
+ edje_object_signal_emit(iwin->o_base, "e,action,move,start", "e");
+
+ /* send message that we are going to start dragging */
+ ecore_x_e_illume_drag_start_send(bd->client.win);
+ }
+
+ /* make sure we are dragging */
+ if (iwin->drag.dnd)
+ {
+ int dy, py, ny;
+
+ /* get current mouse position */
+ py = ev->cur.output.y;
+
+ /* do moves in 'chunks' of screen size */
+ dy = ((bd->zone->h - bd->h) / 8);
+
+ /* are we moving up or down ? */
+ if (ev->cur.output.y > ev->prev.output.y)
+ {
+ /* moving down */
+ if ((py - iwin->drag.y) < dy) return;
+ }
+ else if (ev->cur.output.y < ev->prev.output.y)
+ {
+ /* moving up */
+ if ((iwin->drag.y - py) < dy) return;
+ }
+ else return;
+
+ if (py > iwin->drag.y)
+ ny = bd->y + dy;
+ else if (py < iwin->drag.y)
+ ny = bd->y - dy;
+ else return;
+
+ /* make sure we don't drag off the screen */
+ if (ny < iwin->zone->y)
+ ny = iwin->zone->y;
+ else if ((ny + bd->h) > (iwin->zone->y + iwin->zone->h))
+ return;
+
+ /* move the border if we need to */
+ if (bd->y != ny)
+ {
+ bd->y = ny;
+ bd->changes.pos = 1;
+ bd->changed = 1;
+ }
+ }
+}
+
+static void
+_e_mod_ind_win_cb_min_size_request(void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h)
+{
+ Ind_Win *iwin;
+
+ if (!(iwin = data)) return;
+ if (gc != iwin->gadcon) return;
+ if (h < iwin->win->h) h = iwin->win->h;
+ edje_extern_object_min_size_set(iwin->gadcon->o_container, w, h);
+}
+
+static void
+_e_mod_ind_win_cb_size_request(void *data __UNUSED__, E_Gadcon *gc __UNUSED__, Evas_Coord w __UNUSED__, Evas_Coord h __UNUSED__)
+{
+ return;
+}
+
+static Evas_Object *
+_e_mod_ind_win_cb_frame_request(void *data __UNUSED__, E_Gadcon_Client *gcc __UNUSED__, const char *style __UNUSED__)
+{
+ return NULL;
+}
+
+static void
+_e_mod_ind_win_cb_menu_items_append(void *data, E_Gadcon_Client *gcc __UNUSED__, E_Menu *mn)
+{
+ Ind_Win *iwin;
+
+ if (!(iwin = data)) return;
+ _e_mod_ind_win_cb_menu_append(iwin, mn);
+}
+
+static void
+_e_mod_ind_win_cb_menu_append(Ind_Win *iwin, E_Menu *mn)
+{
+ E_Menu *subm;
+ E_Menu_Item *mi;
+ char buff[PATH_MAX];
+
+ snprintf(buff, sizeof(buff),
+ "%s/e-module-illume-indicator.edj", _ind_mod_dir);
+
+ subm = e_menu_new();
+ mi = e_menu_item_new(mn);
+ e_menu_item_label_set(mi, _("Illume Indicator"));
+ e_menu_item_icon_edje_set(mi, buff, "icon");
+ e_menu_pre_activate_callback_set(subm, _e_mod_ind_win_cb_menu_pre, iwin);
+ e_menu_item_submenu_set(mi, subm);
+}
+
+static void
+_e_mod_ind_win_cb_menu_pre(void *data, E_Menu *mn)
+{
+ Ind_Win *iwin;
+ E_Menu_Item *mi;
+
+ if (!(iwin = data)) return;
+ e_menu_pre_activate_callback_set(mn, NULL, NULL);
+
+ mi = e_menu_item_new(mn);
+ e_menu_item_label_set(mi, _("Set Contents"));
+ e_util_menu_item_theme_icon_set(mi, "preferences-desktop-shelf");
+ e_menu_item_callback_set(mi, _e_mod_ind_win_cb_menu_contents, iwin);
+
+ mi = e_menu_item_new(mn);
+ if (iwin->gadcon->editing)
+ e_menu_item_label_set(mi, _("End Move/Resize Items"));
+ else
+ e_menu_item_label_set(mi, _("Begin Move/Resize Items"));
+
+ e_util_menu_item_theme_icon_set(mi, "transform-scale");
+ e_menu_item_callback_set(mi, _e_mod_ind_win_cb_menu_edit, iwin);
+}
+
+static void
+_e_mod_ind_win_cb_menu_post(void *data, E_Menu *mn __UNUSED__)
+{
+ Ind_Win *iwin;
+
+ if (!(iwin = data)) return;
+ if (!iwin->menu) return;
+ e_object_del(E_OBJECT(iwin->menu));
+ iwin->menu = NULL;
+}
+
+static void
+_e_mod_ind_win_cb_menu_contents(void *data, E_Menu *mn __UNUSED__, E_Menu_Item *mi __UNUSED__)
+{
+ Ind_Win *iwin;
+
+ if (!(iwin = data)) return;
+ if (!iwin->gadcon->config_dialog)
+ e_int_gadcon_config_shelf(iwin->gadcon);
+}
+
+static void
+_e_mod_ind_win_cb_menu_edit(void *data, E_Menu *mn __UNUSED__, E_Menu_Item *mi __UNUSED__)
+{
+ Ind_Win *iwin;
+
+ if (!(iwin = data)) return;
+ if (iwin->gadcon->editing)
+ e_gadcon_edit_end(iwin->gadcon);
+ else
+ e_gadcon_edit_begin(iwin->gadcon);
+}
diff --git a/src/modules/illume-indicator/e_mod_ind_win.h b/src/modules/illume-indicator/e_mod_ind_win.h
new file mode 100644
index 000000000..1f2036585
--- /dev/null
+++ b/src/modules/illume-indicator/e_mod_ind_win.h
@@ -0,0 +1,32 @@
+#ifndef E_MOD_IND_WIN_H
+# define E_MOD_IND_WIN_H
+
+/* define indicator window object type */
+# define IND_WIN_TYPE 0xE1b0886
+
+/* define structure for indicator window */
+typedef struct _Ind_Win Ind_Win;
+struct _Ind_Win
+{
+ E_Object e_obj_inherit;
+
+ E_Zone *zone;
+ E_Border_Hook *hook;
+ Ecore_Event_Handler *scale_hdl;
+
+ E_Win *win;
+ Evas_Object *o_base, *o_event;
+ E_Gadcon *gadcon;
+ E_Menu *menu;
+
+ struct
+ {
+ int y, start, dnd, by;
+ } drag;
+
+ int mouse_down;
+};
+
+Ind_Win *e_mod_ind_win_new(E_Zone *zone);
+
+#endif
diff --git a/src/modules/illume-indicator/e_mod_main.c b/src/modules/illume-indicator/e_mod_main.c
new file mode 100644
index 000000000..c825207ed
--- /dev/null
+++ b/src/modules/illume-indicator/e_mod_main.c
@@ -0,0 +1,72 @@
+#include "e.h"
+#include "e_mod_main.h"
+#include "e_mod_ind_win.h"
+
+/* local variables */
+static Eina_List *iwins = NULL;
+
+/* external variables */
+const char *_ind_mod_dir = NULL;
+
+EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume-Indicator" };
+
+EAPI void *
+e_modapi_init(E_Module *m)
+{
+ E_Manager *man;
+ Eina_List *ml;
+
+ /* set module priority so we load before others */
+ e_module_priority_set(m, 90);
+
+ /* set module directory variable */
+ _ind_mod_dir = eina_stringshare_add(m->dir);
+
+ /* loop through the managers (root windows) */
+ EINA_LIST_FOREACH(e_manager_list(), ml, man)
+ {
+ E_Container *con;
+ Eina_List *cl;
+
+ /* loop through containers */
+ EINA_LIST_FOREACH(man->containers, cl, con)
+ {
+ E_Zone *zone;
+ Eina_List *zl;
+
+ /* for each zone, create an indicator window */
+ EINA_LIST_FOREACH(con->zones, zl, zone)
+ {
+ Ind_Win *iwin;
+
+ /* try to create new indicator window */
+ if (!(iwin = e_mod_ind_win_new(zone))) continue;
+ iwins = eina_list_append(iwins, iwin);
+ }
+ }
+ }
+
+ return m;
+}
+
+EAPI int
+e_modapi_shutdown(E_Module *m)
+{
+ Ind_Win *iwin;
+
+ /* destroy the indicator windows */
+ EINA_LIST_FREE(iwins, iwin)
+ e_object_del(E_OBJECT(iwin));
+
+ /* clear module directory variable */
+ if (_ind_mod_dir) eina_stringshare_del(_ind_mod_dir);
+ _ind_mod_dir = NULL;
+
+ return 1;
+}
+
+EAPI int
+e_modapi_save(E_Module *m)
+{
+ return 1;
+}
diff --git a/src/modules/illume-indicator/e_mod_main.h b/src/modules/illume-indicator/e_mod_main.h
new file mode 100644
index 000000000..9591f0c1f
--- /dev/null
+++ b/src/modules/illume-indicator/e_mod_main.h
@@ -0,0 +1,12 @@
+#ifndef E_MOD_MAIN_H
+# define E_MOD_MAIN_H
+
+EAPI extern E_Module_Api e_modapi;
+
+EAPI void *e_modapi_init(E_Module *m);
+EAPI int e_modapi_shutdown(E_Module *m);
+EAPI int e_modapi_save(E_Module *m);
+
+extern const char *_ind_mod_dir;
+
+#endif
diff --git a/src/modules/illume-indicator/images/Makefile.am b/src/modules/illume-indicator/images/Makefile.am
new file mode 100644
index 000000000..692077fed
--- /dev/null
+++ b/src/modules/illume-indicator/images/Makefile.am
@@ -0,0 +1,4 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+EXTRA_DIST = base_bg.png \
+ module_icon.png
diff --git a/src/modules/illume-indicator/images/base_bg.png b/src/modules/illume-indicator/images/base_bg.png
new file mode 100644
index 000000000..a47ea1659
Binary files /dev/null and b/src/modules/illume-indicator/images/base_bg.png differ
diff --git a/src/modules/illume-indicator/images/module_icon.png b/src/modules/illume-indicator/images/module_icon.png
new file mode 100644
index 000000000..82c1b76f3
Binary files /dev/null and b/src/modules/illume-indicator/images/module_icon.png differ
diff --git a/src/modules/illume-indicator/module.desktop.in b/src/modules/illume-indicator/module.desktop.in
new file mode 100644
index 000000000..249dbf46a
--- /dev/null
+++ b/src/modules/illume-indicator/module.desktop.in
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=Link
+Name=Illume-Indicator
+Icon=e-module-illume-indicator
+X-Enlightenment-ModuleType=system
+Comment=Illume Indicator for Embedded
diff --git a/src/modules/illume-softkey/Makefile.am b/src/modules/illume-softkey/Makefile.am
new file mode 100644
index 000000000..e9b26d9cf
--- /dev/null
+++ b/src/modules/illume-softkey/Makefile.am
@@ -0,0 +1,51 @@
+MAINTAINERCLEANFILES = Makefile.in
+MODULE = illume-softkey
+SUBDIRS = images
+
+EDJE_CC = @edje_cc@
+EDJE_FLAGS = -v \
+ -id $(top_srcdir)/src/modules/$(MODULE)/images \
+ @EDJE_DEF@
+
+# data files for the module
+filesdir = $(libdir)/enlightenment/modules/$(MODULE)
+files_DATA = \
+ e-module-$(MODULE).edj \
+ module.desktop
+
+EXTRA_DIST = \
+ e-module-$(MODULE).edc \
+ module.desktop.in
+
+# the module .so file
+INCLUDES = -I. \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/src/modules/$(MODULE) \
+ -I$(top_srcdir)/src/bin \
+ -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/modules \
+ @e_cflags@
+
+pkgdir = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
+pkg_LTLIBRARIES = module.la
+
+module_la_SOURCES = \
+ e_mod_sft_win.c \
+ e_mod_sft_win.h \
+ e_mod_main.c \
+ e_mod_main.h
+
+module_la_LIBADD = @e_libs@ @dlopen_libs@
+module_la_LDFLAGS = -module -avoid-version
+module_la_DEPENDENCIES = $(top_builddir)/config.h
+
+e-module-$(MODULE).edj: Makefile $(EXTRA_DIST)
+ $(EDJE_CC) $(EDJE_FLAGS) \
+ $(top_srcdir)/src/modules/$(MODULE)/e-module-$(MODULE).edc \
+ $(top_builddir)/src/modules/$(MODULE)/e-module-$(MODULE).edj
+
+clean-local:
+ rm -f *.edj
+
+uninstall:
+ rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)
diff --git a/src/modules/illume-softkey/e-module-illume-softkey.edc b/src/modules/illume-softkey/e-module-illume-softkey.edc
new file mode 100644
index 000000000..73d4f3ccf
--- /dev/null
+++ b/src/modules/illume-softkey/e-module-illume-softkey.edc
@@ -0,0 +1,133 @@
+collections
+{
+ group
+ {
+ images.image: "module_icon.png" COMP;
+ name: "icon";
+ max: 128 128;
+ parts
+ {
+ part
+ {
+ name: "base";
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "module_icon.png";
+ }
+ }
+ }
+ }
+ group
+ {
+ images
+ {
+ image: "shelf_alt_bg.png" COMP;
+ image: "shelf_alt_over.png" COMP;
+ image: "shelf_alt_shine.png" COMP;
+ }
+ name: "modules/illume-softkey/window";
+ parts
+ {
+ part
+ {
+ name: "base";
+ type: IMAGE;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ color_class: "shelf_base";
+ image.normal: "shelf_alt_bg.png";
+ fill.smooth: 0;
+ }
+ }
+ part
+ {
+ name: "shine";
+ type: IMAGE;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ image.normal: "shelf_alt_shine.png";
+ rel2.relative: 1.0 0.5;
+ fill.smooth: 0;
+ }
+ }
+ part
+ {
+ name: "over";
+ type: IMAGE;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ image
+ {
+ normal: "shelf_alt_over.png";
+ border: 5 5 5 5;
+ middle: 0;
+ }
+ fill.smooth: 0;
+ }
+ }
+ part
+ {
+ name: "e.box.extra_buttons";
+ type: BOX;
+ description
+ {
+ state: "default" 0.0;
+ rel1
+ {
+ offset: 3 3;
+ to: "base";
+ }
+ rel2
+ {
+ relative: 0.60 1.0;
+ offset: 0 -4;
+ to: "base";
+ }
+ box
+ {
+ layout: "horizontal";
+ padding: 2 0;
+ align: 0.0 0.5;
+ min: 1 1;
+ }
+ }
+ }
+ part
+ {
+ name: "e.box.buttons";
+ type: BOX;
+ description
+ {
+ state: "default" 0.0;
+ rel1
+ {
+ relative: 1.0 0.0;
+ to: "e.box.extra_buttons";
+ }
+ rel2
+ {
+ offset: -2 -4;
+ to: "base";
+ }
+ box
+ {
+ layout: "horizontal";
+ padding: 2 0;
+ align: 1.0 0.5;
+ min: 1 1;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/modules/illume-softkey/e_mod_main.c b/src/modules/illume-softkey/e_mod_main.c
new file mode 100644
index 000000000..0be948f57
--- /dev/null
+++ b/src/modules/illume-softkey/e_mod_main.c
@@ -0,0 +1,76 @@
+#include "e.h"
+#include "e_mod_main.h"
+#include "e_mod_sft_win.h"
+
+/* local variables */
+static Eina_List *swins = NULL;
+
+/* external variables */
+const char *_sft_mod_dir = NULL;
+
+EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume-Softkey" };
+
+EAPI void *
+e_modapi_init(E_Module *m)
+{
+ E_Manager *man;
+ Eina_List *ml;
+
+ /* set module priority so we load before others */
+ e_module_priority_set(m, 85);
+
+ /* set module directory variable */
+ _sft_mod_dir = eina_stringshare_add(m->dir);
+
+ /* loop through the managers (root windows) */
+ EINA_LIST_FOREACH(e_manager_list(), ml, man)
+ {
+ E_Container *con;
+ Eina_List *cl;
+
+ /* loop through containers */
+ EINA_LIST_FOREACH(man->containers, cl, con)
+ {
+ E_Zone *zone;
+ Eina_List *zl;
+
+ /* for each zone, create a softkey window */
+ EINA_LIST_FOREACH(con->zones, zl, zone)
+ {
+ Sft_Win *swin;
+
+ /* try to create new softkey window */
+ if (!(swin = e_mod_sft_win_new(zone))) continue;
+ swins = eina_list_append(swins, swin);
+ }
+ }
+ }
+
+ return m;
+}
+
+EAPI int
+e_modapi_shutdown(E_Module *m)
+{
+ Sft_Win *swin;
+
+ /* destroy the softkey windows */
+ EINA_LIST_FREE(swins, swin)
+ e_object_del(E_OBJECT(swin));
+
+ /* reset softkey geometry for conformant apps */
+ ecore_x_e_illume_softkey_geometry_set(ecore_x_window_root_first_get(),
+ 0, 0, 0, 0);
+
+ /* clear module directory variable */
+ if (_sft_mod_dir) eina_stringshare_del(_sft_mod_dir);
+ _sft_mod_dir = NULL;
+
+ return 1;
+}
+
+EAPI int
+e_modapi_save(E_Module *m)
+{
+ return 1;
+}
diff --git a/src/modules/illume-softkey/e_mod_main.h b/src/modules/illume-softkey/e_mod_main.h
new file mode 100644
index 000000000..78ba22502
--- /dev/null
+++ b/src/modules/illume-softkey/e_mod_main.h
@@ -0,0 +1,12 @@
+#ifndef E_MOD_MAIN_H
+# define E_MOD_MAIN_H
+
+EAPI extern E_Module_Api e_modapi;
+
+EAPI void *e_modapi_init(E_Module *m);
+EAPI int e_modapi_shutdown(E_Module *m);
+EAPI int e_modapi_save(E_Module *m);
+
+extern const char *_sft_mod_dir;
+
+#endif
diff --git a/src/modules/illume-softkey/e_mod_sft_win.c b/src/modules/illume-softkey/e_mod_sft_win.c
new file mode 100644
index 000000000..72aec3569
--- /dev/null
+++ b/src/modules/illume-softkey/e_mod_sft_win.c
@@ -0,0 +1,333 @@
+#include "e.h"
+#include "e_mod_main.h"
+#include "e_mod_sft_win.h"
+
+/* local function prototypes */
+static void _e_mod_sft_win_cb_free(Sft_Win *swin);
+static void _e_mod_sft_win_cb_hook_eval_end(void *data, void *data2);
+static int _e_mod_sft_win_cb_win_prop(void *data, int type __UNUSED__, void *event);
+static int _e_mod_sft_win_cb_client_message(void *data, int type __UNUSED__, void *event);
+static void _e_mod_sft_win_cb_resize(E_Win *win);
+static void _e_mod_sft_win_create_default_buttons(Sft_Win *swin);
+static void _e_mod_sft_win_cb_close(void *data, void *data2 __UNUSED__);
+static void _e_mod_sft_win_cb_back(void *data, void *data2 __UNUSED__);
+
+Sft_Win *
+e_mod_sft_win_new(E_Zone *zone)
+{
+ Sft_Win *swin;
+ Ecore_X_Window_State states[2];
+
+ /* create our new softkey window object */
+ swin = E_OBJECT_ALLOC(Sft_Win, SFT_WIN_TYPE, _e_mod_sft_win_cb_free);
+ if (!swin) return NULL;
+
+ swin->zone = zone;
+
+ /* hook into eval so we can set the softkey on the correct zone
+ swin->hook = e_border_hook_add(E_BORDER_HOOK_EVAL_END,
+ _e_mod_sft_win_cb_hook_eval_end, swin);
+*/
+
+ /* hook into property change so we can adjust w/ e_scale */
+ swin->scale_hdl =
+ ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROPERTY,
+ _e_mod_sft_win_cb_win_prop, swin);
+
+ /* hook into client messages
+ swin->msg_hdl =
+ ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE,
+ _e_mod_sft_win_cb_client_message, swin);
+ */
+
+ /* create new window */
+ swin->win = e_win_new(zone->container);
+ swin->win->data = swin;
+
+ /* set some properties on the window */
+ e_win_title_set(swin->win, _("Illume Softkey"));
+ e_win_name_class_set(swin->win, "Illume-Softkey", "Illume-Softkey");
+ e_win_no_remember_set(swin->win, EINA_TRUE);
+
+ /* hook into window resize so we can resize our objects */
+ e_win_resize_callback_set(swin->win, _e_mod_sft_win_cb_resize);
+
+ /* set this window to not show in taskbar or pager */
+ states[0] = ECORE_X_WINDOW_STATE_SKIP_TASKBAR;
+ states[1] = ECORE_X_WINDOW_STATE_SKIP_PAGER;
+ ecore_x_netwm_window_state_set(swin->win->evas_win, states, 2);
+
+ /* set this window to not accept or take focus */
+ ecore_x_icccm_hints_set(swin->win->evas_win, 0, 0, 0, 0, 0, 0, 0);
+
+ /* create our base object */
+ swin->o_base = edje_object_add(swin->win->evas);
+ if (!e_theme_edje_object_set(swin->o_base,
+ "base/theme/modules/illume-softkey",
+ "modules/illume-softkey/window"))
+ {
+ char buff[PATH_MAX];
+
+ snprintf(buff, sizeof(buff),
+ "%s/e-module-illume-softkey.edj", _sft_mod_dir);
+ edje_object_file_set(swin->o_base, buff,
+ "modules/illume-softkey/window");
+ }
+ evas_object_move(swin->o_base, 0, 0);
+ evas_object_show(swin->o_base);
+
+ /* create default buttons */
+ _e_mod_sft_win_create_default_buttons(swin);
+
+ /* set minimum size of this window */
+ e_win_size_min_set(swin->win, zone->w, (32 * e_scale));
+
+ /* position and resize this window */
+ e_win_move_resize(swin->win, zone->x, (zone->y + zone->h - (32 * e_scale)),
+ zone->w, (32 * e_scale));
+
+ /* show the window */
+ e_win_show(swin->win);
+
+ e_border_zone_set(swin->win->border, zone);
+
+ /* set this window to be a dock window. This needs to be done after show
+ * as E will sometimes reset the window type */
+ ecore_x_netwm_window_type_set(swin->win->evas_win, ECORE_X_WINDOW_TYPE_DOCK);
+
+ /* tell conformant apps our position and size */
+ ecore_x_e_illume_softkey_geometry_set(zone->black_win,
+ zone->x, (zone->h - (32 * e_scale)),
+ zone->w, (32 * e_scale));
+
+ return swin;
+}
+
+/* local functions */
+static void
+_e_mod_sft_win_cb_free(Sft_Win *swin)
+{
+ const Evas_Object *box;
+
+ /* delete the message handler */
+ if (swin->msg_hdl) ecore_event_handler_del(swin->msg_hdl);
+ swin->msg_hdl = NULL;
+
+ /* delete the scale handler */
+ if (swin->scale_hdl) ecore_event_handler_del(swin->scale_hdl);
+ swin->scale_hdl = NULL;
+
+ /* delete the border hook */
+ if (swin->hook) e_border_hook_del(swin->hook);
+ swin->hook = NULL;
+
+ if (box = edje_object_part_object_get(swin->o_base, "e.box.buttons"))
+ {
+ Evas_Object *btn;
+
+ /* delete the buttons */
+ EINA_LIST_FREE(swin->btns, btn)
+ {
+ edje_object_part_box_remove(swin->o_base, "e.box.buttons", btn);
+ evas_object_del(btn);
+ }
+ }
+ if (box = edje_object_part_object_get(swin->o_base, "e.box.extra_buttons"))
+ {
+ Evas_Object *btn;
+
+ /* delete the buttons */
+ EINA_LIST_FREE(swin->extra_btns, btn)
+ {
+ edje_object_part_box_remove(swin->o_base, "e.box.extra_buttons", btn);
+ evas_object_del(btn);
+ }
+ }
+
+ /* delete the objects */
+ if (swin->o_base) evas_object_del(swin->o_base);
+ swin->o_base = NULL;
+
+ /* delete the window */
+ if (swin->win) e_object_del(E_OBJECT(swin->win));
+ swin->win = NULL;
+
+ /* tell conformant apps our position and size */
+ ecore_x_e_illume_softkey_geometry_set(swin->zone->black_win, 0, 0, 0, 0);
+
+ /* free the allocated object */
+ E_FREE(swin);
+}
+
+static void
+_e_mod_sft_win_cb_hook_eval_end(void *data, void *data2)
+{
+ Sft_Win *swin;
+ E_Border *bd;
+
+ if (!(swin = data)) return;
+ if (!(bd = data2)) return;
+ if (bd != swin->win->border) return;
+
+ /* check border position and size */
+ if (bd->x != swin->zone->x)
+ {
+ bd->x = swin->zone->x;
+ bd->changes.pos = 1;
+ }
+ if (bd->y != ((swin->zone->y + swin->zone->h) - bd->h))
+ {
+ bd->y = ((swin->zone->y + swin->zone->h) - bd->h);
+ bd->changes.pos = 1;
+ }
+ if (bd->w != swin->zone->w)
+ {
+ bd->w = swin->zone->w;
+ bd->changes.size = 1;
+ }
+ if ((bd->changes.pos) || (bd->changes.size)) bd->changed = 1;
+
+ /* if zone is not correct, set it */
+ if (bd->zone != swin->zone) e_border_zone_set(bd, swin->zone);
+}
+
+static int
+_e_mod_sft_win_cb_win_prop(void *data, int type __UNUSED__, void *event)
+{
+ Sft_Win *swin;
+ Ecore_X_Event_Window_Property *ev;
+
+ ev = event;
+
+ if (!(swin = data)) return 1;
+ if (ev->win != ecore_x_window_root_get(swin->win->evas_win)) return 1;
+ if (strcmp(ecore_x_atom_name_get(ev->atom), "ENLIGHTENMENT_SCALE")) return 1;
+
+ /* set minimum size of this window */
+ e_win_size_min_set(swin->win, swin->zone->w, (32 * e_scale));
+
+ /* resize this window */
+ e_win_resize(swin->win, swin->zone->w, (32 * e_scale));
+
+ /* tell conformant apps our position and size */
+ ecore_x_e_illume_softkey_geometry_set(swin->zone->black_win,
+ swin->win->x, swin->win->y,
+ swin->win->w, (32 * e_scale));
+ return 1;
+}
+
+static int
+_e_mod_sft_win_cb_client_message(void *data, int type __UNUSED__, void *event)
+{
+ Sft_Win *swin;
+ Ecore_X_Event_Client_Message *ev;
+
+ ev = event;
+ if (!(swin = data)) return 1;
+ if (ev->win != swin->zone->black_win) return 1;
+ return 1;
+}
+
+static void
+_e_mod_sft_win_cb_resize(E_Win *win)
+{
+ Sft_Win *swin;
+ Evas_Object *btn;
+ const Evas_Object *box;
+ Eina_List *l;
+ int mw, mh;
+
+ if (!(swin = win->data)) return;
+
+ /* adjust button(s) size for e_scale */
+ EINA_LIST_FOREACH(swin->btns, l, btn)
+ {
+ e_widget_size_min_get(btn, &mw, &mh);
+ evas_object_size_hint_min_set(btn, (mw * e_scale), (mh * e_scale));
+ evas_object_resize(btn, (mw * e_scale), (mh * e_scale));
+ }
+
+ /* adjust box size for content */
+ if (box = edje_object_part_object_get(swin->o_base, "e.box.buttons"))
+ {
+ evas_object_size_hint_min_get((Evas_Object *)box, &mw, &mh);
+ evas_object_resize((Evas_Object *)box, mw, mh);
+ }
+
+ mw = mh = 0;
+ /* adjust button(s) size for e_scale */
+ EINA_LIST_FOREACH(swin->extra_btns, l, btn)
+ {
+ e_widget_size_min_get(btn, &mw, &mh);
+ evas_object_size_hint_min_set(btn, (mw * e_scale), (mh * e_scale));
+ evas_object_resize(btn, (mw * e_scale), (mh * e_scale));
+ }
+
+ /* adjust box size for content */
+ if (box = edje_object_part_object_get(swin->o_base, "e.box.extra_buttons"))
+ {
+ evas_object_size_hint_min_get((Evas_Object *)box, &mw, &mh);
+ evas_object_resize((Evas_Object *)box, mw, mh);
+ }
+
+ /* resize the base object */
+ if (swin->o_base) evas_object_resize(swin->o_base, win->w, win->h);
+}
+
+static void
+_e_mod_sft_win_create_default_buttons(Sft_Win *swin)
+{
+ Evas_Object *btn;
+ int mw, mh;
+
+ /* create back button */
+ btn = e_widget_button_add(swin->win->evas, _("Back"), "go-previous",
+ _e_mod_sft_win_cb_back, swin, NULL);
+ e_widget_size_min_get(btn, &mw, &mh);
+ evas_object_size_hint_min_set(btn, (mw * e_scale), (mh * e_scale));
+
+ /* NB: this show is required when packing e_widgets into an edje box else
+ * the widgets do not receive any events */
+ evas_object_show(btn);
+
+ /* add button to box */
+ edje_object_part_box_append(swin->o_base, "e.box.buttons", btn);
+
+ /* add button to our list */
+ swin->btns = eina_list_append(swin->btns, btn);
+
+
+ /* create close button */
+ btn = e_widget_button_add(swin->win->evas, _("Close"), "window-close",
+ _e_mod_sft_win_cb_close, swin, NULL);
+ e_widget_size_min_get(btn, &mw, &mh);
+ evas_object_size_hint_min_set(btn, (mw * e_scale), (mh * e_scale));
+
+ /* NB: this show is required when packing e_widgets into an edje box else
+ * the widgets do not receive any events */
+ evas_object_show(btn);
+
+ /* add button to box */
+ edje_object_part_box_append(swin->o_base, "e.box.buttons", btn);
+
+ /* add button to our list */
+ swin->btns = eina_list_append(swin->btns, btn);
+}
+
+static void
+_e_mod_sft_win_cb_close(void *data, void *data2 __UNUSED__)
+{
+ Sft_Win *swin;
+
+ if (!(swin = data)) return;
+ ecore_x_e_illume_close_send(swin->zone->black_win);
+}
+
+static void
+_e_mod_sft_win_cb_back(void *data, void *data2 __UNUSED__)
+{
+ Sft_Win *swin;
+
+ if (!(swin = data)) return;
+ ecore_x_e_illume_focus_back_send(swin->zone->black_win);
+}
diff --git a/src/modules/illume-softkey/e_mod_sft_win.h b/src/modules/illume-softkey/e_mod_sft_win.h
new file mode 100644
index 000000000..d481ed1f2
--- /dev/null
+++ b/src/modules/illume-softkey/e_mod_sft_win.h
@@ -0,0 +1,24 @@
+#ifndef E_MOD_SFT_WIN_H
+# define E_MOD_SFT_WIN_H
+
+/* define softkey window object type */
+# define SFT_WIN_TYPE 0xE1b0784
+
+/* define structure for softkey window */
+typedef struct _Sft_Win Sft_Win;
+struct _Sft_Win
+{
+ E_Object e_obj_inherit;
+
+ E_Zone *zone;
+ E_Border_Hook *hook;
+ Ecore_Event_Handler *scale_hdl, *msg_hdl;
+
+ E_Win *win;
+ Evas_Object *o_base;
+ Eina_List *btns, *extra_btns;
+};
+
+Sft_Win *e_mod_sft_win_new(E_Zone *zone);
+
+#endif
diff --git a/src/modules/illume-softkey/images/Makefile.am b/src/modules/illume-softkey/images/Makefile.am
new file mode 100644
index 000000000..e6de6fd76
--- /dev/null
+++ b/src/modules/illume-softkey/images/Makefile.am
@@ -0,0 +1,6 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+EXTRA_DIST = shelf_alt_bg.png \
+ shelf_alt_shine.png \
+ module_icon.png \
+ shelf_alt_over.png
diff --git a/src/modules/illume-softkey/images/module_icon.png b/src/modules/illume-softkey/images/module_icon.png
new file mode 100644
index 000000000..82c1b76f3
Binary files /dev/null and b/src/modules/illume-softkey/images/module_icon.png differ
diff --git a/src/modules/illume-softkey/images/shelf_alt_bg.png b/src/modules/illume-softkey/images/shelf_alt_bg.png
new file mode 100644
index 000000000..64e2b2c2c
Binary files /dev/null and b/src/modules/illume-softkey/images/shelf_alt_bg.png differ
diff --git a/src/modules/illume-softkey/images/shelf_alt_over.png b/src/modules/illume-softkey/images/shelf_alt_over.png
new file mode 100644
index 000000000..cef17132f
Binary files /dev/null and b/src/modules/illume-softkey/images/shelf_alt_over.png differ
diff --git a/src/modules/illume-softkey/images/shelf_alt_shine.png b/src/modules/illume-softkey/images/shelf_alt_shine.png
new file mode 100644
index 000000000..5c0588d8b
Binary files /dev/null and b/src/modules/illume-softkey/images/shelf_alt_shine.png differ
diff --git a/src/modules/illume-softkey/module.desktop.in b/src/modules/illume-softkey/module.desktop.in
new file mode 100644
index 000000000..1ae0e2f08
--- /dev/null
+++ b/src/modules/illume-softkey/module.desktop.in
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=Link
+Name=Illume-Softkey
+Icon=e-module-illume-softkey
+X-Enlightenment-ModuleType=system
+Comment=Illume Softkey for Embedded
diff --git a/src/modules/illume2/Makefile.am b/src/modules/illume2/Makefile.am
new file mode 100644
index 000000000..aefdf0639
--- /dev/null
+++ b/src/modules/illume2/Makefile.am
@@ -0,0 +1,80 @@
+MAINTAINERCLEANFILES = Makefile.in module.desktop
+MODULE = illume2
+SUBDIRS = images keyboards policies doc
+
+EDJE_CC = @edje_cc@
+EDJE_FLAGS = -v \
+ -id $(top_srcdir)/src/modules/$(MODULE)/images \
+ @EDJE_DEF@
+
+# data files for the module
+filesdir = $(libdir)/enlightenment/modules/$(MODULE)
+files_DATA = \
+ e-module-$(MODULE).edj \
+ module.desktop
+
+EXTRA_DIST = \
+ e-module-$(MODULE).edc \
+ module.desktop.in
+
+# the module .so file
+INCLUDES = -I. \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/src/modules/$(MODULE) \
+ -I$(top_srcdir)/src/bin \
+ -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/modules \
+ @e_cflags@
+
+pkgdir = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
+pkg_LTLIBRARIES = module.la
+
+module_la_SOURCES = \
+ e_illume.h \
+ e_illume.c \
+ e_illume_private.h \
+ e_mod_config_policy.h \
+ e_mod_config_policy.c \
+ e_mod_select_window.h \
+ e_mod_select_window.c \
+ e_mod_config_windows.h \
+ e_mod_config_windows.c \
+ e_mod_config_animation.h \
+ e_mod_config_animation.c \
+ e_mod_quickpanel.h \
+ e_mod_quickpanel.c \
+ e_mod_kbd_dbus.h \
+ e_mod_kbd_dbus.c \
+ e_mod_kbd.h \
+ e_mod_kbd.c \
+ e_mod_policy.h \
+ e_mod_policy.c \
+ e_mod_config.h \
+ e_mod_config.c \
+ e_mod_main.h \
+ e_mod_main.c
+
+module_la_LIBADD = @e_libs@ @dlopen_libs@
+module_la_LDFLAGS = -module -avoid-version
+module_la_DEPENDENCIES = $(top_builddir)/config.h
+
+e-module-$(MODULE).edj: Makefile $(EXTRA_DIST)
+ $(EDJE_CC) $(EDJE_FLAGS) \
+ $(top_srcdir)/src/modules/$(MODULE)/e-module-$(MODULE).edc \
+ $(top_builddir)/src/modules/$(MODULE)/e-module-$(MODULE).edj
+
+.PHONY: doc
+
+# Documentation
+
+doc:
+ @echo "entering doc/"
+ make -C doc doc
+
+clean-local:
+ rm -f *.edj
+
+uninstall:
+ rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)
+ rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)/policies
+ rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)/keyboards
diff --git a/src/modules/illume2/doc/Doxyfile b/src/modules/illume2/doc/Doxyfile
new file mode 100644
index 000000000..bdd35f508
--- /dev/null
+++ b/src/modules/illume2/doc/Doxyfile
@@ -0,0 +1,1349 @@
+# Doxyfile 1.5.5
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME = Illume
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = 2.0
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = .
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
+# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
+# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
+# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,
+# and Ukrainian.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = YES
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 2
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = NO
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespace are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = YES
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = YES
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = YES
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = NO
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = NO
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST = YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = NO
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = NO
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command , where is the value of
+# the FILE_VERSION_FILTER tag, and is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = YES
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = NO
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = YES
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = ../
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+FILE_PATTERNS = *.c *.h *.x
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = NO
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = YES
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH = ./img
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command , where
+# is the value of the INPUT_FILTER tag, and is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES (the default)
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = YES
+
+# If the REFERENCES_RELATION tag is set to YES (the default)
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = YES
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code. Otherwise they will link to the documentstion.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 2
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER = head.html
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER = foot.html
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET = e.css
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
+
+GENERATE_DOCSET = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
+# can be grouped.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded. For this to work a browser that supports
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = YES
+
+# This tag can be used to set the number of enum values (range [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE = 1
+
+# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
+# generated containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+# probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = YES
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = NO
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = YES
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = YES
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = YES
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = NO
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED = __UNUSED__=
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
+# powerful graphs.
+
+CLASS_DIAGRAMS = NO
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = NO
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = NO
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = NO
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = NO
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is enabled by default, which results in a transparent
+# background. Warning: Depending on the platform used, enabling this option
+# may lead to badly anti-aliased labels on the edges of a graph (i.e. they
+# become hard to read).
+
+DOT_TRANSPARENT = YES
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+
+# The SEARCHENGINE tag specifies whether or not a search engine should be
+# used. If set to NO the values of all tags below this one will be ignored.
+
+SEARCHENGINE = NO
diff --git a/src/modules/illume2/doc/Makefile.am b/src/modules/illume2/doc/Makefile.am
new file mode 100644
index 000000000..83826b4c2
--- /dev/null
+++ b/src/modules/illume2/doc/Makefile.am
@@ -0,0 +1,22 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+.PHONY: doc
+
+if EFL_BUILD_DOC
+
+doc: all
+ rm -rf html/ latex/ man/
+ $(efl_doxygen)
+ cp img/* html/
+
+else
+
+doc:
+ @echo "Documentation not built. Run ./configure --help"
+
+endif
+
+clean-local:
+ @rm -rf html/ latex/ man/
+
+EXTRA_DIST = Doxyfile $(wildcard img/*.*) e.css head.html foot.html
diff --git a/src/modules/illume2/doc/e.css b/src/modules/illume2/doc/e.css
new file mode 100644
index 000000000..2dd6b4479
--- /dev/null
+++ b/src/modules/illume2/doc/e.css
@@ -0,0 +1,273 @@
+/*
+ Author:
+ Andres Blanc
+ DaveMDS Andreoli
+
+ Supported Browsers:
+ ie7, opera9, konqueror4 and firefox3
+
+ Please use a different file for ie6, ie5, etc. hacks.
+*/
+
+
+/* Necessary to place the footer at the bottom of the page */
+html, body {
+ height: 100%;
+ margin: 0px;
+ padding: 0px;
+}
+
+#container {
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ margin: 0 auto -53px;
+}
+
+#footer, #push {
+ height: 53px;
+}
+
+
+* html #container {
+ height: 100%;
+}
+
+/* Prevent floating elements overflowing containers */
+.clear {
+ clear: both;
+ width: 0px;
+ height: 0px;
+}
+
+/* Flexible & centered layout from 750 to 960 pixels */
+.layout {
+ max-width: 960px;
+ min-width: 760px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+body {
+ /*font-family: Lucida Grande, Helvetica, sans-serif;*/
+ font-family: "Bitstream Vera","Vera","Trebuchet MS",Trebuchet,Tahoma,sans-serif
+}
+
+/* Prevent design overflowing the viewport in small resolutions */
+#container {
+ padding-right: 17px;
+ padding-left: 17px;
+ background-image: url(head_bg.png);
+ background-repeat: repeat-x;
+}
+
+/****************************/
+/* Top main menu */
+/****************************/
+#header_logo {
+ background-image : url(logo.png);
+ width : 61px;
+}
+
+#header_logo a {
+ position : absolute;
+ border : 0px;
+ background-color : transparent;
+ top : 0px;
+ width : 60px;
+ height : 60px;
+}
+
+#header_menu {
+ background-image : url(header_menu_background.png);
+ font : normal 10pt verdana,'Bitstream Vera Sans',helvetica,arial,sans-serif;
+ text-align : right;
+}
+
+#header_last {
+ background-image : url(header_menu_background_last.png);
+ width : 15px;
+}
+
+td.nav_passive {
+ background : url(header_menu_unselected_background.png) 0 0 no-repeat;
+ height : 63px;
+ font-family : "Bitstream Vera","Vera","Trebuchet MS",Trebuchet,Tahoma,sans-serif;
+ font-size : 11px;
+ padding : 20px 10px 20px 10px;
+ vertical-align : middle;
+}
+
+td.nav_active {
+ background : url(header_menu_current_background.png) 0 0 no-repeat;
+ height : 63px;
+ color : #646464;
+ font-family : "Bitstream Vera","Vera","Trebuchet MS",Trebuchet,Tahoma,sans-serif;
+ font-size : 11px;
+ font-weight : bold;
+ padding : 20px 10px 20px 10px;
+ vertical-align : middle;
+}
+
+#header_menu a {
+ display : block;
+ text-decoration : none;
+ cursor : pointer;
+ color : #cdcdcd;
+}
+
+
+
+#header {
+ width: 100%;
+ height: 102px;
+}
+
+#header h1 {
+ width: 63px;
+ height: 63px;
+ position: absolute;
+ margin: 0px;
+}
+
+#header h1 span {
+ display: none;
+}
+
+#header h2 {
+ display: none;
+}
+
+/* .menu-container is used to set properties common to .menu and .submenu */
+#header .menu-container {
+}
+
+#header .menu-container ul {
+ list-style-type: none;
+ list-style-position: inside;
+ margin: 0;
+}
+
+#header .menu-container li {
+ display: block;
+ float: right;
+}
+
+#header .menu {
+ height: 63px;
+ display: block;
+ background-image: url(menu_bg.png);
+ background-repeat: repeat-x;
+}
+
+#header .menu ul {
+ height: 100%;
+ display: block;
+ background-image: url(menu_bg_last.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+ padding-right: 17px;
+}
+
+#header .menu li {
+ height: 100%;
+ text-align: center;
+ background-image: url(menu_bg_unsel.png);
+ background-repeat: no-repeat;
+}
+
+#header .menu a {
+ height: 100%;
+ display: block;
+ color: #cdcdcd;
+ text-decoration: none;
+ font-size: 10pt;
+ line-height: 59px;
+ text-align: center;
+ padding: 0px 15px 0px 15px;
+}
+
+#header .menu li:hover {
+ background-image: url(menu_bg_hover.png);
+ background-repeat: no-repeat;
+}
+
+#header .menu li:hover a {
+ color: #FFFFFF;
+}
+
+#header .menu li.current {
+ background-image: url(menu_bg_current.png);
+ background-repeat: no-repeat;
+}
+
+#header .menu li.current a {
+ color: #646464;
+}
+
+
+/* Hide all the submenus but the current */
+#header .submenu ul {
+ display: none;
+}
+
+#header .submenu .current {
+ display: block;
+}
+
+#header .submenu {
+ font: bold 10px verdana,'Bitstream Vera Sans',helvetica,arial,sans-serif;
+ margin-top: 10px;
+}
+
+#header .submenu a {
+ color: #888888;
+ text-decoration: none;
+ font-size: 0.9em;
+ line-height: 15px;
+ padding:0px 5px 0px 5px;
+}
+
+#header .submenu a:hover {
+ color: #444444;
+}
+
+#header .submenu li {
+ border-left: 1px solid #DDDDDD;
+}
+
+#header .submenu li:last-child {
+ border-left: 0;
+}
+
+#header .doxytitle {
+ position: absolute;
+ font-size: 1.8em;
+ font-weight: bold;
+ color: #444444;
+ line-height: 35px;
+}
+
+#header small {
+ font-size: 0.4em;
+}
+
+#footer {
+ background-image: url(foot_bg.png);
+ width: 100%;
+}
+
+#footer table {
+ width: 100%;
+ text-align: center;
+ white-space: nowrap;
+ padding: 5px 30px 5px 30px;
+ font-size: 0.8em;
+ font-family: "Bitstream Vera","Vera","Trebuchet MS",Trebuchet,Tahoma,sans-serif;
+ color: #888888;
+}
+
+#footer td.copyright {
+ width: 100%;
+}
+
diff --git a/src/modules/illume2/doc/foot.html b/src/modules/illume2/doc/foot.html
new file mode 100644
index 000000000..d43cf8fcc
--- /dev/null
+++ b/src/modules/illume2/doc/foot.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+