foobar2000 SDK  2015-08-03
Public Types | Public Member Functions | Protected Member Functions
contextmenu_item_nodeabstract

#include <contextmenu.h>

+ Inheritance diagram for contextmenu_item_node:

Public Types

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
}
 

Public Member Functions

virtual void execute (metadb_handle_list_cref p_data, const GUID &p_caller)=0
 
virtual contextmenu_item_nodeget_child (t_size p_index)=0
 
virtual t_size get_children_count ()=0
 
virtual bool get_description (pfc::string_base &p_out)=0
 
virtual bool get_display_data (pfc::string_base &p_out, unsigned &p_displayflags, metadb_handle_list_cref p_data, const GUID &p_caller)=0
 
virtual t_glyph get_glyph (metadb_handle_list_cref p_data, const GUID &p_caller)
 
virtual GUID get_guid ()=0
 
virtual t_type get_type ()=0
 
virtual bool is_mappable_shortcut ()=0
 

Protected Member Functions

 contextmenu_item_node ()
 
 ~contextmenu_item_node ()
 

Detailed Description

Definition at line 5 of file contextmenu.h.

Member Enumeration Documentation

Enumerator
FLAG_CHECKED 
FLAG_DISABLED 
FLAG_GRAYED 
FLAG_DISABLED_GRAYED 
FLAG_RADIOCHECKED 

Definition at line 7 of file contextmenu.h.

Enumerator
type_group 
type_command 
type_separator 
TYPE_POPUP 
TYPE_COMMAND 
TYPE_SEPARATOR 

Definition at line 15 of file contextmenu.h.

Constructor & Destructor Documentation

contextmenu_item_node::contextmenu_item_node ( )
inlineprotected

Definition at line 35 of file contextmenu.h.

35 {}
contextmenu_item_node::~contextmenu_item_node ( )
inlineprotected

Definition at line 36 of file contextmenu.h.

36 {}

Member Function Documentation

virtual void contextmenu_item_node::execute ( metadb_handle_list_cref  p_data,
const GUID p_caller 
)
pure virtual
virtual contextmenu_item_node* contextmenu_item_node::get_child ( t_size  p_index)
pure virtual
virtual t_size contextmenu_item_node::get_children_count ( )
pure virtual
virtual bool contextmenu_item_node::get_description ( pfc::string_base p_out)
pure virtual
virtual bool contextmenu_item_node::get_display_data ( pfc::string_base p_out,
unsigned &  p_displayflags,
metadb_handle_list_cref  p_data,
const GUID p_caller 
)
pure virtual
virtual t_glyph contextmenu_item_node::get_glyph ( metadb_handle_list_cref  p_data,
const GUID p_caller 
)
inlinevirtual

Definition at line 27 of file contextmenu.h.

27 {return 0;}//RESERVED
virtual GUID contextmenu_item_node::get_guid ( )
pure virtual
virtual t_type contextmenu_item_node::get_type ( )
pure virtual
virtual bool contextmenu_item_node::is_mappable_shortcut ( )
pure virtual

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