From 9e2434d01397dae3252a12292c4281329e2c7359 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Jun 2020 00:00:54 +0200 Subject: [PATCH] Document wxGenericAnimationCtrl XRC handler and it to XRC schema It's actually the same handler as for wxAnimationCtrl, but it still needs to be mentioned in the XRC format description and recognized by its schema. --- docs/doxygen/overviews/xrc_format.h | 8 ++++++++ misc/schema/xrc_schema.rnc | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/doxygen/overviews/xrc_format.h b/docs/doxygen/overviews/xrc_format.h index 6dcf45c947..94db32f09c 100644 --- a/docs/doxygen/overviews/xrc_format.h +++ b/docs/doxygen/overviews/xrc_format.h @@ -1185,6 +1185,14 @@ objects. If sizer child is used, it sets Ignored, preserved only for compatibility.} @endTable +@subsubsection xrc_wxgenericanimationctrl wxGenericAnimationCtrl + +This handler is identical to the one for @ref xrc_wxanimationctrl +"wxAnimationCtrl", please see it for more information. The only difference is +that, for the platforms with a native wxAnimationCtrl implementation, using +this handler creates a generic control rather than a native one. + + @subsubsection xrc_wxgenericdirctrl wxGenericDirCtrl @beginTable diff --git a/misc/schema/xrc_schema.rnc b/misc/schema/xrc_schema.rnc index a1ac038de6..8b63cbe642 100644 --- a/misc/schema/xrc_schema.rnc +++ b/misc/schema/xrc_schema.rnc @@ -189,6 +189,7 @@ builtinWindowClasses = | wxFontPickerCtrl | wxFrame | wxGauge + | wxGenericAnimationCtrl | wxGenericDirCtrl | wxGrid | wxHtmlWindow @@ -290,6 +291,7 @@ builtinClassesNames = | "wxFontPickerCtrl" | "wxFrame" | "wxGauge" + | "wxGenericAnimationCtrl" | "wxGenericDirCtrl" | "wxGrid" | "wxHtmlWindow" @@ -986,6 +988,16 @@ wxGauge = } +wxGenericAnimationCtrl = + element object { + attribute class { "wxGenericAnimationCtrl" } & + stdObjectNodeAttributes & + stdWindowProperties & + [xrc:p="o"] element animation {_, t_url }* & + [xrc:p="o"] element inactive-bitmap {_, t_bitmap }* + } + + wxGenericDirCtrl = element object { attribute class { "wxGenericDirCtrl" } &