|
Blender V4.3
|
#include <cstddef>#include <cstdio>#include <cstdlib>#include "RNA_types.hh"#include "BLI_ghash.h"#include "BLI_listbase.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "DNA_listBase.h"#include "DNA_userdef_types.h"#include "DNA_windowmanager_types.h"#include "BKE_idprop.hh"#include "BKE_keyconfig.h"#include "MEM_guardedalloc.h"Go to the source code of this file.
Functions | |
Key-Config Preference (UserDef) API | |
| |
| wmKeyConfigPref * | BKE_keyconfig_pref_ensure (UserDef *userdef, const char *kc_idname) |
Key-Config Versioning | |
| void | BKE_keyconfig_pref_set_select_mouse (UserDef *userdef, int value, bool override) |
| static void | keymap_item_free (wmKeyMapItem *kmi) |
| static void | keymap_diff_item_free (wmKeyMapDiffItem *kmdi) |
| void | BKE_keyconfig_keymap_filter_item (wmKeyMap *keymap, const wmKeyConfigFilterItemParams *params, bool(*filter_fn)(wmKeyMapItem *kmi, void *user_data), void *user_data) |
| void | BKE_keyconfig_pref_filter_items (UserDef *userdef, const wmKeyConfigFilterItemParams *params, bool(*filter_fn)(wmKeyMapItem *kmi, void *user_data), void *user_data) |
Key-Config Preference (RNA Type) API | |
| |
| static GHash * | global_keyconfigpreftype_hash = nullptr |
| wmKeyConfigPrefType_Runtime * | BKE_keyconfig_pref_type_find (const char *idname, bool quiet) |
| void | BKE_keyconfig_pref_type_add (wmKeyConfigPrefType_Runtime *kpt_rt) |
| void | BKE_keyconfig_pref_type_remove (const wmKeyConfigPrefType_Runtime *kpt_rt) |
| void | BKE_keyconfig_pref_type_init () |
| void | BKE_keyconfig_pref_type_free () |
| void BKE_keyconfig_keymap_filter_item | ( | wmKeyMap * | keymap, |
| const wmKeyConfigFilterItemParams * | params, | ||
| bool(* | filter_fn )(wmKeyMapItem *kmi, void *user_data), | ||
| void * | user_data ) |
Definition at line 145 of file keyconfig.cc.
References BLI_remlink(), wmKeyMap::diff_items, ListBase::first, wmKeyMap::items, keymap_diff_item_free(), keymap_item_free(), wmKeyMapItem::next, and params.
Referenced by BKE_keyconfig_pref_filter_items().
| wmKeyConfigPref * BKE_keyconfig_pref_ensure | ( | UserDef * | userdef, |
| const char * | kc_idname ) |
Definition at line 35 of file keyconfig.cc.
References BLI_addtail(), BLI_findstring(), blender::bke::idprop::create_group(), wmKeyConfigPref::idname, MEM_callocN, offsetof, wmKeyConfigPref::prop, STRNCPY, and UserDef::user_keyconfig_prefs.
Referenced by BKE_keyconfig_pref_set_select_mouse().
| void BKE_keyconfig_pref_filter_items | ( | UserDef * | userdef, |
| const wmKeyConfigFilterItemParams * | params, | ||
| bool(* | filter_fn )(wmKeyMapItem *kmi, void *user_data), | ||
| void * | user_data ) |
Definition at line 195 of file keyconfig.cc.
References BKE_keyconfig_keymap_filter_item(), LISTBASE_FOREACH, params, and UserDef::user_keymaps.
Set select mouse, for versioning code.
Definition at line 113 of file keyconfig.cc.
References BKE_keyconfig_pref_ensure(), blender::bke::idprop::create(), IDP_AddToGroup(), IDP_GetPropertyFromGroup(), IDP_Int, wmKeyConfigPref::prop, and WM_KEYCONFIG_STR_DEFAULT.
Referenced by blo_do_versions_userdef().
| void BKE_keyconfig_pref_type_add | ( | wmKeyConfigPrefType_Runtime * | kpt_rt | ) |
Definition at line 85 of file keyconfig.cc.
References BLI_ghash_insert(), and global_keyconfigpreftype_hash.
| wmKeyConfigPrefType_Runtime * BKE_keyconfig_pref_type_find | ( | const char * | idname, |
| bool | quiet ) |
Definition at line 61 of file keyconfig.cc.
References BLI_ghash_lookup(), global_keyconfigpreftype_hash, and printf.
| void BKE_keyconfig_pref_type_free | ( | void | ) |
Definition at line 101 of file keyconfig.cc.
References BLI_ghash_free(), global_keyconfigpreftype_hash, and MEM_freeN().
Referenced by WM_exit_ex().
| void BKE_keyconfig_pref_type_init | ( | void | ) |
Definition at line 95 of file keyconfig.cc.
References BLI_assert, BLI_ghash_str_new(), and global_keyconfigpreftype_hash.
Referenced by WM_init().
| void BKE_keyconfig_pref_type_remove | ( | const wmKeyConfigPrefType_Runtime * | kpt_rt | ) |
Definition at line 90 of file keyconfig.cc.
References BLI_ghash_remove(), global_keyconfigpreftype_hash, and MEM_freeN().
|
static |
Definition at line 134 of file keyconfig.cc.
References wmKeyMapDiffItem::add_item, keymap_item_free(), MEM_freeN(), and wmKeyMapDiffItem::remove_item.
Referenced by BKE_keyconfig_keymap_filter_item().
|
static |
Definition at line 125 of file keyconfig.cc.
References IDP_FreeProperty(), MEM_freeN(), wmKeyMapItem::properties, and wmKeyMapItem::ptr.
Referenced by BKE_keyconfig_keymap_filter_item(), and keymap_diff_item_free().
|
static |
Definition at line 59 of file keyconfig.cc.
Referenced by BKE_keyconfig_pref_type_add(), BKE_keyconfig_pref_type_find(), BKE_keyconfig_pref_type_free(), BKE_keyconfig_pref_type_init(), and BKE_keyconfig_pref_type_remove().