add stubs for the rest of wiz to finish off.

SVN revision: 37113
This commit is contained in:
Carsten Haitzler 2008-10-26 05:46:45 +00:00
parent b3ad5388bc
commit 5d77d647ff
6 changed files with 230 additions and 3 deletions

View File

@ -21,7 +21,11 @@ pkg_LTLIBRARIES = module.la \
page_000.la \
page_010.la \
page_020.la \
page_030.la
page_030.la \
page_040.la \
page_050.la \
page_060.la \
page_070.la
module_la_SOURCES = e_mod_main.c \
e_mod_main.h \
@ -52,5 +56,25 @@ page_030_la_LIBADD = @e_libs@ @dlopen_libs@
page_030_la_LDFLAGS = -module -avoid-version
page_030_la_DEPENDENCIES = $(top_builddir)/config.h
page_040_la_SOURCES = page_040.c
page_040_la_LIBADD = @e_libs@ @dlopen_libs@
page_040_la_LDFLAGS = -module -avoid-version
page_040_la_DEPENDENCIES = $(top_builddir)/config.h
page_050_la_SOURCES = page_050.c
page_050_la_LIBADD = @e_libs@ @dlopen_libs@
page_050_la_LDFLAGS = -module -avoid-version
page_050_la_DEPENDENCIES = $(top_builddir)/config.h
page_060_la_SOURCES = page_060.c
page_060_la_LIBADD = @e_libs@ @dlopen_libs@
page_060_la_LDFLAGS = -module -avoid-version
page_060_la_DEPENDENCIES = $(top_builddir)/config.h
page_070_la_SOURCES = page_070.c
page_070_la_LIBADD = @e_libs@ @dlopen_libs@
page_070_la_LDFLAGS = -module -avoid-version
page_070_la_DEPENDENCIES = $(top_builddir)/config.h
uninstall:
rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)

View File

@ -29,8 +29,7 @@ static E_Module *conf_module = NULL;
* one(s) are to be used.
* o ask for ibar initial app set
* o ask if user wants desktop icons or not (enable fwin module but seed it
* with default config).
* o ask if you want links to home/system/tmp on desktop (if fileman above on)
* with default config icons on desktop and favorites).
* o ask click to focus or sloppy
* . take some of current config (language, fileman, profile) and load
* load profile, apply language to it and save, restart e.

View File

@ -0,0 +1,57 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
#include "e_mod_main.h"
EAPI int
wizard_page_init(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_shutdown(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_show(E_Wizard_Page *pg)
{
Evas_Object *o, *of, *ob;
Eina_List *l;
int i, sel = -1;
o = e_widget_list_add(pg->evas, 1, 0);
e_wizard_title_set(_("Launcher Bar"));
of = e_widget_framelist_add(pg->evas, _("Select applications"), 0);
ob = e_widget_ilist_add(pg->evas, 32 * e_scale, 32 * e_scale, NULL);
e_widget_min_size_set(ob, 140 * e_scale, 140 * e_scale);
e_widget_ilist_freeze(ob);
e_widget_ilist_go(ob);
e_widget_ilist_thaw(ob);
if (sel >= 0) e_widget_ilist_selected_set(ob, sel);
e_widget_framelist_object_append(of, ob);
e_widget_list_object_append(o, of, 1, 1, 0.5);
evas_object_show(ob);
evas_object_show(of);
e_wizard_page_show(o);
pg->data = of;
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
}
EAPI int
wizard_page_hide(E_Wizard_Page *pg)
{
evas_object_del(pg->data);
return 1;
}
EAPI int
wizard_page_apply(E_Wizard_Page *pg)
{
return 1;
}

View File

@ -0,0 +1,57 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
#include "e_mod_main.h"
EAPI int
wizard_page_init(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_shutdown(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_show(E_Wizard_Page *pg)
{
Evas_Object *o, *of, *ob;
Eina_List *l;
int i, sel = -1;
o = e_widget_list_add(pg->evas, 1, 0);
e_wizard_title_set(_("File Manager"));
of = e_widget_framelist_add(pg->evas, _("Desktop Files"), 0);
ob = e_widget_ilist_add(pg->evas, 32 * e_scale, 32 * e_scale, NULL);
e_widget_min_size_set(ob, 140 * e_scale, 140 * e_scale);
e_widget_ilist_freeze(ob);
e_widget_ilist_go(ob);
e_widget_ilist_thaw(ob);
if (sel >= 0) e_widget_ilist_selected_set(ob, sel);
e_widget_framelist_object_append(of, ob);
e_widget_list_object_append(o, of, 1, 1, 0.5);
evas_object_show(ob);
evas_object_show(of);
e_wizard_page_show(o);
pg->data = of;
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
}
EAPI int
wizard_page_hide(E_Wizard_Page *pg)
{
evas_object_del(pg->data);
return 1;
}
EAPI int
wizard_page_apply(E_Wizard_Page *pg)
{
return 1;
}

View File

@ -0,0 +1,57 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
#include "e_mod_main.h"
EAPI int
wizard_page_init(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_shutdown(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_show(E_Wizard_Page *pg)
{
Evas_Object *o, *of, *ob;
Eina_List *l;
int i, sel = -1;
o = e_widget_list_add(pg->evas, 1, 0);
e_wizard_title_set(_("Window Focus"));
of = e_widget_framelist_add(pg->evas, _("Focus Mode"), 0);
ob = e_widget_ilist_add(pg->evas, 32 * e_scale, 32 * e_scale, NULL);
e_widget_min_size_set(ob, 140 * e_scale, 140 * e_scale);
e_widget_ilist_freeze(ob);
e_widget_ilist_go(ob);
e_widget_ilist_thaw(ob);
if (sel >= 0) e_widget_ilist_selected_set(ob, sel);
e_widget_framelist_object_append(of, ob);
e_widget_list_object_append(o, of, 1, 1, 0.5);
evas_object_show(ob);
evas_object_show(of);
e_wizard_page_show(o);
pg->data = of;
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
}
EAPI int
wizard_page_hide(E_Wizard_Page *pg)
{
evas_object_del(pg->data);
return 1;
}
EAPI int
wizard_page_apply(E_Wizard_Page *pg)
{
return 1;
}

View File

@ -0,0 +1,33 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
#include "e_mod_main.h"
EAPI int
wizard_page_init(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_shutdown(E_Wizard_Page *pg)
{
return 1;
}
EAPI int
wizard_page_show(E_Wizard_Page *pg)
{
// FIXME: implement stuff, profile and restart
return 0; /* 1 == show ui, and wait for user, 0 == just continue */
}
EAPI int
wizard_page_hide(E_Wizard_Page *pg)
{
evas_object_del(pg->data);
return 1;
}
EAPI int
wizard_page_apply(E_Wizard_Page *pg)
{
return 1;
}