6 virtual HWND
create(HWND p_parent) = 0;
8 virtual const char * get_name() = 0;
10 virtual GUID get_guid() = 0;
12 virtual GUID get_parent_guid() = 0;
14 virtual bool reset_query() = 0;
16 virtual void reset() = 0;
20 static void get_help_url_helper(
pfc::string_base & out,
const char * category,
const GUID &
id,
const char * name);
22 static const GUID guid_root, guid_hidden, guid_tools,guid_core,guid_display,guid_playback,
guid_visualisations,guid_input,guid_tag_writing,guid_media_library, guid_tagging;
42 virtual const char * get_name() = 0;
44 virtual GUID get_guid() = 0;
46 virtual GUID get_parent_guid() = 0;
62 preferences_branch_impl(
const GUID & p_guid,
const GUID & p_parent,
const char * p_name,
double p_sort_priority = 0) : m_guid(p_guid), m_parent(p_parent), m_name(p_name), m_sort_priority(p_sort_priority) {}
90 needs_restart_playback = 4,
104 virtual void on_state_changed() = 0;
119 virtual HWND get_wnd() = 0;
121 virtual void apply() = 0;
123 virtual void reset() = 0;
131 virtual preferences_page_instance::ptr instantiate(HWND parent, preferences_page_callback::ptr callback) = 0;
133 HWND
create(HWND p_parent) {
throw pfc::exception_not_implemented();}
Creates a preferences branch - an empty page that only serves as a parent for other pages and is hidd...
service_factory_single_t< preferences_branch_impl > _preferences_branch_factory
GUID get_guid()
Retrieves GUID of the preferences branch. Use this GUID as parent GUID for pages/branches nested in t...
preferences_branch_impl(const GUID &p_guid, const GUID &p_parent, const char *p_name, double p_sort_priority=0)
GUID get_parent_guid()
Retrieves GUID of parent page/branch of this branch. See preferences_page::guid_* constants for list ...
virtual double get_sort_priority()
Allows custom sorting order of preferences pages. Return lower value for higher priority (lower resul...
virtual double get_sort_priority()
Allows custom sorting order of preferences pages. Return lower value for higher priority (lower resul...
HWND create(HWND p_parent)
Obsolete.
preferences_branch_factory(const GUID &p_guid, const GUID &p_parent, const char *p_name, double p_sort_priority=0)
static const GUID guid_visualisations
bool reset_query()
Obsolete.
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
Implementing this service will generate a page in preferences dialog. Use preferences_page_factory_t ...
const pfc::string8 m_name
void create(pfc::string_formatter &p_out, const t_entry_list &p_data)
Instantiating this class declares a preferences branch with specified parameters. Usage: static prefe...
const char * get_name()
Retrieves name of the preferences branch.
double get_sort_priority()
Allows custom sorting order of preferences pages. Return lower value for higher priority (lower resul...
const double m_sort_priority