add last backwards-compatible version
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
//! Implementing this service will generate a page in preferences dialog. Use preferences_page_factory_t template to register. \n
|
||||
//! In 1.0 and newer you should always derive from preferences_page_v3 rather than from preferences_page directly.
|
||||
class NOVTABLE preferences_page : public service_base {
|
||||
@@ -21,9 +19,7 @@ public:
|
||||
|
||||
static void get_help_url_helper(pfc::string_base & out, const char * category, const GUID & id, const char * name);
|
||||
|
||||
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, guid_output, guid_advanced, guid_components;
|
||||
//! \since 1.5
|
||||
static const GUID guid_input_info_filter;
|
||||
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;
|
||||
|
||||
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(preferences_page);
|
||||
};
|
||||
@@ -137,14 +133,7 @@ class preferences_page_v3 : public preferences_page_v2 {
|
||||
public:
|
||||
virtual preferences_page_instance::ptr instantiate(HWND parent, preferences_page_callback::ptr callback) = 0;
|
||||
private:
|
||||
HWND create(HWND) {throw pfc::exception_not_implemented();} //stub
|
||||
HWND create(HWND p_parent) {throw pfc::exception_not_implemented();} //stub
|
||||
bool reset_query() {return false;} //stub - the new apply-friendly reset should be used instead.
|
||||
void reset() {} //stub
|
||||
};
|
||||
|
||||
//! \since 1.5
|
||||
class NOVTABLE preferences_page_v4 : public preferences_page_v3 {
|
||||
FB2K_MAKE_SERVICE_INTERFACE(preferences_page_v4, preferences_page_v3);
|
||||
public:
|
||||
virtual bool is_hidden() = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user