foobar2000 SDK  2015-08-03
Public Member Functions
keyboard_shortcut_manager_v2abstract

#include <contextmenu_manager.h>

+ Inheritance diagram for keyboard_shortcut_manager_v2:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (keyboard_shortcut_manager_v2, keyboard_shortcut_manager)
 
bool pretranslate_message (const MSG *msg, HWND thisPopupWnd)
 
virtual bool process_keydown_simple (t_uint32 keycode)=0
 
- Public Member Functions inherited from keyboard_shortcut_manager
 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
 
- Public Member Functions inherited from service_base
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 ()
 

Additional Inherited Members

- Public Types inherited from keyboard_shortcut_manager
enum  shortcut_type { TYPE_MAIN, TYPE_CONTEXT, TYPE_CONTEXT_PLAYLIST, TYPE_CONTEXT_NOW_PLAYING }
 
- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from keyboard_shortcut_manager
static bool g_get (service_ptr_t< keyboard_shortcut_manager > &p_out)
 
static bool is_text_key (t_uint32 vkCode)
 
static bool is_typing_key (t_uint32 vkCode)
 
static bool is_typing_key_combo (t_uint32 vkCode, t_uint32 modifiers)
 
static bool is_typing_message (HWND editbox, const MSG *msg)
 
static bool is_typing_message (const MSG *msg)
 
static bool is_typing_modifier (t_uint32 flags)
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

New in 0.9.5.

Definition at line 42 of file contextmenu_manager.h.

Member Function Documentation

keyboard_shortcut_manager_v2::FB2K_MAKE_SERVICE_INTERFACE ( keyboard_shortcut_manager_v2  ,
keyboard_shortcut_manager   
)
bool keyboard_shortcut_manager_v2::pretranslate_message ( const MSG *  msg,
HWND  thisPopupWnd 
)

Helper for use with message filters.

Definition at line 359 of file menu_manager.cpp.

359  {
360  switch(msg->message) {
361  case WM_KEYDOWN:
362  case WM_SYSKEYDOWN:
363  if (thisPopupWnd != NULL && FindOwningPopup(msg->hwnd) == thisPopupWnd) {
364  const t_uint32 modifiers = GetHotkeyModifierFlags();
365  if (filterTypableWindowMessage(msg, modifiers)) {
366  if (process_keydown_simple(get_key_code(msg->wParam,modifiers))) return true;
367  }
368  }
369  return false;
370  default:
371  return false;
372  }
373 }
virtual bool process_keydown_simple(t_uint32 keycode)=0
Deprecates old keyboard_shortcut_manager methods. If the action requires selected items...
unsigned GetHotkeyModifierFlags()
Returns current modifier keys pressed, using win32 MOD_* flags.
HWND SHARED_EXPORT FindOwningPopup(HWND p_wnd)
uint32_t t_uint32
Definition: int_types.h:5
virtual bool keyboard_shortcut_manager_v2::process_keydown_simple ( t_uint32  keycode)
pure virtual

Deprecates old keyboard_shortcut_manager methods. If the action requires selected items, they're obtained from ui_selection_manager API automatically.


The documentation for this class was generated from the following files: