2008-12-06 10:51:04 -08:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
2020-04-19 01:06:07 -07:00
|
|
|
#ifdef HAVE_GETTEXT
|
2011-06-06 10:36:38 -07:00
|
|
|
# include <libintl.h>
|
2020-04-19 01:06:07 -07:00
|
|
|
# define D_(string) dgettext(LOCALEDOMAIN, string)
|
2011-06-06 10:36:38 -07:00
|
|
|
#else
|
|
|
|
# define bindtextdomain(domain,dir)
|
|
|
|
# define bind_textdomain_codeset(domain,codeset)
|
|
|
|
# define D_(string) (string)
|
|
|
|
#endif
|
2014-07-03 15:12:40 -07:00
|
|
|
#define N_(string) (string)
|
2011-06-06 10:36:38 -07:00
|
|
|
|
2008-12-06 10:51:04 -08:00
|
|
|
/* Macros used for config file versioning */
|
|
|
|
#define MOD_CONFIG_FILE_EPOCH 0x0001
|
2013-04-29 11:26:32 -07:00
|
|
|
#define MOD_CONFIG_FILE_GENERATION 0x0090
|
2008-12-06 10:51:04 -08:00
|
|
|
#define MOD_CONFIG_FILE_VERSION \
|
|
|
|
((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
|
|
|
|
|
|
|
typedef struct _Config Config;
|
|
|
|
struct _Config
|
|
|
|
{
|
|
|
|
E_Module *module;
|
|
|
|
E_Config_Dialog *cfd;
|
|
|
|
|
|
|
|
Eina_List *conf_items;
|
|
|
|
|
|
|
|
/* config file version */
|
|
|
|
int version;
|
|
|
|
|
|
|
|
const char *fm;
|
2013-04-29 11:26:32 -07:00
|
|
|
Eina_Bool auto_mount;
|
|
|
|
Eina_Bool boot_mount;
|
|
|
|
Eina_Bool auto_open;
|
|
|
|
Eina_Bool show_menu;
|
|
|
|
Eina_Bool hide_header;
|
|
|
|
Eina_Bool autoclose_popup;
|
2009-02-01 16:35:45 -08:00
|
|
|
|
2013-04-29 11:26:32 -07:00
|
|
|
Eina_Bool show_home;
|
|
|
|
Eina_Bool show_desk;
|
|
|
|
Eina_Bool show_trash;
|
|
|
|
Eina_Bool show_root;
|
|
|
|
Eina_Bool show_temp;
|
|
|
|
Eina_Bool show_bookm;
|
2008-12-06 10:51:04 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _Config_Item Config_Item;
|
|
|
|
struct _Config_Item
|
|
|
|
{
|
|
|
|
const char *id;
|
|
|
|
|
|
|
|
int switch2;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _Instance Instance;
|
|
|
|
struct _Instance
|
|
|
|
{
|
|
|
|
E_Gadcon_Client *gcc;
|
2013-04-20 09:36:01 -07:00
|
|
|
Evas_Object *o_main;
|
2013-04-21 03:16:49 -07:00
|
|
|
Evas_Object *o_icon;
|
|
|
|
E_Gadcon_Popup *popup;
|
2013-04-20 09:36:01 -07:00
|
|
|
Eina_Bool horiz;
|
2008-12-06 10:51:04 -08:00
|
|
|
E_Menu *menu;
|
|
|
|
Config_Item *conf_item;
|
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2015-01-10 13:22:39 -08:00
|
|
|
E_Config_Dialog *e_int_config_places_module(Evas_Object *parent, const char *params);
|
2012-07-26 14:35:12 -07:00
|
|
|
void places_menu_augmentation(void);
|
2013-04-29 12:11:40 -07:00
|
|
|
void places_popups_close(void);
|
2008-12-06 10:51:04 -08:00
|
|
|
|
|
|
|
extern Config *places_conf;
|
|
|
|
extern Eina_List *instances;
|
|
|
|
|
|
|
|
#endif
|