Set up the key bindings. More...
Include dependency graph for init.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | km_config_observer (struct NotifyCallback *nc) |
| Notification that a Config Variable has changed - Implements observer_t -. | |
| void | km_init (void) |
| Initialise all the menu keybindings. | |
| void | km_menu_add_bindings (struct MenuDefinition *md, const struct MenuOpSeq bindings[]) |
| Add Keybindings to a Menu. | |
| void | km_menu_add_submenu (struct MenuDefinition *md, struct SubMenu *sm) |
| Add a SubMenu to a Menu Definition. | |
| struct MenuDefinition * | km_register_menu (int menu, const char *name) |
| Register a menu. | |
| struct SubMenu * | km_register_submenu (const struct MenuFuncOp functions[]) |
| Register a submenu. | |
| void | km_set_abort_key (void) |
| Parse the abort_key config string. | |
| void | km_cleanup (void) |
| Free the key maps. | |
Variables | |
| keycode_t | AbortKey |
| key to abort edits etc, normally Ctrl-G | |
| struct SubMenuArray | SubMenus |
| All the registered SubMenus. | |
| struct MenuDefinitionArray | MenuDefs |
| All the registered Menus. | |
Set up the key bindings.
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, see http://www.gnu.org/licenses/.
Definition in file init.h.
| void km_init | ( | void | ) |
Initialise all the menu keybindings.
Definition at line 170 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void km_menu_add_bindings | ( | struct MenuDefinition * | md, |
| const struct MenuOpSeq | bindings[] ) |
Add Keybindings to a Menu.
| md | Menu Definition |
| bindings | Keybindings to add |
Definition at line 136 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void km_menu_add_submenu | ( | struct MenuDefinition * | md, |
| struct SubMenu * | sm ) |
| struct MenuDefinition * km_register_menu | ( | int | menu, |
| const char * | name ) |
| struct SubMenu * km_register_submenu | ( | const struct MenuFuncOp | functions[] | ) |
| void km_set_abort_key | ( | void | ) |
Parse the abort_key config string.
Parse the string into $abort_key and put the keycode into AbortKey.
Definition at line 210 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void km_cleanup | ( | void | ) |
Free the key maps.
Definition at line 181 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
|
extern |