2007-08-12 02:54:33 -07:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
2012-11-30 06:38:34 -08:00
|
|
|
#include "e.h"
|
|
|
|
|
2007-08-12 22:05:26 -07:00
|
|
|
/* Increment for Major Changes */
|
2012-12-21 15:57:05 -08:00
|
|
|
#define MOD_CONFIG_FILE_EPOCH 1
|
2007-08-12 22:05:26 -07:00
|
|
|
/* Increment for Minor Changes (ie: user doesn't need a new config) */
|
2012-12-21 15:57:05 -08:00
|
|
|
#define MOD_CONFIG_FILE_GENERATION 0
|
|
|
|
#define MOD_CONFIG_FILE_VERSION ((MOD_CONFIG_FILE_EPOCH * 1000000) + MOD_CONFIG_FILE_GENERATION)
|
2007-08-12 22:05:26 -07:00
|
|
|
|
2007-08-12 02:54:33 -07:00
|
|
|
typedef struct _Config Config;
|
|
|
|
|
2012-09-13 00:18:13 -07:00
|
|
|
typedef struct Fileman_Path
|
|
|
|
{
|
|
|
|
const char *dev, *path;
|
|
|
|
unsigned int zone;
|
|
|
|
E_Fm2_View_Mode desktop_mode;
|
|
|
|
} Fileman_Path;
|
|
|
|
|
2012-07-13 00:40:22 -07:00
|
|
|
struct _Config
|
2007-08-12 02:54:33 -07:00
|
|
|
{
|
2007-08-12 22:05:26 -07:00
|
|
|
int config_version;
|
2012-07-13 00:40:22 -07:00
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
2007-08-12 02:54:33 -07:00
|
|
|
E_Fm2_View_Mode mode;
|
|
|
|
unsigned char open_dirs_in_place;
|
|
|
|
unsigned char selector;
|
|
|
|
unsigned char single_click;
|
|
|
|
unsigned char no_subdir_jump;
|
|
|
|
unsigned char no_subdir_drop;
|
|
|
|
unsigned char always_order;
|
|
|
|
unsigned char link_drop;
|
|
|
|
unsigned char fit_custom_pos;
|
2007-08-12 14:10:02 -07:00
|
|
|
unsigned char show_full_path;
|
2007-11-09 15:33:23 -08:00
|
|
|
unsigned char show_toolbar;
|
2012-07-31 06:31:35 -07:00
|
|
|
unsigned char show_sidebar;
|
2012-08-06 06:18:15 -07:00
|
|
|
unsigned char desktop_navigation;
|
2012-08-03 10:34:03 -07:00
|
|
|
unsigned char menu_shows_files;
|
2012-09-13 03:49:22 -07:00
|
|
|
int spring_delay;
|
2012-12-18 07:12:22 -08:00
|
|
|
E_Gadcon_Orient toolbar_orient;
|
2007-08-12 02:54:33 -07:00
|
|
|
} view;
|
2012-07-13 00:53:26 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
double delay;
|
|
|
|
double size;
|
2012-08-13 07:12:45 -07:00
|
|
|
Eina_Bool enable;
|
2012-07-13 00:53:26 -07:00
|
|
|
} tooltip;
|
2007-08-12 02:54:33 -07:00
|
|
|
/* display of icons */
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int w, h;
|
2007-08-12 02:54:33 -07:00
|
|
|
} icon;
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int w, h;
|
2007-08-12 02:54:33 -07:00
|
|
|
} list;
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned char w;
|
|
|
|
unsigned char h;
|
2007-08-12 02:54:33 -07:00
|
|
|
} fixed;
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned char show;
|
2007-08-12 02:54:33 -07:00
|
|
|
} extension;
|
2012-07-13 00:40:22 -07:00
|
|
|
const char *key_hint;
|
2012-09-21 00:08:21 -07:00
|
|
|
unsigned int max_thumb_size;
|
2007-08-12 02:54:33 -07:00
|
|
|
} icon;
|
|
|
|
/* how to sort files */
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned char no_case;
|
2012-09-03 07:26:26 -07:00
|
|
|
unsigned char extension;
|
2012-09-04 03:47:39 -07:00
|
|
|
unsigned char size;
|
2012-09-04 23:41:42 -07:00
|
|
|
unsigned char mtime;
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned char first;
|
|
|
|
unsigned char last;
|
|
|
|
} dirs;
|
2007-08-12 02:54:33 -07:00
|
|
|
} sort;
|
|
|
|
} list;
|
|
|
|
/* control how you can select files */
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned char single;
|
|
|
|
unsigned char windows_modifiers;
|
2007-08-12 02:54:33 -07:00
|
|
|
} selection;
|
|
|
|
/* the background - if any, and how to handle it */
|
|
|
|
/* FIXME: not implemented yet */
|
2012-07-13 00:40:22 -07:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
const char *background;
|
|
|
|
const char *frame;
|
|
|
|
const char *icons;
|
|
|
|
unsigned char fixed;
|
2007-08-12 02:54:33 -07:00
|
|
|
} theme;
|
2012-09-13 00:18:13 -07:00
|
|
|
Eina_List *paths; // Fileman_Path
|
2007-08-12 02:54:33 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
extern Config *fileman_config;
|
2012-09-13 00:18:13 -07:00
|
|
|
Fileman_Path *e_mod_fileman_path_find(E_Zone *zone);
|
2007-08-12 02:54:33 -07:00
|
|
|
|
2012-09-16 21:11:27 -07:00
|
|
|
E_Menu *e_mod_menu_add(E_Menu *m, const char *path);
|
2012-09-14 03:17:31 -07:00
|
|
|
|
2012-09-14 03:19:51 -07:00
|
|
|
E_Config_Dialog *e_int_config_fileman(E_Container *con, const char *params __UNUSED__);
|
2012-11-30 06:38:34 -08:00
|
|
|
E_Config_Dialog *e_int_config_mime_edit(E_Config_Mime_Icon *data, void *data2);
|
|
|
|
E_Config_Dialog *e_int_config_mime(E_Container *con, const char *params __UNUSED__);
|
|
|
|
void e_int_config_mime_edit_done(void *data);
|
|
|
|
|
|
|
|
void e_fileman_dbus_init(void);
|
|
|
|
void e_fileman_dbus_shutdown(void);
|
|
|
|
|
|
|
|
int e_fwin_init (void);
|
|
|
|
int e_fwin_shutdown (void);
|
|
|
|
void e_fwin_new (E_Container *con, const char *dev, const char *path);
|
|
|
|
void e_fwin_zone_new (E_Zone *zone, void *path);
|
|
|
|
void e_fwin_zone_shutdown (E_Zone *zone);
|
|
|
|
void e_fwin_all_unsel (void *data);
|
|
|
|
void e_fwin_reload_all (void);
|
|
|
|
int e_fwin_zone_find (E_Zone *zone);
|
|
|
|
|
|
|
|
Eina_Bool e_fwin_nav_init(void);
|
|
|
|
Eina_Bool e_fwin_nav_shutdown(void);
|
2012-09-14 03:19:51 -07:00
|
|
|
|
2012-01-19 15:25:32 -08:00
|
|
|
/**
|
|
|
|
* @addtogroup Optional_Fileman
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @defgroup Module_Fileman File Manager
|
|
|
|
*
|
|
|
|
* Basic file manager with list and grid view, shows thumbnails, can
|
|
|
|
* copy, cut, paste, delete and rename files.
|
|
|
|
*
|
|
|
|
* @see Module_Fileman_Opinfo
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2007-08-12 02:54:33 -07:00
|
|
|
#endif
|