mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-26 01:35:31 +08:00
...
This commit is contained in:
+227
-6
@@ -4,6 +4,212 @@ DEVELOPER: Zihan Chen(vczh)
|
|||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
#include "GacUI.h"
|
#include "GacUI.h"
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
GACUIREFLECTIONHELPER.CPP
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
namespace vl
|
||||||
|
{
|
||||||
|
namespace reflection
|
||||||
|
{
|
||||||
|
namespace description
|
||||||
|
{
|
||||||
|
using namespace parsing;
|
||||||
|
using namespace parsing::tabling;
|
||||||
|
using namespace parsing::xml;
|
||||||
|
using namespace stream;
|
||||||
|
using namespace collections;
|
||||||
|
using namespace presentation;
|
||||||
|
using namespace presentation::elements;
|
||||||
|
using namespace presentation::compositions;
|
||||||
|
using namespace presentation::controls;
|
||||||
|
using namespace presentation::theme;
|
||||||
|
using namespace presentation::templates;
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Serialization (Color)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
Color TypedValueSerializerProvider<Color>::GetDefaultValue()
|
||||||
|
{
|
||||||
|
return Color();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TypedValueSerializerProvider<Color>::Serialize(const Color& input, WString& output)
|
||||||
|
{
|
||||||
|
output = input.ToString();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TypedValueSerializerProvider<Color>::Deserialize(const WString& input, Color& output)
|
||||||
|
{
|
||||||
|
output = Color::Parse(input);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
IValueType::CompareResult TypedValueSerializerProvider<Color>::Compare(const presentation::Color& a, const presentation::Color& b)
|
||||||
|
{
|
||||||
|
return TypedValueSerializerProvider<vuint32_t>::Compare(a.value, b.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Serialization (DocumentFontSize)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
DocumentFontSize TypedValueSerializerProvider<DocumentFontSize>::GetDefaultValue()
|
||||||
|
{
|
||||||
|
return DocumentFontSize();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TypedValueSerializerProvider<DocumentFontSize>::Serialize(const DocumentFontSize& input, WString& output)
|
||||||
|
{
|
||||||
|
output = input.ToString();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TypedValueSerializerProvider<DocumentFontSize>::Deserialize(const WString& input, DocumentFontSize& output)
|
||||||
|
{
|
||||||
|
output = DocumentFontSize::Parse(input);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
IValueType::CompareResult TypedValueSerializerProvider<DocumentFontSize>::Compare(const presentation::DocumentFontSize& a, const presentation::DocumentFontSize& b)
|
||||||
|
{
|
||||||
|
return TypedValueSerializerProvider<WString>::Compare(a.ToString(), b.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Serialization (GlobalStringKey)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
GlobalStringKey TypedValueSerializerProvider<GlobalStringKey>::GetDefaultValue()
|
||||||
|
{
|
||||||
|
return GlobalStringKey();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TypedValueSerializerProvider<GlobalStringKey>::Serialize(const GlobalStringKey& input, WString& output)
|
||||||
|
{
|
||||||
|
output = input.ToString();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TypedValueSerializerProvider<GlobalStringKey>::Deserialize(const WString& input, GlobalStringKey& output)
|
||||||
|
{
|
||||||
|
output = GlobalStringKey::Get(input);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
IValueType::CompareResult TypedValueSerializerProvider<GlobalStringKey>::Compare(const presentation::GlobalStringKey& a, const presentation::GlobalStringKey& b)
|
||||||
|
{
|
||||||
|
return TypedValueSerializerProvider<WString>::Compare(a.ToString(), b.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
External Functions (Basic)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
GuiGraphicsAnimationManager* GuiControlHost_GetAnimationManager(GuiControlHost* thisObject)
|
||||||
|
{
|
||||||
|
return thisObject->GetGraphicsHost()->GetAnimationManager();
|
||||||
|
}
|
||||||
|
|
||||||
|
Ptr<INativeImage> INativeImage_Constructor(const WString& path)
|
||||||
|
{
|
||||||
|
return GetCurrentController()->ImageService()->CreateImageFromFile(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
INativeCursor* INativeCursor_Constructor1()
|
||||||
|
{
|
||||||
|
return GetCurrentController()->ResourceService()->GetDefaultSystemCursor();
|
||||||
|
}
|
||||||
|
|
||||||
|
INativeCursor* INativeCursor_Constructor2(INativeCursor::SystemCursorType type)
|
||||||
|
{
|
||||||
|
return GetCurrentController()->ResourceService()->GetSystemCursor(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ptr<DocumentModel> DocumentModel_Constructor(const WString& path)
|
||||||
|
{
|
||||||
|
FileStream fileStream(path, FileStream::ReadOnly);
|
||||||
|
if (!fileStream.IsAvailable()) return 0;
|
||||||
|
|
||||||
|
BomDecoder decoder;
|
||||||
|
DecoderStream decoderStream(fileStream, decoder);
|
||||||
|
StreamReader reader(decoderStream);
|
||||||
|
WString xmlText = reader.ReadToEnd();
|
||||||
|
|
||||||
|
Ptr<ParsingTable> table = XmlLoadTable();
|
||||||
|
Ptr<XmlDocument> xml = XmlParseDocument(xmlText, table);
|
||||||
|
if (!xml) return 0;
|
||||||
|
|
||||||
|
List<WString> errors;
|
||||||
|
return DocumentModel::LoadFromXml(xml, GetFolderPath(path), errors);
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
External Functions (Elements)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
text::TextLines* GuiColorizedTextElement_GetLines(GuiColorizedTextElement* thisObject)
|
||||||
|
{
|
||||||
|
return &thisObject->GetLines();
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
External Functions (Compositions)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
void GuiTableComposition_SetRows(GuiTableComposition* thisObject, vint value)
|
||||||
|
{
|
||||||
|
vint columns = thisObject->GetColumns();
|
||||||
|
if (columns <= 0) columns = 1;
|
||||||
|
thisObject->SetRowsAndColumns(value, columns);
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuiTableComposition_SetColumns(GuiTableComposition* thisObject, vint value)
|
||||||
|
{
|
||||||
|
vint row = thisObject->GetRows();
|
||||||
|
if (row <= 0) row = 1;
|
||||||
|
thisObject->SetRowsAndColumns(row, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void IGuiAltActionHost_CollectAltActions(IGuiAltActionHost* host, List<IGuiAltAction*>& actions)
|
||||||
|
{
|
||||||
|
Group<WString, IGuiAltAction*> group;
|
||||||
|
host->CollectAltActions(group);
|
||||||
|
for (vint i = 0; i < group.Count(); i++)
|
||||||
|
{
|
||||||
|
CopyFrom(actions, group.GetByIndex(i), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
External Functions (Controls)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
Ptr<ITheme> CreateWin7Theme()
|
||||||
|
{
|
||||||
|
return new win7::Win7Theme();
|
||||||
|
}
|
||||||
|
|
||||||
|
Ptr<ITheme> CreateWin8Theme()
|
||||||
|
{
|
||||||
|
return new win8::Win8Theme();
|
||||||
|
}
|
||||||
|
|
||||||
|
list::ListViewItemStyleProvider::IListViewItemContent* ListViewItemStyleProvider_GetItemContent(list::ListViewItemStyleProvider* thisObject, GuiListControl::IItemStyleController* itemStyleController)
|
||||||
|
{
|
||||||
|
return thisObject->GetItemContent<list::ListViewItemStyleProvider::IListViewItemContent>(itemStyleController);
|
||||||
|
}
|
||||||
|
|
||||||
|
list::StringGridProvider* GuiStringGrid_GetGrids(GuiStringGrid* grid)
|
||||||
|
{
|
||||||
|
return &grid->Grids();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
CONTROLS\GUIAPPLICATION.CPP
|
CONTROLS\GUIAPPLICATION.CPP
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -1967,7 +2173,7 @@ GuiSaveFileDialog
|
|||||||
GetHostWindow()->GetNativeWindow(),
|
GetHostWindow()->GetNativeWindow(),
|
||||||
fileNames,
|
fileNames,
|
||||||
filterIndex,
|
filterIndex,
|
||||||
(enabledPreview ? INativeDialogService::FileDialogOpenPreview : INativeDialogService::FileDialogOpen),
|
(enabledPreview ? INativeDialogService::FileDialogSavePreview : INativeDialogService::FileDialogSave),
|
||||||
title,
|
title,
|
||||||
fileName,
|
fileName,
|
||||||
directory,
|
directory,
|
||||||
@@ -4538,6 +4744,21 @@ namespace vl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WString GetValueText(Value& value)
|
||||||
|
{
|
||||||
|
if (auto td = value.GetTypeDescriptor())
|
||||||
|
{
|
||||||
|
if (auto st = td->GetSerializableType())
|
||||||
|
{
|
||||||
|
WString result;
|
||||||
|
st->Serialize(value, result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
return L"<" + td->GetTypeName() + L">";
|
||||||
|
}
|
||||||
|
return L"";
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
GuiBindableTextList::ItemSource
|
GuiBindableTextList::ItemSource
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -4673,7 +4894,7 @@ GuiBindableTextList::ItemSource
|
|||||||
{
|
{
|
||||||
if (0 <= itemIndex && itemIndex < itemSource->GetCount())
|
if (0 <= itemIndex && itemIndex < itemSource->GetCount())
|
||||||
{
|
{
|
||||||
return ReadProperty(itemSource->Get(itemIndex), textProperty).GetText();
|
return GetValueText(ReadProperty(itemSource->Get(itemIndex), textProperty));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return L"";
|
return L"";
|
||||||
@@ -4976,7 +5197,7 @@ GuiBindableListView::ItemSource
|
|||||||
{
|
{
|
||||||
if (0 <= itemIndex && itemIndex < itemSource->GetCount() && columns.Count()>0)
|
if (0 <= itemIndex && itemIndex < itemSource->GetCount() && columns.Count()>0)
|
||||||
{
|
{
|
||||||
return ReadProperty(itemSource->Get(itemIndex), columns[0]->GetTextProperty()).GetText();
|
return GetValueText(ReadProperty(itemSource->Get(itemIndex), columns[0]->GetTextProperty()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return L"";
|
return L"";
|
||||||
@@ -4988,7 +5209,7 @@ GuiBindableListView::ItemSource
|
|||||||
{
|
{
|
||||||
if (0 <= itemIndex && itemIndex < itemSource->GetCount() && 0 <= index && index < columns.Count() - 1)
|
if (0 <= itemIndex && itemIndex < itemSource->GetCount() && 0 <= index && index < columns.Count() - 1)
|
||||||
{
|
{
|
||||||
return ReadProperty(itemSource->Get(itemIndex), columns[index + 1]->GetTextProperty()).GetText();
|
return GetValueText(ReadProperty(itemSource->Get(itemIndex), columns[index + 1]->GetTextProperty()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return L"";
|
return L"";
|
||||||
@@ -5439,7 +5660,7 @@ GuiBindableTreeView::ItemSource
|
|||||||
{
|
{
|
||||||
if (auto itemSourceNode = dynamic_cast<ItemSourceNode*>(node))
|
if (auto itemSourceNode = dynamic_cast<ItemSourceNode*>(node))
|
||||||
{
|
{
|
||||||
return ReadProperty(itemSourceNode->GetItemSource(), textProperty).GetText();
|
return GetValueText(ReadProperty(itemSourceNode->GetItemSource(), textProperty));
|
||||||
}
|
}
|
||||||
return L"";
|
return L"";
|
||||||
}
|
}
|
||||||
@@ -5563,7 +5784,7 @@ GuiBindableDataColumn
|
|||||||
|
|
||||||
WString BindableDataColumn::GetCellText(vint row)
|
WString BindableDataColumn::GetCellText(vint row)
|
||||||
{
|
{
|
||||||
return GetCellValue(row).GetText();
|
return GetValueText(GetCellValue(row));
|
||||||
}
|
}
|
||||||
|
|
||||||
description::Value BindableDataColumn::GetCellValue(vint row)
|
description::Value BindableDataColumn::GetCellValue(vint row)
|
||||||
|
|||||||
+614
-526
File diff suppressed because it is too large
Load Diff
+350
-163
File diff suppressed because one or more lines are too long
+4
-32
@@ -809,6 +809,8 @@ WorkflowCompiler (Parser)
|
|||||||
extern Ptr<workflow::WfExpression> Workflow_ParseExpression(const WString& code, types::ErrorList& errors);
|
extern Ptr<workflow::WfExpression> Workflow_ParseExpression(const WString& code, types::ErrorList& errors);
|
||||||
extern Ptr<workflow::WfStatement> Workflow_ParseStatement(const WString& code, types::ErrorList& errors);
|
extern Ptr<workflow::WfStatement> Workflow_ParseStatement(const WString& code, types::ErrorList& errors);
|
||||||
extern WString Workflow_ModuleToString(Ptr<workflow::WfModule> module);
|
extern WString Workflow_ModuleToString(Ptr<workflow::WfModule> module);
|
||||||
|
extern Ptr<workflow::WfExpression> Workflow_ParseTextValue(description::ITypeDescriptor* typeDescriptor, const WString& textValue, types::ErrorList& errors);
|
||||||
|
extern Ptr<workflow::WfExpression> Workflow_CreateValue(const description::Value& value, types::ErrorList& errors);
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
WorkflowCompiler (Installation)
|
WorkflowCompiler (Installation)
|
||||||
@@ -902,33 +904,6 @@ namespace vl
|
|||||||
|
|
||||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Helper Functions
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
template<typename TStruct>
|
|
||||||
Value ParseConstantArgument(Ptr<WfExpression> value, const IGuiInstanceLoader::TypeInfo& typeInfo, const WString& propertyName, const WString& formatSample, collections::List<WString>& errors)
|
|
||||||
{
|
|
||||||
auto castExpr = value.Cast<WfTypeCastingExpression>();
|
|
||||||
if (!castExpr)
|
|
||||||
{
|
|
||||||
errors.Add(L"Precompile: The value of property \"" + propertyName + L"\" of type \"" + typeInfo.typeName.ToString() + L"\" should be a constant.");
|
|
||||||
}
|
|
||||||
auto stringExpr = castExpr->expression.Cast<WfStringExpression>();
|
|
||||||
if (!stringExpr)
|
|
||||||
{
|
|
||||||
errors.Add(L"Precompile: The value of property \"" + propertyName + L"\" of type \"" + typeInfo.typeName.ToString() + L"\" should be a constant.");
|
|
||||||
}
|
|
||||||
|
|
||||||
Value siteValue;
|
|
||||||
if (!description::GetTypeDescriptor<TStruct>()->GetValueSerializer()->Parse(stringExpr->value.value, siteValue))
|
|
||||||
{
|
|
||||||
errors.Add(L"Precompile: \"" + stringExpr->value.value + L"\" is not in a right format." + (formatSample == L"" ? WString() : L" It should be \"" + formatSample + L"\", in which components are all optional."));
|
|
||||||
}
|
|
||||||
|
|
||||||
return siteValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
GuiVrtualTypeInstanceLoader
|
GuiVrtualTypeInstanceLoader
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -1074,11 +1049,8 @@ GuiVrtualTypeInstanceLoader
|
|||||||
|
|
||||||
Ptr<ITypeInfo> controlTemplateType;
|
Ptr<ITypeInfo> controlTemplateType;
|
||||||
{
|
{
|
||||||
auto elementType = MakePtr<TypeInfoImpl>(ITypeInfo::TypeDescriptor);
|
auto elementType = MakePtr<TypeDescriptorTypeInfo>(controlTemplateTd, TypeInfoHint::Normal);
|
||||||
elementType->SetTypeDescriptor(controlTemplateTd);
|
auto pointerType = MakePtr<RawPtrTypeInfo>(elementType);
|
||||||
|
|
||||||
auto pointerType = MakePtr<TypeInfoImpl>(ITypeInfo::RawPtr);
|
|
||||||
pointerType->SetElementType(elementType);
|
|
||||||
|
|
||||||
controlTemplateType = pointerType;
|
controlTemplateType = pointerType;
|
||||||
}
|
}
|
||||||
|
|||||||
+55
-205
@@ -208,116 +208,20 @@ namespace vl
|
|||||||
|
|
||||||
GUIREFLECTIONBASIC_TYPELIST(IMPL_VL_TYPE_INFO)
|
GUIREFLECTIONBASIC_TYPELIST(IMPL_VL_TYPE_INFO)
|
||||||
|
|
||||||
GuiGraphicsAnimationManager* GuiControlHost_GetAnimationManager(GuiControlHost* thisObject)
|
|
||||||
{
|
|
||||||
return thisObject->GetGraphicsHost()->GetAnimationManager();
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Serialization (Color)
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
Color TypedValueSerializerProvider<Color>::GetDefaultValue()
|
|
||||||
{
|
|
||||||
return Color();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TypedValueSerializerProvider<Color>::Serialize(const Color& input, WString& output)
|
|
||||||
{
|
|
||||||
output=input.ToString();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TypedValueSerializerProvider<Color>::Deserialize(const WString& input, Color& output)
|
|
||||||
{
|
|
||||||
output=Color::Parse(input);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Serialization (DocumentFontSize)
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
DocumentFontSize TypedValueSerializerProvider<DocumentFontSize>::GetDefaultValue()
|
|
||||||
{
|
|
||||||
return DocumentFontSize();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TypedValueSerializerProvider<DocumentFontSize>::Serialize(const DocumentFontSize& input, WString& output)
|
|
||||||
{
|
|
||||||
output=input.ToString();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TypedValueSerializerProvider<DocumentFontSize>::Deserialize(const WString& input, DocumentFontSize& output)
|
|
||||||
{
|
|
||||||
output=DocumentFontSize::Parse(input);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Serialization (GlobalStringKey)
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
GlobalStringKey TypedValueSerializerProvider<GlobalStringKey>::GetDefaultValue()
|
|
||||||
{
|
|
||||||
return GlobalStringKey();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TypedValueSerializerProvider<GlobalStringKey>::Serialize(const GlobalStringKey& input, WString& output)
|
|
||||||
{
|
|
||||||
output=input.ToString();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TypedValueSerializerProvider<GlobalStringKey>::Deserialize(const WString& input, GlobalStringKey& output)
|
|
||||||
{
|
|
||||||
output = GlobalStringKey::Get(input);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
External Functions
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
Ptr<INativeImage> INativeImage_Constructor(const WString& path)
|
|
||||||
{
|
|
||||||
return GetCurrentController()->ImageService()->CreateImageFromFile(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
INativeCursor* INativeCursor_Constructor1()
|
|
||||||
{
|
|
||||||
return GetCurrentController()->ResourceService()->GetDefaultSystemCursor();
|
|
||||||
}
|
|
||||||
|
|
||||||
INativeCursor* INativeCursor_Constructor2(INativeCursor::SystemCursorType type)
|
|
||||||
{
|
|
||||||
return GetCurrentController()->ResourceService()->GetSystemCursor(type);
|
|
||||||
}
|
|
||||||
|
|
||||||
Ptr<DocumentModel> DocumentModel_Constructor(const WString& path)
|
|
||||||
{
|
|
||||||
FileStream fileStream(path, FileStream::ReadOnly);
|
|
||||||
if(!fileStream.IsAvailable()) return 0;
|
|
||||||
|
|
||||||
BomDecoder decoder;
|
|
||||||
DecoderStream decoderStream(fileStream, decoder);
|
|
||||||
StreamReader reader(decoderStream);
|
|
||||||
WString xmlText=reader.ReadToEnd();
|
|
||||||
|
|
||||||
Ptr<ParsingTable> table=XmlLoadTable();
|
|
||||||
Ptr<XmlDocument> xml=XmlParseDocument(xmlText, table);
|
|
||||||
if(!xml) return 0;
|
|
||||||
|
|
||||||
List<WString> errors;
|
|
||||||
return DocumentModel::LoadFromXml(xml, GetFolderPath(path), errors);
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Type Declaration
|
Type Declaration
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#define _ ,
|
#define _ ,
|
||||||
|
BEGIN_STRUCT_MEMBER(Color)
|
||||||
|
valueType = new SerializableValueType<Color>();
|
||||||
|
serializableType = new SerializableType<Color>();
|
||||||
|
STRUCT_MEMBER(r)
|
||||||
|
STRUCT_MEMBER(g)
|
||||||
|
STRUCT_MEMBER(b)
|
||||||
|
STRUCT_MEMBER(a)
|
||||||
|
STRUCT_MEMBER(value)
|
||||||
|
END_STRUCT_MEMBER(Color)
|
||||||
|
|
||||||
BEGIN_ENUM_ITEM(Alignment)
|
BEGIN_ENUM_ITEM(Alignment)
|
||||||
ENUM_CLASS_ITEM(Left)
|
ENUM_CLASS_ITEM(Left)
|
||||||
@@ -383,6 +287,11 @@ Type Declaration
|
|||||||
STRUCT_MEMBER(verticalAntialias)
|
STRUCT_MEMBER(verticalAntialias)
|
||||||
END_STRUCT_MEMBER(FontProperties)
|
END_STRUCT_MEMBER(FontProperties)
|
||||||
|
|
||||||
|
BEGIN_STRUCT_MEMBER_FLAG(GlobalStringKey, TypeDescriptorFlags::Primitive)
|
||||||
|
valueType = new SerializableValueType<GlobalStringKey>();
|
||||||
|
serializableType = new SerializableType<GlobalStringKey>();
|
||||||
|
END_STRUCT_MEMBER(GlobalStringKey)
|
||||||
|
|
||||||
BEGIN_INTERFACE_MEMBER_NOPROXY(INativeImageFrame)
|
BEGIN_INTERFACE_MEMBER_NOPROXY(INativeImageFrame)
|
||||||
CLASS_MEMBER_METHOD(GetImage, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetImage, NO_PARAMETER)
|
||||||
CLASS_MEMBER_METHOD(GetSize, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetSize, NO_PARAMETER)
|
||||||
@@ -392,7 +301,7 @@ Type Declaration
|
|||||||
CLASS_MEMBER_METHOD(GetFormat, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetFormat, NO_PARAMETER)
|
||||||
CLASS_MEMBER_METHOD(GetFrameCount, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetFrameCount, NO_PARAMETER)
|
||||||
CLASS_MEMBER_METHOD(GetFrame, {L"index"})
|
CLASS_MEMBER_METHOD(GetFrame, {L"index"})
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<INativeImage>(const WString&), {L"filePath"}, &INativeImage_Constructor)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<INativeImage>(const WString&), {L"filePath"}, vl::reflection::description::INativeImage_Constructor)
|
||||||
END_INTERFACE_MEMBER(INativeImage)
|
END_INTERFACE_MEMBER(INativeImage)
|
||||||
|
|
||||||
BEGIN_ENUM_ITEM(INativeImage::FormatType)
|
BEGIN_ENUM_ITEM(INativeImage::FormatType)
|
||||||
@@ -410,8 +319,8 @@ Type Declaration
|
|||||||
BEGIN_INTERFACE_MEMBER_NOPROXY(INativeCursor)
|
BEGIN_INTERFACE_MEMBER_NOPROXY(INativeCursor)
|
||||||
CLASS_MEMBER_METHOD(IsSystemCursor, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(IsSystemCursor, NO_PARAMETER)
|
||||||
CLASS_MEMBER_METHOD(GetSystemCursorType, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetSystemCursorType, NO_PARAMETER)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(INativeCursor*(), NO_PARAMETER, &INativeCursor_Constructor1)
|
CLASS_MEMBER_EXTERNALCTOR(INativeCursor*(), NO_PARAMETER, vl::reflection::description::INativeCursor_Constructor1)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(INativeCursor*(INativeCursor::SystemCursorType), NO_PARAMETER, &INativeCursor_Constructor2)
|
CLASS_MEMBER_EXTERNALCTOR(INativeCursor*(INativeCursor::SystemCursorType), NO_PARAMETER, vl::reflection::description::INativeCursor_Constructor2)
|
||||||
END_INTERFACE_MEMBER(INativeCursor)
|
END_INTERFACE_MEMBER(INativeCursor)
|
||||||
|
|
||||||
BEGIN_ENUM_ITEM(INativeCursor::SystemCursorType)
|
BEGIN_ENUM_ITEM(INativeCursor::SystemCursorType)
|
||||||
@@ -623,7 +532,7 @@ Type Declaration
|
|||||||
END_ENUM_ITEM(INativeDialogService::FileDialogOptions)
|
END_ENUM_ITEM(INativeDialogService::FileDialogOptions)
|
||||||
|
|
||||||
BEGIN_INTERFACE_MEMBER_NOPROXY(INativeController)
|
BEGIN_INTERFACE_MEMBER_NOPROXY(INativeController)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetCurrentController, NO_PARAMETER, INativeController*(*)(), &GetCurrentController)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetCurrentController, NO_PARAMETER, INativeController*(*)(), vl::reflection::description::GetCurrentController)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(OSVersion)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(OSVersion)
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ExecutablePath)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ExecutablePath)
|
||||||
@@ -653,6 +562,13 @@ Type Declaration
|
|||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(Text)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(Text)
|
||||||
END_CLASS_MEMBER(GuiTextData)
|
END_CLASS_MEMBER(GuiTextData)
|
||||||
|
|
||||||
|
BEGIN_STRUCT_MEMBER(DocumentFontSize)
|
||||||
|
valueType = new SerializableValueType<DocumentFontSize>();
|
||||||
|
serializableType = new SerializableType<DocumentFontSize>();
|
||||||
|
STRUCT_MEMBER(size)
|
||||||
|
STRUCT_MEMBER(relative)
|
||||||
|
END_STRUCT_MEMBER(DocumentFontSize)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(DocumentStyleProperties)
|
BEGIN_CLASS_MEMBER(DocumentStyleProperties)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(Ptr<DocumentStyleProperties>(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(Ptr<DocumentStyleProperties>(), NO_PARAMETER)
|
||||||
@@ -755,7 +671,7 @@ Type Declaration
|
|||||||
END_CLASS_MEMBER(DocumentStyle)
|
END_CLASS_MEMBER(DocumentStyle)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(DocumentModel)
|
BEGIN_CLASS_MEMBER(DocumentModel)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<DocumentModel>(const WString&), {L"filePath"}, &DocumentModel_Constructor)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<DocumentModel>(const WString&), {L"filePath"}, vl::reflection::description::DocumentModel_Constructor)
|
||||||
|
|
||||||
CLASS_MEMBER_FIELD(paragraphs)
|
CLASS_MEMBER_FIELD(paragraphs)
|
||||||
CLASS_MEMBER_FIELD(styles)
|
CLASS_MEMBER_FIELD(styles)
|
||||||
@@ -807,7 +723,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiResource)
|
BEGIN_CLASS_MEMBER(GuiResource)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(Ptr<GuiResource>(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(Ptr<GuiResource>(), NO_PARAMETER)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiResource>(const WString&, List<WString>&), {L"filePath" _ L"errors"}, &GuiResource::LoadFromXml);
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiResource>(const WString&, List<WString>&), {L"filePath" _ L"errors"}, vl::presentation::GuiResource::LoadFromXml);
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(WorkingDirectory)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(WorkingDirectory)
|
||||||
|
|
||||||
@@ -828,8 +744,8 @@ Type Declaration
|
|||||||
ENUM_CLASS_ITEM(Application)
|
ENUM_CLASS_ITEM(Application)
|
||||||
END_ENUM_ITEM(GuiResourceUsage)
|
END_ENUM_ITEM(GuiResourceUsage)
|
||||||
|
|
||||||
BEGIN_INTERFACE_MEMBER_NOPROXY(IGuiResourceManager)
|
BEGIN_INTERFACE_MEMBER_NOPROXY(IGuiResourceManager)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetResourceManager, NO_PARAMETER, IGuiResourceManager*(*)(), &GetResourceManager)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetResourceManager, NO_PARAMETER, IGuiResourceManager*(*)(), vl::presentation::GetResourceManager)
|
||||||
CLASS_MEMBER_METHOD(SetResource, { L"name" _ L"resource" _ L"usage" })
|
CLASS_MEMBER_METHOD(SetResource, { L"name" _ L"resource" _ L"usage" })
|
||||||
CLASS_MEMBER_METHOD(GetResource, { L"name" })
|
CLASS_MEMBER_METHOD(GetResource, { L"name" })
|
||||||
CLASS_MEMBER_METHOD(GetResourceFromClassName, { L"name" })
|
CLASS_MEMBER_METHOD(GetResourceFromClassName, { L"name" })
|
||||||
@@ -1083,10 +999,6 @@ namespace vl
|
|||||||
namespace description
|
namespace description
|
||||||
{
|
{
|
||||||
using namespace collections;
|
using namespace collections;
|
||||||
using namespace parsing;
|
|
||||||
using namespace parsing::tabling;
|
|
||||||
using namespace parsing::xml;
|
|
||||||
using namespace stream;
|
|
||||||
using namespace presentation;
|
using namespace presentation;
|
||||||
using namespace presentation::compositions;
|
using namespace presentation::compositions;
|
||||||
|
|
||||||
@@ -1094,34 +1006,6 @@ namespace vl
|
|||||||
|
|
||||||
GUIREFLECTIONCOMPOSITION_TYPELIST(IMPL_VL_TYPE_INFO)
|
GUIREFLECTIONCOMPOSITION_TYPELIST(IMPL_VL_TYPE_INFO)
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
External Functions
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
void GuiTableComposition_SetRows(GuiTableComposition* thisObject, vint value)
|
|
||||||
{
|
|
||||||
vint columns=thisObject->GetColumns();
|
|
||||||
if(columns<=0) columns=1;
|
|
||||||
thisObject->SetRowsAndColumns(value, columns);
|
|
||||||
}
|
|
||||||
|
|
||||||
void GuiTableComposition_SetColumns(GuiTableComposition* thisObject, vint value)
|
|
||||||
{
|
|
||||||
vint row=thisObject->GetRows();
|
|
||||||
if(row<=0) row=1;
|
|
||||||
thisObject->SetRowsAndColumns(row, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
void IGuiAltActionHost_CollectAltActions(IGuiAltActionHost* host, List<IGuiAltAction*>& actions)
|
|
||||||
{
|
|
||||||
Group<WString, IGuiAltAction*> group;
|
|
||||||
host->CollectAltActions(group);
|
|
||||||
for (vint i = 0; i < group.Count(); i++)
|
|
||||||
{
|
|
||||||
CopyFrom(actions, group.GetByIndex(i), true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Type Declaration
|
Type Declaration
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -1129,7 +1013,7 @@ Type Declaration
|
|||||||
#define _ ,
|
#define _ ,
|
||||||
|
|
||||||
#define INTERFACE_IDENTIFIER(INTERFACE)\
|
#define INTERFACE_IDENTIFIER(INTERFACE)\
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetIdentifier, NO_PARAMETER, WString(*)(), []()->WString{return INTERFACE::Identifier;})
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetIdentifier, NO_PARAMETER, WString(*)(), vl::reflection::description::Interface_GetIdentifier<INTERFACE>)
|
||||||
|
|
||||||
BEGIN_ENUM_ITEM(KeyDirection)
|
BEGIN_ENUM_ITEM(KeyDirection)
|
||||||
ENUM_CLASS_ITEM(Up)
|
ENUM_CLASS_ITEM(Up)
|
||||||
@@ -1222,10 +1106,10 @@ Type Declaration
|
|||||||
CLASS_MEMBER_PROPERTY_FAST(BorderVisible)
|
CLASS_MEMBER_PROPERTY_FAST(BorderVisible)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(GetRows, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetRows, NO_PARAMETER)
|
||||||
CLASS_MEMBER_EXTERNALMETHOD(SetRows, {L"value"}, void(GuiTableComposition::*)(vint), &GuiTableComposition_SetRows)
|
CLASS_MEMBER_EXTERNALMETHOD(SetRows, {L"value"}, void(GuiTableComposition::*)(vint), vl::reflection::description::GuiTableComposition_SetRows)
|
||||||
CLASS_MEMBER_PROPERTY(Rows, GetRows, SetRows)
|
CLASS_MEMBER_PROPERTY(Rows, GetRows, SetRows)
|
||||||
CLASS_MEMBER_METHOD(GetColumns, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetColumns, NO_PARAMETER)
|
||||||
CLASS_MEMBER_EXTERNALMETHOD(SetColumns, {L"value"}, void(GuiTableComposition::*)(vint), &GuiTableComposition_SetColumns)
|
CLASS_MEMBER_EXTERNALMETHOD(SetColumns, {L"value"}, void(GuiTableComposition::*)(vint), vl::reflection::description::GuiTableComposition_SetColumns)
|
||||||
CLASS_MEMBER_PROPERTY(Columns, GetColumns, SetColumns)
|
CLASS_MEMBER_PROPERTY(Columns, GetColumns, SetColumns)
|
||||||
CLASS_MEMBER_METHOD(SetRowsAndColumns, {L"rows" _ L"columns"})
|
CLASS_MEMBER_METHOD(SetRowsAndColumns, {L"rows" _ L"columns"})
|
||||||
|
|
||||||
@@ -1413,7 +1297,7 @@ Type Declaration
|
|||||||
|
|
||||||
CLASS_MEMBER_METHOD(OnActivatedAltHost, { L"previousHost" })
|
CLASS_MEMBER_METHOD(OnActivatedAltHost, { L"previousHost" })
|
||||||
CLASS_MEMBER_METHOD(OnDeactivatedAltHost, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(OnDeactivatedAltHost, NO_PARAMETER)
|
||||||
CLASS_MEMBER_EXTERNALMETHOD(CollectAltActions, {L"actions"}, void(IGuiAltActionHost::*)(List<IGuiAltAction*>&), &IGuiAltActionHost_CollectAltActions)
|
CLASS_MEMBER_EXTERNALMETHOD(CollectAltActions, {L"actions"}, void(IGuiAltActionHost::*)(List<IGuiAltAction*>&), vl::reflection::description::IGuiAltActionHost_CollectAltActions)
|
||||||
END_INTERFACE_MEMBER(IGuiAltActionHost)
|
END_INTERFACE_MEMBER(IGuiAltActionHost)
|
||||||
|
|
||||||
#undef INTERFACE_EXTERNALCTOR
|
#undef INTERFACE_EXTERNALCTOR
|
||||||
@@ -1482,25 +1366,6 @@ namespace vl
|
|||||||
|
|
||||||
GUIREFLECTIONCONTROLS_TYPELIST(IMPL_VL_TYPE_INFO)
|
GUIREFLECTIONCONTROLS_TYPELIST(IMPL_VL_TYPE_INFO)
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
External Functions
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
Ptr<ITheme> CreateWin7Theme()
|
|
||||||
{
|
|
||||||
return new win7::Win7Theme();
|
|
||||||
}
|
|
||||||
|
|
||||||
Ptr<ITheme> CreateWin8Theme()
|
|
||||||
{
|
|
||||||
return new win8::Win8Theme();
|
|
||||||
}
|
|
||||||
|
|
||||||
ListViewItemStyleProvider::IListViewItemContent* ListViewItemStyleProvider_GetItemContent(ListViewItemStyleProvider* thisObject, GuiListControl::IItemStyleController* itemStyleController)
|
|
||||||
{
|
|
||||||
return thisObject->GetItemContent<ListViewItemStyleProvider::IListViewItemContent>(itemStyleController);
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Type Declaration
|
Type Declaration
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -1517,10 +1382,10 @@ Type Declaration
|
|||||||
CLASS_MEMBER_CONSTRUCTOR(CONTROL*(CONTROL::IStyleProvider*), {L"styleProvider"})
|
CLASS_MEMBER_CONSTRUCTOR(CONTROL*(CONTROL::IStyleProvider*), {L"styleProvider"})
|
||||||
|
|
||||||
#define INTERFACE_IDENTIFIER(INTERFACE)\
|
#define INTERFACE_IDENTIFIER(INTERFACE)\
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetIdentifier, NO_PARAMETER, WString(*)(), []()->WString{return INTERFACE::Identifier;})
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetIdentifier, NO_PARAMETER, WString(*)(), vl::reflection::description::Interface_GetIdentifier<INTERFACE>)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiApplication)
|
BEGIN_CLASS_MEMBER(GuiApplication)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetApplication, NO_PARAMETER, GuiApplication*(*)(), &GetApplication)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetApplication, NO_PARAMETER, GuiApplication*(*)(), vl::presentation::controls::GetApplication)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(MainWindow)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(MainWindow)
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(TooltipOwner)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(TooltipOwner)
|
||||||
@@ -1540,10 +1405,10 @@ Type Declaration
|
|||||||
END_CLASS_MEMBER(GuiApplication)
|
END_CLASS_MEMBER(GuiApplication)
|
||||||
|
|
||||||
BEGIN_INTERFACE_MEMBER_NOPROXY(ITheme)
|
BEGIN_INTERFACE_MEMBER_NOPROXY(ITheme)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetCurrentTheme, NO_PARAMETER, ITheme*(*)(), &GetCurrentTheme)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(GetCurrentTheme, NO_PARAMETER, ITheme*(*)(), vl::presentation::theme::GetCurrentTheme)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(SetCurrentTheme, {L"theme"}, void(*)(ITheme*), &SetCurrentTheme)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(SetCurrentTheme, {L"theme"}, void(*)(ITheme*), vl::presentation::theme::SetCurrentTheme)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(CreateWin7Theme, NO_PARAMETER, Ptr<ITheme>(*)(), &CreateWin7Theme)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(CreateWin7Theme, NO_PARAMETER, Ptr<ITheme>(*)(), vl::reflection::description::CreateWin7Theme)
|
||||||
CLASS_MEMBER_STATIC_EXTERNALMETHOD(CreateWin8Theme, NO_PARAMETER, Ptr<ITheme>(*)(), &CreateWin8Theme)
|
CLASS_MEMBER_STATIC_EXTERNALMETHOD(CreateWin8Theme, NO_PARAMETER, Ptr<ITheme>(*)(), vl::reflection::description::CreateWin8Theme)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(CreateWindowStyle, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(CreateWindowStyle, NO_PARAMETER)
|
||||||
CLASS_MEMBER_METHOD(CreateCustomControlStyle, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(CreateCustomControlStyle, NO_PARAMETER)
|
||||||
@@ -1795,7 +1660,7 @@ Type Declaration
|
|||||||
BEGIN_CLASS_MEMBER(GuiTab)
|
BEGIN_CLASS_MEMBER(GuiTab)
|
||||||
CLASS_MEMBER_BASE(GuiControl)
|
CLASS_MEMBER_BASE(GuiControl)
|
||||||
CONTROL_CONSTRUCTOR_CONTROLLER(GuiTab)
|
CONTROL_CONSTRUCTOR_CONTROLLER(GuiTab)
|
||||||
CONTROL_CONSTRUCTOR_DEFAULT(GuiTab, &g::NewTab)
|
CONTROL_CONSTRUCTOR_DEFAULT(GuiTab, vl::presentation::theme::g::NewTab)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_GUIEVENT_FAST(SelectedPage)
|
CLASS_MEMBER_PROPERTY_GUIEVENT_FAST(SelectedPage)
|
||||||
|
|
||||||
@@ -2179,7 +2044,7 @@ Type Declaration
|
|||||||
CLASS_MEMBER_METHOD(IsItemStyleAttachedToListView, {L"itemStyle"})
|
CLASS_MEMBER_METHOD(IsItemStyleAttachedToListView, {L"itemStyle"})
|
||||||
CLASS_MEMBER_METHOD(GetItemContentFromItemStyleController, {L"itemStyleController"})
|
CLASS_MEMBER_METHOD(GetItemContentFromItemStyleController, {L"itemStyleController"})
|
||||||
CLASS_MEMBER_METHOD(GetItemStyleControllerFromItemContent, {L"itemContent"})
|
CLASS_MEMBER_METHOD(GetItemStyleControllerFromItemContent, {L"itemContent"})
|
||||||
CLASS_MEMBER_EXTERNALMETHOD(GetItemContent, {L"itemStyleController"}, ListViewItemStyleProvider::IListViewItemContent*(ListViewItemStyleProvider::*)(GuiListControl::IItemStyleController*), &ListViewItemStyleProvider_GetItemContent)
|
CLASS_MEMBER_EXTERNALMETHOD(GetItemContent, {L"itemStyleController"}, ListViewItemStyleProvider::IListViewItemContent*(ListViewItemStyleProvider::*)(GuiListControl::IItemStyleController*), vl::presentation::description::ListViewItemStyleProvider_GetItemContent)
|
||||||
END_CLASS_MEMBER(ListViewItemStyleProvider)
|
END_CLASS_MEMBER(ListViewItemStyleProvider)
|
||||||
|
|
||||||
BEGIN_INTERFACE_MEMBER(ListViewItemStyleProvider::IListViewItemView)
|
BEGIN_INTERFACE_MEMBER(ListViewItemStyleProvider::IListViewItemView)
|
||||||
@@ -3155,7 +3020,7 @@ Type Declaration
|
|||||||
CLASS_MEMBER_BASE(GuiVirtualDataGrid)
|
CLASS_MEMBER_BASE(GuiVirtualDataGrid)
|
||||||
CONTROL_CONSTRUCTOR_PROVIDER(GuiStringGrid)
|
CONTROL_CONSTRUCTOR_PROVIDER(GuiStringGrid)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD_RENAME(GetGrids, Grids, NO_PARAMETER)
|
CLASS_MEMBER_EXTERNALMETHOD(GetGrids, NO_PARAMETER, StringGridProvider*(GuiStringGrid::*)(), vl::reflection::description::GuiStringGrid_GetGrids)
|
||||||
CLASS_MEMBER_PROPERTY_READONLY(Grids, GetGrids)
|
CLASS_MEMBER_PROPERTY_READONLY(Grids, GetGrids)
|
||||||
END_CLASS_MEMBER(GuiStringGrid)
|
END_CLASS_MEMBER(GuiStringGrid)
|
||||||
|
|
||||||
@@ -3292,21 +3157,6 @@ namespace vl
|
|||||||
|
|
||||||
GUIREFLECTIONELEMENT_TYPELIST(IMPL_VL_TYPE_INFO)
|
GUIREFLECTIONELEMENT_TYPELIST(IMPL_VL_TYPE_INFO)
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
External Functions
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
Ptr<T> Element_Constructor()
|
|
||||||
{
|
|
||||||
return T::Create();
|
|
||||||
}
|
|
||||||
|
|
||||||
text::TextLines* GuiColorizedTextElement_GetLines(GuiColorizedTextElement* thisObject)
|
|
||||||
{
|
|
||||||
return &thisObject->GetLines();
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Type Declaration
|
Type Declaration
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -3336,7 +3186,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiSolidBorderElement)
|
BEGIN_CLASS_MEMBER(GuiSolidBorderElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiSolidBorderElement>(), NO_PARAMETER, &Element_Constructor<GuiSolidBorderElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiSolidBorderElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiSolidBorderElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Color)
|
CLASS_MEMBER_PROPERTY_FAST(Color)
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Shape)
|
CLASS_MEMBER_PROPERTY_FAST(Shape)
|
||||||
@@ -3344,7 +3194,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiRoundBorderElement)
|
BEGIN_CLASS_MEMBER(GuiRoundBorderElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiRoundBorderElement>(), NO_PARAMETER, &Element_Constructor<GuiRoundBorderElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiRoundBorderElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiRoundBorderElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Color)
|
CLASS_MEMBER_PROPERTY_FAST(Color)
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Radius)
|
CLASS_MEMBER_PROPERTY_FAST(Radius)
|
||||||
@@ -3352,7 +3202,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(Gui3DBorderElement)
|
BEGIN_CLASS_MEMBER(Gui3DBorderElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<Gui3DBorderElement>(), NO_PARAMETER, &Element_Constructor<Gui3DBorderElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<Gui3DBorderElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<Gui3DBorderElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(SetColors, {L"value1" _ L"value2"})
|
CLASS_MEMBER_METHOD(SetColors, {L"value1" _ L"value2"})
|
||||||
|
|
||||||
@@ -3362,7 +3212,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(Gui3DSplitterElement)
|
BEGIN_CLASS_MEMBER(Gui3DSplitterElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<Gui3DSplitterElement>(), NO_PARAMETER, &Element_Constructor<Gui3DSplitterElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<Gui3DSplitterElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<Gui3DSplitterElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(SetColors, {L"value1" _ L"value2"})
|
CLASS_MEMBER_METHOD(SetColors, {L"value1" _ L"value2"})
|
||||||
|
|
||||||
@@ -3379,7 +3229,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiSolidBackgroundElement)
|
BEGIN_CLASS_MEMBER(GuiSolidBackgroundElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiSolidBackgroundElement>(), NO_PARAMETER, &Element_Constructor<GuiSolidBackgroundElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiSolidBackgroundElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiSolidBackgroundElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Color)
|
CLASS_MEMBER_PROPERTY_FAST(Color)
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Shape)
|
CLASS_MEMBER_PROPERTY_FAST(Shape)
|
||||||
@@ -3387,7 +3237,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiGradientBackgroundElement)
|
BEGIN_CLASS_MEMBER(GuiGradientBackgroundElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiGradientBackgroundElement>(), NO_PARAMETER, &Element_Constructor<GuiGradientBackgroundElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiGradientBackgroundElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiGradientBackgroundElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(SetColors, {L"value1" _ L"value2"})
|
CLASS_MEMBER_METHOD(SetColors, {L"value1" _ L"value2"})
|
||||||
|
|
||||||
@@ -3405,7 +3255,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiSolidLabelElement)
|
BEGIN_CLASS_MEMBER(GuiSolidLabelElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiSolidLabelElement>(), NO_PARAMETER, &Element_Constructor<GuiSolidLabelElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiSolidLabelElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiSolidLabelElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(SetAlignments, {L"horizontal" _ L"vertical"})
|
CLASS_MEMBER_METHOD(SetAlignments, {L"horizontal" _ L"vertical"})
|
||||||
|
|
||||||
@@ -3422,7 +3272,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiImageFrameElement)
|
BEGIN_CLASS_MEMBER(GuiImageFrameElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiImageFrameElement>(), NO_PARAMETER, &Element_Constructor<GuiImageFrameElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiImageFrameElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiImageFrameElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(GetImage, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(GetImage, NO_PARAMETER)
|
||||||
CLASS_MEMBER_METHOD_OVERLOAD(SetImage, {L"value"}, void(GuiImageFrameElement::*)(Ptr<INativeImage>))
|
CLASS_MEMBER_METHOD_OVERLOAD(SetImage, {L"value"}, void(GuiImageFrameElement::*)(Ptr<INativeImage>))
|
||||||
@@ -3438,7 +3288,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiPolygonElement)
|
BEGIN_CLASS_MEMBER(GuiPolygonElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiPolygonElement>(), NO_PARAMETER, &Element_Constructor<GuiPolygonElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiPolygonElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiPolygonElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD_RENAME(GetPoints, GetPointsArray, NO_PARAMETER);
|
CLASS_MEMBER_METHOD_RENAME(GetPoints, GetPointsArray, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD_RENAME(SetPoints, SetPointsArray, {L"points"});
|
CLASS_MEMBER_METHOD_RENAME(SetPoints, SetPointsArray, {L"points"});
|
||||||
@@ -3485,7 +3335,7 @@ Type Declaration
|
|||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiColorizedTextElement)
|
BEGIN_CLASS_MEMBER(GuiColorizedTextElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiColorizedTextElement>(), NO_PARAMETER, &Element_Constructor<GuiColorizedTextElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiColorizedTextElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiColorizedTextElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Font)
|
CLASS_MEMBER_PROPERTY_FAST(Font)
|
||||||
CLASS_MEMBER_PROPERTY_FAST(PasswordChar)
|
CLASS_MEMBER_PROPERTY_FAST(PasswordChar)
|
||||||
@@ -3497,14 +3347,14 @@ Type Declaration
|
|||||||
CLASS_MEMBER_PROPERTY_FAST(CaretVisible)
|
CLASS_MEMBER_PROPERTY_FAST(CaretVisible)
|
||||||
CLASS_MEMBER_PROPERTY_FAST(CaretColor)
|
CLASS_MEMBER_PROPERTY_FAST(CaretColor)
|
||||||
|
|
||||||
CLASS_MEMBER_EXTERNALMETHOD(GetLines, NO_PARAMETER, text::TextLines*(GuiColorizedTextElement::*)(), &GuiColorizedTextElement_GetLines)
|
CLASS_MEMBER_EXTERNALMETHOD(GetLines, NO_PARAMETER, text::TextLines*(GuiColorizedTextElement::*)(), vl::reflection::description::GuiColorizedTextElement_GetLines)
|
||||||
CLASS_MEMBER_PROPERTY_READONLY(Lines, GetLines)
|
CLASS_MEMBER_PROPERTY_READONLY(Lines, GetLines)
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Colors)
|
CLASS_MEMBER_PROPERTY_FAST(Colors)
|
||||||
END_CLASS_MEMBER(GuiColorizedTextElement)
|
END_CLASS_MEMBER(GuiColorizedTextElement)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(GuiDocumentElement)
|
BEGIN_CLASS_MEMBER(GuiDocumentElement)
|
||||||
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
CLASS_MEMBER_BASE(IGuiGraphicsElement)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiDocumentElement>(), NO_PARAMETER, &Element_Constructor<GuiDocumentElement>)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiDocumentElement>(), NO_PARAMETER, vl::reflection::description::Element_Constructor<GuiDocumentElement>)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_FAST(Document)
|
CLASS_MEMBER_PROPERTY_FAST(Document)
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(CaretBegin)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(CaretBegin)
|
||||||
@@ -3805,7 +3655,7 @@ Type Declaration
|
|||||||
END_CLASS_MEMBER(GuiTemplate)
|
END_CLASS_MEMBER(GuiTemplate)
|
||||||
|
|
||||||
BEGIN_INTERFACE_MEMBER(GuiTemplate::IFactory)
|
BEGIN_INTERFACE_MEMBER(GuiTemplate::IFactory)
|
||||||
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiTemplate::IFactory>(const List<ITypeDescriptor*>&), { L"types" }, &GuiTemplate::IFactory::CreateTemplateFactory)
|
CLASS_MEMBER_EXTERNALCTOR(Ptr<GuiTemplate::IFactory>(const List<ITypeDescriptor*>&), { L"types" }, vl::presentation::templates::GuiTemplate::IFactory::CreateTemplateFactory)
|
||||||
|
|
||||||
CLASS_MEMBER_METHOD(CreateTemplate, NO_PARAMETER)
|
CLASS_MEMBER_METHOD(CreateTemplate, NO_PARAMETER)
|
||||||
END_INTERFACE_MEMBER(GuiTemplate::IFactory)
|
END_INTERFACE_MEMBER(GuiTemplate::IFactory)
|
||||||
|
|||||||
@@ -110,63 +110,6 @@ Type List
|
|||||||
|
|
||||||
GUIREFLECTIONBASIC_TYPELIST(DECL_TYPE_INFO)
|
GUIREFLECTIONBASIC_TYPELIST(DECL_TYPE_INFO)
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Serialization (Color)
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct TypedValueSerializerProvider<presentation::Color>
|
|
||||||
{
|
|
||||||
static presentation::Color GetDefaultValue();
|
|
||||||
static bool Serialize(const presentation::Color& input, WString& output);
|
|
||||||
static bool Deserialize(const WString& input, presentation::Color& output);
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct CustomTypeDescriptorSelector<presentation::Color>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef SerializableTypeDescriptor<TypedDefaultValueSerializer<presentation::Color>, TypeDescriptorFlags::Primitive> CustomTypeDescriptorImpl;
|
|
||||||
};
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Serialization (DocumentFontSize)
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct TypedValueSerializerProvider<presentation::DocumentFontSize>
|
|
||||||
{
|
|
||||||
static presentation::DocumentFontSize GetDefaultValue();
|
|
||||||
static bool Serialize(const presentation::DocumentFontSize& input, WString& output);
|
|
||||||
static bool Deserialize(const WString& input, presentation::DocumentFontSize& output);
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct CustomTypeDescriptorSelector<presentation::DocumentFontSize>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef SerializableTypeDescriptor<TypedDefaultValueSerializer<presentation::DocumentFontSize>, TypeDescriptorFlags::Primitive> CustomTypeDescriptorImpl;
|
|
||||||
};
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
Serialization (GlobalStringKey)
|
|
||||||
***********************************************************************/
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct TypedValueSerializerProvider<presentation::GlobalStringKey>
|
|
||||||
{
|
|
||||||
static presentation::GlobalStringKey GetDefaultValue();
|
|
||||||
static bool Serialize(const presentation::GlobalStringKey& input, WString& output);
|
|
||||||
static bool Deserialize(const WString& input, presentation::GlobalStringKey& output);
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct CustomTypeDescriptorSelector<presentation::GlobalStringKey>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
typedef SerializableTypeDescriptor<TypedDefaultValueSerializer<presentation::GlobalStringKey>, TypeDescriptorFlags::Primitive> CustomTypeDescriptorImpl;
|
|
||||||
};
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Interface Proxy
|
Interface Proxy
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -2296,6 +2239,11 @@ GuiEventInfoImpl
|
|||||||
~GuiEventInfoImpl()
|
~GuiEventInfoImpl()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ICpp* GetCpp()override
|
||||||
|
{
|
||||||
|
throw 0;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
@@ -2352,14 +2300,15 @@ Macros
|
|||||||
#define GUIEVENT_HANDLER_PARAMETERS {L"sender", L"arguments"}
|
#define GUIEVENT_HANDLER_PARAMETERS {L"sender", L"arguments"}
|
||||||
|
|
||||||
#define CLASS_MEMBER_GUIEVENT_HANDLER(FUNCTIONNAME, ARGUMENTTYPE)\
|
#define CLASS_MEMBER_GUIEVENT_HANDLER(FUNCTIONNAME, ARGUMENTTYPE)\
|
||||||
CLASS_MEMBER_EXTERNALMETHOD(\
|
CLASS_MEMBER_EXTERNALMETHOD_INVOKETEMPLATE(\
|
||||||
FUNCTIONNAME,\
|
FUNCTIONNAME,\
|
||||||
GUIEVENT_HANDLER_PARAMETERS,\
|
GUIEVENT_HANDLER_PARAMETERS,\
|
||||||
void(ClassType::*)(vl::presentation::compositions::GuiGraphicsComposition*, ARGUMENTTYPE*),\
|
void(ClassType::*)(vl::presentation::compositions::GuiGraphicsComposition*, ARGUMENTTYPE*),\
|
||||||
[](ClassType* owner, vl::presentation::compositions::GuiGraphicsComposition* sender, ARGUMENTTYPE* arguments)\
|
[](ClassType* owner, vl::presentation::compositions::GuiGraphicsComposition* sender, ARGUMENTTYPE* arguments)\
|
||||||
{\
|
{\
|
||||||
owner->FUNCTIONNAME(sender, *arguments);\
|
owner->FUNCTIONNAME(sender, *arguments);\
|
||||||
})\
|
},\
|
||||||
|
L"[](auto owner, auto sender, auto arguments){ return owner->$Name(sender, *arguments); }($This, $Arguments)")\
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Type Loader
|
Type Loader
|
||||||
|
|||||||
+793
-349
File diff suppressed because one or more lines are too long
+826
-801
File diff suppressed because it is too large
Load Diff
+269
-136
File diff suppressed because it is too large
Load Diff
+15
-2
@@ -55,6 +55,7 @@ Instruction
|
|||||||
CreateClosure, // : <closure-context>, Value-function-index -> <closure> ;
|
CreateClosure, // : <closure-context>, Value-function-index -> <closure> ;
|
||||||
CreateInterface, // IMethodInfo*, count : <closure-context>, Value-count, ..., Value-1 -> <map> ; {"Get":a "Set":b} -> new TInterface(InterfaceProxy^)
|
CreateInterface, // IMethodInfo*, count : <closure-context>, Value-count, ..., Value-1 -> <map> ; {"Get":a "Set":b} -> new TInterface(InterfaceProxy^)
|
||||||
CreateRange, // I1248/U1248 : Value-begin, Value-end -> <enumerable> ;
|
CreateRange, // I1248/U1248 : Value-begin, Value-end -> <enumerable> ;
|
||||||
|
CreateStruct, // flag, typeDescriptor : () -> Value ;
|
||||||
ReverseEnumerable, // : Value -> Value ;
|
ReverseEnumerable, // : Value -> Value ;
|
||||||
DeleteRawPtr, // : Value -> () ;
|
DeleteRawPtr, // : Value -> () ;
|
||||||
ConvertToType, // flag, typeDescriptor : Value -> Value ;
|
ConvertToType, // flag, typeDescriptor : Value -> Value ;
|
||||||
@@ -67,6 +68,7 @@ Instruction
|
|||||||
InvokeWithContext, // function, count : Value-1, ..., Value-n -> Value ;
|
InvokeWithContext, // function, count : Value-1, ..., Value-n -> Value ;
|
||||||
GetProperty, // IPropertyInfo* : Value-this -> Value ;
|
GetProperty, // IPropertyInfo* : Value-this -> Value ;
|
||||||
SetProperty, // IPropertyInfo* : Value, Value-this -> () ;
|
SetProperty, // IPropertyInfo* : Value, Value-this -> () ;
|
||||||
|
UpdateProperty, // IPropertyInfo* : Value-this, Value -> Value-this ;
|
||||||
InvokeProxy, // count : Value-1, ..., Value-n, Value-this -> Value ;
|
InvokeProxy, // count : Value-1, ..., Value-n, Value-this -> Value ;
|
||||||
InvokeMethod, // IMethodInfo*, count : Value-1, ..., Value-n, Value-this -> Value ;
|
InvokeMethod, // IMethodInfo*, count : Value-1, ..., Value-n, Value-this -> Value ;
|
||||||
InvokeEvent, // IEventInfo*, count : Value-1, ..., Value-n, Value-this -> Value ;
|
InvokeEvent, // IEventInfo*, count : Value-1, ..., Value-n, Value-this -> Value ;
|
||||||
@@ -78,7 +80,6 @@ Instruction
|
|||||||
RaiseException, // : Value -> () ; (trap)
|
RaiseException, // : Value -> () ; (trap)
|
||||||
TestElementInSet, // : Value-element, Value-set -> bool ;
|
TestElementInSet, // : Value-element, Value-set -> bool ;
|
||||||
CompareLiteral, // I48/U48/F48/S : Value, Value -> <int> ;
|
CompareLiteral, // I48/U48/F48/S : Value, Value -> <int> ;
|
||||||
CompareStruct, // : Value, Value -> <bool> ;
|
|
||||||
CompareReference, // : Value, Value -> <bool> ;
|
CompareReference, // : Value, Value -> <bool> ;
|
||||||
CompareValue, // : Value, Value -> <bool> ;
|
CompareValue, // : Value, Value -> <bool> ;
|
||||||
OpNot, // B/I1248/U1248 : Value -> Value ;
|
OpNot, // B/I1248/U1248 : Value -> Value ;
|
||||||
@@ -127,6 +128,7 @@ Instruction
|
|||||||
APPLY(CreateClosure)\
|
APPLY(CreateClosure)\
|
||||||
APPLY_METHOD_COUNT(CreateInterface)\
|
APPLY_METHOD_COUNT(CreateInterface)\
|
||||||
APPLY_TYPE(CreateRange)\
|
APPLY_TYPE(CreateRange)\
|
||||||
|
APPLY_FLAG_TYPEDESCRIPTOR(CreateStruct)\
|
||||||
APPLY(ReverseEnumerable)\
|
APPLY(ReverseEnumerable)\
|
||||||
APPLY(DeleteRawPtr)\
|
APPLY(DeleteRawPtr)\
|
||||||
APPLY_FLAG_TYPEDESCRIPTOR(ConvertToType)\
|
APPLY_FLAG_TYPEDESCRIPTOR(ConvertToType)\
|
||||||
@@ -139,6 +141,7 @@ Instruction
|
|||||||
APPLY_FUNCTION_COUNT(InvokeWithContext)\
|
APPLY_FUNCTION_COUNT(InvokeWithContext)\
|
||||||
APPLY_PROPERTY(GetProperty)\
|
APPLY_PROPERTY(GetProperty)\
|
||||||
APPLY_PROPERTY(SetProperty)\
|
APPLY_PROPERTY(SetProperty)\
|
||||||
|
APPLY_PROPERTY(UpdateProperty)\
|
||||||
APPLY_COUNT(InvokeProxy)\
|
APPLY_COUNT(InvokeProxy)\
|
||||||
APPLY_METHOD_COUNT(InvokeMethod)\
|
APPLY_METHOD_COUNT(InvokeMethod)\
|
||||||
APPLY_EVENT_COUNT(InvokeEvent)\
|
APPLY_EVENT_COUNT(InvokeEvent)\
|
||||||
@@ -150,7 +153,6 @@ Instruction
|
|||||||
APPLY(RaiseException)\
|
APPLY(RaiseException)\
|
||||||
APPLY(TestElementInSet)\
|
APPLY(TestElementInSet)\
|
||||||
APPLY_TYPE(CompareLiteral)\
|
APPLY_TYPE(CompareLiteral)\
|
||||||
APPLY(CompareStruct)\
|
|
||||||
APPLY(CompareReference)\
|
APPLY(CompareReference)\
|
||||||
APPLY(CompareValue)\
|
APPLY(CompareValue)\
|
||||||
APPLY_TYPE(OpNot)\
|
APPLY_TYPE(OpNot)\
|
||||||
@@ -368,6 +370,7 @@ Method
|
|||||||
WfMethodBase(bool isStatic);
|
WfMethodBase(bool isStatic);
|
||||||
~WfMethodBase();
|
~WfMethodBase();
|
||||||
|
|
||||||
|
ICpp* GetCpp()override;
|
||||||
runtime::WfRuntimeGlobalContext* GetGlobalContext();
|
runtime::WfRuntimeGlobalContext* GetGlobalContext();
|
||||||
void SetReturn(Ptr<ITypeInfo> type);
|
void SetReturn(Ptr<ITypeInfo> type);
|
||||||
};
|
};
|
||||||
@@ -470,6 +473,7 @@ Event
|
|||||||
WfEvent(ITypeDescriptor* ownerTypeDescriptor, const WString& name);
|
WfEvent(ITypeDescriptor* ownerTypeDescriptor, const WString& name);
|
||||||
~WfEvent();
|
~WfEvent();
|
||||||
|
|
||||||
|
ICpp* GetCpp()override;
|
||||||
void SetHandlerType(Ptr<ITypeInfo> typeInfo);
|
void SetHandlerType(Ptr<ITypeInfo> typeInfo);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -500,6 +504,7 @@ Field
|
|||||||
WfField(ITypeDescriptor* ownerTypeDescriptor, const WString& name);
|
WfField(ITypeDescriptor* ownerTypeDescriptor, const WString& name);
|
||||||
~WfField();
|
~WfField();
|
||||||
|
|
||||||
|
ICpp* GetCpp()override;
|
||||||
void SetReturn(Ptr<ITypeInfo> typeInfo);
|
void SetReturn(Ptr<ITypeInfo> typeInfo);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -533,6 +538,14 @@ Custom Type
|
|||||||
typedef reflection::description::ITypeInfo ITypeInfo;
|
typedef reflection::description::ITypeInfo ITypeInfo;
|
||||||
typedef reflection::description::IMethodGroupInfo IMethodGroupInfo;
|
typedef reflection::description::IMethodGroupInfo IMethodGroupInfo;
|
||||||
typedef collections::List<ITypeDescriptor*> TypeDescriptorList;
|
typedef collections::List<ITypeDescriptor*> TypeDescriptorList;
|
||||||
|
|
||||||
|
struct WfTypeInfoContent : reflection::description::TypeInfoContent
|
||||||
|
{
|
||||||
|
WString workflowTypeName;
|
||||||
|
|
||||||
|
WfTypeInfoContent(const WString& _workflowTypeName);
|
||||||
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
runtime::WfRuntimeGlobalContext* globalContext = nullptr;
|
runtime::WfRuntimeGlobalContext* globalContext = nullptr;
|
||||||
bool baseTypeExpanded = false;
|
bool baseTypeExpanded = false;
|
||||||
|
|||||||
+697
-585
File diff suppressed because one or more lines are too long
+101
-92
@@ -32,97 +32,98 @@ namespace vl
|
|||||||
MUL = 3,
|
MUL = 3,
|
||||||
DIV = 4,
|
DIV = 4,
|
||||||
MOD = 5,
|
MOD = 5,
|
||||||
CONCAT = 6,
|
UNION = 6,
|
||||||
LE = 7,
|
INTERSECTION = 7,
|
||||||
GE = 8,
|
LE = 8,
|
||||||
LT = 9,
|
GE = 9,
|
||||||
GT = 10,
|
LT = 10,
|
||||||
EQ = 11,
|
GT = 11,
|
||||||
NE = 12,
|
EQ = 12,
|
||||||
ASSIGN = 13,
|
NE = 13,
|
||||||
FAILED_THEN = 14,
|
ASSIGN = 14,
|
||||||
QUESTION_MARK = 15,
|
FAILED_THEN = 15,
|
||||||
SCOPE_DELIMITER = 16,
|
QUESTION_MARK = 16,
|
||||||
COLON = 17,
|
SCOPE_DELIMITER = 17,
|
||||||
SEMICOLON = 18,
|
COLON = 18,
|
||||||
COMMA = 19,
|
SEMICOLON = 19,
|
||||||
DOT = 20,
|
COMMA = 20,
|
||||||
OPEN_ARRAY = 21,
|
DOT = 21,
|
||||||
CLOSE_ARRAY = 22,
|
OPEN_ARRAY = 22,
|
||||||
OPEN_BRACE = 23,
|
CLOSE_ARRAY = 23,
|
||||||
CLOSE_BRACE = 24,
|
OPEN_BRACE = 24,
|
||||||
OPEN_BRACKET = 25,
|
CLOSE_BRACE = 25,
|
||||||
CLOSE_BRACKET = 26,
|
OPEN_BRACKET = 26,
|
||||||
TYPE_VOID = 27,
|
CLOSE_BRACKET = 27,
|
||||||
TYPE_OBJECT = 28,
|
TYPE_VOID = 28,
|
||||||
TYPE_INTERFACE = 29,
|
TYPE_OBJECT = 29,
|
||||||
TYPE_INT = 30,
|
TYPE_INTERFACE = 30,
|
||||||
TYPE_UINT = 31,
|
TYPE_INT = 31,
|
||||||
TYPE_FLOAT = 32,
|
TYPE_UINT = 32,
|
||||||
TYPE_DOUBLE = 33,
|
TYPE_FLOAT = 33,
|
||||||
TYPE_STRING = 34,
|
TYPE_DOUBLE = 34,
|
||||||
TYPE_CHAR = 35,
|
TYPE_STRING = 35,
|
||||||
TYPE_BOOL = 36,
|
TYPE_CHAR = 36,
|
||||||
KEYWORD_CONST = 37,
|
TYPE_BOOL = 37,
|
||||||
KEYWORD_SHL = 38,
|
KEYWORD_CONST = 38,
|
||||||
KEYWORD_SHR = 39,
|
KEYWORD_SHL = 39,
|
||||||
KEYWORD_XOR = 40,
|
KEYWORD_SHR = 40,
|
||||||
KEYWORD_AND = 41,
|
KEYWORD_XOR = 41,
|
||||||
KEYWORD_OR = 42,
|
KEYWORD_AND = 42,
|
||||||
KEYWORD_NOT = 43,
|
KEYWORD_OR = 43,
|
||||||
KEYWORD_NULL = 44,
|
KEYWORD_NOT = 44,
|
||||||
KEYWORD_THIS = 45,
|
KEYWORD_NULL = 45,
|
||||||
KEYWORD_TRUE = 46,
|
KEYWORD_THIS = 46,
|
||||||
KEYWORD_FALSE = 47,
|
KEYWORD_TRUE = 47,
|
||||||
KEYWORD_LET = 48,
|
KEYWORD_FALSE = 48,
|
||||||
KEYWORD_IN = 49,
|
KEYWORD_LET = 49,
|
||||||
KEYWORD_RANGE = 50,
|
KEYWORD_IN = 50,
|
||||||
KEYWORD_NEW = 51,
|
KEYWORD_RANGE = 51,
|
||||||
KEYWORD_OF = 52,
|
KEYWORD_NEW = 52,
|
||||||
KEYWORD_AS = 53,
|
KEYWORD_OF = 53,
|
||||||
KEYWORD_IS = 54,
|
KEYWORD_AS = 54,
|
||||||
KEYWORD_CAST = 55,
|
KEYWORD_IS = 55,
|
||||||
KEYWORD_FUNC = 56,
|
KEYWORD_CAST = 56,
|
||||||
KEYWORD_TYPEOF = 57,
|
KEYWORD_FUNC = 57,
|
||||||
KEYWORD_TYPE = 58,
|
KEYWORD_TYPEOF = 58,
|
||||||
KEYWORD_BIND = 59,
|
KEYWORD_TYPE = 59,
|
||||||
KEYWORD_OBSERVE = 60,
|
KEYWORD_BIND = 60,
|
||||||
KEYWORD_ON = 61,
|
KEYWORD_OBSERVE = 61,
|
||||||
KEYWORD_ATTACH = 62,
|
KEYWORD_ON = 62,
|
||||||
KEYWORD_DETACH = 63,
|
KEYWORD_ATTACH = 63,
|
||||||
KEYWORD_VAR = 64,
|
KEYWORD_DETACH = 64,
|
||||||
KEYWORD_BREAK = 65,
|
KEYWORD_VAR = 65,
|
||||||
KEYWORD_CONTINUE = 66,
|
KEYWORD_BREAK = 66,
|
||||||
KEYWORD_RETURN = 67,
|
KEYWORD_CONTINUE = 67,
|
||||||
KEYWORD_DELETE = 68,
|
KEYWORD_RETURN = 68,
|
||||||
KEYWORD_RAISE = 69,
|
KEYWORD_DELETE = 69,
|
||||||
KEYWORD_IF = 70,
|
KEYWORD_RAISE = 70,
|
||||||
KEYWORD_ELSE = 71,
|
KEYWORD_IF = 71,
|
||||||
KEYWORD_SWITCH = 72,
|
KEYWORD_ELSE = 72,
|
||||||
KEYWORD_CASE = 73,
|
KEYWORD_SWITCH = 73,
|
||||||
KEYWORD_DEFAULT = 74,
|
KEYWORD_CASE = 74,
|
||||||
KEYWORD_WHILE = 75,
|
KEYWORD_DEFAULT = 75,
|
||||||
KEYWORD_FOR = 76,
|
KEYWORD_WHILE = 76,
|
||||||
KEYWORD_REVERSED = 77,
|
KEYWORD_FOR = 77,
|
||||||
KEYWORD_TRY = 78,
|
KEYWORD_REVERSED = 78,
|
||||||
KEYWORD_CATCH = 79,
|
KEYWORD_TRY = 79,
|
||||||
KEYWORD_FINALLY = 80,
|
KEYWORD_CATCH = 80,
|
||||||
KEYWORD_CLASS = 81,
|
KEYWORD_FINALLY = 81,
|
||||||
KEYWORD_PROP = 82,
|
KEYWORD_CLASS = 82,
|
||||||
KEYWORD_EVENT = 83,
|
KEYWORD_PROP = 83,
|
||||||
KEYWORD_STATIC = 84,
|
KEYWORD_EVENT = 84,
|
||||||
KEYWORD_OVERRIDE = 85,
|
KEYWORD_STATIC = 85,
|
||||||
KEYWORD_USING = 86,
|
KEYWORD_OVERRIDE = 86,
|
||||||
KEYWORD_NAMESPACE = 87,
|
KEYWORD_USING = 87,
|
||||||
KEYWORD_MODULE = 88,
|
KEYWORD_NAMESPACE = 88,
|
||||||
KEYWORD_UNIT = 89,
|
KEYWORD_MODULE = 89,
|
||||||
NAME = 90,
|
KEYWORD_UNIT = 90,
|
||||||
ORDERED_NAME = 91,
|
NAME = 91,
|
||||||
FLOAT = 92,
|
ORDERED_NAME = 92,
|
||||||
INTEGER = 93,
|
FLOAT = 93,
|
||||||
STRING = 94,
|
INTEGER = 94,
|
||||||
FORMATSTRING = 95,
|
STRING = 95,
|
||||||
SPACE = 96,
|
FORMATSTRING = 96,
|
||||||
|
SPACE = 97,
|
||||||
};
|
};
|
||||||
class WfType;
|
class WfType;
|
||||||
class WfPredefinedType;
|
class WfPredefinedType;
|
||||||
@@ -545,7 +546,8 @@ namespace vl
|
|||||||
{
|
{
|
||||||
Assign,
|
Assign,
|
||||||
Index,
|
Index,
|
||||||
Concat,
|
Union,
|
||||||
|
Intersect,
|
||||||
FailedThen,
|
FailedThen,
|
||||||
Exp,
|
Exp,
|
||||||
Add,
|
Add,
|
||||||
@@ -2031,6 +2033,8 @@ Type Analyzing
|
|||||||
F4,
|
F4,
|
||||||
F8,
|
F8,
|
||||||
String,
|
String,
|
||||||
|
Enum,
|
||||||
|
Struct,
|
||||||
Others,
|
Others,
|
||||||
Count,
|
Count,
|
||||||
Unknown = -1,
|
Unknown = -1,
|
||||||
@@ -2292,6 +2296,8 @@ Error Messages
|
|||||||
static Ptr<parsing::ParsingError> AttachInBind(WfExpression* node);
|
static Ptr<parsing::ParsingError> AttachInBind(WfExpression* node);
|
||||||
static Ptr<parsing::ParsingError> DetachInBind(WfExpression* node);
|
static Ptr<parsing::ParsingError> DetachInBind(WfExpression* node);
|
||||||
static Ptr<parsing::ParsingError> ConstructorMixMapAndList(WfExpression* node);
|
static Ptr<parsing::ParsingError> ConstructorMixMapAndList(WfExpression* node);
|
||||||
|
static Ptr<parsing::ParsingError> ConstructorMixStructAndList(WfExpression* node);
|
||||||
|
static Ptr<parsing::ParsingError> DuplicatedConstructorField(WfReferenceExpression* node);
|
||||||
static Ptr<parsing::ParsingError> ConstructorMixClassAndInterface(WfNewClassExpression* node);
|
static Ptr<parsing::ParsingError> ConstructorMixClassAndInterface(WfNewClassExpression* node);
|
||||||
static Ptr<parsing::ParsingError> ConstructorMixClassAndInterface(WfNewInterfaceExpression* node);
|
static Ptr<parsing::ParsingError> ConstructorMixClassAndInterface(WfNewInterfaceExpression* node);
|
||||||
static Ptr<parsing::ParsingError> ScopeNameIsNotExpression(WfExpression* node, Ptr<WfLexicalScopeName> scopeName);
|
static Ptr<parsing::ParsingError> ScopeNameIsNotExpression(WfExpression* node, Ptr<WfLexicalScopeName> scopeName);
|
||||||
@@ -2327,6 +2333,8 @@ Error Messages
|
|||||||
static Ptr<parsing::ParsingError> CannotCallMemberInStaticFunction(WfExpression* node, const ResolveExpressionResult& result);
|
static Ptr<parsing::ParsingError> CannotCallMemberInStaticFunction(WfExpression* node, const ResolveExpressionResult& result);
|
||||||
static Ptr<parsing::ParsingError> FieldCannotInitializeUsingEachOther(WfExpression* node, const ResolveExpressionResult& result);
|
static Ptr<parsing::ParsingError> FieldCannotInitializeUsingEachOther(WfExpression* node, const ResolveExpressionResult& result);
|
||||||
static Ptr<parsing::ParsingError> WrongThisExpression(WfExpression* node);
|
static Ptr<parsing::ParsingError> WrongThisExpression(WfExpression* node);
|
||||||
|
static Ptr<parsing::ParsingError> IncorrectTypeForUnion(WfExpression* node, reflection::description::ITypeInfo* type);
|
||||||
|
static Ptr<parsing::ParsingError> IncorrectTypeForIntersect(WfExpression* node, reflection::description::ITypeInfo* type);
|
||||||
|
|
||||||
// B: Type error
|
// B: Type error
|
||||||
static Ptr<parsing::ParsingError> WrongVoidType(WfType* node);
|
static Ptr<parsing::ParsingError> WrongVoidType(WfType* node);
|
||||||
@@ -2376,6 +2384,7 @@ Error Messages
|
|||||||
static Ptr<parsing::ParsingError> MemberNotExists(parsing::ParsingTreeCustomBase* node, reflection::description::ITypeDescriptor* typeDescriptor, const WString& name);
|
static Ptr<parsing::ParsingError> MemberNotExists(parsing::ParsingTreeCustomBase* node, reflection::description::ITypeDescriptor* typeDescriptor, const WString& name);
|
||||||
static Ptr<parsing::ParsingError> ReferenceNotExists(parsing::ParsingTreeCustomBase* node, const WString& name);
|
static Ptr<parsing::ParsingError> ReferenceNotExists(parsing::ParsingTreeCustomBase* node, const WString& name);
|
||||||
static Ptr<parsing::ParsingError> TooManyTargets(parsing::ParsingTreeCustomBase* node, collections::List<ResolveExpressionResult>& results, const WString& name);
|
static Ptr<parsing::ParsingError> TooManyTargets(parsing::ParsingTreeCustomBase* node, collections::List<ResolveExpressionResult>& results, const WString& name);
|
||||||
|
static Ptr<parsing::ParsingError> EnumItemNotExists(parsing::ParsingTreeCustomBase* node, reflection::description::ITypeDescriptor* typeDescriptor, const WString& name);
|
||||||
|
|
||||||
// G: Class error
|
// G: Class error
|
||||||
static Ptr<parsing::ParsingError> NonFunctionClassMemberCannotBeStaticOrOverride(WfClassMember* node);
|
static Ptr<parsing::ParsingError> NonFunctionClassMemberCannotBeStaticOrOverride(WfClassMember* node);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
#include "UI/Source/Demo.h"
|
#include "UI/Source/Demo.h"
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1411,67 +1411,67 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::BottomScrollButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::BottomScrollButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::BottomScrollButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::BottomScrollButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::BottomScrollButtonTemplate)
|
END_CLASS_MEMBER(darkskin::BottomScrollButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ButtonTemplate)
|
END_CLASS_MEMBER(darkskin::ButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::CheckBoxTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::CheckBoxTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::CheckBoxTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::CheckBoxTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::CheckBoxTemplate)
|
END_CLASS_MEMBER(darkskin::CheckBoxTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::CheckItemBackgroundTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::CheckItemBackgroundTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::CheckItemBackgroundTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::CheckItemBackgroundTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::CheckItemBackgroundTemplate)
|
END_CLASS_MEMBER(darkskin::CheckItemBackgroundTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::CheckTextListTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::CheckTextListTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiTextListTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiTextListTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::CheckTextListTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::CheckTextListTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::CheckTextListTemplate)
|
END_CLASS_MEMBER(darkskin::CheckTextListTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ComboBoxTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ComboBoxTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiDateComboBoxTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiDateComboBoxTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ComboBoxTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ComboBoxTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ComboBoxTemplate)
|
END_CLASS_MEMBER(darkskin::ComboBoxTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::DatePickerTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::DatePickerTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiDatePickerTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiDatePickerTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::DatePickerTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::DatePickerTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::DatePickerTemplate)
|
END_CLASS_MEMBER(darkskin::DatePickerTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::DocumentLabelTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::DocumentLabelTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiDocumentLabelTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiDocumentLabelTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::DocumentLabelTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::DocumentLabelTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::DocumentLabelTemplate)
|
END_CLASS_MEMBER(darkskin::DocumentLabelTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::DocumentViewerTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::DocumentViewerTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiDocumentViewerTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiDocumentViewerTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::DocumentViewerTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::DocumentViewerTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::DocumentViewerTemplate)
|
END_CLASS_MEMBER(darkskin::DocumentViewerTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ExpandingDecoratorTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ExpandingDecoratorTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ExpandingDecoratorTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ExpandingDecoratorTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ExpandingDecoratorTemplate)
|
END_CLASS_MEMBER(darkskin::ExpandingDecoratorTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::GroupBoxTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::GroupBoxTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiControlTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiControlTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::GroupBoxTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::GroupBoxTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::GroupBoxTemplate)
|
END_CLASS_MEMBER(darkskin::GroupBoxTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::HScrollHandleTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::HScrollHandleTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::HScrollHandleTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::HScrollHandleTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::HScrollHandleTemplate)
|
END_CLASS_MEMBER(darkskin::HScrollHandleTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::HScrollTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::HScrollTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiScrollTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiScrollTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::HScrollTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::HScrollTemplate*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_FIELD(draggingHandle)
|
CLASS_MEMBER_FIELD(draggingHandle)
|
||||||
@@ -1479,7 +1479,7 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(darkskin::HScrollTemplate)
|
END_CLASS_MEMBER(darkskin::HScrollTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::HTrackerTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::HTrackerTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiScrollTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiScrollTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::HTrackerTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::HTrackerTemplate*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_FIELD(draggingHandle)
|
CLASS_MEMBER_FIELD(draggingHandle)
|
||||||
@@ -1487,157 +1487,157 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(darkskin::HTrackerTemplate)
|
END_CLASS_MEMBER(darkskin::HTrackerTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ItemBackgroundTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ItemBackgroundTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ItemBackgroundTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ItemBackgroundTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ItemBackgroundTemplate)
|
END_CLASS_MEMBER(darkskin::ItemBackgroundTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::LabelTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::LabelTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiLabelTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiLabelTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::LabelTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::LabelTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::LabelTemplate)
|
END_CLASS_MEMBER(darkskin::LabelTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::LeftScrollButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::LeftScrollButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::LeftScrollButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::LeftScrollButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::LeftScrollButtonTemplate)
|
END_CLASS_MEMBER(darkskin::LeftScrollButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ListViewColumnHeaderTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ListViewColumnHeaderTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiListViewColumnHeaderTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiListViewColumnHeaderTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ListViewColumnHeaderTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ListViewColumnHeaderTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ListViewColumnHeaderTemplate)
|
END_CLASS_MEMBER(darkskin::ListViewColumnHeaderTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ListViewTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ListViewTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiListViewTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiListViewTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ListViewTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ListViewTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ListViewTemplate)
|
END_CLASS_MEMBER(darkskin::ListViewTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::MenuBarButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::MenuBarButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiToolstripButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiToolstripButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::MenuBarButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::MenuBarButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::MenuBarButtonTemplate)
|
END_CLASS_MEMBER(darkskin::MenuBarButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::MenuItemButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::MenuItemButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiToolstripButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiToolstripButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::MenuItemButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::MenuItemButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::MenuItemButtonTemplate)
|
END_CLASS_MEMBER(darkskin::MenuItemButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::MenuSplitterTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::MenuSplitterTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiControlTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiControlTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::MenuSplitterTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::MenuSplitterTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::MenuSplitterTemplate)
|
END_CLASS_MEMBER(darkskin::MenuSplitterTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::MultilineTextBoxTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::MultilineTextBoxTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiMultilineTextBoxTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiMultilineTextBoxTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::MultilineTextBoxTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::MultilineTextBoxTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::MultilineTextBoxTemplate)
|
END_CLASS_MEMBER(darkskin::MultilineTextBoxTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ProgressBarTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ProgressBarTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiScrollTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiScrollTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ProgressBarTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ProgressBarTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ProgressBarTemplate)
|
END_CLASS_MEMBER(darkskin::ProgressBarTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::RadioButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::RadioButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::RadioButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::RadioButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::RadioButtonTemplate)
|
END_CLASS_MEMBER(darkskin::RadioButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::RadioTextListTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::RadioTextListTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiTextListTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiTextListTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::RadioTextListTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::RadioTextListTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::RadioTextListTemplate)
|
END_CLASS_MEMBER(darkskin::RadioTextListTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::RightScrollButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::RightScrollButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::RightScrollButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::RightScrollButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::RightScrollButtonTemplate)
|
END_CLASS_MEMBER(darkskin::RightScrollButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ScrollViewTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ScrollViewTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiScrollViewTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiScrollViewTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ScrollViewTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ScrollViewTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ScrollViewTemplate)
|
END_CLASS_MEMBER(darkskin::ScrollViewTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::SinglelineTextBoxTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::SinglelineTextBoxTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSinglelineTextBoxTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSinglelineTextBoxTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::SinglelineTextBoxTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::SinglelineTextBoxTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::SinglelineTextBoxTemplate)
|
END_CLASS_MEMBER(darkskin::SinglelineTextBoxTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TabDropdownTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TabDropdownTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TabDropdownTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TabDropdownTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TabDropdownTemplate)
|
END_CLASS_MEMBER(darkskin::TabDropdownTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TabHeaderTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TabHeaderTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TabHeaderTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TabHeaderTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TabHeaderTemplate)
|
END_CLASS_MEMBER(darkskin::TabHeaderTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TabTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TabTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiTabTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiTabTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TabTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TabTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TabTemplate)
|
END_CLASS_MEMBER(darkskin::TabTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TextListTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TextListTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiTextListTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiTextListTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TextListTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TextListTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TextListTemplate)
|
END_CLASS_MEMBER(darkskin::TextListTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiToolstripButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiToolstripButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripButtonTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripDropdownButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripDropdownButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiToolstripButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiToolstripButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripDropdownButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripDropdownButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripDropdownButtonTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripDropdownButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripMenuTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripMenuTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiMenuTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiMenuTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripMenuTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripMenuTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripMenuTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripMenuTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripSplitArrowTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripSplitArrowTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiSelectableButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiSelectableButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripSplitArrowTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripSplitArrowTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripSplitArrowTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripSplitArrowTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripSplitButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripSplitButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiToolstripButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiToolstripButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripSplitButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripSplitButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripSplitButtonTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripSplitButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripSplitterTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripSplitterTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiControlTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiControlTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripSplitterTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripSplitterTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripSplitterTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripSplitterTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::ToolstripTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::ToolstripTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiControlTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiControlTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::ToolstripTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::ToolstripTemplate)
|
END_CLASS_MEMBER(darkskin::ToolstripTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TooltipTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TooltipTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiWindowTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiWindowTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TooltipTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TooltipTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TooltipTemplate)
|
END_CLASS_MEMBER(darkskin::TooltipTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TopScrollButtonTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TopScrollButtonTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TopScrollButtonTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TopScrollButtonTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TopScrollButtonTemplate)
|
END_CLASS_MEMBER(darkskin::TopScrollButtonTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::TreeViewTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::TreeViewTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiTreeViewTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiTreeViewTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::TreeViewTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::TreeViewTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::TreeViewTemplate)
|
END_CLASS_MEMBER(darkskin::TreeViewTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::VScrollHandleTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::VScrollHandleTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiButtonTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiButtonTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::VScrollHandleTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::VScrollHandleTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::VScrollHandleTemplate)
|
END_CLASS_MEMBER(darkskin::VScrollHandleTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::VScrollTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::VScrollTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiScrollTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiScrollTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::VScrollTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::VScrollTemplate*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_FIELD(draggingHandle)
|
CLASS_MEMBER_FIELD(draggingHandle)
|
||||||
@@ -1645,7 +1645,7 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(darkskin::VScrollTemplate)
|
END_CLASS_MEMBER(darkskin::VScrollTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::VTrackerTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::VTrackerTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiScrollTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiScrollTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::VTrackerTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::VTrackerTemplate*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_FIELD(draggingHandle)
|
CLASS_MEMBER_FIELD(draggingHandle)
|
||||||
@@ -1653,12 +1653,12 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(darkskin::VTrackerTemplate)
|
END_CLASS_MEMBER(darkskin::VTrackerTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(darkskin::WindowTemplate)
|
BEGIN_CLASS_MEMBER(darkskin::WindowTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiWindowTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiWindowTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(darkskin::WindowTemplate*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(darkskin::WindowTemplate*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(darkskin::WindowTemplate)
|
END_CLASS_MEMBER(darkskin::WindowTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
END_CLASS_MEMBER(demo::MainWindow)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -81,7 +81,7 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(demo::NewFolderWindow)
|
IMPL_CPP_TYPE_INFO(demo::NewFolderWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::ICategory)
|
BEGIN_CLASS_MEMBER(demo::ICategory)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(GetParent, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetParent, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(GetName, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetName, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(GetImage, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetImage, NO_PARAMETER);
|
||||||
@@ -95,7 +95,7 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(demo::ICategory)
|
END_CLASS_MEMBER(demo::ICategory)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::IContact)
|
BEGIN_CLASS_MEMBER(demo::IContact)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(GetName, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetName, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(GetBigImage, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetBigImage, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(GetSmallImage, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetSmallImage, NO_PARAMETER);
|
||||||
@@ -114,7 +114,7 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(demo::IContact)
|
END_CLASS_MEMBER(demo::IContact)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::IViewModel)
|
BEGIN_CLASS_MEMBER(demo::IViewModel)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(GetRootCategory, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetRootCategory, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(GetSelectedCategory, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetSelectedCategory, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(SetSelectedCategory, { L"value" });
|
CLASS_MEMBER_METHOD(SetSelectedCategory, { L"value" });
|
||||||
@@ -132,21 +132,21 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(demo::IViewModel)
|
END_CLASS_MEMBER(demo::IViewModel)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(Ptr<demo::IViewModel>), { L"ViewModel" })
|
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(Ptr<demo::IViewModel>), { L"ViewModel" })
|
||||||
|
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandBigIcon_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandBigIcon_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandDetail_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandDetail_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandInformation_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandInformation_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandList_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandList_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandSmallIcon_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandSmallIcon_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandTile_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandTile_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
END_CLASS_MEMBER(demo::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::NewContactWindow)
|
BEGIN_CLASS_MEMBER(demo::NewContactWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::NewContactWindow*(Ptr<demo::IContact>), { L"Contact" })
|
CLASS_MEMBER_CONSTRUCTOR(demo::NewContactWindow*(Ptr<demo::IContact>), { L"Contact" })
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(Contact)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(Contact)
|
||||||
@@ -157,7 +157,7 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(demo::NewContactWindow)
|
END_CLASS_MEMBER(demo::NewContactWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::NewFolderWindow)
|
BEGIN_CLASS_MEMBER(demo::NewFolderWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::NewFolderWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(demo::NewFolderWindow*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_EVENT(FolderNameChanged)
|
CLASS_MEMBER_EVENT(FolderNameChanged)
|
||||||
|
|||||||
@@ -22,67 +22,67 @@ namespace demo
|
|||||||
class NewContactWindow;
|
class NewContactWindow;
|
||||||
class NewFolderWindow;
|
class NewFolderWindow;
|
||||||
|
|
||||||
class IContact : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<IContact>
|
class IContact : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IContact>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual vl::WString GetName() = 0;
|
virtual ::vl::WString GetName() = 0;
|
||||||
virtual vl::Ptr<vl::presentation::GuiImageData> GetBigImage() = 0;
|
virtual vl::Ptr<::vl::presentation::GuiImageData> GetBigImage() = 0;
|
||||||
virtual vl::Ptr<vl::presentation::GuiImageData> GetSmallImage() = 0;
|
virtual vl::Ptr<::vl::presentation::GuiImageData> GetSmallImage() = 0;
|
||||||
virtual vl::DateTime GetBirthday() = 0;
|
virtual ::vl::DateTime GetBirthday() = 0;
|
||||||
virtual vl::WString GetBirthdayText() = 0;
|
virtual ::vl::WString GetBirthdayText() = 0;
|
||||||
virtual vl::WString GetPhone() = 0;
|
virtual ::vl::WString GetPhone() = 0;
|
||||||
virtual vl::WString GetAddress() = 0;
|
virtual ::vl::WString GetAddress() = 0;
|
||||||
virtual void Update(vl::WString name, vl::DateTime birthday, vl::WString phone, vl::WString address) = 0;
|
virtual void Update(::vl::WString name, ::vl::DateTime birthday, ::vl::WString phone, ::vl::WString address) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ICategory : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<ICategory>
|
class ICategory : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<ICategory>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual demo::ICategory* GetParent() = 0;
|
virtual ::demo::ICategory* GetParent() = 0;
|
||||||
virtual vl::WString GetName() = 0;
|
virtual ::vl::WString GetName() = 0;
|
||||||
virtual vl::Ptr<vl::presentation::GuiImageData> GetImage() = 0;
|
virtual vl::Ptr<::vl::presentation::GuiImageData> GetImage() = 0;
|
||||||
virtual vl::Ptr<vl::reflection::description::IValueObservableList> GetFolders() = 0;
|
virtual vl::Ptr<::vl::reflection::description::IValueObservableList> GetFolders() = 0;
|
||||||
virtual vl::Ptr<vl::reflection::description::IValueObservableList> GetContacts() = 0;
|
virtual vl::Ptr<::vl::reflection::description::IValueObservableList> GetContacts() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class IViewModel : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
class IViewModel : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual vl::Ptr<demo::ICategory> GetRootCategory() = 0;
|
virtual vl::Ptr<::demo::ICategory> GetRootCategory() = 0;
|
||||||
virtual vl::Ptr<demo::ICategory> GetSelectedCategory() = 0;
|
virtual vl::Ptr<::demo::ICategory> GetSelectedCategory() = 0;
|
||||||
virtual void SetSelectedCategory(vl::Ptr<demo::ICategory> value) = 0;
|
virtual void SetSelectedCategory(vl::Ptr<::demo::ICategory> value) = 0;
|
||||||
vl::Event<void()> SelectedCategoryChanged;
|
vl::Event<void()> SelectedCategoryChanged;
|
||||||
virtual vl::Ptr<demo::IContact> GetSelectedContact() = 0;
|
virtual vl::Ptr<::demo::IContact> GetSelectedContact() = 0;
|
||||||
virtual void SetSelectedContact(vl::Ptr<demo::IContact> value) = 0;
|
virtual void SetSelectedContact(vl::Ptr<::demo::IContact> value) = 0;
|
||||||
vl::Event<void()> SelectedContactChanged;
|
vl::Event<void()> SelectedContactChanged;
|
||||||
virtual void AddCategory(vl::WString name) = 0;
|
virtual void AddCategory(::vl::WString name) = 0;
|
||||||
virtual void RemoveCategory() = 0;
|
virtual void RemoveCategory() = 0;
|
||||||
virtual vl::Ptr<demo::IContact> CreateContact() = 0;
|
virtual vl::Ptr<::demo::IContact> CreateContact() = 0;
|
||||||
virtual void AddContact(vl::Ptr<demo::IContact> contact) = 0;
|
virtual void AddContact(vl::Ptr<::demo::IContact> contact) = 0;
|
||||||
virtual void RemoveContact() = 0;
|
virtual void RemoveContact() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class MainWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class MainWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
Ptr<demo::IViewModel> ViewModel_;
|
Ptr<demo::IViewModel> ViewModel_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandBigIcon;
|
::vl::presentation::controls::GuiToolstripCommand* commandBigIcon;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandDeleteContact;
|
::vl::presentation::controls::GuiToolstripCommand* commandDeleteContact;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandDeleteFolder;
|
::vl::presentation::controls::GuiToolstripCommand* commandDeleteFolder;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandDetail;
|
::vl::presentation::controls::GuiToolstripCommand* commandDetail;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditContact;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditContact;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandInformation;
|
::vl::presentation::controls::GuiToolstripCommand* commandInformation;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandList;
|
::vl::presentation::controls::GuiToolstripCommand* commandList;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandNewContact;
|
::vl::presentation::controls::GuiToolstripCommand* commandNewContact;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandNewFolder;
|
::vl::presentation::controls::GuiToolstripCommand* commandNewFolder;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandSmallIcon;
|
::vl::presentation::controls::GuiToolstripCommand* commandSmallIcon;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandTile;
|
::vl::presentation::controls::GuiToolstripCommand* commandTile;
|
||||||
vl::presentation::controls::GuiBindableListView* listViewContacts;
|
::vl::presentation::controls::GuiBindableListView* listViewContacts;
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
vl::presentation::controls::GuiBindableTreeView* treeViewFolders;
|
::vl::presentation::controls::GuiBindableTreeView* treeViewFolders;
|
||||||
|
|
||||||
void InitializeComponents(Ptr<demo::IViewModel> ViewModel)
|
void InitializeComponents(Ptr<demo::IViewModel> ViewModel)
|
||||||
{
|
{
|
||||||
@@ -111,8 +111,8 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,commandBigIcon(0)
|
,commandBigIcon(0)
|
||||||
,commandDeleteContact(0)
|
,commandDeleteContact(0)
|
||||||
,commandDeleteFolder(0)
|
,commandDeleteFolder(0)
|
||||||
@@ -137,7 +137,7 @@ namespace demo
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class NewContactWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class NewContactWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
@@ -145,11 +145,11 @@ namespace demo
|
|||||||
bool ForEdit_;
|
bool ForEdit_;
|
||||||
bool Ready_;
|
bool Ready_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiDatePicker* datePickerBirthday;
|
::vl::presentation::controls::GuiDatePicker* datePickerBirthday;
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
vl::presentation::controls::GuiDocumentLabel* textBoxAddress;
|
::vl::presentation::controls::GuiDocumentLabel* textBoxAddress;
|
||||||
vl::presentation::controls::GuiDocumentLabel* textBoxName;
|
::vl::presentation::controls::GuiDocumentLabel* textBoxName;
|
||||||
vl::presentation::controls::GuiDocumentLabel* textBoxPhone;
|
::vl::presentation::controls::GuiDocumentLabel* textBoxPhone;
|
||||||
|
|
||||||
void InitializeComponents(Ptr<demo::IContact> Contact)
|
void InitializeComponents(Ptr<demo::IContact> Contact)
|
||||||
{
|
{
|
||||||
@@ -169,16 +169,28 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
NewContactWindow_()
|
NewContactWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::NewContactWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::NewContactWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,datePickerBirthday(0)
|
,datePickerBirthday(0)
|
||||||
,self(0)
|
,self(0)
|
||||||
,textBoxAddress(0)
|
,textBoxAddress(0)
|
||||||
,textBoxName(0)
|
,textBoxName(0)
|
||||||
,textBoxPhone(0)
|
,textBoxPhone(0)
|
||||||
{
|
{
|
||||||
this->ForEdit_ = vl::reflection::description::UnboxValue<bool>(vl::reflection::description::Value::From(L"false", reflection::description::GetTypeDescriptor<bool>()));
|
this->ForEdit = vl::reflection::description::UnboxValue<bool>(
|
||||||
this->Ready_ = vl::reflection::description::UnboxValue<bool>(vl::reflection::description::Value::From(L"true", reflection::description::GetTypeDescriptor<bool>()));
|
[]()
|
||||||
|
{
|
||||||
|
vl::reflection::description::Value value;
|
||||||
|
reflection::description::GetTypeDescriptor<bool>()->GetSerializableType()->Deserialize(L"false", value);
|
||||||
|
return value;
|
||||||
|
}());
|
||||||
|
this->Ready = vl::reflection::description::UnboxValue<bool>(
|
||||||
|
[]()
|
||||||
|
{
|
||||||
|
vl::reflection::description::Value value;
|
||||||
|
reflection::description::GetTypeDescriptor<bool>()->GetSerializableType()->Deserialize(L"true", value);
|
||||||
|
return value;
|
||||||
|
}());
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr<demo::IContact> GetContact()
|
Ptr<demo::IContact> GetContact()
|
||||||
@@ -214,15 +226,15 @@ namespace demo
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class NewFolderWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class NewFolderWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
vl::WString FolderName_;
|
::vl::WString FolderName_;
|
||||||
bool Ready_;
|
bool Ready_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
vl::presentation::controls::GuiDocumentLabel* textBoxName;
|
::vl::presentation::controls::GuiDocumentLabel* textBoxName;
|
||||||
|
|
||||||
void InitializeComponents()
|
void InitializeComponents()
|
||||||
{
|
{
|
||||||
@@ -237,23 +249,35 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
NewFolderWindow_()
|
NewFolderWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::NewFolderWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::NewFolderWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,self(0)
|
,self(0)
|
||||||
,textBoxName(0)
|
,textBoxName(0)
|
||||||
{
|
{
|
||||||
this->FolderName_ = vl::reflection::description::UnboxValue<vl::WString>(vl::reflection::description::Value::From(L"", reflection::description::GetTypeDescriptor<vl::WString>()));
|
this->FolderName = vl::reflection::description::UnboxValue<::vl::WString>(
|
||||||
this->Ready_ = vl::reflection::description::UnboxValue<bool>(vl::reflection::description::Value::From(L"true", reflection::description::GetTypeDescriptor<bool>()));
|
[]()
|
||||||
|
{
|
||||||
|
vl::reflection::description::Value value;
|
||||||
|
reflection::description::GetTypeDescriptor<::vl::WString>()->GetSerializableType()->Deserialize(L"", value);
|
||||||
|
return value;
|
||||||
|
}());
|
||||||
|
this->Ready = vl::reflection::description::UnboxValue<bool>(
|
||||||
|
[]()
|
||||||
|
{
|
||||||
|
vl::reflection::description::Value value;
|
||||||
|
reflection::description::GetTypeDescriptor<bool>()->GetSerializableType()->Deserialize(L"true", value);
|
||||||
|
return value;
|
||||||
|
}());
|
||||||
}
|
}
|
||||||
|
|
||||||
vl::Event<void()> FolderNameChanged;
|
vl::Event<void()> FolderNameChanged;
|
||||||
|
|
||||||
vl::WString GetFolderName()
|
::vl::WString GetFolderName()
|
||||||
{
|
{
|
||||||
return FolderName_;
|
return FolderName_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetFolderName(vl::WString value)
|
void SetFolderName(::vl::WString value)
|
||||||
{
|
{
|
||||||
FolderName_ = value;
|
FolderName_ = value;
|
||||||
FolderNameChanged();
|
FolderNameChanged();
|
||||||
|
|||||||
@@ -12,6 +12,38 @@ namespace demo
|
|||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
|
||||||
|
void MainWindow::commandBigIcon_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandDetail_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandInformation_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandList_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandSmallIcon_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandTile_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::OnCreate()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::OnDestroy()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::commandBigIcon_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
void MainWindow::commandBigIcon_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
{
|
{
|
||||||
ClearViewSelection();
|
ClearViewSelection();
|
||||||
@@ -54,14 +86,6 @@ namespace demo
|
|||||||
listViewContacts->ChangeItemStyle(new list::ListViewTileContentProvider);
|
listViewContacts->ChangeItemStyle(new list::ListViewTileContentProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OnCreate()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::OnDestroy()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|
||||||
void MainWindow::ClearViewSelection()
|
void MainWindow::ClearViewSelection()
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ namespace demo
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
void commandBigIcon_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandBigIcon_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandDetail_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandDetail_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandInformation_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandInformation_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandList_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandList_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandSmallIcon_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandSmallIcon_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandTile_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandTile_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void OnCreate();
|
void OnCreate();
|
||||||
void OnDestroy();
|
void OnDestroy();
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::IColorItem)
|
BEGIN_CLASS_MEMBER(demo::IColorItem)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(GetItemName, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetItemName, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(GetItemColor, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetItemColor, NO_PARAMETER);
|
||||||
CLASS_MEMBER_PROPERTY_READONLY(ItemName, GetItemName)
|
CLASS_MEMBER_PROPERTY_READONLY(ItemName, GetItemName)
|
||||||
@@ -116,13 +116,13 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(demo::IColorItem)
|
END_CLASS_MEMBER(demo::IColorItem)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::IViewModel)
|
BEGIN_CLASS_MEMBER(demo::IViewModel)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(GetColorItems, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetColorItems, NO_PARAMETER);
|
||||||
CLASS_MEMBER_PROPERTY_READONLY(ColorItems, GetColorItems)
|
CLASS_MEMBER_PROPERTY_READONLY(ColorItems, GetColorItems)
|
||||||
END_CLASS_MEMBER(demo::IViewModel)
|
END_CLASS_MEMBER(demo::IViewModel)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::ColorBomboItemTemplate)
|
BEGIN_CLASS_MEMBER(demo::ColorBomboItemTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiControlTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiControlTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::ColorBomboItemTemplate*(Ptr<demo::IColorItem>), { L"ViewModel" })
|
CLASS_MEMBER_CONSTRUCTOR(demo::ColorBomboItemTemplate*(Ptr<demo::IColorItem>), { L"ViewModel" })
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
||||||
@@ -131,14 +131,14 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(demo::ColorBomboItemTemplate)
|
END_CLASS_MEMBER(demo::ColorBomboItemTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::ColorListItemTemplate)
|
BEGIN_CLASS_MEMBER(demo::ColorListItemTemplate)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::templates::GuiTextListItemTemplate)
|
CLASS_MEMBER_BASE(::vl::presentation::templates::GuiTextListItemTemplate)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::ColorListItemTemplate*(Ptr<demo::IColorItem>), { L"ViewModel" })
|
CLASS_MEMBER_CONSTRUCTOR(demo::ColorListItemTemplate*(Ptr<demo::IColorItem>), { L"ViewModel" })
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
||||||
END_CLASS_MEMBER(demo::ColorListItemTemplate)
|
END_CLASS_MEMBER(demo::ColorListItemTemplate)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(Ptr<demo::IViewModel>), { L"ViewModel" })
|
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(Ptr<demo::IViewModel>), { L"ViewModel" })
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
||||||
|
|||||||
@@ -21,28 +21,28 @@ namespace demo
|
|||||||
class ColorListItemTemplate;
|
class ColorListItemTemplate;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|
||||||
class IColorItem : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<IColorItem>
|
class IColorItem : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IColorItem>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual vl::WString GetItemName() = 0;
|
virtual ::vl::WString GetItemName() = 0;
|
||||||
virtual vl::presentation::Color GetItemColor() = 0;
|
virtual ::vl::presentation::Color GetItemColor() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class IViewModel : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
class IViewModel : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual vl::collections::LazyList<vl::Ptr<demo::IColorItem>> GetColorItems() = 0;
|
virtual vl::collections::LazyList<vl::Ptr<::demo::IColorItem>> GetColorItems() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class ColorBomboItemTemplate_ : public vl::presentation::templates::GuiControlTemplate, public vl::presentation::GuiInstancePartialClass<vl::presentation::templates::GuiControlTemplate>, public vl::reflection::Description<TImpl>
|
class ColorBomboItemTemplate_ : public ::vl::presentation::templates::GuiControlTemplate, public vl::presentation::GuiInstancePartialClass<vl::presentation::templates::GuiControlTemplate>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
Ptr<demo::IColorItem> ViewModel_;
|
Ptr<demo::IColorItem> ViewModel_;
|
||||||
vl::presentation::Color TextColor_;
|
::vl::presentation::Color TextColor_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::templates::GuiControlTemplate* self;
|
::vl::presentation::templates::GuiControlTemplate* self;
|
||||||
|
|
||||||
void InitializeComponents(Ptr<demo::IColorItem> ViewModel)
|
void InitializeComponents(Ptr<demo::IColorItem> ViewModel)
|
||||||
{
|
{
|
||||||
@@ -58,10 +58,16 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
ColorBomboItemTemplate_()
|
ColorBomboItemTemplate_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::templates::GuiControlTemplate>(L"demo::ColorBomboItemTemplate")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::templates::GuiControlTemplate>(L"demo::ColorBomboItemTemplate")
|
||||||
,self(0)
|
,self(0)
|
||||||
{
|
{
|
||||||
this->TextColor_ = vl::reflection::description::UnboxValue<vl::presentation::Color>(vl::reflection::description::Value::From(L"", reflection::description::GetTypeDescriptor<vl::presentation::Color>()));
|
this->TextColor = vl::reflection::description::UnboxValue<::vl::presentation::Color>(
|
||||||
|
[]()
|
||||||
|
{
|
||||||
|
vl::reflection::description::Value value;
|
||||||
|
reflection::description::GetTypeDescriptor<::vl::presentation::Color>()->GetSerializableType()->Deserialize(L"", value);
|
||||||
|
return value;
|
||||||
|
}());
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr<demo::IColorItem> GetViewModel()
|
Ptr<demo::IColorItem> GetViewModel()
|
||||||
@@ -71,12 +77,12 @@ namespace demo
|
|||||||
|
|
||||||
vl::Event<void()> TextColorChanged;
|
vl::Event<void()> TextColorChanged;
|
||||||
|
|
||||||
vl::presentation::Color GetTextColor()
|
::vl::presentation::Color GetTextColor()
|
||||||
{
|
{
|
||||||
return TextColor_;
|
return TextColor_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetTextColor(vl::presentation::Color value)
|
void SetTextColor(::vl::presentation::Color value)
|
||||||
{
|
{
|
||||||
TextColor_ = value;
|
TextColor_ = value;
|
||||||
TextColorChanged();
|
TextColorChanged();
|
||||||
@@ -84,13 +90,13 @@ namespace demo
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class ColorListItemTemplate_ : public vl::presentation::templates::GuiTextListItemTemplate, public vl::presentation::GuiInstancePartialClass<vl::presentation::templates::GuiTextListItemTemplate>, public vl::reflection::Description<TImpl>
|
class ColorListItemTemplate_ : public ::vl::presentation::templates::GuiTextListItemTemplate, public vl::presentation::GuiInstancePartialClass<vl::presentation::templates::GuiTextListItemTemplate>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
Ptr<demo::IColorItem> ViewModel_;
|
Ptr<demo::IColorItem> ViewModel_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::templates::GuiTextListItemTemplate* self;
|
::vl::presentation::templates::GuiTextListItemTemplate* self;
|
||||||
|
|
||||||
void InitializeComponents(Ptr<demo::IColorItem> ViewModel)
|
void InitializeComponents(Ptr<demo::IColorItem> ViewModel)
|
||||||
{
|
{
|
||||||
@@ -106,7 +112,7 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
ColorListItemTemplate_()
|
ColorListItemTemplate_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::templates::GuiTextListItemTemplate>(L"demo::ColorListItemTemplate")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::templates::GuiTextListItemTemplate>(L"demo::ColorListItemTemplate")
|
||||||
,self(0)
|
,self(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -118,7 +124,7 @@ namespace demo
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class MainWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class MainWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
@@ -138,8 +144,8 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
END_CLASS_MEMBER(demo::MainWindow)
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ namespace demo
|
|||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class MainWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class MainWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiSelectableButton::MutexGroupController* radioGroup;
|
::vl::presentation::controls::GuiSelectableButton::MutexGroupController* radioGroup;
|
||||||
|
|
||||||
void InitializeComponents()
|
void InitializeComponents()
|
||||||
{
|
{
|
||||||
@@ -37,8 +37,8 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,radioGroup(0)
|
,radioGroup(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,8 @@ namespace demo
|
|||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
|
||||||
void AboutWindow::documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
void AboutWindow::documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
{
|
{
|
||||||
ShellExecute(NULL, L"OPEN", documentLabel->GetActiveHyperlinkReference().Buffer(), NULL, NULL, SW_MAXIMIZE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutWindow::OnCreate()
|
void AboutWindow::OnCreate()
|
||||||
@@ -26,6 +25,11 @@ namespace demo
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AboutWindow::documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
ShellExecute(NULL, L"OPEN", documentLabel->GetActiveHyperlinkReference().Buffer(), NULL, NULL, SW_MAXIMIZE);
|
||||||
|
}
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|
||||||
AboutWindow::AboutWindow()
|
AboutWindow::AboutWindow()
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace demo
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
void documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void OnCreate();
|
void OnCreate();
|
||||||
void OnDestroy();
|
void OnDestroy();
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|||||||
@@ -51,46 +51,46 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(vm::IFindWindowViewModel)
|
BEGIN_CLASS_MEMBER(vm::IFindWindowViewModel)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(FindNext, { L"toFind" _ L"caseSensitive" _ L"down" });
|
CLASS_MEMBER_METHOD(FindNext, { L"toFind" _ L"caseSensitive" _ L"down" });
|
||||||
END_CLASS_MEMBER(vm::IFindWindowViewModel)
|
END_CLASS_MEMBER(vm::IFindWindowViewModel)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::AboutWindow)
|
BEGIN_CLASS_MEMBER(demo::AboutWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::AboutWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(demo::AboutWindow*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(documentLabel_ActiveHyperlinkExecuted, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(documentLabel_ActiveHyperlinkExecuted, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
END_CLASS_MEMBER(demo::AboutWindow)
|
END_CLASS_MEMBER(demo::AboutWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::FindWindow)
|
BEGIN_CLASS_MEMBER(demo::FindWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::FindWindow*(Ptr<vm::IFindWindowViewModel>), { L"ViewModel" })
|
CLASS_MEMBER_CONSTRUCTOR(demo::FindWindow*(Ptr<vm::IFindWindowViewModel>), { L"ViewModel" })
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
||||||
END_CLASS_MEMBER(demo::FindWindow)
|
END_CLASS_MEMBER(demo::FindWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
||||||
|
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandAbout_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandAbout_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditCopy_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditCopy_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditCut_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditCut_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditDelete_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditDelete_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditFind_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditFind_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditPaste_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditPaste_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditRedo_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditRedo_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditSelect_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditSelect_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditUndo_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandEditUndo_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileExit_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileExit_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileNewText_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileNewText_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileNewXml_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileNewXml_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpenText_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpenText_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpenXml_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpenXml_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpen_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpen_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileSaveAs_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileSaveAs_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileSave_Executed, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileSave_Executed, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(window_Closing, vl::presentation::compositions::GuiRequestEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(window_Closing, ::vl::presentation::compositions::GuiRequestEventArgs)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
END_CLASS_MEMBER(demo::MainWindow)
|
||||||
|
|
||||||
#undef _
|
#undef _
|
||||||
|
|||||||
@@ -26,23 +26,23 @@ namespace demo
|
|||||||
}
|
}
|
||||||
namespace vm
|
namespace vm
|
||||||
{
|
{
|
||||||
class IFindWindowViewModel : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<IFindWindowViewModel>
|
class IFindWindowViewModel : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IFindWindowViewModel>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual bool FindNext(vl::WString toFind, bool caseSensitive, bool down) = 0;
|
virtual bool FindNext(::vl::WString toFind, bool caseSensitive, bool down) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class AboutWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class AboutWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiDocumentLabel* documentLabel;
|
::vl::presentation::controls::GuiDocumentLabel* documentLabel;
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
|
|
||||||
void InitializeComponents()
|
void InitializeComponents()
|
||||||
{
|
{
|
||||||
@@ -57,8 +57,8 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
AboutWindow_()
|
AboutWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::AboutWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::AboutWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,documentLabel(0)
|
,documentLabel(0)
|
||||||
,self(0)
|
,self(0)
|
||||||
{
|
{
|
||||||
@@ -66,19 +66,19 @@ namespace demo
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class FindWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class FindWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
Ptr<vm::IFindWindowViewModel> ViewModel_;
|
Ptr<vm::IFindWindowViewModel> ViewModel_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiSelectableButton* checkCase;
|
::vl::presentation::controls::GuiSelectableButton* checkCase;
|
||||||
vl::presentation::controls::GuiMessageDialog* dialogContentNotFound;
|
::vl::presentation::controls::GuiMessageDialog* dialogContentNotFound;
|
||||||
vl::presentation::controls::GuiSelectableButton::MutexGroupController* groupDirection;
|
::vl::presentation::controls::GuiSelectableButton::MutexGroupController* groupDirection;
|
||||||
vl::presentation::controls::GuiSelectableButton* radioDown;
|
::vl::presentation::controls::GuiSelectableButton* radioDown;
|
||||||
vl::presentation::controls::GuiSelectableButton* radioUp;
|
::vl::presentation::controls::GuiSelectableButton* radioUp;
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
vl::presentation::controls::GuiSinglelineTextBox* textFind;
|
::vl::presentation::controls::GuiSinglelineTextBox* textFind;
|
||||||
|
|
||||||
void InitializeComponents(Ptr<vm::IFindWindowViewModel> ViewModel)
|
void InitializeComponents(Ptr<vm::IFindWindowViewModel> ViewModel)
|
||||||
{
|
{
|
||||||
@@ -100,8 +100,8 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
FindWindow_()
|
FindWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::FindWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::FindWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,checkCase(0)
|
,checkCase(0)
|
||||||
,dialogContentNotFound(0)
|
,dialogContentNotFound(0)
|
||||||
,groupDirection(0)
|
,groupDirection(0)
|
||||||
@@ -119,35 +119,35 @@ namespace demo
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class MainWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class MainWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandAbout;
|
::vl::presentation::controls::GuiToolstripCommand* commandAbout;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditCopy;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditCopy;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditCut;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditCut;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditDelete;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditDelete;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditFind;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditFind;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditPaste;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditPaste;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditRedo;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditRedo;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditSelect;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditSelect;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandEditUndo;
|
::vl::presentation::controls::GuiToolstripCommand* commandEditUndo;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileExit;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileExit;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileNewText;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileNewText;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileNewXml;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileNewXml;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileOpen;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileOpen;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileOpenText;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileOpenText;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileOpenXml;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileOpenXml;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileSave;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileSave;
|
||||||
vl::presentation::controls::GuiToolstripCommand* commandFileSaveAs;
|
::vl::presentation::controls::GuiToolstripCommand* commandFileSaveAs;
|
||||||
vl::presentation::controls::GuiMessageDialog* dialogCannotOpen;
|
::vl::presentation::controls::GuiMessageDialog* dialogCannotOpen;
|
||||||
vl::presentation::controls::GuiMessageDialog* dialogCannotSave;
|
::vl::presentation::controls::GuiMessageDialog* dialogCannotSave;
|
||||||
vl::presentation::controls::GuiOpenFileDialog* dialogOpen;
|
::vl::presentation::controls::GuiOpenFileDialog* dialogOpen;
|
||||||
vl::presentation::controls::GuiMessageDialog* dialogQueryClose;
|
::vl::presentation::controls::GuiMessageDialog* dialogQueryClose;
|
||||||
vl::presentation::controls::GuiSaveFileDialog* dialogSave;
|
::vl::presentation::controls::GuiSaveFileDialog* dialogSave;
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
vl::presentation::controls::GuiMultilineTextBox* textBox;
|
::vl::presentation::controls::GuiMultilineTextBox* textBox;
|
||||||
|
|
||||||
void InitializeComponents()
|
void InitializeComponents()
|
||||||
{
|
{
|
||||||
@@ -184,8 +184,8 @@ namespace demo
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,commandAbout(0)
|
,commandAbout(0)
|
||||||
,commandEditCopy(0)
|
,commandEditCopy(0)
|
||||||
,commandEditCut(0)
|
,commandEditCut(0)
|
||||||
|
|||||||
@@ -86,6 +86,89 @@ namespace demo
|
|||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
|
||||||
|
void MainWindow::commandAbout_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditCopy_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditCut_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditDelete_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditFind_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditPaste_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditRedo_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditSelect_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandEditUndo_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileExit_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileNewText_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileNewXml_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileOpenText_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileOpenXml_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileOpen_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileSaveAs_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::commandFileSave_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::window_Closing(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiRequestEventArgs& arguments)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::OnCreate()
|
||||||
|
{
|
||||||
|
findWindow = MakePtr<FindWindow>(MakePtr<FindWindowViewModel>(textBox));
|
||||||
|
findWindow->MoveToScreenCenter();
|
||||||
|
findWindow->GetNativeWindow()->SetParent(GetNativeWindow());
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::OnDestroy()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::commandAbout_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
void MainWindow::commandAbout_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
{
|
{
|
||||||
auto window = new AboutWindow;
|
auto window = new AboutWindow;
|
||||||
@@ -188,17 +271,6 @@ namespace demo
|
|||||||
arguments.cancel = !CanCloseFile();
|
arguments.cancel = !CanCloseFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OnCreate()
|
|
||||||
{
|
|
||||||
findWindow = MakePtr<FindWindow>(MakePtr<FindWindowViewModel>(textBox));
|
|
||||||
findWindow->MoveToScreenCenter();
|
|
||||||
findWindow->GetNativeWindow()->SetParent(GetNativeWindow());
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::OnDestroy()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|
||||||
bool MainWindow::CanCloseFile()
|
bool MainWindow::CanCloseFile()
|
||||||
|
|||||||
@@ -20,24 +20,24 @@ namespace demo
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
void commandAbout_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandAbout_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditCopy_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditCopy_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditCut_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditCut_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditDelete_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditDelete_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditFind_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditFind_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditPaste_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditPaste_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditRedo_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditRedo_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditSelect_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditSelect_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandEditUndo_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandEditUndo_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileExit_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileExit_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileNewText_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileNewText_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileNewXml_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileNewXml_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileOpenText_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileOpenText_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileOpenXml_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileOpenXml_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileOpen_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileOpen_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileSaveAs_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileSaveAs_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void commandFileSave_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void commandFileSave_Executed(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void window_Closing(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiRequestEventArgs& arguments);
|
void window_Closing(GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiRequestEventArgs& arguments);
|
||||||
void OnCreate();
|
void OnCreate();
|
||||||
void OnDestroy();
|
void OnDestroy();
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
#include <GacUI.h>
|
#include <GacUI.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
#include "UI/Source/HelloWorld.h"
|
#include "UI/Source/HelloWorld.h"
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(helloworld::MainWindow)
|
IMPL_CPP_TYPE_INFO(helloworld::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(helloworld::MainWindow)
|
BEGIN_CLASS_MEMBER(helloworld::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(helloworld::MainWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_CONSTRUCTOR(helloworld::MainWindow*(), NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(helloworld::MainWindow)
|
END_CLASS_MEMBER(helloworld::MainWindow)
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace helloworld
|
|||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class MainWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class MainWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
@@ -35,8 +35,8 @@ namespace helloworld
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"helloworld::MainWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"helloworld::MainWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
#include "UI/Source/HelloWorld.h"
|
#include "UI/Source/HelloWorld.h"
|
||||||
|
|
||||||
using namespace vl::collections;
|
using namespace vl::collections;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace vl
|
|||||||
IMPL_CPP_TYPE_INFO(helloworld::MainWindow)
|
IMPL_CPP_TYPE_INFO(helloworld::MainWindow)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(vm::IViewModel)
|
BEGIN_CLASS_MEMBER(vm::IViewModel)
|
||||||
CLASS_MEMBER_BASE(vl::reflection::IDescriptable)
|
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
||||||
CLASS_MEMBER_METHOD(GetUserName, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetUserName, NO_PARAMETER);
|
||||||
CLASS_MEMBER_METHOD(SetUserName, { L"value" });
|
CLASS_MEMBER_METHOD(SetUserName, { L"value" });
|
||||||
CLASS_MEMBER_METHOD(GetPassword, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetPassword, NO_PARAMETER);
|
||||||
@@ -38,10 +38,10 @@ namespace vl
|
|||||||
END_CLASS_MEMBER(vm::IViewModel)
|
END_CLASS_MEMBER(vm::IViewModel)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(helloworld::MainWindow)
|
BEGIN_CLASS_MEMBER(helloworld::MainWindow)
|
||||||
CLASS_MEMBER_BASE(vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(helloworld::MainWindow*(Ptr<vm::IViewModel>), { L"ViewModel" })
|
CLASS_MEMBER_CONSTRUCTOR(helloworld::MainWindow*(Ptr<vm::IViewModel>), { L"ViewModel" })
|
||||||
|
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(buttonSignUp_Clicked, vl::presentation::compositions::GuiEventArgs)
|
CLASS_MEMBER_GUIEVENT_HANDLER(buttonSignUp_Clicked, ::vl::presentation::compositions::GuiEventArgs)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
||||||
CLASS_MEMBER_EVENT(HasLoggedInChanged)
|
CLASS_MEMBER_EVENT(HasLoggedInChanged)
|
||||||
|
|||||||
@@ -24,16 +24,16 @@ namespace helloworld
|
|||||||
}
|
}
|
||||||
namespace vm
|
namespace vm
|
||||||
{
|
{
|
||||||
class IViewModel : public virtual vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
class IViewModel : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual vl::WString GetUserName() = 0;
|
virtual ::vl::WString GetUserName() = 0;
|
||||||
virtual void SetUserName(vl::WString value) = 0;
|
virtual void SetUserName(::vl::WString value) = 0;
|
||||||
virtual vl::WString GetPassword() = 0;
|
virtual ::vl::WString GetPassword() = 0;
|
||||||
virtual void SetPassword(vl::WString value) = 0;
|
virtual void SetPassword(::vl::WString value) = 0;
|
||||||
virtual vl::WString GetUserNameError() = 0;
|
virtual ::vl::WString GetUserNameError() = 0;
|
||||||
vl::Event<void()> UserNameErrorChanged;
|
vl::Event<void()> UserNameErrorChanged;
|
||||||
virtual vl::WString GetPasswordError() = 0;
|
virtual ::vl::WString GetPasswordError() = 0;
|
||||||
vl::Event<void()> PasswordErrorChanged;
|
vl::Event<void()> PasswordErrorChanged;
|
||||||
virtual bool SignUp() = 0;
|
virtual bool SignUp() = 0;
|
||||||
};
|
};
|
||||||
@@ -42,20 +42,20 @@ namespace vm
|
|||||||
namespace helloworld
|
namespace helloworld
|
||||||
{
|
{
|
||||||
template<typename TImpl>
|
template<typename TImpl>
|
||||||
class MainWindow_ : public vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
class MainWindow_ : public ::vl::presentation::controls::GuiWindow, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>, public vl::reflection::Description<TImpl>
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
||||||
private:
|
private:
|
||||||
Ptr<vm::IViewModel> ViewModel_;
|
vl::Ptr<vm::IViewModel> ViewModel_;
|
||||||
bool HasLoggedIn_;
|
bool HasLoggedIn_;
|
||||||
protected:
|
protected:
|
||||||
vl::presentation::controls::GuiButton* buttonCancel;
|
::vl::presentation::controls::GuiButton* buttonCancel;
|
||||||
vl::presentation::controls::GuiButton* buttonSignUp;
|
::vl::presentation::controls::GuiButton* buttonSignUp;
|
||||||
vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiWindow* self;
|
||||||
vl::presentation::controls::GuiSinglelineTextBox* textBoxPassword;
|
::vl::presentation::controls::GuiSinglelineTextBox* textBoxPassword;
|
||||||
vl::presentation::controls::GuiSinglelineTextBox* textBoxUserName;
|
::vl::presentation::controls::GuiSinglelineTextBox* textBoxUserName;
|
||||||
|
|
||||||
void InitializeComponents(Ptr<vm::IViewModel> ViewModel)
|
void InitializeComponents(vl::Ptr<vm::IViewModel> ViewModel)
|
||||||
{
|
{
|
||||||
ViewModel_ = ViewModel;
|
ViewModel_ = ViewModel;
|
||||||
if (InitializeFromResource())
|
if (InitializeFromResource())
|
||||||
@@ -73,18 +73,24 @@ namespace helloworld
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindow_()
|
||||||
:vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiWindow>(L"helloworld::MainWindow")
|
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"helloworld::MainWindow")
|
||||||
,vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
||||||
,buttonCancel(0)
|
,buttonCancel(0)
|
||||||
,buttonSignUp(0)
|
,buttonSignUp(0)
|
||||||
,self(0)
|
,self(0)
|
||||||
,textBoxPassword(0)
|
,textBoxPassword(0)
|
||||||
,textBoxUserName(0)
|
,textBoxUserName(0)
|
||||||
{
|
{
|
||||||
this->HasLoggedIn_ = vl::reflection::description::UnboxValue<bool>(vl::reflection::description::Value::From(L"false", reflection::description::GetTypeDescriptor<bool>()));
|
this->HasLoggedIn_ = vl::reflection::description::UnboxValue<bool>(
|
||||||
|
[]()
|
||||||
|
{
|
||||||
|
vl::reflection::description::Value value;
|
||||||
|
vl::reflection::description::GetTypeDescriptor<bool>()->GetSerializableType()->Deserialize(L"false", value);
|
||||||
|
return value;
|
||||||
|
}());
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr<vm::IViewModel> GetViewModel()
|
vl::Ptr<vm::IViewModel> GetViewModel()
|
||||||
{
|
{
|
||||||
return ViewModel_;
|
return ViewModel_;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace helloworld
|
|||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
|
||||||
void MainWindow::buttonSignUp_Clicked(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
|
void MainWindow::buttonSignUp_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
||||||
{
|
{
|
||||||
if (this->GetViewModel()->SignUp())
|
if (this->GetViewModel()->SignUp())
|
||||||
{
|
{
|
||||||
@@ -31,7 +31,7 @@ namespace helloworld
|
|||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|
||||||
MainWindow::MainWindow(Ptr<vm::IViewModel> ViewModel)
|
MainWindow::MainWindow(vl::Ptr<vm::IViewModel> ViewModel)
|
||||||
{
|
{
|
||||||
InitializeComponents(ViewModel);
|
InitializeComponents(ViewModel);
|
||||||
OnCreate();
|
OnCreate();
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ namespace helloworld
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
void buttonSignUp_Clicked(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
|
void buttonSignUp_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
||||||
void OnCreate();
|
void OnCreate();
|
||||||
void OnDestroy();
|
void OnDestroy();
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
public:
|
public:
|
||||||
MainWindow(Ptr<vm::IViewModel> ViewModel);
|
MainWindow(vl::Ptr<vm::IViewModel> ViewModel);
|
||||||
~MainWindow();
|
~MainWindow();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
#include <GacUICompiler.h>
|
#include <GacUICompiler.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
#include <GacUIReflection.h>
|
#include <GacUIReflection.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user