20 bool on_keydown_auto(WPARAM wp);
21 bool on_keydown_auto_playlist(WPARAM wp);
24 bool on_keydown_restricted_auto(WPARAM wp);
25 bool on_keydown_restricted_auto_playlist(WPARAM wp);
30 static bool is_text_key(
t_uint32 vkCode);
31 static bool is_typing_key(
t_uint32 vkCode);
33 static bool is_typing_modifier(
t_uint32 flags);
34 static bool is_typing_message(HWND editbox,
const MSG * msg);
35 static bool is_typing_message(
const MSG * msg);
45 virtual bool process_keydown_simple(
t_uint32 keycode) = 0;
48 bool pretranslate_message(
const MSG * msg, HWND thisPopupWnd);
56 virtual const char * get_name()=0;
57 virtual t_size get_num_children()=0;
59 virtual unsigned get_display_flags()=0;
60 virtual unsigned get_id()=0;
61 virtual void execute()=0;
64 virtual void * get_glyph()=0;
77 flag_show_shortcuts = 1 << 0,
78 flag_show_shortcuts_global = 1 << 1,
81 flag_view_reduced = 1 << 2,
84 flag_view_full = 1 << 3,
87 FLAG_SHOW_SHORTCUTS = 1,
88 FLAG_SHOW_SHORTCUTS_GLOBAL = 2,
92 virtual void init_context_playlist(
unsigned flags) = 0;
102 static void win32_build_menu(HMENU menu,
contextmenu_node * parent,
int base_id,
int max_id);
103 static void win32_run_menu_context(HWND parent,
metadb_handle_list_cref data,
const POINT * pt = 0,
unsigned flags = 0);
104 static void win32_run_menu_context_playlist(HWND parent,
const POINT * pt = 0,
unsigned flags = 0);
105 void win32_run_menu_popup(HWND parent,
const POINT * pt = 0);
112 virtual bool init_context_now_playing(
unsigned flags)=0;
114 bool execute_by_id(
unsigned id);
126 virtual GUID path_to_group(
const char * path) = 0;
static bool service_enum_create_t(service_ptr_t< T > &p_out, t_size p_index)
void standard_api_create_t(service_ptr_t< T > &p_out)
static bool g_get(service_ptr_t< keyboard_shortcut_manager > &p_out)
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.