2007-08-12 02:54:33 -07:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
2007-08-12 22:05:26 -07:00
|
|
|
/* Increment for Major Changes */
|
2012-07-13 00:40:22 -07:00
|
|
|
#define MOD_CONFIG_FILE_EPOCH 0x0001
|
2007-08-12 22:05:26 -07:00
|
|
|
/* Increment for Minor Changes (ie: user doesn't need a new config) */
|
2012-08-13 07:12:45 -07:00
|
|
|
#define MOD_CONFIG_FILE_GENERATION 0x0110
|
2012-07-13 00:40:22 -07:00
|
|
|
#define MOD_CONFIG_FILE_VERSION ((MOD_CONFIG_FILE_EPOCH << 16) | 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-07-13 00:40:22 -07:00
|
|
|
#define E_TYPEDEFS 1
|
2007-08-12 02:54:33 -07:00
|
|
|
#include "e_fwin.h"
|
2011-04-30 20:00:56 -07:00
|
|
|
#include "e_int_config_mime_edit.h"
|
|
|
|
#include "e_int_config_mime.h"
|
2007-08-12 02:54:33 -07:00
|
|
|
|
|
|
|
#undef E_TYPEDEFS
|
|
|
|
#include "e_fwin.h"
|
2011-04-30 20:00:56 -07:00
|
|
|
#include "e_int_config_mime_edit.h"
|
|
|
|
#include "e_int_config_mime.h"
|
2007-08-12 02:54:33 -07:00
|
|
|
|
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;
|
2012-07-31 01:04:22 -07:00
|
|
|
E_Fm2_View_Mode desktop_mode;
|
2007-08-12 02:54:33 -07:00
|
|
|
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;
|
|
|
|
unsigned char show_desktop_icons;
|
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;
|
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;
|
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-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;
|
|
|
|
};
|
|
|
|
|
|
|
|
EAPI extern E_Module_Api e_modapi;
|
|
|
|
|
2012-07-13 00:40:22 -07:00
|
|
|
EAPI void *e_modapi_init(E_Module *m);
|
|
|
|
EAPI int e_modapi_shutdown(E_Module *m);
|
|
|
|
EAPI int e_modapi_save(E_Module *m);
|
2007-08-12 02:54:33 -07:00
|
|
|
|
|
|
|
extern Config *fileman_config;
|
|
|
|
|
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
|