2006-02-02 01:42:19 -08:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
2007-11-08 23:43:38 -08:00
|
|
|
#define E_GADCON_CLIENT(x) ((E_Gadcon_Client *)(x))
|
2007-09-15 17:02:53 -07:00
|
|
|
|
2006-02-06 02:44:54 -08:00
|
|
|
/* different layout policies - only 1 supported for now */
|
|
|
|
typedef enum _E_Gadcon_Layout_Policy
|
|
|
|
{
|
|
|
|
E_GADCON_LAYOUT_POLICY_PANEL
|
|
|
|
} E_Gadcon_Layout_Policy;
|
|
|
|
|
2006-02-02 01:42:19 -08:00
|
|
|
typedef enum _E_Gadcon_Orient
|
|
|
|
{
|
|
|
|
/* generic orientations */
|
2006-02-14 05:09:01 -08:00
|
|
|
E_GADCON_ORIENT_FLOAT,
|
|
|
|
E_GADCON_ORIENT_HORIZ,
|
2006-02-02 01:42:19 -08:00
|
|
|
E_GADCON_ORIENT_VERT,
|
|
|
|
E_GADCON_ORIENT_LEFT,
|
|
|
|
E_GADCON_ORIENT_RIGHT,
|
|
|
|
E_GADCON_ORIENT_TOP,
|
2006-02-14 05:09:01 -08:00
|
|
|
E_GADCON_ORIENT_BOTTOM,
|
|
|
|
E_GADCON_ORIENT_CORNER_TL,
|
|
|
|
E_GADCON_ORIENT_CORNER_TR,
|
|
|
|
E_GADCON_ORIENT_CORNER_BL,
|
2006-04-05 07:00:32 -07:00
|
|
|
E_GADCON_ORIENT_CORNER_BR,
|
|
|
|
E_GADCON_ORIENT_CORNER_LT,
|
|
|
|
E_GADCON_ORIENT_CORNER_RT,
|
|
|
|
E_GADCON_ORIENT_CORNER_LB,
|
|
|
|
E_GADCON_ORIENT_CORNER_RB
|
2006-02-02 01:42:19 -08:00
|
|
|
} E_Gadcon_Orient;
|
|
|
|
|
List of changes:
1. Gadcon sities:
-- 'E_Gadcon_Site' enum to list all available sities,
-- added 'is_site' callback for distinguish gadcon sities,
-- 'e_gadcon_site_is_*' helpers written to use in gadget modules,
-- gadcon config dialogs modified to show only gadgets that appropriate
to selected gadcon site,
-- all gadget modules updated for using new callback.
When callback is not provided in module, then gadget can be used in
any gadcon site.
2. Filemanager:
-- added error icon to unexisting path dialog,
-- added callback 'func.abort' to 'E_Fm2_Op_Registry_Entry' to specify
abort operation sequence (if not provided, then operation is not
cancelable),
-- added parameter to 'e_fm2_op_registry_entry_add' to specify abort
method on construct 'E_Fm2_Op_Registry_Entry' or make non-cancelable
operation if this function is not provided,
-- added 'e_fm2_operation_abort' call to cancel efm2 operation,
-- added method '_e_fm2_operation_abort_internal' that represent efm2
default handler of operation cancelling,
-- 'done' and 'total' fields of 'E_Fm2_Op_Registry_Entry' changed to
off_t type, also all message handlers modified to work with it
(to show progress for large files correctly),
-- improved file operation progress processing,
-- added cancel button to operation progress gadget in filemanager window,
-- added delete file glyph to operation progress gadget,
-- improved status message for efm2 operation progress.
3. Filemanager slave:
-- fixed critical bug in message handling via stdin/stdout,
-- fixed critical bug in removing task from list,
-- improved 'E_FM_OP_ABORT' handling,
-- fix rollback counting on moving files.
4. Fileman_opinfo module:
-- a new theme writed: status string and gadget for view operation status
in summary and detail modes,
-- summary mode: operation glyph, state message, progressbar, abort button,
-- detail mode: all for summary + from filename, to filename,
-- summary/detailed button works as trigger,
-- added source of module theme and used images.
4. Pathbar module:
-- non-critical fix, just for safety.
Also patch contains several minor updates to serve main task.
SVN revision: 41224
2009-06-29 07:38:03 -07:00
|
|
|
typedef enum _E_Gadcon_Site
|
|
|
|
{
|
|
|
|
E_GADCON_SITE_UNKNOWN = 0, // when target site is unknown
|
|
|
|
/* generic sities */
|
|
|
|
E_GADCON_SITE_SHELF,
|
|
|
|
E_GADCON_SITE_DESKTOP,
|
|
|
|
E_GADCON_SITE_TOOLBAR, // generic toolbar
|
|
|
|
E_GADCON_SITE_EFM_TOOLBAR // filemanager window toolbar
|
|
|
|
} E_Gadcon_Site;
|
|
|
|
|
2006-08-08 23:08:36 -07:00
|
|
|
#define E_GADCON_CLIENT_STYLE_PLAIN "plain"
|
|
|
|
#define E_GADCON_CLIENT_STYLE_INSET "inset"
|
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
typedef struct _E_Gadcon E_Gadcon;
|
|
|
|
typedef struct _E_Gadcon_Client E_Gadcon_Client;
|
2006-02-05 00:17:40 -08:00
|
|
|
typedef struct _E_Gadcon_Client_Class E_Gadcon_Client_Class;
|
2009-11-24 11:00:52 -08:00
|
|
|
typedef struct _E_Gadcon_Location E_Gadcon_Location;
|
2006-02-02 01:42:19 -08:00
|
|
|
|
|
|
|
#else
|
|
|
|
#ifndef E_GADCON_H
|
|
|
|
#define E_GADCON_H
|
|
|
|
|
2006-09-09 21:51:07 -07:00
|
|
|
#define E_GADCON_TYPE 0xE0b01006
|
|
|
|
#define E_GADCON_CLIENT_TYPE 0xE0b01007
|
2006-02-02 01:42:19 -08:00
|
|
|
|
|
|
|
struct _E_Gadcon
|
|
|
|
{
|
2009-11-24 11:00:52 -08:00
|
|
|
E_Object e_obj_inherit;
|
|
|
|
|
|
|
|
const char *name;
|
|
|
|
int id;
|
2006-02-02 01:42:19 -08:00
|
|
|
|
2006-02-06 02:44:54 -08:00
|
|
|
E_Gadcon_Layout_Policy layout_policy;
|
2009-11-24 11:00:52 -08:00
|
|
|
|
2007-11-08 23:43:38 -08:00
|
|
|
struct
|
|
|
|
{
|
2009-11-24 11:00:52 -08:00
|
|
|
Evas_Object *o_parent;
|
|
|
|
const char *swallow_name;
|
2007-11-08 23:43:38 -08:00
|
|
|
} edje;
|
2009-11-24 11:00:52 -08:00
|
|
|
Ecore_Evas *ecore_evas;
|
|
|
|
E_Zone *zone;
|
|
|
|
|
|
|
|
E_Gadcon_Orient orient;
|
|
|
|
|
|
|
|
Evas *evas;
|
|
|
|
Evas_Object *o_container;
|
|
|
|
Eina_List *clients;
|
|
|
|
|
2007-11-08 23:43:38 -08:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
void (*func) (void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h);
|
|
|
|
void *data;
|
|
|
|
} resize_request, min_size_request;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
Evas_Object *(*func) (void *data, E_Gadcon_Client *gcc, const char *style);
|
|
|
|
void *data;
|
|
|
|
} frame_request;
|
|
|
|
struct
|
|
|
|
{
|
2008-05-18 21:37:34 -07:00
|
|
|
void (*func) (void *data, E_Gadcon_Client *gcc, E_Menu *menu);
|
2007-11-08 23:43:38 -08:00
|
|
|
void *data;
|
|
|
|
} menu_attach;
|
2008-11-11 17:14:18 -08:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
void (*func) (void *data, E_Gadcon *gc, const E_Gadcon_Client_Class *cc);
|
|
|
|
void *data;
|
|
|
|
} populate_class;
|
2009-01-24 06:09:37 -08:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
void (*func) (void *data, int lock);
|
|
|
|
void *data;
|
|
|
|
} locked_set;
|
2009-03-24 09:08:37 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
void (*func) (void *data);
|
|
|
|
void *data;
|
|
|
|
} urgent_show;
|
2006-04-23 06:20:57 -07:00
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
E_Config_Dialog *config_dialog;
|
|
|
|
unsigned char editing : 1;
|
|
|
|
Ecore_X_Window dnd_win, xdnd_win;
|
|
|
|
E_Shelf *shelf;
|
|
|
|
E_Toolbar *toolbar;
|
|
|
|
E_Gadcon_Location *location;
|
2006-12-30 14:31:28 -08:00
|
|
|
|
|
|
|
E_Drop_Handler *drop_handler;
|
2007-09-15 17:02:53 -07:00
|
|
|
|
|
|
|
E_Config_Gadcon *cf;
|
2008-03-05 04:39:55 -08:00
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
unsigned char instant_edit : 1;
|
2006-02-02 01:42:19 -08:00
|
|
|
};
|
|
|
|
|
2008-11-03 19:57:45 -08:00
|
|
|
#define GADCON_CLIENT_CLASS_VERSION 3
|
|
|
|
/* Version 3 add the *client_class param to icon(),label(),id_new(), id_del() */
|
|
|
|
/* and the *orient param to orient() */
|
2006-02-05 00:17:40 -08:00
|
|
|
struct _E_Gadcon_Client_Class
|
2006-02-02 01:42:19 -08:00
|
|
|
{
|
2006-02-05 00:17:40 -08:00
|
|
|
int version;
|
2006-05-09 06:02:48 -07:00
|
|
|
/* All members below are part of version 1 */
|
2008-02-12 20:51:01 -08:00
|
|
|
const char *name;
|
2007-11-08 23:43:38 -08:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
E_Gadcon_Client *(*init) (E_Gadcon *gc, const char *name, const char *id, const char *style);
|
|
|
|
void (*shutdown) (E_Gadcon_Client *gcc);
|
2008-11-03 19:57:45 -08:00
|
|
|
void (*orient) (E_Gadcon_Client *gcc, E_Gadcon_Orient orient);
|
|
|
|
char *(*label) (E_Gadcon_Client_Class *client_class);
|
|
|
|
Evas_Object *(*icon) (E_Gadcon_Client_Class *client_class, Evas *evas);
|
2007-11-08 23:43:38 -08:00
|
|
|
/* All members below are part of version 2 */
|
|
|
|
/* Create new id, so that the gadcon client can refer to a config set inside the module */
|
2008-11-03 19:57:45 -08:00
|
|
|
const char *(*id_new) (E_Gadcon_Client_Class *client_class);
|
2007-11-08 23:43:38 -08:00
|
|
|
/* Del an id when a gadcon client is removed from the system */
|
2008-11-03 19:57:45 -08:00
|
|
|
void (*id_del) (E_Gadcon_Client_Class *client_class, const char *id);
|
2007-11-08 23:43:38 -08:00
|
|
|
/* All members below are part of version 3 */
|
List of changes:
1. Gadcon sities:
-- 'E_Gadcon_Site' enum to list all available sities,
-- added 'is_site' callback for distinguish gadcon sities,
-- 'e_gadcon_site_is_*' helpers written to use in gadget modules,
-- gadcon config dialogs modified to show only gadgets that appropriate
to selected gadcon site,
-- all gadget modules updated for using new callback.
When callback is not provided in module, then gadget can be used in
any gadcon site.
2. Filemanager:
-- added error icon to unexisting path dialog,
-- added callback 'func.abort' to 'E_Fm2_Op_Registry_Entry' to specify
abort operation sequence (if not provided, then operation is not
cancelable),
-- added parameter to 'e_fm2_op_registry_entry_add' to specify abort
method on construct 'E_Fm2_Op_Registry_Entry' or make non-cancelable
operation if this function is not provided,
-- added 'e_fm2_operation_abort' call to cancel efm2 operation,
-- added method '_e_fm2_operation_abort_internal' that represent efm2
default handler of operation cancelling,
-- 'done' and 'total' fields of 'E_Fm2_Op_Registry_Entry' changed to
off_t type, also all message handlers modified to work with it
(to show progress for large files correctly),
-- improved file operation progress processing,
-- added cancel button to operation progress gadget in filemanager window,
-- added delete file glyph to operation progress gadget,
-- improved status message for efm2 operation progress.
3. Filemanager slave:
-- fixed critical bug in message handling via stdin/stdout,
-- fixed critical bug in removing task from list,
-- improved 'E_FM_OP_ABORT' handling,
-- fix rollback counting on moving files.
4. Fileman_opinfo module:
-- a new theme writed: status string and gadget for view operation status
in summary and detail modes,
-- summary mode: operation glyph, state message, progressbar, abort button,
-- detail mode: all for summary + from filename, to filename,
-- summary/detailed button works as trigger,
-- added source of module theme and used images.
4. Pathbar module:
-- non-critical fix, just for safety.
Also patch contains several minor updates to serve main task.
SVN revision: 41224
2009-06-29 07:38:03 -07:00
|
|
|
Eina_Bool (*is_site) (E_Gadcon_Site site);
|
2007-11-08 23:43:38 -08:00
|
|
|
} func;
|
2006-08-08 23:08:36 -07:00
|
|
|
char *default_style;
|
2006-02-05 00:17:40 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Gadcon_Client
|
|
|
|
{
|
2009-11-24 11:00:52 -08:00
|
|
|
E_Object e_obj_inherit;
|
|
|
|
E_Gadcon *gadcon;
|
|
|
|
const char *name;
|
|
|
|
int id;
|
|
|
|
Evas_Object *o_base;
|
|
|
|
Evas_Object *o_box;
|
|
|
|
Evas_Object *o_frame;
|
|
|
|
Evas_Object *o_control;
|
|
|
|
Evas_Object *o_event;
|
2006-05-31 09:07:22 -07:00
|
|
|
const E_Gadcon_Client_Class *client_class;
|
2009-11-24 11:00:52 -08:00
|
|
|
void *data;
|
|
|
|
|
2007-11-08 23:43:38 -08:00
|
|
|
struct
|
|
|
|
{
|
2009-11-24 11:00:52 -08:00
|
|
|
int pos, size, res; //gadcon
|
|
|
|
double pos_x, pos_y, size_w, size_h; //gadman
|
2007-11-08 23:43:38 -08:00
|
|
|
} config;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int seq, flags; /* goes to save */
|
|
|
|
int state, resist;
|
|
|
|
int prev_pos, prev_size;
|
|
|
|
int want_save : 1;
|
|
|
|
} state_info;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
2009-11-24 11:00:52 -08:00
|
|
|
Evas_Coord w, h;
|
2007-11-08 23:43:38 -08:00
|
|
|
} pad, min, aspect;
|
2009-11-24 11:00:52 -08:00
|
|
|
|
|
|
|
Ecore_Timer *scroll_timer;
|
|
|
|
Ecore_Timer *instant_edit_timer;
|
|
|
|
Ecore_Animator *scroll_animator;
|
|
|
|
double scroll_pos, scroll_wanted;
|
|
|
|
|
2007-11-08 23:43:38 -08:00
|
|
|
struct
|
|
|
|
{
|
2006-11-14 22:24:30 -08:00
|
|
|
void *data;
|
|
|
|
void (*func) (void *data);
|
2007-11-08 23:43:38 -08:00
|
|
|
} scroll_cb;
|
2006-11-14 22:24:30 -08:00
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
E_Menu *menu;
|
|
|
|
const char *style;
|
|
|
|
unsigned char autoscroll : 1;
|
|
|
|
unsigned char resizable : 1;
|
2006-02-10 00:14:57 -08:00
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
unsigned char moving : 1;
|
|
|
|
unsigned char resizing : 1;
|
|
|
|
Evas_Coord dx, dy;
|
2006-11-14 22:24:30 -08:00
|
|
|
|
2007-11-08 23:43:38 -08:00
|
|
|
struct
|
|
|
|
{
|
2006-12-29 08:54:21 -08:00
|
|
|
int x, y;
|
2007-11-08 23:43:38 -08:00
|
|
|
} drag;
|
2007-01-07 08:32:57 -08:00
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
unsigned char hidden : 1;
|
2007-09-15 17:02:53 -07:00
|
|
|
|
|
|
|
E_Config_Gadcon_Client *cf;
|
2006-02-02 01:42:19 -08:00
|
|
|
};
|
|
|
|
|
2009-08-31 04:23:03 -07:00
|
|
|
/* defines usable gadget placements such as Desktop, Shelf #, etc */
|
|
|
|
/* next fields are mandatory (not NULL): name, add_gadget.func, remove_gadget.func */
|
|
|
|
struct _E_Gadcon_Location
|
|
|
|
{
|
|
|
|
/* location name */
|
|
|
|
const char * name;
|
|
|
|
/* icon related to location, such as "preferences-desktop-shelf" for shelves, "preferences-desktop" for menus */
|
|
|
|
const char * icon_name;
|
|
|
|
E_Gadcon_Site site;
|
|
|
|
/* adds gadcon client to location. Returns nonzero on success */
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int (*func) (void *data, const E_Gadcon_Client_Class *cc);
|
|
|
|
void *data;
|
|
|
|
} gadget_add;
|
|
|
|
/* removes existing gadcon client from location */
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
void (*func) (void *data, E_Gadcon_Client *gcc);
|
|
|
|
void *data;
|
|
|
|
} gadget_remove;
|
|
|
|
};
|
|
|
|
|
2010-11-22 07:21:32 -08:00
|
|
|
EINTERN int e_gadcon_init(void);
|
|
|
|
EINTERN int e_gadcon_shutdown(void);
|
2006-05-31 09:07:22 -07:00
|
|
|
EAPI void e_gadcon_provider_register(const E_Gadcon_Client_Class *cc);
|
|
|
|
EAPI void e_gadcon_provider_unregister(const E_Gadcon_Client_Class *cc);
|
2008-10-22 04:49:33 -07:00
|
|
|
EAPI Eina_List *e_gadcon_provider_list(void);
|
2010-08-19 08:18:18 -07:00
|
|
|
EAPI E_Gadcon *e_gadcon_swallowed_new(const char *name, int id, Evas_Object *obj, const char *swallow_name);
|
2008-11-10 07:47:25 -08:00
|
|
|
EAPI void e_gadcon_custom_new(E_Gadcon *gc);
|
|
|
|
EAPI void e_gadcon_custom_del(E_Gadcon *gc);
|
2006-04-04 02:54:50 -07:00
|
|
|
EAPI void e_gadcon_swallowed_min_size_set(E_Gadcon *gc, Evas_Coord w, Evas_Coord h);
|
2006-04-20 04:30:25 -07:00
|
|
|
EAPI void e_gadcon_min_size_request_callback_set(E_Gadcon *gc, void (*func) (void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h), void *data);
|
2006-04-02 04:35:35 -07:00
|
|
|
EAPI void e_gadcon_size_request_callback_set(E_Gadcon *gc, void (*func) (void *data, E_Gadcon *gc, Evas_Coord w, Evas_Coord h), void *data);
|
2006-04-04 08:42:25 -07:00
|
|
|
EAPI void e_gadcon_frame_request_callback_set(E_Gadcon *gc, Evas_Object *(*func) (void *data, E_Gadcon_Client *gcc, const char *style), void *data);
|
2008-11-11 17:14:18 -08:00
|
|
|
EAPI void e_gadcon_populate_callback_set(E_Gadcon *gc, void (*func) (void *data, E_Gadcon *gc, const E_Gadcon_Client_Class *cc), void *data);
|
2006-02-06 02:44:54 -08:00
|
|
|
EAPI void e_gadcon_layout_policy_set(E_Gadcon *gc, E_Gadcon_Layout_Policy layout_policy);
|
2006-02-05 00:17:40 -08:00
|
|
|
EAPI void e_gadcon_populate(E_Gadcon *gc);
|
2006-04-20 04:30:25 -07:00
|
|
|
EAPI void e_gadcon_unpopulate(E_Gadcon *gc);
|
2006-05-31 09:07:22 -07:00
|
|
|
EAPI void e_gadcon_populate_class(E_Gadcon *gc, const E_Gadcon_Client_Class *cc);
|
2006-02-05 00:17:40 -08:00
|
|
|
EAPI void e_gadcon_orient(E_Gadcon *gc, E_Gadcon_Orient orient);
|
2006-02-08 07:06:25 -08:00
|
|
|
EAPI void e_gadcon_edit_begin(E_Gadcon *gc);
|
2006-02-10 00:14:57 -08:00
|
|
|
EAPI void e_gadcon_edit_end(E_Gadcon *gc);
|
|
|
|
EAPI void e_gadcon_all_edit_begin(void);
|
|
|
|
EAPI void e_gadcon_all_edit_end(void);
|
2006-02-10 04:21:22 -08:00
|
|
|
EAPI void e_gadcon_zone_set(E_Gadcon *gc, E_Zone *zone);
|
|
|
|
EAPI E_Zone *e_gadcon_zone_get(E_Gadcon *gc);
|
|
|
|
EAPI void e_gadcon_ecore_evas_set(E_Gadcon *gc, Ecore_Evas *ee);
|
|
|
|
EAPI int e_gadcon_canvas_zone_geometry_get(E_Gadcon *gc, int *x, int *y, int *w, int *h);
|
2008-05-18 21:37:34 -07:00
|
|
|
EAPI void e_gadcon_util_menu_attach_func_set(E_Gadcon *gc, void (*func) (void *data, E_Gadcon_Client *gcc, E_Menu *menu), void *data);
|
2009-01-24 06:09:37 -08:00
|
|
|
EAPI void e_gadcon_util_lock_func_set(E_Gadcon *gc, void (*func) (void *data, int lock), void *data);
|
2009-03-24 09:08:37 -07:00
|
|
|
EAPI void e_gadcon_util_urgent_show_func_set(E_Gadcon *gc, void (*func) (void *data), void *data);
|
2006-10-16 03:40:10 -07:00
|
|
|
EAPI void e_gadcon_dnd_window_set(E_Gadcon *gc, Ecore_X_Window win);
|
|
|
|
EAPI Ecore_X_Window e_gadcon_dnd_window_get(E_Gadcon *gc);
|
2008-06-24 13:13:35 -07:00
|
|
|
EAPI void e_gadcon_xdnd_window_set(E_Gadcon *gc, Ecore_X_Window win);
|
|
|
|
EAPI Ecore_X_Window e_gadcon_xdnd_window_get(E_Gadcon *gc);
|
2007-05-07 12:54:12 -07:00
|
|
|
EAPI void e_gadcon_shelf_set(E_Gadcon *gc, E_Shelf *shelf);
|
|
|
|
EAPI E_Shelf *e_gadcon_shelf_get(E_Gadcon *gc);
|
2007-10-31 03:09:51 -07:00
|
|
|
EAPI void e_gadcon_toolbar_set(E_Gadcon *gc, E_Toolbar *toolbar);
|
|
|
|
EAPI E_Toolbar *e_gadcon_toolbar_get(E_Gadcon *gc);
|
2006-12-30 13:00:19 -08:00
|
|
|
EAPI E_Config_Gadcon_Client *e_gadcon_client_config_new(E_Gadcon *gc, const char *name);
|
2007-09-15 17:02:53 -07:00
|
|
|
EAPI void e_gadcon_client_config_del(E_Config_Gadcon *cf_gc, E_Config_Gadcon_Client *cf_gcc);
|
2006-12-30 15:32:25 -08:00
|
|
|
EAPI E_Gadcon_Client *e_gadcon_client_new(E_Gadcon *gc, const char *name, const char *id, const char *style, Evas_Object *base_obj);
|
2006-04-20 04:30:25 -07:00
|
|
|
EAPI void e_gadcon_client_edit_begin(E_Gadcon_Client *gcc);
|
|
|
|
EAPI void e_gadcon_client_edit_end(E_Gadcon_Client *gcc);
|
2007-01-07 08:32:57 -08:00
|
|
|
EAPI void e_gadcon_client_show(E_Gadcon_Client *gcc);
|
|
|
|
EAPI void e_gadcon_client_hide(E_Gadcon_Client *gcc);
|
2006-02-05 00:17:40 -08:00
|
|
|
EAPI void e_gadcon_client_size_request(E_Gadcon_Client *gcc, Evas_Coord w, Evas_Coord h);
|
2006-02-05 01:29:47 -08:00
|
|
|
EAPI void e_gadcon_client_min_size_set(E_Gadcon_Client *gcc, Evas_Coord w, Evas_Coord h);
|
2006-02-10 04:21:22 -08:00
|
|
|
EAPI void e_gadcon_client_aspect_set(E_Gadcon_Client *gcc, int w, int h);
|
2006-04-20 04:30:25 -07:00
|
|
|
EAPI void e_gadcon_client_autoscroll_set(E_Gadcon_Client *gcc, int autoscroll);
|
2006-11-12 03:32:44 -08:00
|
|
|
EAPI void e_gadcon_client_autoscroll_update(E_Gadcon_Client *gcc, int mx, int my);
|
2006-11-14 22:24:30 -08:00
|
|
|
EAPI void e_gadcon_client_autoscroll_cb_set(E_Gadcon_Client *gcc, void (*func)(void *data), void *data);
|
2006-04-20 04:30:25 -07:00
|
|
|
EAPI void e_gadcon_client_resizable_set(E_Gadcon_Client *gcc, int resizable);
|
2007-03-03 14:42:37 -08:00
|
|
|
EAPI int e_gadcon_client_geometry_get(E_Gadcon_Client *gcc, int *x, int *y, int *w, int *h);
|
2010-11-08 12:11:45 -08:00
|
|
|
EAPI int e_gadcon_client_viewport_geometry_get(E_Gadcon_Client *gcc, int *x, int *y, int *w, int *h);
|
2009-06-21 14:18:44 -07:00
|
|
|
EAPI E_Zone *e_gadcon_client_zone_get(E_Gadcon_Client *gcc);
|
2010-09-09 07:44:21 -07:00
|
|
|
EAPI void e_gadcon_client_util_menu_items_append(E_Gadcon_Client *gcc, E_Menu *menu_main, E_Menu *menu_gadget, int flags);
|
2006-04-20 04:30:25 -07:00
|
|
|
EAPI void e_gadcon_client_util_menu_attach(E_Gadcon_Client *gcc);
|
2009-01-24 06:09:37 -08:00
|
|
|
EAPI void e_gadcon_locked_set(E_Gadcon *gc, int lock);
|
2009-03-24 09:08:37 -07:00
|
|
|
EAPI void e_gadcon_urgent_show(E_Gadcon *gc);
|
2006-04-20 04:30:25 -07:00
|
|
|
|
List of changes:
1. Gadcon sities:
-- 'E_Gadcon_Site' enum to list all available sities,
-- added 'is_site' callback for distinguish gadcon sities,
-- 'e_gadcon_site_is_*' helpers written to use in gadget modules,
-- gadcon config dialogs modified to show only gadgets that appropriate
to selected gadcon site,
-- all gadget modules updated for using new callback.
When callback is not provided in module, then gadget can be used in
any gadcon site.
2. Filemanager:
-- added error icon to unexisting path dialog,
-- added callback 'func.abort' to 'E_Fm2_Op_Registry_Entry' to specify
abort operation sequence (if not provided, then operation is not
cancelable),
-- added parameter to 'e_fm2_op_registry_entry_add' to specify abort
method on construct 'E_Fm2_Op_Registry_Entry' or make non-cancelable
operation if this function is not provided,
-- added 'e_fm2_operation_abort' call to cancel efm2 operation,
-- added method '_e_fm2_operation_abort_internal' that represent efm2
default handler of operation cancelling,
-- 'done' and 'total' fields of 'E_Fm2_Op_Registry_Entry' changed to
off_t type, also all message handlers modified to work with it
(to show progress for large files correctly),
-- improved file operation progress processing,
-- added cancel button to operation progress gadget in filemanager window,
-- added delete file glyph to operation progress gadget,
-- improved status message for efm2 operation progress.
3. Filemanager slave:
-- fixed critical bug in message handling via stdin/stdout,
-- fixed critical bug in removing task from list,
-- improved 'E_FM_OP_ABORT' handling,
-- fix rollback counting on moving files.
4. Fileman_opinfo module:
-- a new theme writed: status string and gadget for view operation status
in summary and detail modes,
-- summary mode: operation glyph, state message, progressbar, abort button,
-- detail mode: all for summary + from filename, to filename,
-- summary/detailed button works as trigger,
-- added source of module theme and used images.
4. Pathbar module:
-- non-critical fix, just for safety.
Also patch contains several minor updates to serve main task.
SVN revision: 41224
2009-06-29 07:38:03 -07:00
|
|
|
/* site helpers */
|
|
|
|
|
2009-11-24 11:00:52 -08:00
|
|
|
EAPI Eina_Bool e_gadcon_site_is_shelf(E_Gadcon_Site site);
|
|
|
|
EAPI Eina_Bool e_gadcon_site_is_desktop(E_Gadcon_Site site);
|
List of changes:
1. Gadcon sities:
-- 'E_Gadcon_Site' enum to list all available sities,
-- added 'is_site' callback for distinguish gadcon sities,
-- 'e_gadcon_site_is_*' helpers written to use in gadget modules,
-- gadcon config dialogs modified to show only gadgets that appropriate
to selected gadcon site,
-- all gadget modules updated for using new callback.
When callback is not provided in module, then gadget can be used in
any gadcon site.
2. Filemanager:
-- added error icon to unexisting path dialog,
-- added callback 'func.abort' to 'E_Fm2_Op_Registry_Entry' to specify
abort operation sequence (if not provided, then operation is not
cancelable),
-- added parameter to 'e_fm2_op_registry_entry_add' to specify abort
method on construct 'E_Fm2_Op_Registry_Entry' or make non-cancelable
operation if this function is not provided,
-- added 'e_fm2_operation_abort' call to cancel efm2 operation,
-- added method '_e_fm2_operation_abort_internal' that represent efm2
default handler of operation cancelling,
-- 'done' and 'total' fields of 'E_Fm2_Op_Registry_Entry' changed to
off_t type, also all message handlers modified to work with it
(to show progress for large files correctly),
-- improved file operation progress processing,
-- added cancel button to operation progress gadget in filemanager window,
-- added delete file glyph to operation progress gadget,
-- improved status message for efm2 operation progress.
3. Filemanager slave:
-- fixed critical bug in message handling via stdin/stdout,
-- fixed critical bug in removing task from list,
-- improved 'E_FM_OP_ABORT' handling,
-- fix rollback counting on moving files.
4. Fileman_opinfo module:
-- a new theme writed: status string and gadget for view operation status
in summary and detail modes,
-- summary mode: operation glyph, state message, progressbar, abort button,
-- detail mode: all for summary + from filename, to filename,
-- summary/detailed button works as trigger,
-- added source of module theme and used images.
4. Pathbar module:
-- non-critical fix, just for safety.
Also patch contains several minor updates to serve main task.
SVN revision: 41224
2009-06-29 07:38:03 -07:00
|
|
|
EAPI Eina_Bool e_gadcon_site_is_efm_toolbar(E_Gadcon_Site site);
|
|
|
|
|
|
|
|
EAPI Eina_Bool e_gadcon_site_is_any_toolbar(E_Gadcon_Site site); // all toolbar sities
|
|
|
|
EAPI Eina_Bool e_gadcon_site_is_not_toolbar(E_Gadcon_Site site); // all non-toolbar sities
|
|
|
|
|
2009-08-31 04:23:03 -07:00
|
|
|
/* location helpers */
|
|
|
|
|
|
|
|
EAPI E_Gadcon_Location *
|
|
|
|
e_gadcon_location_new(const char * name, E_Gadcon_Site site,
|
|
|
|
int (*add_func) (void *data, const E_Gadcon_Client_Class *cc),
|
2009-11-24 11:00:52 -08:00
|
|
|
void *add_data,
|
2009-08-31 04:23:03 -07:00
|
|
|
void (*remove_func) (void *data, E_Gadcon_Client *cc),
|
2009-11-24 11:00:52 -08:00
|
|
|
void *remove_data);
|
2009-08-31 04:23:03 -07:00
|
|
|
EAPI void e_gadcon_location_free(E_Gadcon_Location *loc);
|
2009-11-24 11:00:52 -08:00
|
|
|
EAPI void e_gadcon_location_register (E_Gadcon_Location *loc);
|
|
|
|
EAPI void e_gadcon_location_unregister (E_Gadcon_Location *loc);
|
2009-08-31 04:23:03 -07:00
|
|
|
EAPI void e_gadcon_location_set_icon_name(E_Gadcon_Location *loc, const char *name);
|
|
|
|
EAPI void e_gadcon_client_add_location_menu(E_Gadcon_Client *gcc, E_Menu *menu);
|
|
|
|
|
2006-02-02 01:42:19 -08:00
|
|
|
#endif
|
|
|
|
#endif
|