File Index Symbol Index

#include "GuiReflectionPlugin.h"
namespace
vl
{
namespace
reflection
{
namespace
description
{
using
namespace
parsing
::
xml
;
using
namespace
presentation
;
using
namespace
helper_types
;
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
/*********************************************************************** Type Declaration ***********************************************************************/
#define _ ,
#define GUI_TEMPLATE_PROPERTY_REFLECTION(CLASS, TYPE, NAME)\
CLASS_MEMBER_PROPERTY_GUIEVENT_FAST(NAME)
valueType
=
new
SerializableValueType
<
Color
>();
serializableType
=
new
SerializableType
<
Color
>();
#define GUI_DEFINE_KEYBOARD_CODE_ENUM_ITEM(NAME, CODE) ENUM_CLASS_ITEM(_##NAME)
#undef GUI_DEFINE_KEYBOARD_CODE_ENUM_ITEM
valueType
=
new
SerializableValueType
<
GlobalStringKey
>();
serializableType
=
new
SerializableType
<
GlobalStringKey
>();
valueType
=
new
SerializableValueType
<
DocumentFontSize
>();
serializableType
=
new
SerializableType
<
DocumentFontSize
>();
#undef GUI_TEMPLATE_PROPERTY_REFLECTION
#undef _
/*********************************************************************** Type Loader ***********************************************************************/
class
GuiBasicTypeLoader
:
public
Object
,
public
ITypeLoader
{
public
:
void
Load
(
ITypeManager
*
manager
) { }
void
Unload
(
ITypeManager
*
manager
) { } };
#endif
bool
LoadGuiBasicTypes
() {
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
ITypeManager
*
manager
=
GetGlobalTypeManager
();
if
(
manager
) {
Ptr
<
ITypeLoader
>
loader
=
new
GuiBasicTypeLoader
;
return
manager
->
AddTypeLoader
(
loader
); }
#endif
return
false
; } } } }