#include <contextmenu_manager.h>
|
| FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (keyboard_shortcut_manager) |
|
virtual bool | get_key_description_for_action (const GUID &p_command, const GUID &p_subcommand, pfc::string_base &out, shortcut_type type, bool is_global)=0 |
|
bool | on_keydown (shortcut_type type, WPARAM wp) |
|
bool | on_keydown_auto (WPARAM wp) |
|
bool | on_keydown_auto_context (const pfc::list_base_const_t< metadb_handle_ptr > &data, WPARAM wp, const GUID &caller) |
|
bool | on_keydown_auto_playlist (WPARAM wp) |
|
bool | on_keydown_context (const pfc::list_base_const_t< metadb_handle_ptr > &data, WPARAM wp, const GUID &caller) |
|
bool | on_keydown_restricted_auto (WPARAM wp) |
|
bool | on_keydown_restricted_auto_context (const pfc::list_base_const_t< metadb_handle_ptr > &data, WPARAM wp, const GUID &caller) |
|
bool | on_keydown_restricted_auto_playlist (WPARAM wp) |
|
virtual bool | process_keydown (shortcut_type type, const pfc::list_base_const_t< metadb_handle_ptr > &data, unsigned keycode)=0 |
|
virtual bool | process_keydown_ex (shortcut_type type, const pfc::list_base_const_t< metadb_handle_ptr > &data, unsigned keycode, const GUID &caller)=0 |
|
template<typename outPtr_t > |
bool | cast (outPtr_t &outPtr) |
|
virtual int | service_add_ref ()=0 throw () |
|
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
|
template<class T > |
bool | service_query_t (service_ptr_t< T > &p_out) |
|
virtual int | service_release ()=0 throw () |
|
Definition at line 1 of file contextmenu_manager.h.
Enumerator |
---|
TYPE_MAIN |
|
TYPE_CONTEXT |
|
TYPE_CONTEXT_PLAYLIST |
|
TYPE_CONTEXT_NOW_PLAYING |
|
Definition at line 6 of file contextmenu_manager.h.
Definition at line 4 of file contextmenu_manager.h.
static bool service_enum_create_t(service_ptr_t< T > &p_out, t_size p_index)
bool keyboard_shortcut_manager::is_text_key |
( |
t_uint32 |
vkCode | ) |
|
|
static |
Definition at line 375 of file menu_manager.cpp.
376 return vkCode == VK_SPACE
377 || (vkCode >=
'0' && vkCode < 0x40)
378 || (vkCode > 0x40 && vkCode < VK_LWIN)
379 || (vkCode >= VK_NUMPAD0 && vkCode <= VK_DIVIDE)
380 || (vkCode >= VK_OEM_1 && vkCode <= VK_OEM_3)
381 || (vkCode >= VK_OEM_4 && vkCode <= VK_OEM_8)
bool keyboard_shortcut_manager::is_typing_key |
( |
t_uint32 |
vkCode | ) |
|
|
static |
Definition at line 385 of file menu_manager.cpp.
388 || vkCode == VK_RETURN
389 || vkCode == VK_INSERT
390 || (vkCode > VK_SPACE && vkCode <
'0');
static bool is_text_key(t_uint32 vkCode)
bool keyboard_shortcut_manager::is_typing_key_combo |
( |
t_uint32 |
vkCode, |
|
|
t_uint32 |
modifiers |
|
) |
| |
|
static |
Definition at line 393 of file menu_manager.cpp.
static bool is_typing_modifier(t_uint32 flags)
static bool is_typing_key(t_uint32 vkCode)
bool keyboard_shortcut_manager::is_typing_message |
( |
HWND |
editbox, |
|
|
const MSG * |
msg |
|
) |
| |
|
static |
Definition at line 403 of file menu_manager.cpp.
404 if (msg->hwnd != editbox)
return false;
static bool is_typing_message(HWND editbox, const MSG *msg)
bool keyboard_shortcut_manager::is_typing_message |
( |
const MSG * |
msg | ) |
|
|
static |
Definition at line 407 of file menu_manager.cpp.
408 if (msg->message != WM_KEYDOWN && msg->message != WM_SYSKEYDOWN)
return false;
static bool is_typing_key_combo(t_uint32 vkCode, t_uint32 modifiers)
unsigned GetHotkeyModifierFlags()
Returns current modifier keys pressed, using win32 MOD_* flags.
bool keyboard_shortcut_manager::is_typing_modifier |
( |
t_uint32 |
flags | ) |
|
|
static |
Definition at line 398 of file menu_manager.cpp.
400 return flags == 0 || flags == (MOD_ALT | MOD_CONTROL);
bool keyboard_shortcut_manager::on_keydown |
( |
shortcut_type |
type, |
|
|
WPARAM |
wp |
|
) |
| |
Definition at line 290 of file menu_manager.cpp.
virtual bool process_keydown(shortcut_type type, const pfc::list_base_const_t< metadb_handle_ptr > &data, unsigned keycode)=0
bool keyboard_shortcut_manager::on_keydown_auto |
( |
WPARAM |
wp | ) |
|
Definition at line 303 of file menu_manager.cpp.
bool on_keydown(shortcut_type type, WPARAM wp)
Definition at line 319 of file menu_manager.cpp.
bool on_keydown_context(const pfc::list_base_const_t< metadb_handle_ptr > &data, WPARAM wp, const GUID &caller)
bool on_keydown_auto(WPARAM wp)
bool keyboard_shortcut_manager::on_keydown_auto_playlist |
( |
WPARAM |
wp | ) |
|
Definition at line 311 of file menu_manager.cpp.
315 api->activeplaylist_get_selected_items(data);
bool on_keydown_auto_context(const pfc::list_base_const_t< metadb_handle_ptr > &data, WPARAM wp, const GUID &caller)
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition at line 297 of file menu_manager.cpp.
virtual bool process_keydown_ex(shortcut_type type, const pfc::list_base_const_t< metadb_handle_ptr > &data, unsigned keycode, const GUID &caller)=0
virtual t_size get_count() const =0
bool keyboard_shortcut_manager::on_keydown_restricted_auto |
( |
WPARAM |
wp | ) |
|
Definition at line 345 of file menu_manager.cpp.
bool on_keydown_auto_context(const pfc::list_base_const_t< metadb_handle_ptr > &data, WPARAM wp, const GUID &caller)
bool keyboard_shortcut_manager::on_keydown_restricted_auto_playlist |
( |
WPARAM |
wp | ) |
|
The documentation for this class was generated from the following files: