2005-02-07 05:51:09 -08:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
2005-01-12 08:03:09 -08:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
|
|
|
#define E_CONFIG_DD_NEW(str, typ) \
|
2005-12-04 04:03:59 -08:00
|
|
|
e_config_descriptor_new(str, sizeof(typ))
|
2005-01-12 08:03:09 -08:00
|
|
|
#define E_CONFIG_DD_FREE(eed) if (eed) { eet_data_descriptor_free((eed)); (eed) = NULL; }
|
|
|
|
#define E_CONFIG_VAL(edd, type, member, dtype) EET_DATA_DESCRIPTOR_ADD_BASIC(edd, type, #member, member, dtype)
|
|
|
|
#define E_CONFIG_SUB(edd, type, member, eddtype) EET_DATA_DESCRIPTOR_ADD_SUB(edd, type, #member, member, eddtype)
|
|
|
|
#define E_CONFIG_LIST(edd, type, member, eddtype) EET_DATA_DESCRIPTOR_ADD_LIST(edd, type, #member, member, eddtype)
|
|
|
|
|
|
|
|
#define CHAR EET_T_CHAR
|
|
|
|
#define SHORT EET_T_SHORT
|
|
|
|
#define INT EET_T_INT
|
|
|
|
#define LL EET_T_LONG_LONG
|
|
|
|
#define FLOAT EET_T_FLOAT
|
|
|
|
#define DOUBLE EET_T_DOUBLE
|
|
|
|
#define UCHAR EET_T_UCHAR
|
|
|
|
#define USHORT EET_T_USHORT
|
|
|
|
#define UINT EET_T_UINT
|
|
|
|
#define ULL EET_T_ULONG_LONG
|
|
|
|
#define STR EET_T_STRING
|
|
|
|
|
|
|
|
#define E_CONFIG_LIMIT(v, min, max) {if (v > max) v = max; else if (v < min) v = min;}
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2005-06-30 03:43:21 -07:00
|
|
|
typedef struct _E_Config E_Config;
|
|
|
|
typedef struct _E_Config_Module E_Config_Module;
|
|
|
|
typedef struct _E_Config_Theme E_Config_Theme;
|
|
|
|
typedef struct _E_Config_Binding_Mouse E_Config_Binding_Mouse;
|
|
|
|
typedef struct _E_Config_Binding_Key E_Config_Binding_Key;
|
2005-09-22 13:20:34 -07:00
|
|
|
typedef struct _E_Config_Binding_Signal E_Config_Binding_Signal;
|
|
|
|
typedef struct _E_Config_Binding_Wheel E_Config_Binding_Wheel;
|
2005-06-30 03:43:21 -07:00
|
|
|
typedef struct _E_Config_Desktop_Background E_Config_Desktop_Background;
|
2005-08-05 21:00:03 -07:00
|
|
|
typedef struct _E_Config_Desktop_Name E_Config_Desktop_Name;
|
2005-06-30 03:43:21 -07:00
|
|
|
typedef Eet_Data_Descriptor E_Config_DD;
|
2004-12-05 01:34:59 -08:00
|
|
|
|
2005-01-12 08:03:09 -08:00
|
|
|
#else
|
|
|
|
#ifndef E_CONFIG_H
|
|
|
|
#define E_CONFIG_H
|
2004-12-04 23:43:51 -08:00
|
|
|
|
2005-05-07 10:27:03 -07:00
|
|
|
/* increment this whenever we change config enough that you need new
|
|
|
|
* defaults for e to work - started at 100 when we introduced this config
|
2005-11-23 20:23:31 -08:00
|
|
|
* versioning feature. the value of this is really irrelevant - just as
|
|
|
|
* long as it increases every time we change something
|
2005-05-07 10:27:03 -07:00
|
|
|
*/
|
2005-12-14 20:29:38 -08:00
|
|
|
#define E_CONFIG_FILE_VERSION 134
|
2005-05-07 10:27:03 -07:00
|
|
|
|
2005-05-07 06:50:38 -07:00
|
|
|
#define E_EVAS_ENGINE_DEFAULT 0
|
|
|
|
#define E_EVAS_ENGINE_SOFTWARE_X11 1
|
|
|
|
#define E_EVAS_ENGINE_GL_X11 2
|
2005-10-03 00:36:23 -07:00
|
|
|
#define E_EVAS_ENGINE_XRENDER_X11 3
|
2005-05-07 06:50:38 -07:00
|
|
|
|
2005-10-09 15:15:58 -07:00
|
|
|
typedef enum _E_Engine_Context
|
|
|
|
{
|
|
|
|
E_ENGINE_CONTEXT_INIT,
|
|
|
|
E_ENGINE_CONTEXT_CONTAINER,
|
|
|
|
E_ENGINE_CONTEXT_ZONE,
|
|
|
|
E_ENGINE_CONTEXT_BORDER,
|
|
|
|
E_ENGINE_CONTEXT_MENU,
|
|
|
|
E_ENGINE_CONTEXT_ERROR,
|
|
|
|
E_ENGINE_CONTEXT_WIN,
|
|
|
|
E_ENGINE_CONTEXT_POPUP,
|
|
|
|
E_ENGINE_CONTEXT_DRAG
|
|
|
|
} E_Engine_Context;
|
|
|
|
|
2004-12-04 23:43:51 -08:00
|
|
|
struct _E_Config
|
|
|
|
{
|
2005-05-07 10:27:03 -07:00
|
|
|
int config_version;
|
2005-05-27 03:04:53 -07:00
|
|
|
int show_splash;
|
2004-12-05 01:34:59 -08:00
|
|
|
char *desktop_default_background;
|
2005-06-30 03:43:21 -07:00
|
|
|
Evas_List *desktop_backgrounds;
|
2005-08-05 21:00:03 -07:00
|
|
|
char *desktop_default_name;
|
|
|
|
Evas_List *desktop_names;
|
2005-12-17 15:24:36 -08:00
|
|
|
double menus_scroll_speed; // GUI
|
|
|
|
double menus_fast_mouse_move_threshhold; // GUI
|
|
|
|
double menus_click_drag_timeout; // GUI
|
2005-11-18 22:10:52 -08:00
|
|
|
int border_shade_animate; // GUI
|
|
|
|
int border_shade_transition; // GUI
|
|
|
|
double border_shade_speed; // GUI
|
2004-12-05 01:34:59 -08:00
|
|
|
double framerate;
|
|
|
|
int image_cache;
|
|
|
|
int font_cache;
|
2005-11-23 20:23:31 -08:00
|
|
|
int edje_cache;
|
|
|
|
int edje_collection_cache;
|
|
|
|
double cache_flush_interval;
|
2005-01-08 14:09:16 -08:00
|
|
|
int zone_desks_x_count;
|
|
|
|
int zone_desks_y_count;
|
2005-03-11 05:09:06 -08:00
|
|
|
int use_virtual_roots;
|
2005-05-11 23:53:16 -07:00
|
|
|
int use_edge_flip;
|
|
|
|
double edge_flip_timeout;
|
2005-05-07 06:50:38 -07:00
|
|
|
int evas_engine_default;
|
|
|
|
int evas_engine_container;
|
|
|
|
int evas_engine_init;
|
|
|
|
int evas_engine_menus;
|
|
|
|
int evas_engine_borders;
|
|
|
|
int evas_engine_errors;
|
|
|
|
int evas_engine_popups;
|
2005-05-10 12:35:12 -07:00
|
|
|
int evas_engine_drag;
|
2005-10-03 00:36:23 -07:00
|
|
|
int evas_engine_win;
|
|
|
|
int evas_engine_zone;
|
2005-05-02 03:16:31 -07:00
|
|
|
char *language;
|
2004-12-05 01:34:59 -08:00
|
|
|
Evas_List *modules;
|
2005-04-02 08:40:37 -08:00
|
|
|
Evas_List *font_fallbacks;
|
|
|
|
Evas_List *font_defaults;
|
2005-05-01 09:21:57 -07:00
|
|
|
Evas_List *themes;
|
2005-05-03 08:25:02 -07:00
|
|
|
Evas_List *mouse_bindings;
|
|
|
|
Evas_List *key_bindings;
|
2005-09-22 13:20:34 -07:00
|
|
|
Evas_List *signal_bindings;
|
|
|
|
Evas_List *wheel_bindings;
|
2005-05-19 20:09:44 -07:00
|
|
|
Evas_List *path_append_data;
|
|
|
|
Evas_List *path_append_images;
|
|
|
|
Evas_List *path_append_fonts;
|
|
|
|
Evas_List *path_append_themes;
|
|
|
|
Evas_List *path_append_init;
|
|
|
|
Evas_List *path_append_icons;
|
|
|
|
Evas_List *path_append_modules;
|
|
|
|
Evas_List *path_append_backgrounds;
|
2005-10-22 21:56:51 -07:00
|
|
|
Evas_List *path_append_input_methods;
|
2005-11-22 05:28:10 -08:00
|
|
|
Evas_List *path_append_messages;
|
2005-11-18 22:10:52 -08:00
|
|
|
int window_placement_policy; //
|
2005-11-15 05:07:31 -08:00
|
|
|
int focus_policy; // GUI
|
|
|
|
int focus_setting; // GUI
|
|
|
|
int pass_click_on; // GUI
|
|
|
|
int always_click_to_raise; // GUI
|
|
|
|
int always_click_to_focus; // GUI
|
2005-11-18 22:10:52 -08:00
|
|
|
int use_auto_raise; // GUI
|
|
|
|
double auto_raise_delay; // GUI
|
|
|
|
int use_resist; // GUI
|
2005-05-20 19:49:47 -07:00
|
|
|
int drag_resist;
|
2005-11-18 22:10:52 -08:00
|
|
|
int desk_resist; // GUI
|
|
|
|
int window_resist; // GUI
|
|
|
|
int gadget_resist; // GUI
|
2005-06-14 03:19:25 -07:00
|
|
|
int winlist_warp_while_selecting;
|
|
|
|
int winlist_warp_at_end;
|
|
|
|
double winlist_warp_speed;
|
|
|
|
int winlist_scroll_animate;
|
|
|
|
double winlist_scroll_speed;
|
|
|
|
int winlist_list_show_iconified;
|
|
|
|
int winlist_list_show_other_desk_windows;
|
|
|
|
int winlist_list_show_other_screen_windows;
|
|
|
|
int winlist_list_uncover_while_selecting;
|
|
|
|
int winlist_list_jump_desk_while_selecting;
|
2005-09-27 15:50:56 -07:00
|
|
|
int winlist_list_focus_while_selecting;
|
|
|
|
int winlist_list_raise_while_selecting;
|
2005-06-14 03:19:25 -07:00
|
|
|
double winlist_pos_align_x;
|
|
|
|
double winlist_pos_align_y;
|
|
|
|
double winlist_pos_size_w;
|
|
|
|
double winlist_pos_size_h;
|
|
|
|
int winlist_pos_min_w;
|
|
|
|
int winlist_pos_min_h;
|
|
|
|
int winlist_pos_max_w;
|
|
|
|
int winlist_pos_max_h;
|
2005-11-18 22:10:52 -08:00
|
|
|
int maximize_policy; // GUI
|
2005-06-29 01:49:54 -07:00
|
|
|
int kill_if_close_not_possible;
|
|
|
|
int kill_process;
|
|
|
|
double kill_timer_wait;
|
|
|
|
int ping_clients;
|
|
|
|
double ping_clients_wait;
|
2005-06-30 07:07:28 -07:00
|
|
|
char *transition_start;
|
|
|
|
char *transition_desk;
|
|
|
|
char *transition_change;
|
2005-07-07 02:27:04 -07:00
|
|
|
Evas_List *remembers;
|
2005-11-18 22:10:52 -08:00
|
|
|
int move_info_follows; // GUI
|
|
|
|
int resize_info_follows; // GUI
|
|
|
|
int move_info_visible; // GUI
|
|
|
|
int resize_info_visible; // GUI
|
2005-07-12 04:07:57 -07:00
|
|
|
int focus_last_focused_per_desktop;
|
|
|
|
int focus_revert_on_hide_or_close;
|
2005-09-26 09:14:31 -07:00
|
|
|
int use_e_cursor;
|
2005-08-21 16:37:28 -07:00
|
|
|
int cursor_size;
|
2005-12-17 15:24:36 -08:00
|
|
|
int menu_autoscroll_margin; // GUI
|
|
|
|
int menu_autoscroll_cursor_margin; // GUI
|
2005-10-15 03:49:54 -07:00
|
|
|
char *input_method;
|
2005-09-02 00:38:40 -07:00
|
|
|
struct {
|
|
|
|
int move;
|
|
|
|
int resize;
|
|
|
|
int raise;
|
|
|
|
int lower;
|
|
|
|
int layer;
|
|
|
|
int desktop;
|
|
|
|
int iconify;
|
|
|
|
} transient;
|
2005-09-05 14:46:56 -07:00
|
|
|
int modal_windows;
|
2005-12-17 15:24:36 -08:00
|
|
|
int menu_eap_name_show; // GUI
|
|
|
|
int menu_eap_generic_show; // GUI
|
|
|
|
int menu_eap_comment_show; // GUI
|
2005-11-04 15:30:18 -08:00
|
|
|
int fullscreen_policy;
|
2005-12-14 20:29:38 -08:00
|
|
|
int exebuf_max_exe_list;
|
|
|
|
int exebuf_max_eap_list;
|
|
|
|
int exebuf_scroll_animate;
|
|
|
|
double exebuf_scroll_speed;
|
|
|
|
double exebuf_pos_align_x;
|
|
|
|
double exebuf_pos_align_y;
|
|
|
|
double exebuf_pos_size_w;
|
|
|
|
double exebuf_pos_size_h;
|
|
|
|
int exebuf_pos_min_w;
|
|
|
|
int exebuf_pos_min_h;
|
|
|
|
int exebuf_pos_max_w;
|
|
|
|
int exebuf_pos_max_h;
|
2004-12-05 01:34:59 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Config_Module
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
unsigned char enabled;
|
2004-12-04 23:43:51 -08:00
|
|
|
};
|
|
|
|
|
2005-05-01 09:21:57 -07:00
|
|
|
struct _E_Config_Theme
|
|
|
|
{
|
|
|
|
char *category;
|
|
|
|
char *file;
|
|
|
|
};
|
|
|
|
|
2005-05-03 08:25:02 -07:00
|
|
|
struct _E_Config_Binding_Mouse
|
|
|
|
{
|
|
|
|
int context;
|
|
|
|
int modifiers;
|
|
|
|
char *action;
|
|
|
|
char *params;
|
|
|
|
unsigned char button;
|
|
|
|
unsigned char any_mod;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Config_Binding_Key
|
|
|
|
{
|
|
|
|
int context;
|
|
|
|
int modifiers;
|
|
|
|
char *key;
|
|
|
|
char *action;
|
|
|
|
char *params;
|
|
|
|
unsigned char any_mod;
|
|
|
|
};
|
|
|
|
|
2005-09-22 13:20:34 -07:00
|
|
|
struct _E_Config_Binding_Signal
|
|
|
|
{
|
|
|
|
int context;
|
|
|
|
char *signal;
|
|
|
|
char *source;
|
|
|
|
int modifiers;
|
|
|
|
unsigned char any_mod;
|
|
|
|
char *action;
|
|
|
|
char *params;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Config_Binding_Wheel
|
|
|
|
{
|
|
|
|
int context;
|
|
|
|
int direction;
|
|
|
|
int z;
|
|
|
|
int modifiers;
|
|
|
|
unsigned char any_mod;
|
|
|
|
char *action;
|
|
|
|
char *params;
|
|
|
|
};
|
|
|
|
|
2005-06-30 03:43:21 -07:00
|
|
|
struct _E_Config_Desktop_Background
|
|
|
|
{
|
|
|
|
int container;
|
|
|
|
int zone;
|
2005-06-30 07:35:19 -07:00
|
|
|
int desk_x;
|
|
|
|
int desk_y;
|
2005-06-30 03:43:21 -07:00
|
|
|
char *file;
|
|
|
|
};
|
|
|
|
|
2005-08-05 21:00:03 -07:00
|
|
|
struct _E_Config_Desktop_Name
|
|
|
|
{
|
|
|
|
int container;
|
|
|
|
int zone;
|
|
|
|
int desk_x;
|
|
|
|
int desk_y;
|
|
|
|
char *name;
|
|
|
|
};
|
|
|
|
|
2005-08-05 00:19:26 -07:00
|
|
|
EAPI int e_config_init(void);
|
|
|
|
EAPI int e_config_shutdown(void);
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2005-12-04 04:03:59 -08:00
|
|
|
EAPI E_Config_DD *e_config_descriptor_new(const char *name, int size);
|
|
|
|
|
2005-08-05 00:19:26 -07:00
|
|
|
EAPI int e_config_save(void);
|
|
|
|
EAPI void e_config_save_flush(void);
|
|
|
|
EAPI void e_config_save_queue(void);
|
2004-12-04 23:43:51 -08:00
|
|
|
|
2005-08-05 00:19:26 -07:00
|
|
|
EAPI char *e_config_profile_get(void);
|
|
|
|
EAPI void e_config_profile_set(char *prof);
|
2005-07-22 03:28:11 -07:00
|
|
|
EAPI Evas_List *e_config_profile_list(void);
|
2005-08-05 00:19:26 -07:00
|
|
|
EAPI void e_config_profile_add(char *prof);
|
|
|
|
EAPI void e_config_profile_del(char *prof);
|
2005-07-22 03:28:11 -07:00
|
|
|
|
2005-10-09 12:42:24 -07:00
|
|
|
EAPI Evas_List *e_config_engine_list(void);
|
|
|
|
|
2005-08-05 00:19:26 -07:00
|
|
|
EAPI void e_config_save_block_set(int block);
|
|
|
|
EAPI int e_config_save_block_get(void);
|
|
|
|
|
|
|
|
EAPI void *e_config_domain_load(char *domain, E_Config_DD *edd);
|
|
|
|
EAPI int e_config_profile_save(void);
|
|
|
|
EAPI int e_config_domain_save(char *domain, E_Config_DD *edd, void *data);
|
2005-07-22 03:28:11 -07:00
|
|
|
|
2005-09-22 13:20:34 -07:00
|
|
|
EAPI E_Config_Binding_Mouse *e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in);
|
|
|
|
EAPI E_Config_Binding_Key *e_config_binding_key_match(E_Config_Binding_Key *eb_in);
|
|
|
|
EAPI E_Config_Binding_Signal *e_config_binding_signal_match(E_Config_Binding_Signal *eb_in);
|
|
|
|
EAPI E_Config_Binding_Wheel *e_config_binding_wheel_match(E_Config_Binding_Wheel *eb_in);
|
2005-05-04 23:45:47 -07:00
|
|
|
|
2004-12-04 23:43:51 -08:00
|
|
|
extern EAPI E_Config *e_config;
|
2004-11-24 19:37:45 -08:00
|
|
|
|
|
|
|
#endif
|
2005-01-12 08:03:09 -08:00
|
|
|
#endif
|