SF.net SVN: geany: [2313] branches/plugin-keybindings/src/keybindings.h
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Mar 7 17:23:36 UTC 2008
Revision: 2313
http://geany.svn.sourceforge.net/geany/?rev=2313&view=rev
Author: ntrel
Date: 2008-03-07 09:23:35 -0800 (Fri, 07 Mar 2008)
Log Message:
-----------
Add documentation for keybindings structs.
Modified Paths:
--------------
branches/plugin-keybindings/src/keybindings.h
Modified: branches/plugin-keybindings/src/keybindings.h
===================================================================
--- branches/plugin-keybindings/src/keybindings.h 2008-03-07 15:42:46 UTC (rev 2312)
+++ branches/plugin-keybindings/src/keybindings.h 2008-03-07 17:23:35 UTC (rev 2313)
@@ -21,7 +21,12 @@
* $Id$
*/
+/**
+ * @file keybindings.h
+ * Configurable keyboard shortcuts.
+ **/
+
#ifndef GEANY_KEYBINDINGS_H
#define GEANY_KEYBINDINGS_H 1
@@ -36,27 +41,24 @@
typedef void (*KBCallback) (guint key_id);
-/* holds all user-definable key bindings */
+/** Represents a single keybinding action */
typedef struct KeyBinding
{
- guint key;
- GdkModifierType mods;
- /* at the moment only needed as keys for the configuration file because indices or translatable
- * strings as keys are not very useful */
- const gchar *name;
- const gchar *label;
- /* function pointer to a callback function, just to keep the code in keypress event
- * callback function clear */
- KBCallback cb_func;
+ guint key; /**< Key value in lower-case, such as @c GDK_a */
+ GdkModifierType mods; /**< Modifier keys, such as @c GDK_CONTROL_MASK */
+ const gchar *name; /**< Key name for the configuration file, such as @c "menu_new" */
+ const gchar *label; /**< Label used in the preferences dialog keybindings tab */
+ KBCallback cb_func; /**< Callback function called when the key combination is pressed */
} KeyBinding;
+/** A collection of keybindings grouped together. */
typedef struct KeyBindingGroup
{
- const gchar *name; /* group name used for keyfile group */
- const gchar *label; /* group label in preferences dialog in keybinding treeview */
- gsize count; /* count of KeyBinding structs in keys */
- KeyBinding *keys; /* fixed array of KeyBinding structs */
+ 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 */
+ gsize count; /**< Count of KeyBinding structs in @a keys */
+ KeyBinding *keys; /**< Fixed array of KeyBinding structs */
}
KeyBindingGroup;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list