foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
contextmenu_item_simple::contextmenu_item_node_impl
+ Inheritance diagram for contextmenu_item_simple::contextmenu_item_node_impl:

Public Member Functions

 contextmenu_item_node_impl (contextmenu_item_simple *p_owner, unsigned p_index)
 
void execute (metadb_handle_list_cref p_data, const GUID &p_caller)
 
bool get_description (pfc::string_base &p_out)
 
bool get_display_data (pfc::string_base &p_out, unsigned &p_displayflags, metadb_handle_list_cref p_data, const GUID &p_caller)
 
GUID get_guid ()
 
bool is_mappable_shortcut ()
 
- Public Member Functions inherited from contextmenu_item_node_root_leaf
contextmenu_item_nodeget_child (t_size)
 
t_size get_children_count ()
 
t_type get_type ()
 
- Public Member Functions inherited from contextmenu_item_node_root
virtual ~contextmenu_item_node_root ()
 
- Public Member Functions inherited from contextmenu_item_node
virtual t_glyph get_glyph (metadb_handle_list_cref p_data, const GUID &p_caller)
 

Private Attributes

unsigned m_index
 
service_ptr_t< contextmenu_item_simplem_owner
 

Additional Inherited Members

- Public Types inherited from contextmenu_item_node
enum  t_flags {
  FLAG_CHECKED = 1, FLAG_DISABLED = 2, FLAG_GRAYED = 4, FLAG_DISABLED_GRAYED = FLAG_DISABLED|FLAG_GRAYED,
  FLAG_RADIOCHECKED = 8
}
 
enum  t_type {
  type_group, type_command, type_separator, TYPE_POPUP = type_group,
  TYPE_COMMAND = type_command, TYPE_SEPARATOR = type_separator
}
 
- Protected Member Functions inherited from contextmenu_item_node
 contextmenu_item_node ()
 
 ~contextmenu_item_node ()
 

Detailed Description

Definition at line 182 of file contextmenu.h.

Constructor & Destructor Documentation

contextmenu_item_simple::contextmenu_item_node_impl::contextmenu_item_node_impl ( contextmenu_item_simple p_owner,
unsigned  p_index 
)
inline

Definition at line 184 of file contextmenu.h.

184 : m_owner(p_owner), m_index(p_index) {}
service_ptr_t< contextmenu_item_simple > m_owner
Definition: contextmenu.h:191

Member Function Documentation

void contextmenu_item_simple::contextmenu_item_node_impl::execute ( metadb_handle_list_cref  p_data,
const GUID p_caller 
)
inlinevirtual

Implements contextmenu_item_node.

Definition at line 186 of file contextmenu.h.

186 {m_owner->context_command(m_index,p_data,p_caller);}
service_ptr_t< contextmenu_item_simple > m_owner
Definition: contextmenu.h:191
bool contextmenu_item_simple::contextmenu_item_node_impl::get_description ( pfc::string_base p_out)
inlinevirtual

Implements contextmenu_item_node.

Definition at line 187 of file contextmenu.h.

187 {return m_owner->get_item_description(m_index,p_out);}
service_ptr_t< contextmenu_item_simple > m_owner
Definition: contextmenu.h:191
bool contextmenu_item_simple::contextmenu_item_node_impl::get_display_data ( pfc::string_base p_out,
unsigned &  p_displayflags,
metadb_handle_list_cref  p_data,
const GUID p_caller 
)
inlinevirtual

Implements contextmenu_item_node.

Definition at line 185 of file contextmenu.h.

185 {return m_owner->get_display_data(m_index,p_data,p_out,p_displayflags,p_caller);}
service_ptr_t< contextmenu_item_simple > m_owner
Definition: contextmenu.h:191
GUID contextmenu_item_simple::contextmenu_item_node_impl::get_guid ( )
inlinevirtual

Implements contextmenu_item_node.

Definition at line 188 of file contextmenu.h.

188 {return pfc::guid_null;}
const GUID guid_null
Definition: guid.cpp:175
bool contextmenu_item_simple::contextmenu_item_node_impl::is_mappable_shortcut ( )
inlinevirtual

Implements contextmenu_item_node.

Definition at line 189 of file contextmenu.h.

189 {return m_owner->item_is_mappable_shortcut(m_index);}
service_ptr_t< contextmenu_item_simple > m_owner
Definition: contextmenu.h:191

Field Documentation

unsigned contextmenu_item_simple::contextmenu_item_node_impl::m_index
private

Definition at line 192 of file contextmenu.h.

service_ptr_t<contextmenu_item_simple> contextmenu_item_simple::contextmenu_item_node_impl::m_owner
private

Definition at line 191 of file contextmenu.h.


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