2009-08-13 08:10:54 -07:00
|
|
|
#include "Evry.h"
|
2009-07-07 09:30:11 -07:00
|
|
|
|
2009-05-06 07:20:45 -07:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
typedef struct _Evry_Selector Evry_Selector;
|
2009-08-24 21:23:11 -07:00
|
|
|
typedef struct _Tab_View Tab_View;
|
2009-06-08 09:37:40 -07:00
|
|
|
|
2009-08-30 01:51:15 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
struct _Evry_Selector
|
|
|
|
{
|
|
|
|
Evas_Object *o_main;
|
|
|
|
Evas_Object *o_icon;
|
|
|
|
|
|
|
|
/* current state */
|
|
|
|
Evry_State *state;
|
|
|
|
|
|
|
|
/* stack of states (for browseable plugins) */
|
|
|
|
Eina_List *states;
|
|
|
|
|
|
|
|
/* provides collection of items from other plugins */
|
|
|
|
Evry_Plugin *aggregator;
|
|
|
|
|
2010-04-04 07:11:35 -07:00
|
|
|
Evry_Plugin *actions;
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
/* */
|
2010-04-04 07:11:35 -07:00
|
|
|
Eina_List *cur_actions;
|
2009-08-21 15:42:06 -07:00
|
|
|
|
|
|
|
/* all plugins that belong to this selector*/
|
|
|
|
Eina_List *plugins;
|
2009-08-24 21:23:11 -07:00
|
|
|
|
2009-08-25 13:52:40 -07:00
|
|
|
Evry_View *view;
|
|
|
|
|
|
|
|
Evas_Object *o_thumb;
|
|
|
|
Eina_Bool do_thumb;
|
2009-08-30 01:51:15 -07:00
|
|
|
|
|
|
|
Eina_Hash *history;
|
2010-04-04 07:11:35 -07:00
|
|
|
|
|
|
|
Ecore_Timer *update_timer;
|
2009-08-21 15:42:06 -07:00
|
|
|
};
|
|
|
|
|
2009-08-24 21:23:11 -07:00
|
|
|
struct _Tab_View
|
|
|
|
{
|
|
|
|
Evas *evas;
|
|
|
|
const Evry_State *state;
|
|
|
|
|
|
|
|
Evas_Object *o_tabs;
|
|
|
|
Eina_List *tabs;
|
|
|
|
|
|
|
|
void (*update) (Tab_View *tv);
|
|
|
|
void (*clear) (Tab_View *tv);
|
|
|
|
int (*key_down) (Tab_View *tv, const Ecore_Event_Key *ev);
|
|
|
|
|
2010-04-17 05:40:28 -07:00
|
|
|
double align;
|
|
|
|
double align_to;
|
|
|
|
Ecore_Animator *animator;
|
2010-04-17 11:28:01 -07:00
|
|
|
Ecore_Timer *timer;
|
2009-08-24 21:23:11 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-06 07:20:45 -07:00
|
|
|
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);
|
2009-07-06 05:08:57 -07:00
|
|
|
EAPI E_Config_Dialog *evry_config_dialog(E_Container *con, const char *params);
|
|
|
|
|
2009-08-30 05:01:50 -07:00
|
|
|
EAPI Tab_View *evry_tab_view_new(const Evry_State *s, Evas *e);
|
|
|
|
EAPI void evry_tab_view_free(Tab_View *v);
|
|
|
|
|
2010-04-10 13:05:57 -07:00
|
|
|
Eina_Bool view_thumb_init(void);
|
|
|
|
void view_thumb_shutdown(void);
|
|
|
|
|
|
|
|
Eina_Bool view_help_init(void);
|
|
|
|
void view_help_shutdown(void);
|
|
|
|
|
|
|
|
Eina_Bool view_preview_init(void);
|
|
|
|
void view_preview_shutdown(void);
|
|
|
|
|
|
|
|
Eina_Bool evry_plug_clipboard_init(void);
|
|
|
|
void evry_plug_clipboard_shutdown(void);
|
|
|
|
|
2010-04-22 12:17:51 -07:00
|
|
|
Eina_Bool evry_plug_text_init(void);
|
|
|
|
void evry_plug_text_shutdown(void);
|
|
|
|
|
2009-08-13 08:10:54 -07:00
|
|
|
int evry_init(void);
|
|
|
|
int evry_shutdown(void);
|
2009-08-18 17:27:41 -07:00
|
|
|
int evry_show(E_Zone *zone, const char *params);
|
2009-08-13 08:10:54 -07:00
|
|
|
void evry_hide(void);
|
2009-07-06 05:08:57 -07:00
|
|
|
|
2010-04-23 17:21:45 -07:00
|
|
|
EAPI Evry_Plugin *evry_plug_aggregator_new(Evry_Selector *selector, int type);
|
2009-08-31 14:04:13 -07:00
|
|
|
EAPI void evry_plug_aggregator_free(Evry_Plugin *plugin);
|
2009-08-21 15:42:06 -07:00
|
|
|
|
2010-04-04 07:11:35 -07:00
|
|
|
EAPI Evry_Plugin *evry_plug_actions_new(int type);
|
2009-08-31 14:04:13 -07:00
|
|
|
EAPI void evry_plug_actions_free(Evry_Plugin *plugin);
|
2009-08-21 15:42:06 -07:00
|
|
|
|
2009-08-30 05:01:50 -07:00
|
|
|
void evry_history_init(void);
|
|
|
|
void evry_history_free(void);
|
2009-08-24 21:23:11 -07:00
|
|
|
|
2010-04-23 15:26:48 -07:00
|
|
|
EAPI int evry_browse_item(Evry_Selector *sel);
|
|
|
|
EAPI int evry_browse_back(Evry_Selector *sel);
|
2009-08-31 06:04:53 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
extern Evry_Selector **selectors;
|
2010-04-04 07:11:35 -07:00
|
|
|
extern const char *action_selector;
|
2010-04-10 13:05:57 -07:00
|
|
|
|
2009-05-06 07:20:45 -07:00
|
|
|
#endif
|