Beispiel #1
0
bool selection_properties_t::show_config_popup(HWND wnd_parent)
{
	selection_properties_config_t dialog(m_fields, m_edge_style, m_info_sections_mask, m_show_column_titles, m_show_group_titles);
	if (dialog.run_modal(wnd_parent))
	{
		m_fields = dialog.m_fields;
		if (get_wnd())
		{
			m_info_sections_mask = dialog.m_info_sections_mask;
			cfg_selection_properties_info_sections = dialog.m_info_sections_mask;

			m_show_column_titles = dialog.m_show_columns;
			cfg_selection_poperties_show_column_titles = m_show_column_titles;
			set_show_header(m_show_column_titles);

			if (m_show_group_titles != dialog.m_show_groups)
			{
				m_show_group_titles = dialog.m_show_groups;
				cfg_selection_poperties_show_group_titles = m_show_group_titles;

				remove_items(bit_array_true(), false);
				set_group_count(m_show_group_titles ? 1 : 0);
			}


			refresh_contents();
			m_edge_style = dialog.m_edge_style;
			cfg_selection_properties_edge_style = m_edge_style;
			set_edge_style(m_edge_style);
		}
		return true;
	}
	return false;
}
Beispiel #2
0
		virtual void notify_on_create()
		{
			set_single_selection(true);
			set_group_count(1);
			set_autosize(true);
			set_show_header(false);
			pfc::list_t<t_column> columns;
			columns.set_count(1);
			columns[0].m_title = "Source script";
			columns[0].m_size = 100;
			t_list_view::set_columns(columns);
		};
Beispiel #3
0
void selection_properties_t::notify_on_create()
{
	pfc::list_t<t_column> columns;
	columns.add_item(t_column("Field", m_column_name_width, 0));
	columns.add_item(t_column("Value", m_column_field_width, 1));
	set_columns(columns);
	set_group_count(m_show_group_titles ? 1 : 0);

	register_callback();
	static_api_ptr_t<play_callback_manager>()->register_callback(this, play_callback::flag_on_playback_stop|play_callback::flag_on_playback_new_track, true);
	static_api_ptr_t<metadb_io_v3>()->register_callback(this);
	refresh_contents();

	if (0 == g_windows.add_item(this))
		g_message_window.create(NULL);
}