2010-11-18 12:39:09 +03:00
|
|
|
#ifndef MC__KEYBIND_DEFAULTS_H
|
|
|
|
#define MC__KEYBIND_DEFAULTS_H
|
2009-07-05 19:04:42 +04:00
|
|
|
|
2010-01-20 18:11:52 +03:00
|
|
|
#include "lib/global.h"
|
2010-11-18 12:39:09 +03:00
|
|
|
#include "lib/keybind.h" /* global_keymap_t */
|
2011-02-25 14:31:30 +03:00
|
|
|
#include "lib/mcconfig.h" /* mc_config_t */
|
2009-07-05 19:04:42 +04:00
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
2014-11-12 17:48:24 +03:00
|
|
|
typedef struct global_keymap_ini_t
|
|
|
|
{
|
|
|
|
const char *key;
|
|
|
|
const char *value;
|
|
|
|
} default_keymap_ini_t;
|
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
/*** global variables defined in .c file *********************************************************/
|
2009-09-17 14:47:56 +04:00
|
|
|
|
2010-05-06 23:19:02 +04:00
|
|
|
extern GArray *main_keymap;
|
|
|
|
extern GArray *main_x_keymap;
|
|
|
|
extern GArray *panel_keymap;
|
2011-01-21 10:02:12 +03:00
|
|
|
extern GArray *dialog_keymap;
|
2010-05-06 23:19:02 +04:00
|
|
|
extern GArray *input_keymap;
|
2010-08-12 13:17:58 +04:00
|
|
|
extern GArray *listbox_keymap;
|
2010-05-06 23:19:02 +04:00
|
|
|
extern GArray *tree_keymap;
|
|
|
|
extern GArray *help_keymap;
|
2011-01-21 10:02:12 +03:00
|
|
|
#ifdef USE_INTERNAL_EDIT
|
|
|
|
extern GArray *editor_keymap;
|
|
|
|
extern GArray *editor_x_keymap;
|
|
|
|
#endif
|
|
|
|
extern GArray *viewer_keymap;
|
|
|
|
extern GArray *viewer_hex_keymap;
|
2010-05-06 23:19:02 +04:00
|
|
|
|
2011-01-21 10:02:12 +03:00
|
|
|
|
2010-05-06 23:19:02 +04:00
|
|
|
extern const global_keymap_t *main_map;
|
|
|
|
extern const global_keymap_t *main_x_map;
|
|
|
|
extern const global_keymap_t *panel_map;
|
|
|
|
extern const global_keymap_t *tree_map;
|
|
|
|
extern const global_keymap_t *help_map;
|
2011-02-16 18:19:48 +03:00
|
|
|
|
2011-01-21 10:02:12 +03:00
|
|
|
#ifdef USE_INTERNAL_EDIT
|
|
|
|
extern const global_keymap_t *editor_map;
|
|
|
|
extern const global_keymap_t *editor_x_map;
|
|
|
|
#endif
|
2011-02-23 12:12:41 +03:00
|
|
|
extern const global_keymap_t *viewer_map;
|
|
|
|
extern const global_keymap_t *viewer_hex_map;
|
2010-05-06 23:19:02 +04:00
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2014-11-12 17:48:24 +03:00
|
|
|
mc_config_t *create_default_keymap (GError ** error);
|
|
|
|
void mc_core_keybind_mass_init (const char *keymap_group, const default_keymap_ini_t * k,
|
|
|
|
gboolean isDeleteOld, GError ** error);
|
2011-02-25 14:31:30 +03:00
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2010-11-18 12:39:09 +03:00
|
|
|
|
|
|
|
#endif /* MC__KEYBIND_DEFAULTS_H */
|