2012-11-30 06:38:34 -08:00
|
|
|
#ifndef E_WIZARD_H
|
2007-08-12 03:16:26 -07:00
|
|
|
|
2012-11-30 06:38:34 -08:00
|
|
|
#include "e.h"
|
2007-09-13 06:56:36 -07:00
|
|
|
|
2012-11-30 06:38:34 -08:00
|
|
|
extern E_Module *wiz_module;
|
|
|
|
|
|
|
|
typedef struct _E_Wizard_Page E_Wizard_Page;
|
2007-08-12 03:16:26 -07:00
|
|
|
|
2012-11-30 02:46:48 -08:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
E_WIZARD_PAGE_STATE_INIT,
|
|
|
|
E_WIZARD_PAGE_STATE_SHOW,
|
|
|
|
E_WIZARD_PAGE_STATE_HIDE,
|
|
|
|
E_WIZARD_PAGE_STATE_SHUTDOWN
|
|
|
|
} E_Wizard_Page_State;
|
|
|
|
|
2007-09-13 06:56:36 -07:00
|
|
|
struct _E_Wizard_Page
|
|
|
|
{
|
2012-11-30 07:48:52 -08:00
|
|
|
EINA_INLIST;
|
2007-09-14 09:57:01 -07:00
|
|
|
void *handle;
|
2007-09-13 06:56:36 -07:00
|
|
|
Evas *evas;
|
2012-11-26 04:40:31 -08:00
|
|
|
int (*init) (E_Wizard_Page *pg, Eina_Bool *need_xdg_desktops, Eina_Bool *need_xdg_icons);
|
2007-09-13 06:56:36 -07:00
|
|
|
int (*shutdown) (E_Wizard_Page *pg);
|
|
|
|
int (*show) (E_Wizard_Page *pg);
|
|
|
|
int (*hide) (E_Wizard_Page *pg);
|
|
|
|
int (*apply) (E_Wizard_Page *pg);
|
2012-11-30 02:46:48 -08:00
|
|
|
E_Wizard_Page_State state;
|
2007-09-13 06:56:36 -07:00
|
|
|
};
|
|
|
|
|
2010-02-27 02:06:22 -08:00
|
|
|
EAPI int e_wizard_init(void);
|
|
|
|
EAPI int e_wizard_shutdown(void);
|
|
|
|
EAPI void e_wizard_go(void);
|
|
|
|
EAPI void e_wizard_apply(void);
|
|
|
|
EAPI void e_wizard_next(void);
|
|
|
|
EAPI void e_wizard_page_show(Evas_Object *obj);
|
2011-08-15 02:21:12 -07:00
|
|
|
EAPI E_Wizard_Page *e_wizard_page_add(void *handle,
|
2012-11-26 04:40:31 -08:00
|
|
|
int (*init) (E_Wizard_Page *pg, Eina_Bool *need_xdg_desktops, Eina_Bool *need_xdg_icons),
|
2011-08-15 02:21:12 -07:00
|
|
|
int (*shutdown) (E_Wizard_Page *pg),
|
|
|
|
int (*show) (E_Wizard_Page *pg),
|
|
|
|
int (*hide) (E_Wizard_Page *pg),
|
|
|
|
int (*apply) (E_Wizard_Page *pg)
|
|
|
|
);
|
2010-02-27 02:06:22 -08:00
|
|
|
EAPI void e_wizard_page_del(E_Wizard_Page *pg);
|
|
|
|
EAPI void e_wizard_button_next_enable_set(int enable);
|
|
|
|
EAPI void e_wizard_title_set(const char *title);
|
|
|
|
EAPI void e_wizard_labels_update(void);
|
2011-08-15 02:21:12 -07:00
|
|
|
EAPI const char *e_wizard_dir_get(void);
|
2012-11-26 04:40:31 -08:00
|
|
|
EAPI void e_wizard_xdg_desktops_reset(void);
|
2011-08-15 02:21:12 -07:00
|
|
|
|
2012-11-30 06:38:34 -08:00
|
|
|
/**
|
|
|
|
* @addtogroup Optional_Conf
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @defgroup Module_Wizard Wizard
|
|
|
|
*
|
|
|
|
* Configures the whole Enlightenment in a nice walk-through wizard.
|
|
|
|
*
|
|
|
|
* Usually is presented on the first run of Enlightenment. The wizard
|
|
|
|
* pages are configurable and should be extended by distributions that
|
|
|
|
* want to ship Enlightenment as the default window manager.
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
2007-08-12 03:16:26 -07:00
|
|
|
#endif
|