enlightenment/src/modules/fileman/e_mod_main.h

128 lines
2.8 KiB
C

#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
/* Increment for Major Changes */
#define MOD_CONFIG_FILE_EPOCH 0x0001
/* Increment for Minor Changes (ie: user doesn't need a new config) */
#define MOD_CONFIG_FILE_GENERATION 0x0111
#define MOD_CONFIG_FILE_VERSION ((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
typedef struct _Config Config;
#define E_TYPEDEFS 1
#include "e_fwin.h"
#include "e_int_config_mime_edit.h"
#include "e_int_config_mime.h"
#undef E_TYPEDEFS
#include "e_fwin.h"
#include "e_int_config_mime_edit.h"
#include "e_int_config_mime.h"
struct _Config
{
int config_version;
struct
{
E_Fm2_View_Mode mode;
E_Fm2_View_Mode desktop_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;
unsigned char show_full_path;
unsigned char show_desktop_icons;
unsigned char show_toolbar;
unsigned char show_sidebar;
unsigned char desktop_navigation;
unsigned char menu_shows_files;
} view;
struct
{
double delay;
double size;
Eina_Bool enable;
} tooltip;
/* display of icons */
struct
{
struct
{
int w, h;
} icon;
struct
{
int w, h;
} list;
struct
{
unsigned char w;
unsigned char h;
} fixed;
struct
{
unsigned char show;
} extension;
const char *key_hint;
} icon;
/* how to sort files */
struct
{
struct
{
unsigned char no_case;
unsigned char extension;
unsigned char size;
unsigned char mtime;
struct
{
unsigned char first;
unsigned char last;
} dirs;
} sort;
} list;
/* control how you can select files */
struct
{
unsigned char single;
unsigned char windows_modifiers;
} selection;
/* the background - if any, and how to handle it */
/* FIXME: not implemented yet */
struct
{
const char *background;
const char *frame;
const char *icons;
unsigned char fixed;
} theme;
};
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);
extern Config *fileman_config;
/**
* @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
* @}
*/
#endif