2007-09-14 09:57:01 -07:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
|
|
|
#include "e.h"
|
|
|
|
#include "e_mod_main.h"
|
|
|
|
|
2007-09-16 11:32:32 -07:00
|
|
|
static void
|
|
|
|
button_cb(void *data, void *data2)
|
|
|
|
{
|
|
|
|
e_wizard_button_next_enable_set(1);
|
|
|
|
}
|
|
|
|
|
2007-09-14 09:57:01 -07:00
|
|
|
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 *ob, *o;
|
|
|
|
|
|
|
|
printf("t1\n");
|
|
|
|
ob = e_widget_list_add(pg->evas, 1, 0);
|
|
|
|
o = e_widget_button_add(pg->evas,
|
|
|
|
"Hello World", NULL,
|
2007-09-16 11:32:32 -07:00
|
|
|
button_cb, NULL, NULL);
|
2007-09-14 09:57:01 -07:00
|
|
|
e_widget_list_object_append(ob, o, 0, 0, 0.5);
|
|
|
|
evas_object_show(o);
|
|
|
|
e_wizard_page_show(ob);
|
|
|
|
pg->data = ob;
|
2007-09-16 11:32:32 -07:00
|
|
|
e_wizard_button_next_enable_set(0);
|
2007-09-14 09:57:01 -07:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
printf("a1\n");
|
|
|
|
return 1;
|
|
|
|
}
|