void fields_list_view_t::get_insert_items(t_size base, t_size count, pfc::list_t<t_list_view::t_item_insert> & items)
{
	t_size i;
	items.set_count(count);
	for (i = 0; i < count; i++)
	{
		items[i].m_subitems.add_item(m_fields[base + i].m_name_friendly);
		items[i].m_subitems.add_item(m_fields[base + i].m_name);
	}
}
Esempio n. 2
0
	void get_insert_items(t_size base, t_size count, pfc::list_t<t_list_view::t_item_insert> & items)
	{
		t_size i;
		items.set_count(count);
		for (i=0; i<count; i++)
		{
			items[i].m_subitems.add_item(filter_panel::cfg_field_list[base+i].m_name);
			items[i].m_subitems.add_item(filter_panel::cfg_field_list[base+i].m_field);
		}
	}
void playlist_switcher_t::get_insert_items (t_size base, t_size count, pfc::list_t<t_list_view::t_item_insert> & p_out)
	{
		p_out.set_count(count);

		t_size i;
		for (i=0;i<count; i++)
		{
			p_out[i].m_subitems.set_count(1);
			pfc::string8 temp;
			m_playlist_api->playlist_get_name(i+base, temp);
			p_out[i].m_subitems[0].set_string( playlist_format_name_t(i+base, temp, get_playing_playlist()) );
		}
	}