2013-09-05 07:30:01 -07:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
|
|
|
typedef struct _Config Config;
|
|
|
|
typedef struct _Config_Item Config_Item;
|
|
|
|
|
|
|
|
#define PAGER_RESIZE_NONE 0
|
|
|
|
#define PAGER_RESIZE_HORZ 1
|
|
|
|
#define PAGER_RESIZE_VERT 2
|
|
|
|
#define PAGER_RESIZE_BOTH 3
|
|
|
|
|
|
|
|
#define PAGER_DESKNAME_NONE 0
|
|
|
|
#define PAGER_DESKNAME_TOP 1
|
|
|
|
#define PAGER_DESKNAME_BOTTOM 2
|
|
|
|
#define PAGER_DESKNAME_LEFT 3
|
|
|
|
#define PAGER_DESKNAME_RIGHT 4
|
|
|
|
|
|
|
|
struct _Config
|
|
|
|
{
|
|
|
|
unsigned int popup;
|
|
|
|
double popup_speed;
|
|
|
|
unsigned int popup_urgent;
|
|
|
|
unsigned int popup_urgent_stick;
|
|
|
|
unsigned int popup_urgent_focus;
|
|
|
|
double popup_urgent_speed;
|
|
|
|
unsigned int show_desk_names;
|
|
|
|
int popup_act_height; /*keyaction popup */
|
|
|
|
int popup_height; /* urgent/on-deskswitch popup*/
|
|
|
|
unsigned int drag_resist;
|
|
|
|
unsigned int btn_drag;
|
|
|
|
unsigned int btn_noplace;
|
|
|
|
unsigned int btn_desk;
|
|
|
|
unsigned int flip_desk;
|
2014-08-04 20:01:22 -07:00
|
|
|
unsigned int disable_live_preview;
|
2013-09-05 07:30:01 -07:00
|
|
|
|
|
|
|
/* just config state */
|
|
|
|
E_Module *module;
|
|
|
|
E_Config_Dialog *config_dialog;
|
|
|
|
Eina_List *instances, *handlers;
|
|
|
|
};
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API extern E_Module_Api e_modapi;
|
2013-09-05 07:30:01 -07:00
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void *e_modapi_init(E_Module *m);
|
|
|
|
E_API int e_modapi_shutdown(E_Module *m);
|
|
|
|
E_API int e_modapi_save(E_Module *m);
|
2013-09-05 07:30:01 -07:00
|
|
|
|
2014-01-27 05:34:46 -08:00
|
|
|
EINTERN void _pager_cb_config_updated(void);
|
|
|
|
EINTERN void _config_pager_module(Config_Item *ci);
|
2013-09-05 07:30:01 -07:00
|
|
|
extern Config *pager_config;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup Optional_Gadgets
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @defgroup Module_Pager Virtual Desktop Pager
|
|
|
|
*
|
|
|
|
* Shows the grid of virtual desktops and allows changing between
|
|
|
|
* them.
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
#endif
|