forked from enlightenment/enlightenment
parent
1de132c33c
commit
a1a4296f7e
|
@ -2,14 +2,14 @@
|
||||||
#define E_MOD_MAIN_H
|
#define E_MOD_MAIN_H
|
||||||
|
|
||||||
/* Increment for Major Changes */
|
/* Increment for Major Changes */
|
||||||
#define MOD_CONFIG_FILE_EPOCH 0x0001
|
#define MOD_CONFIG_FILE_EPOCH 0x0001
|
||||||
/* Increment for Minor Changes (ie: user doesn't need a new config) */
|
/* Increment for Minor Changes (ie: user doesn't need a new config) */
|
||||||
#define MOD_CONFIG_FILE_GENERATION 0x0101
|
#define MOD_CONFIG_FILE_GENERATION 0x0101
|
||||||
#define MOD_CONFIG_FILE_VERSION ((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
#define MOD_CONFIG_FILE_VERSION ((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
||||||
|
|
||||||
typedef struct _Config Config;
|
typedef struct _Config Config;
|
||||||
|
|
||||||
#define E_TYPEDEFS 1
|
#define E_TYPEDEFS 1
|
||||||
#include "e_fwin.h"
|
#include "e_fwin.h"
|
||||||
#include "e_int_config_mime_edit.h"
|
#include "e_int_config_mime_edit.h"
|
||||||
#include "e_int_config_mime.h"
|
#include "e_int_config_mime.h"
|
||||||
|
@ -19,11 +19,12 @@ typedef struct _Config Config;
|
||||||
#include "e_int_config_mime_edit.h"
|
#include "e_int_config_mime_edit.h"
|
||||||
#include "e_int_config_mime.h"
|
#include "e_int_config_mime.h"
|
||||||
|
|
||||||
struct _Config
|
struct _Config
|
||||||
{
|
{
|
||||||
int config_version;
|
int config_version;
|
||||||
|
|
||||||
struct {
|
struct
|
||||||
|
{
|
||||||
E_Fm2_View_Mode mode;
|
E_Fm2_View_Mode mode;
|
||||||
unsigned char open_dirs_in_place;
|
unsigned char open_dirs_in_place;
|
||||||
unsigned char selector;
|
unsigned char selector;
|
||||||
|
@ -38,52 +39,62 @@ struct _Config
|
||||||
unsigned char show_toolbar;
|
unsigned char show_toolbar;
|
||||||
} view;
|
} view;
|
||||||
/* display of icons */
|
/* display of icons */
|
||||||
struct {
|
struct
|
||||||
struct {
|
{
|
||||||
int w, h;
|
struct
|
||||||
|
{
|
||||||
|
int w, h;
|
||||||
} icon;
|
} icon;
|
||||||
struct {
|
struct
|
||||||
int w, h;
|
{
|
||||||
|
int w, h;
|
||||||
} list;
|
} list;
|
||||||
struct {
|
struct
|
||||||
unsigned char w;
|
{
|
||||||
unsigned char h;
|
unsigned char w;
|
||||||
|
unsigned char h;
|
||||||
} fixed;
|
} fixed;
|
||||||
struct {
|
struct
|
||||||
unsigned char show;
|
{
|
||||||
|
unsigned char show;
|
||||||
} extension;
|
} extension;
|
||||||
const char *key_hint;
|
const char *key_hint;
|
||||||
} icon;
|
} icon;
|
||||||
/* how to sort files */
|
/* how to sort files */
|
||||||
struct {
|
struct
|
||||||
struct {
|
{
|
||||||
unsigned char no_case;
|
struct
|
||||||
struct {
|
{
|
||||||
unsigned char first;
|
unsigned char no_case;
|
||||||
unsigned char last;
|
struct
|
||||||
} dirs;
|
{
|
||||||
|
unsigned char first;
|
||||||
|
unsigned char last;
|
||||||
|
} dirs;
|
||||||
} sort;
|
} sort;
|
||||||
} list;
|
} list;
|
||||||
/* control how you can select files */
|
/* control how you can select files */
|
||||||
struct {
|
struct
|
||||||
unsigned char single;
|
{
|
||||||
unsigned char windows_modifiers;
|
unsigned char single;
|
||||||
|
unsigned char windows_modifiers;
|
||||||
} selection;
|
} selection;
|
||||||
/* the background - if any, and how to handle it */
|
/* the background - if any, and how to handle it */
|
||||||
/* FIXME: not implemented yet */
|
/* FIXME: not implemented yet */
|
||||||
struct {
|
struct
|
||||||
const char *background;
|
{
|
||||||
const char *frame;
|
const char *background;
|
||||||
const char *icons;
|
const char *frame;
|
||||||
unsigned char fixed;
|
const char *icons;
|
||||||
|
unsigned char fixed;
|
||||||
} theme;
|
} theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
EAPI extern E_Module_Api e_modapi;
|
EAPI extern E_Module_Api e_modapi;
|
||||||
|
|
||||||
EAPI void *e_modapi_init (E_Module *m);
|
EAPI void *e_modapi_init(E_Module *m);
|
||||||
EAPI int e_modapi_shutdown (E_Module *m);
|
EAPI int e_modapi_shutdown(E_Module *m);
|
||||||
EAPI int e_modapi_save (E_Module *m);
|
EAPI int e_modapi_save(E_Module *m);
|
||||||
|
|
||||||
extern Config *fileman_config;
|
extern Config *fileman_config;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue