parent
1de132c33c
commit
a1a4296f7e
|
@ -2,14 +2,14 @@
|
|||
#define E_MOD_MAIN_H
|
||||
|
||||
/* 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) */
|
||||
#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;
|
||||
|
||||
#define E_TYPEDEFS 1
|
||||
#define E_TYPEDEFS 1
|
||||
#include "e_fwin.h"
|
||||
#include "e_int_config_mime_edit.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.h"
|
||||
|
||||
struct _Config
|
||||
struct _Config
|
||||
{
|
||||
int config_version;
|
||||
|
||||
struct {
|
||||
|
||||
struct
|
||||
{
|
||||
E_Fm2_View_Mode mode;
|
||||
unsigned char open_dirs_in_place;
|
||||
unsigned char selector;
|
||||
|
@ -38,52 +39,62 @@ struct _Config
|
|||
unsigned char show_toolbar;
|
||||
} view;
|
||||
/* display of icons */
|
||||
struct {
|
||||
struct {
|
||||
int w, h;
|
||||
struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
int w, h;
|
||||
} icon;
|
||||
struct {
|
||||
int w, h;
|
||||
struct
|
||||
{
|
||||
int w, h;
|
||||
} list;
|
||||
struct {
|
||||
unsigned char w;
|
||||
unsigned char h;
|
||||
struct
|
||||
{
|
||||
unsigned char w;
|
||||
unsigned char h;
|
||||
} fixed;
|
||||
struct {
|
||||
unsigned char show;
|
||||
struct
|
||||
{
|
||||
unsigned char show;
|
||||
} extension;
|
||||
const char *key_hint;
|
||||
const char *key_hint;
|
||||
} icon;
|
||||
/* how to sort files */
|
||||
struct {
|
||||
struct {
|
||||
unsigned char no_case;
|
||||
struct {
|
||||
unsigned char first;
|
||||
unsigned char last;
|
||||
} dirs;
|
||||
struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
unsigned char no_case;
|
||||
struct
|
||||
{
|
||||
unsigned char first;
|
||||
unsigned char last;
|
||||
} dirs;
|
||||
} sort;
|
||||
} list;
|
||||
/* control how you can select files */
|
||||
struct {
|
||||
unsigned char single;
|
||||
unsigned char windows_modifiers;
|
||||
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;
|
||||
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);
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue