2006-05-19 17:18:06 +00:00
|
|
|
/*
|
|
|
|
* keybindings.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2009-01-04 18:30:42 +00:00
|
|
|
* Copyright 2006-2009 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2009 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2006-05-19 17:18:06 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2008-03-07 17:23:35 +00:00
|
|
|
/**
|
|
|
|
* @file keybindings.h
|
|
|
|
* Configurable keyboard shortcuts.
|
|
|
|
**/
|
|
|
|
|
2006-05-19 17:18:06 +00:00
|
|
|
|
|
|
|
#ifndef GEANY_KEYBINDINGS_H
|
|
|
|
#define GEANY_KEYBINDINGS_H 1
|
|
|
|
|
2008-02-29 19:30:28 +00:00
|
|
|
|
2008-03-14 17:23:24 +00:00
|
|
|
/** Function pointer type used for keybinding callbacks */
|
2008-08-08 18:05:53 +00:00
|
|
|
typedef void (*GeanyKeyCallback) (guint key_id);
|
2006-10-26 15:22:27 +00:00
|
|
|
|
2008-03-07 17:23:35 +00:00
|
|
|
/** Represents a single keybinding action */
|
2008-03-14 17:23:24 +00:00
|
|
|
/* Note: name and label are not const strings so plugins can set them to malloc'd strings
|
|
|
|
* and free them in cleanup(). */
|
2008-08-08 18:05:53 +00:00
|
|
|
typedef struct GeanyKeyBinding
|
2006-05-19 17:18:06 +00:00
|
|
|
{
|
2008-03-07 17:23:35 +00:00
|
|
|
guint key; /**< Key value in lower-case, such as @c GDK_a */
|
|
|
|
GdkModifierType mods; /**< Modifier keys, such as @c GDK_CONTROL_MASK */
|
2008-03-14 17:23:24 +00:00
|
|
|
gchar *name; /**< Key name for the configuration file, such as @c "menu_new" */
|
|
|
|
gchar *label; /**< Label used in the preferences dialog keybindings tab */
|
2008-08-08 18:05:53 +00:00
|
|
|
GeanyKeyCallback callback; /**< Callback function called when the key combination is pressed */
|
2008-03-10 13:23:57 +00:00
|
|
|
GtkWidget *menu_item; /**< Menu item widget for setting the menu accelerator */
|
2008-08-08 18:05:53 +00:00
|
|
|
} GeanyKeyBinding;
|
2006-05-19 17:18:06 +00:00
|
|
|
|
|
|
|
|
2008-03-07 17:23:35 +00:00
|
|
|
/** A collection of keybindings grouped together. */
|
2008-08-08 18:05:53 +00:00
|
|
|
typedef struct GeanyKeyGroup
|
2008-02-29 19:30:28 +00:00
|
|
|
{
|
2008-03-07 17:23:35 +00:00
|
|
|
const gchar *name; /**< Group name used in the configuration file, such as @c "html_chars" */
|
|
|
|
const gchar *label; /**< Group label used in the preferences dialog keybindings tab */
|
2009-07-21 22:12:13 +00:00
|
|
|
gsize count; /**< Count of GeanyKeyBinding structs in @c keys */
|
2008-08-08 18:05:53 +00:00
|
|
|
GeanyKeyBinding *keys; /**< Fixed array of GeanyKeyBinding structs */
|
2008-02-29 19:30:28 +00:00
|
|
|
}
|
2008-08-08 18:05:53 +00:00
|
|
|
GeanyKeyGroup;
|
2008-02-29 19:30:28 +00:00
|
|
|
|
2008-08-08 18:05:53 +00:00
|
|
|
extern GPtrArray *keybinding_groups; /* array of GeanyKeyGroup pointers */
|
2008-02-12 15:49:54 +00:00
|
|
|
|
2008-03-13 17:12:18 +00:00
|
|
|
extern const gchar keybindings_keyfile_group_name[];
|
|
|
|
|
2008-02-29 19:30:28 +00:00
|
|
|
|
2008-06-26 16:39:41 +00:00
|
|
|
/* Note: we don't need to increment the plugin ABI when appending keybindings or keygroups,
|
|
|
|
* just make sure to only insert keybindings/groups immediately before the _COUNT item, so
|
|
|
|
* the existing enum values stay the same.
|
|
|
|
* The _COUNT item should not be used by plugins, as it may well change. */
|
2008-03-24 13:40:01 +00:00
|
|
|
|
2008-03-10 17:30:27 +00:00
|
|
|
/** Keybinding group IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEY_GROUP_FILE,
|
|
|
|
GEANY_KEY_GROUP_PROJECT,
|
|
|
|
GEANY_KEY_GROUP_EDITOR,
|
|
|
|
GEANY_KEY_GROUP_CLIPBOARD,
|
|
|
|
GEANY_KEY_GROUP_SELECT,
|
|
|
|
GEANY_KEY_GROUP_FORMAT,
|
|
|
|
GEANY_KEY_GROUP_INSERT,
|
|
|
|
GEANY_KEY_GROUP_SETTINGS,
|
|
|
|
GEANY_KEY_GROUP_SEARCH,
|
|
|
|
GEANY_KEY_GROUP_GOTO,
|
|
|
|
GEANY_KEY_GROUP_VIEW,
|
|
|
|
GEANY_KEY_GROUP_FOCUS,
|
|
|
|
GEANY_KEY_GROUP_NOTEBOOK,
|
|
|
|
GEANY_KEY_GROUP_DOCUMENT,
|
|
|
|
GEANY_KEY_GROUP_BUILD,
|
|
|
|
GEANY_KEY_GROUP_TOOLS,
|
|
|
|
GEANY_KEY_GROUP_HELP,
|
|
|
|
GEANY_KEY_GROUP_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
|
|
|
|
2008-03-10 17:30:27 +00:00
|
|
|
/** File group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
2006-05-19 17:18:06 +00:00
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_FILE_NEW,
|
|
|
|
GEANY_KEYS_FILE_OPEN,
|
|
|
|
GEANY_KEYS_FILE_OPENSELECTED,
|
|
|
|
GEANY_KEYS_FILE_SAVE,
|
|
|
|
GEANY_KEYS_FILE_SAVEAS,
|
|
|
|
GEANY_KEYS_FILE_SAVEALL,
|
|
|
|
GEANY_KEYS_FILE_PRINT,
|
|
|
|
GEANY_KEYS_FILE_CLOSE,
|
|
|
|
GEANY_KEYS_FILE_CLOSEALL,
|
|
|
|
GEANY_KEYS_FILE_RELOAD,
|
2008-02-29 19:30:28 +00:00
|
|
|
GEANY_KEYS_FILE_COUNT
|
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Project group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_PROJECT_PROPERTIES,
|
|
|
|
GEANY_KEYS_PROJECT_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Editor group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_EDITOR_UNDO,
|
|
|
|
GEANY_KEYS_EDITOR_REDO,
|
|
|
|
GEANY_KEYS_EDITOR_DELETELINE,
|
|
|
|
GEANY_KEYS_EDITOR_DUPLICATELINE,
|
|
|
|
GEANY_KEYS_EDITOR_TRANSPOSELINE,
|
|
|
|
GEANY_KEYS_EDITOR_SCROLLTOLINE,
|
|
|
|
GEANY_KEYS_EDITOR_SCROLLLINEUP,
|
|
|
|
GEANY_KEYS_EDITOR_SCROLLLINEDOWN,
|
|
|
|
GEANY_KEYS_EDITOR_COMPLETESNIPPET,
|
|
|
|
GEANY_KEYS_EDITOR_SUPPRESSSNIPPETCOMPLETION,
|
2009-01-18 18:19:09 +00:00
|
|
|
GEANY_KEYS_EDITOR_SNIPPETNEXTCURSOR,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_EDITOR_CONTEXTACTION,
|
|
|
|
GEANY_KEYS_EDITOR_AUTOCOMPLETE,
|
|
|
|
GEANY_KEYS_EDITOR_CALLTIP,
|
|
|
|
GEANY_KEYS_EDITOR_MACROLIST,
|
2009-06-29 19:46:49 +00:00
|
|
|
GEANY_KEYS_EDITOR_DELETELINETOEND,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_EDITOR_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Clipboard group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_CLIPBOARD_CUT,
|
|
|
|
GEANY_KEYS_CLIPBOARD_COPY,
|
|
|
|
GEANY_KEYS_CLIPBOARD_PASTE,
|
|
|
|
GEANY_KEYS_CLIPBOARD_CUTLINE,
|
|
|
|
GEANY_KEYS_CLIPBOARD_COPYLINE,
|
|
|
|
GEANY_KEYS_CLIPBOARD_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Select group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
|
|
|
|
GEANY_KEYS_SELECT_ALL,
|
|
|
|
GEANY_KEYS_SELECT_WORD,
|
|
|
|
GEANY_KEYS_SELECT_LINE,
|
|
|
|
GEANY_KEYS_SELECT_PARAGRAPH,
|
|
|
|
GEANY_KEYS_SELECT_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Format group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_FORMAT_TOGGLECASE,
|
|
|
|
GEANY_KEYS_FORMAT_COMMENTLINETOGGLE,
|
|
|
|
GEANY_KEYS_FORMAT_COMMENTLINE,
|
|
|
|
GEANY_KEYS_FORMAT_UNCOMMENTLINE,
|
|
|
|
GEANY_KEYS_FORMAT_INCREASEINDENT,
|
|
|
|
GEANY_KEYS_FORMAT_DECREASEINDENT,
|
|
|
|
GEANY_KEYS_FORMAT_INCREASEINDENTBYSPACE,
|
|
|
|
GEANY_KEYS_FORMAT_DECREASEINDENTBYSPACE,
|
|
|
|
GEANY_KEYS_FORMAT_AUTOINDENT,
|
|
|
|
GEANY_KEYS_FORMAT_SENDTOCMD1,
|
|
|
|
GEANY_KEYS_FORMAT_SENDTOCMD2,
|
|
|
|
GEANY_KEYS_FORMAT_SENDTOCMD3,
|
2009-02-25 23:28:01 +00:00
|
|
|
GEANY_KEYS_FORMAT_SENDTOVTE,
|
2009-07-24 15:44:14 +00:00
|
|
|
GEANY_KEYS_FORMAT_REFLOWPARAGRAPH,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_FORMAT_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Insert group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_INSERT_DATE,
|
|
|
|
GEANY_KEYS_INSERT_ALTWHITESPACE,
|
|
|
|
GEANY_KEYS_INSERT_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Settings group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_SETTINGS_PREFERENCES,
|
|
|
|
GEANY_KEYS_SETTINGS_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Search group keybinding command IDs */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GEANY_KEYS_SEARCH_FIND,
|
|
|
|
GEANY_KEYS_SEARCH_FINDNEXT,
|
|
|
|
GEANY_KEYS_SEARCH_FINDPREVIOUS,
|
|
|
|
GEANY_KEYS_SEARCH_FINDINFILES,
|
|
|
|
GEANY_KEYS_SEARCH_REPLACE,
|
|
|
|
GEANY_KEYS_SEARCH_FINDNEXTSEL,
|
|
|
|
GEANY_KEYS_SEARCH_FINDPREVSEL,
|
|
|
|
GEANY_KEYS_SEARCH_NEXTMESSAGE,
|
2008-06-26 16:39:41 +00:00
|
|
|
GEANY_KEYS_SEARCH_PREVIOUSMESSAGE,
|
2009-01-18 18:19:09 +00:00
|
|
|
GEANY_KEYS_SEARCH_FINDUSAGE,
|
2008-07-17 16:42:03 +00:00
|
|
|
GEANY_KEYS_SEARCH_FINDDOCUMENTUSAGE,
|
2009-07-10 15:17:27 +00:00
|
|
|
GEANY_KEYS_SEARCH_MARKALL,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_SEARCH_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Go To group keybinding command IDs */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GEANY_KEYS_GOTO_FORWARD,
|
|
|
|
GEANY_KEYS_GOTO_BACK,
|
|
|
|
GEANY_KEYS_GOTO_LINE,
|
2009-01-18 18:19:09 +00:00
|
|
|
GEANY_KEYS_GOTO_LINESTART,
|
|
|
|
GEANY_KEYS_GOTO_LINEEND,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_GOTO_MATCHINGBRACE,
|
|
|
|
GEANY_KEYS_GOTO_TOGGLEMARKER,
|
|
|
|
GEANY_KEYS_GOTO_NEXTMARKER,
|
|
|
|
GEANY_KEYS_GOTO_PREVIOUSMARKER,
|
2008-09-26 18:29:42 +00:00
|
|
|
GEANY_KEYS_GOTO_PREVWORDSTART,
|
|
|
|
GEANY_KEYS_GOTO_NEXTWORDSTART,
|
2009-01-18 18:19:09 +00:00
|
|
|
GEANY_KEYS_GOTO_TAGDEFINITION,
|
|
|
|
GEANY_KEYS_GOTO_TAGDECLARATION,
|
2009-06-29 19:46:49 +00:00
|
|
|
GEANY_KEYS_GOTO_LINEENDVISUAL,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_GOTO_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
/** View group keybinding command IDs */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GEANY_KEYS_VIEW_TOGGLEALL,
|
|
|
|
GEANY_KEYS_VIEW_FULLSCREEN,
|
|
|
|
GEANY_KEYS_VIEW_MESSAGEWINDOW,
|
|
|
|
GEANY_KEYS_VIEW_SIDEBAR,
|
|
|
|
GEANY_KEYS_VIEW_ZOOMIN,
|
|
|
|
GEANY_KEYS_VIEW_ZOOMOUT,
|
|
|
|
GEANY_KEYS_VIEW_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-07-04 14:41:58 +00:00
|
|
|
|
2008-03-10 17:30:27 +00:00
|
|
|
/** Focus group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_FOCUS_EDITOR,
|
|
|
|
GEANY_KEYS_FOCUS_SCRIBBLE,
|
|
|
|
GEANY_KEYS_FOCUS_VTE,
|
|
|
|
GEANY_KEYS_FOCUS_SEARCHBAR,
|
2008-03-23 16:32:36 +00:00
|
|
|
GEANY_KEYS_FOCUS_SIDEBAR,
|
2008-07-03 17:37:00 +00:00
|
|
|
GEANY_KEYS_FOCUS_COMPILER,
|
2008-02-29 19:30:28 +00:00
|
|
|
GEANY_KEYS_FOCUS_COUNT
|
|
|
|
};
|
2007-11-06 16:59:01 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Notebook Tab group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_NOTEBOOK_SWITCHTABLEFT,
|
|
|
|
GEANY_KEYS_NOTEBOOK_SWITCHTABRIGHT,
|
|
|
|
GEANY_KEYS_NOTEBOOK_SWITCHTABLASTUSED,
|
|
|
|
GEANY_KEYS_NOTEBOOK_MOVETABLEFT,
|
|
|
|
GEANY_KEYS_NOTEBOOK_MOVETABRIGHT,
|
|
|
|
GEANY_KEYS_NOTEBOOK_MOVETABFIRST,
|
|
|
|
GEANY_KEYS_NOTEBOOK_MOVETABLAST,
|
2008-02-29 19:30:28 +00:00
|
|
|
GEANY_KEYS_NOTEBOOK_COUNT
|
|
|
|
};
|
2007-03-29 14:39:04 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Document group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_DOCUMENT_REPLACETABS,
|
2008-06-19 15:58:10 +00:00
|
|
|
GEANY_KEYS_DOCUMENT_REPLACESPACES,
|
|
|
|
GEANY_KEYS_DOCUMENT_TOGGLEFOLD,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_DOCUMENT_FOLDALL,
|
|
|
|
GEANY_KEYS_DOCUMENT_UNFOLDALL,
|
|
|
|
GEANY_KEYS_DOCUMENT_RELOADTAGLIST,
|
2008-06-19 15:58:10 +00:00
|
|
|
GEANY_KEYS_DOCUMENT_LINEWRAP,
|
|
|
|
GEANY_KEYS_DOCUMENT_LINEBREAK,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_DOCUMENT_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-09-13 16:40:19 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Build group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_BUILD_COMPILE,
|
|
|
|
GEANY_KEYS_BUILD_LINK,
|
|
|
|
GEANY_KEYS_BUILD_MAKE,
|
|
|
|
GEANY_KEYS_BUILD_MAKEOWNTARGET,
|
|
|
|
GEANY_KEYS_BUILD_MAKEOBJECT,
|
|
|
|
GEANY_KEYS_BUILD_NEXTERROR,
|
2009-01-18 18:19:09 +00:00
|
|
|
GEANY_KEYS_BUILD_PREVIOUSERROR,
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_BUILD_RUN,
|
|
|
|
GEANY_KEYS_BUILD_RUN2,
|
|
|
|
GEANY_KEYS_BUILD_OPTIONS,
|
|
|
|
GEANY_KEYS_BUILD_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Tools group keybinding command IDs */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GEANY_KEYS_TOOLS_OPENCOLORCHOOSER,
|
|
|
|
GEANY_KEYS_TOOLS_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2007-11-06 16:59:01 +00:00
|
|
|
|
2008-03-12 13:37:39 +00:00
|
|
|
/** Help group keybinding command IDs */
|
2008-02-29 19:30:28 +00:00
|
|
|
enum
|
|
|
|
{
|
2008-03-12 13:37:39 +00:00
|
|
|
GEANY_KEYS_HELP_HELP,
|
|
|
|
GEANY_KEYS_HELP_COUNT
|
2008-02-29 19:30:28 +00:00
|
|
|
};
|
2006-05-19 17:18:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
void keybindings_init(void);
|
|
|
|
|
2008-03-10 13:54:47 +00:00
|
|
|
void keybindings_load_keyfile(void);
|
|
|
|
|
2006-05-19 17:18:06 +00:00
|
|
|
void keybindings_free(void);
|
|
|
|
|
2008-08-08 18:05:53 +00:00
|
|
|
void keybindings_set_item(GeanyKeyGroup *group, gsize key_id,
|
|
|
|
GeanyKeyCallback callback, guint key, GdkModifierType mod,
|
2008-03-14 17:23:24 +00:00
|
|
|
gchar *name, gchar *label, GtkWidget *menu_item);
|
2008-02-29 19:30:28 +00:00
|
|
|
|
2009-08-18 13:57:07 +00:00
|
|
|
void keybindings_update_combo(GeanyKeyBinding *kb, guint key, GdkModifierType mods);
|
|
|
|
|
2008-03-10 13:29:35 +00:00
|
|
|
void keybindings_send_command(guint group_id, guint key_id);
|
2008-03-10 13:23:57 +00:00
|
|
|
|
2008-08-08 18:05:53 +00:00
|
|
|
GeanyKeyBinding *keybindings_lookup_item(guint group_id, guint key_id);
|
2007-07-18 15:35:52 +00:00
|
|
|
|
2006-05-19 17:18:06 +00:00
|
|
|
/* just write the content of the keys array to the config file */
|
|
|
|
void keybindings_write_to_file(void);
|
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void keybindings_show_shortcuts(void);
|
2007-03-23 16:34:54 +00:00
|
|
|
|
2006-05-19 17:18:06 +00:00
|
|
|
#endif
|
|
|
|
|