mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-06-01 06:14:11 +08:00
Xml/Member_*
This commit is contained in:
@@ -12,6 +12,12 @@
|
|||||||
<Instance name="MainWindowResource">
|
<Instance name="MainWindowResource">
|
||||||
<Instance ref.CodeBehind="true" ref.Class="demo::MainWindow">
|
<Instance ref.CodeBehind="true" ref.Class="demo::MainWindow">
|
||||||
<ref.State Name="integerState" Type="int" Value="0"/>
|
<ref.State Name="integerState" Type="int" Value="0"/>
|
||||||
|
<ref.Members>
|
||||||
|
<![CDATA[
|
||||||
|
@cpp:Protected
|
||||||
|
var integerState : int = 0;
|
||||||
|
]]>
|
||||||
|
</ref.Members>
|
||||||
<Window ref.Name="self" Text="Member_Field" ClientSize="x:480 y:320">
|
<Window ref.Name="self" Text="Member_Field" ClientSize="x:480 y:320">
|
||||||
<att.BoundsComposition-set PreferredMinSize="x:480 y:320"/>
|
<att.BoundsComposition-set PreferredMinSize="x:480 y:320"/>
|
||||||
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
|
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
|
||||||
|
|||||||
@@ -1,17 +1,36 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Demo
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
|
|
||||||
#include "DemoPartialClasses.h"
|
#include "DemoPartialClasses.h"
|
||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
namespace vl
|
||||||
|
{
|
||||||
|
namespace reflection
|
||||||
|
{
|
||||||
|
namespace description
|
||||||
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindow)
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern bool LoadDemoTypes();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,74 +1,94 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Partial Classes
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_PARTIAL_CLASSES
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_PARTIAL_CLASSES
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
|
|
||||||
#include "GacUIReflection.h"
|
#include "GacUI.h"
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4250)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace vl_workflow_global
|
||||||
|
{
|
||||||
|
class __vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
class __vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
struct __vwsnf1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
struct __vwsnf2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
struct __vwsno3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
}
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
|
class MainWindowConstructor;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|
||||||
template<typename TImpl>
|
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||||
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 class ::vl_workflow_global::__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
private:
|
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsno3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
::vl::vint32_t integerState;
|
::demo::MainWindow* self = static_cast<::demo::MainWindow*>(nullptr);
|
||||||
::vl::presentation::controls::GuiWindow* self;
|
::vl::presentation::controls::GuiSinglelineTextBox* textBoxA = static_cast<::vl::presentation::controls::GuiSinglelineTextBox*>(nullptr);
|
||||||
::vl::presentation::controls::GuiSinglelineTextBox* textBoxA;
|
::vl::presentation::controls::GuiSinglelineTextBox* textBoxB = static_cast<::vl::presentation::controls::GuiSinglelineTextBox*>(nullptr);
|
||||||
::vl::presentation::controls::GuiSinglelineTextBox* textBoxB;
|
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0 = static_cast<::vl::presentation::compositions::GuiTableComposition*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1 = static_cast<::vl::presentation::compositions::GuiCellComposition*>(nullptr);
|
||||||
void InitializeComponents()
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
{
|
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_3 = static_cast<::vl::presentation::compositions::GuiCellComposition*>(nullptr);
|
||||||
if (InitializeFromResource())
|
::vl::presentation::controls::GuiButton* __vwsn_precompile_4 = static_cast<::vl::presentation::controls::GuiButton*>(nullptr);
|
||||||
{
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_5 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
GUI_INSTANCE_REFERENCE(self);
|
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_6 = static_cast<::vl::presentation::compositions::GuiCellComposition*>(nullptr);
|
||||||
GUI_INSTANCE_REFERENCE(textBoxA);
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_7 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
GUI_INSTANCE_REFERENCE(textBoxB);
|
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_8 = static_cast<::vl::presentation::compositions::GuiCellComposition*>(nullptr);
|
||||||
}
|
::vl::presentation::controls::GuiButton* __vwsn_precompile_9 = static_cast<::vl::presentation::controls::GuiButton*>(nullptr);
|
||||||
else
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_10 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
{
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_11 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
}
|
void __vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
}
|
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindowConstructor();
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
,self(0)
|
|
||||||
,textBoxA(0)
|
|
||||||
,textBoxB(0)
|
|
||||||
{
|
|
||||||
this->integerState = vl::reflection::description::UnboxValue<::vl::vint32_t>(
|
|
||||||
[]()
|
|
||||||
{
|
|
||||||
vl::reflection::description::Value value;
|
|
||||||
vl::reflection::description::GetTypeDescriptor<::vl::vint32_t>()->GetSerializableType()->Deserialize(L"0", value);
|
|
||||||
return value;
|
|
||||||
}());
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
namespace vl
|
/***********************************************************************
|
||||||
{
|
Global Variables and Functions
|
||||||
namespace reflection
|
***********************************************************************/
|
||||||
{
|
|
||||||
namespace description
|
|
||||||
{
|
|
||||||
DECL_TYPE_INFO(demo::MainWindow)
|
|
||||||
|
|
||||||
}
|
namespace vl_workflow_global
|
||||||
}
|
{
|
||||||
|
class Demo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
static Demo& Instance();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,41 +1,65 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::MainWindow
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
|
|
||||||
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#include "Demo.h"
|
#include "Demo.h"
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4250)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define GLOBAL_SYMBOL ::vl_workflow_global::Demo::
|
||||||
|
#define GLOBAL_NAME ::vl_workflow_global::Demo::Instance().
|
||||||
|
#define GLOBAL_OBJ &::vl_workflow_global::Demo::Instance()
|
||||||
|
#define USERIMPL(...)
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Class (::demo::MainWindow)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
USERIMPL(/* ::demo::MainWindow */)
|
||||||
|
void MainWindow::buttonPaste_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments)
|
||||||
void MainWindow::buttonPaste_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
|
||||||
{
|
{
|
||||||
textBoxB->SetText(vl::itow(this->integerState));
|
textBoxB->SetText(vl::itow(this->integerState));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OnCreate()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::OnDestroy()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
|
||||||
|
|
||||||
MainWindow::MainWindow()
|
MainWindow::MainWindow()
|
||||||
|
: ::vl::presentation::controls::GuiWindow(::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateWindowStyle())
|
||||||
{
|
{
|
||||||
InitializeComponents();
|
auto __vwsn_resource_ = ::vl::__vwsn::This(::vl::presentation::GetResourceManager())->GetResourceFromClassName(::vl::WString(L"demo::MainWindow", false));
|
||||||
OnCreate();
|
auto __vwsn_resolver_ = ::vl::Ptr<::vl::presentation::GuiResourcePathResolver>(new ::vl::presentation::GuiResourcePathResolver(__vwsn_resource_, ::vl::__vwsn::This(__vwsn_resource_.Obj())->GetWorkingDirectory()));
|
||||||
|
::vl::__vwsn::This(this)->__vwsn_initialize_instance_(this, ::vl::__vwsn::Ensure(static_cast<::vl::presentation::GuiResourcePathResolver*>(__vwsn_resolver_.Obj())));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
OnDestroy();
|
::vl::__vwsn::This(this)->ClearSubscriptions();
|
||||||
ClearSubscriptions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#undef GLOBAL_SYMBOL
|
||||||
|
#undef GLOBAL_NAME
|
||||||
|
#undef GLOBAL_OBJ
|
||||||
|
#undef USERIMPL
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -1,33 +1,56 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::MainWindow
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
|
|
||||||
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_MainWindow
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_MAINWINDOW
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_MainWindow
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_MAINWINDOW
|
||||||
|
|
||||||
#include "DemoPartialClasses.h"
|
#include "DemoPartialClasses.h"
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4250)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
class MainWindow : public demo::MainWindow_<demo::MainWindow>
|
class MainWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::MainWindowConstructor, public ::vl::reflection::Description<MainWindow>
|
||||||
{
|
{
|
||||||
friend class demo::MainWindow_<demo::MainWindow>;
|
friend class ::demo::MainWindowConstructor;
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<demo::MainWindow>;
|
friend class ::vl_workflow_global::__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsno3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
|
::vl::vint32_t integerState = 0;
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
void buttonPaste_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments);
|
||||||
void buttonPaste_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments);
|
|
||||||
void OnCreate();
|
|
||||||
void OnDestroy();
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
|
||||||
public:
|
public:
|
||||||
MainWindow();
|
MainWindow();
|
||||||
~MainWindow();
|
~MainWindow();
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -10,17 +10,19 @@
|
|||||||
</Folder>
|
</Folder>
|
||||||
<Folder name="MainWindow">
|
<Folder name="MainWindow">
|
||||||
<Script>
|
<Script>
|
||||||
<Workflow-ViewModel>
|
<Workflow>
|
||||||
module script;
|
<![CDATA[
|
||||||
|
module script;
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
|
||||||
interface IViewModel
|
|
||||||
{
|
{
|
||||||
func GetText() : string;
|
interface IViewModel
|
||||||
|
{
|
||||||
|
func GetText() : string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
]]>
|
||||||
</Workflow-ViewModel>
|
</Workflow>
|
||||||
</Script>
|
</Script>
|
||||||
<Instance name="MainWindowResource">
|
<Instance name="MainWindowResource">
|
||||||
<Instance ref.CodeBehind="false" ref.Class="demo::MainWindow">
|
<Instance ref.CodeBehind="false" ref.Class="demo::MainWindow">
|
||||||
|
|||||||
@@ -1,16 +1,43 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Demo
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
|
|
||||||
#include "DemoPartialClasses.h"
|
#include "DemoPartialClasses.h"
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
namespace vl
|
||||||
|
{
|
||||||
|
namespace reflection
|
||||||
|
{
|
||||||
|
namespace description
|
||||||
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
DECL_TYPE_INFO(::demo::IViewModel)
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindow)
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
|
BEGIN_INTERFACE_PROXY_NOPARENT_SHAREDPTR(::demo::IViewModel)
|
||||||
|
::vl::WString GetText() override
|
||||||
|
{
|
||||||
|
INVOKEGET_INTERFACE_PROXY_NOPARAMS(GetText);
|
||||||
|
}
|
||||||
|
END_INTERFACE_PROXY(::demo::IViewModel)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern bool LoadDemoTypes();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,42 +1,127 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Partial Classes
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#include "Demo.h"
|
#include "Demo.h"
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4250)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define GLOBAL_SYMBOL ::vl_workflow_global::Demo::
|
||||||
|
#define GLOBAL_NAME ::vl_workflow_global::Demo::Instance().
|
||||||
|
#define GLOBAL_OBJ &::vl_workflow_global::Demo::Instance()
|
||||||
|
#define USERIMPL(...)
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Global Variables
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
BEGIN_GLOBAL_STORAGE_CLASS(vl_workflow_global_Demo)
|
||||||
|
vl_workflow_global::Demo instance;
|
||||||
|
INITIALIZE_GLOBAL_STORAGE_CLASS
|
||||||
|
FINALIZE_GLOBAL_STORAGE_CLASS
|
||||||
|
END_GLOBAL_STORAGE_CLASS(vl_workflow_global_Demo)
|
||||||
|
|
||||||
|
namespace vl_workflow_global
|
||||||
|
{
|
||||||
|
/***********************************************************************
|
||||||
|
Global Functions
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
Demo& Demo::Instance()
|
||||||
|
{
|
||||||
|
return Getvl_workflow_global_Demo().instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Class (::demo::MainWindowConstructor)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
void MainWindowConstructor::__vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_)
|
||||||
|
{
|
||||||
|
(::vl::__vwsn::This(this)->__vwsn_precompile_0 = __vwsn_this_);
|
||||||
|
(::vl::__vwsn::This(this)->ViewModel = ::vl::__vwsn::This(__vwsn_this_)->GetViewModel());
|
||||||
|
(::vl::__vwsn::This(this)->__vwsn_precompile_2 = ::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->GetBoundsComposition());
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_2)->SetPreferredMinSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = 480; __vwsn_temp__.y = 320; return __vwsn_temp__; }());
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->SetClientSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = 480; __vwsn_temp__.y = 320; return __vwsn_temp__; }());
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->SetText(::vl::WString(L"Member_Parameter", false));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateLabelStyle();
|
||||||
|
(::vl::__vwsn::This(this)->__vwsn_precompile_1 = new ::vl::presentation::controls::GuiLabel(__vwsn_controlStyle_));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_1)->SetFont([&](){ ::vl::presentation::FontProperties __vwsn_temp__; __vwsn_temp__.fontFamily = ::vl::WString(L"Segoe UI", false); __vwsn_temp__.size = 32; __vwsn_temp__.antialias = true; return __vwsn_temp__; }());
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->AddChild(::vl::__vwsn::Ensure(static_cast<::vl::presentation::controls::GuiControl*>(::vl::__vwsn::This(this)->__vwsn_precompile_1)));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_1)->SetText(::vl::__vwsn::This(::vl::__vwsn::This(this)->ViewModel.Obj())->GetText());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::OnCreate()
|
MainWindowConstructor::MainWindowConstructor()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OnDestroy()
|
/***********************************************************************
|
||||||
|
Class (::demo::MainWindow)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
::vl::Ptr<::demo::IViewModel> MainWindow::GetViewModel()
|
||||||
{
|
{
|
||||||
|
return ::vl::__vwsn::This(this)->__vwsn_parameter_ViewModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
MainWindow::MainWindow(::vl::Ptr<::demo::IViewModel> __vwsn_ctor_parameter_ViewModel)
|
||||||
|
: ::vl::presentation::controls::GuiWindow(::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateWindowStyle())
|
||||||
MainWindow::MainWindow(vl::Ptr<demo::IViewModel> ViewModel)
|
|
||||||
{
|
{
|
||||||
InitializeComponents(ViewModel);
|
(::vl::__vwsn::This(this)->__vwsn_parameter_ViewModel = __vwsn_ctor_parameter_ViewModel);
|
||||||
OnCreate();
|
auto __vwsn_resource_ = ::vl::__vwsn::This(::vl::presentation::GetResourceManager())->GetResourceFromClassName(::vl::WString(L"demo::MainWindow", false));
|
||||||
|
auto __vwsn_resolver_ = ::vl::Ptr<::vl::presentation::GuiResourcePathResolver>(new ::vl::presentation::GuiResourcePathResolver(__vwsn_resource_, ::vl::__vwsn::This(__vwsn_resource_.Obj())->GetWorkingDirectory()));
|
||||||
|
::vl::__vwsn::This(this)->__vwsn_initialize_instance_(this, ::vl::__vwsn::Ensure(static_cast<::vl::presentation::GuiResourcePathResolver*>(__vwsn_resolver_.Obj())));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
OnDestroy();
|
::vl::__vwsn::This(this)->ClearSubscriptions();
|
||||||
ClearSubscriptions();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Class (::demo::IViewModel)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
}
|
||||||
|
#undef GLOBAL_SYMBOL
|
||||||
|
#undef GLOBAL_NAME
|
||||||
|
#undef GLOBAL_OBJ
|
||||||
|
#undef USERIMPL
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
namespace vl
|
namespace vl
|
||||||
{
|
{
|
||||||
@@ -44,56 +129,65 @@ namespace vl
|
|||||||
{
|
{
|
||||||
namespace description
|
namespace description
|
||||||
{
|
{
|
||||||
#define _ ,
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
IMPL_CPP_TYPE_INFO(demo::IViewModel)
|
IMPL_CPP_TYPE_INFO(::demo::IViewModel)
|
||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(::demo::MainWindow)
|
||||||
|
IMPL_CPP_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::IViewModel)
|
#define _ ,
|
||||||
CLASS_MEMBER_BASE(::vl::reflection::IDescriptable)
|
BEGIN_INTERFACE_MEMBER(::demo::IViewModel)
|
||||||
CLASS_MEMBER_METHOD(GetText, NO_PARAMETER);
|
CLASS_MEMBER_METHOD(GetText, NO_PARAMETER)
|
||||||
END_CLASS_MEMBER(demo::IViewModel)
|
END_INTERFACE_MEMBER(::demo::IViewModel)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
||||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_METHOD(GetViewModel, NO_PARAMETER)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(vl::Ptr<demo::IViewModel>), { L"ViewModel" })
|
CLASS_MEMBER_FIELD(__vwsn_parameter_ViewModel)
|
||||||
|
CLASS_MEMBER_PROPERTY_READONLY(ViewModel, GetViewModel)
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindow)
|
||||||
|
|
||||||
CLASS_MEMBER_PROPERTY_READONLY_FAST(ViewModel)
|
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
CLASS_MEMBER_METHOD(__vwsn_initialize_instance_, { L"__vwsn_this_" _ L"__vwsn_resolver_" })
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||||
|
CLASS_MEMBER_FIELD(ViewModel)
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
#undef _
|
#undef _
|
||||||
|
class DemoTypeLoader : public Object, public ITypeLoader
|
||||||
class DemoResourceLoader : public Object, public ITypeLoader
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void Load(ITypeManager* manager)
|
void Load(ITypeManager* manager)
|
||||||
{
|
{
|
||||||
ADD_TYPE_INFO(demo::IViewModel)
|
ADD_TYPE_INFO(::demo::IViewModel)
|
||||||
ADD_TYPE_INFO(demo::MainWindow)
|
ADD_TYPE_INFO(::demo::MainWindow)
|
||||||
|
ADD_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unload(ITypeManager* manager)
|
void Unload(ITypeManager* manager)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
class DemoResourcePlugin : public Object, public vl::presentation::controls::IGuiPlugin
|
bool LoadDemoTypes()
|
||||||
{
|
{
|
||||||
public:
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
void Load()override
|
if (auto manager = GetGlobalTypeManager())
|
||||||
{
|
{
|
||||||
GetGlobalTypeManager()->AddTypeLoader(new DemoResourceLoader);
|
return manager->AddTypeLoader(MakePtr<DemoTypeLoader>());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
void AfterLoad()override
|
return false;
|
||||||
{
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Unload()override
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
|
||||||
GUI_REGISTER_PLUGIN(DemoResourcePlugin)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -1,92 +1,92 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Partial Classes
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_PARTIAL_CLASSES
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_PARTIAL_CLASSES
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
|
|
||||||
#include "GacUIReflection.h"
|
#include "GacUI.h"
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4250)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
class IViewModel;
|
class MainWindowConstructor;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
class IViewModel;
|
||||||
|
|
||||||
class IViewModel : public virtual ::vl::reflection::IDescriptable, public vl::reflection::Description<IViewModel>
|
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||||
{
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||||
|
#endif
|
||||||
|
protected:
|
||||||
|
::vl::Ptr<::demo::IViewModel> ViewModel = ::vl::Ptr<::demo::IViewModel>();
|
||||||
|
::demo::MainWindow* __vwsn_precompile_0 = static_cast<::demo::MainWindow*>(nullptr);
|
||||||
|
::vl::presentation::controls::GuiLabel* __vwsn_precompile_1 = static_cast<::vl::presentation::controls::GuiLabel*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
|
void __vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
|
public:
|
||||||
|
MainWindowConstructor();
|
||||||
|
};
|
||||||
|
|
||||||
|
class MainWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::MainWindowConstructor, public ::vl::reflection::Description<MainWindow>
|
||||||
|
{
|
||||||
|
friend class ::demo::MainWindowConstructor;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||||
|
#endif
|
||||||
|
public:
|
||||||
|
::vl::Ptr<::demo::IViewModel> __vwsn_parameter_ViewModel = ::vl::Ptr<::demo::IViewModel>();
|
||||||
|
::vl::Ptr<::demo::IViewModel> GetViewModel();
|
||||||
|
MainWindow(::vl::Ptr<::demo::IViewModel> __vwsn_ctor_parameter_ViewModel);
|
||||||
|
~MainWindow();
|
||||||
|
};
|
||||||
|
|
||||||
|
class IViewModel : public virtual ::vl::reflection::IDescriptable, public ::vl::reflection::Description<IViewModel>
|
||||||
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<IViewModel>;
|
||||||
|
#endif
|
||||||
public:
|
public:
|
||||||
virtual ::vl::WString GetText() = 0;
|
virtual ::vl::WString GetText() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename 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>;
|
|
||||||
private:
|
|
||||||
vl::Ptr<demo::IViewModel> ViewModel_;
|
|
||||||
protected:
|
|
||||||
|
|
||||||
void InitializeComponents(vl::Ptr<demo::IViewModel> ViewModel)
|
|
||||||
{
|
|
||||||
ViewModel_ = ViewModel;
|
|
||||||
if (InitializeFromResource())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ViewModel_ = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
|
||||||
MainWindow_()
|
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
vl::Ptr<demo::IViewModel> GetViewModel()
|
|
||||||
{
|
|
||||||
return ViewModel_;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
namespace vl
|
/***********************************************************************
|
||||||
{
|
Global Variables and Functions
|
||||||
namespace reflection
|
***********************************************************************/
|
||||||
{
|
|
||||||
namespace description
|
|
||||||
{
|
|
||||||
DECL_TYPE_INFO(demo::IViewModel)
|
|
||||||
DECL_TYPE_INFO(demo::MainWindow)
|
|
||||||
|
|
||||||
}
|
namespace vl_workflow_global
|
||||||
}
|
|
||||||
}
|
|
||||||
namespace demo
|
|
||||||
{
|
{
|
||||||
class MainWindow : public demo::MainWindow_<demo::MainWindow>
|
class Demo
|
||||||
{
|
{
|
||||||
friend class demo::MainWindow_<demo::MainWindow>;
|
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<demo::MainWindow>;
|
|
||||||
protected:
|
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
|
||||||
void OnCreate();
|
|
||||||
void OnDestroy();
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
|
||||||
public:
|
public:
|
||||||
MainWindow(vl::Ptr<demo::IViewModel> ViewModel);
|
|
||||||
~MainWindow();
|
static Demo& Instance();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -22,7 +22,29 @@
|
|||||||
|
|
||||||
<Instance name="MyControlResource">
|
<Instance name="MyControlResource">
|
||||||
<Instance ref.CodeBehind="false" ref.Class="demo::MyControl" xmlns:x="presentation::controls::GuiSelectableButton::*">
|
<Instance ref.CodeBehind="false" ref.Class="demo::MyControl" xmlns:x="presentation::controls::GuiSelectableButton::*">
|
||||||
<ref.Property Name="SelectedOption" Type="string" Value="A"/>
|
<ref.Members>
|
||||||
|
<![CDATA[
|
||||||
|
@cpp:Protected
|
||||||
|
var selectedOption : string = "A";
|
||||||
|
event SelectedOptionChanged();
|
||||||
|
|
||||||
|
func GetSelectedOption() : string
|
||||||
|
{
|
||||||
|
return selectedOption;
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetSelectedOption(value : string) : void
|
||||||
|
{
|
||||||
|
if (selectedOption != value)
|
||||||
|
{
|
||||||
|
selectedOption = value;
|
||||||
|
SelectedOptionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
prop SelectedOption : string {GetSelectedOption, SetSelectedOption : SelectedOptionChanged}
|
||||||
|
]]>
|
||||||
|
</ref.Members>
|
||||||
<CustomControl ref.Name="self">
|
<CustomControl ref.Name="self">
|
||||||
<x:MutexGroupController ref.Name="optionGroup"/>
|
<x:MutexGroupController ref.Name="optionGroup"/>
|
||||||
<att.ContainerComposition-set MinSizeLimitation="LimitToElementAndChildren"/>
|
<att.ContainerComposition-set MinSizeLimitation="LimitToElementAndChildren"/>
|
||||||
|
|||||||
@@ -1,16 +1,37 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Demo
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
|
|
||||||
#include "DemoPartialClasses.h"
|
#include "DemoPartialClasses.h"
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
namespace vl
|
||||||
|
{
|
||||||
|
namespace reflection
|
||||||
|
{
|
||||||
|
namespace description
|
||||||
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindow)
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
DECL_TYPE_INFO(::demo::MyControl)
|
||||||
|
DECL_TYPE_INFO(::demo::MyControlConstructor)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern bool LoadDemoTypes();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,151 +1,147 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
Vczh Library++ 3.0
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
Developer: Zihan Chen(vczh)
|
|
||||||
GacUI::Partial Classes
|
|
||||||
|
|
||||||
This file is generated by: Vczh GacUI Resource Code Generator
|
GacGen.exe Resource.xml
|
||||||
************************************************************************
|
|
||||||
DO NOT MODIFY
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
#ifndef VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_PARTIAL_CLASSES
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
#define VCZH_GACUI_RESOURCE_CODE_GENERATOR_Demo_PARTIAL_CLASSES
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
|
|
||||||
#include "GacUIReflection.h"
|
#include "GacUI.h"
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4250)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace vl_workflow_global
|
||||||
|
{
|
||||||
|
class __vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
class __vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
class __vwsnc3_Demo_demo_MyControlConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
class __vwsnc4_Demo_demo_MyControlConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
struct __vwsnf1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
struct __vwsnf2_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
struct __vwsnf3_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
struct __vwsnf4_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
}
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
|
class MainWindowConstructor;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
class MyControlConstructor;
|
||||||
class MyControl;
|
class MyControl;
|
||||||
|
|
||||||
template<typename TImpl>
|
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||||
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 class ::vl_workflow_global::__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
private:
|
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
demo::MyControl* myControl;
|
::demo::MyControl* myControl = static_cast<::demo::MyControl*>(nullptr);
|
||||||
|
::demo::MainWindow* __vwsn_precompile_0 = static_cast<::demo::MainWindow*>(nullptr);
|
||||||
void InitializeComponents()
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_1 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
{
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
if (InitializeFromResource())
|
void __vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
{
|
|
||||||
GUI_INSTANCE_REFERENCE(myControl);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindowConstructor();
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
,myControl(0)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
class MainWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::MainWindowConstructor, public ::vl::reflection::Description<MainWindow>
|
||||||
class MyControl_ : public ::vl::presentation::controls::GuiCustomControl, public vl::presentation::GuiInstancePartialClass<vl::presentation::controls::GuiCustomControl>, public vl::reflection::Description<TImpl>
|
|
||||||
{
|
{
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<TImpl>;
|
friend class ::demo::MainWindowConstructor;
|
||||||
private:
|
friend class ::vl_workflow_global::__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
::vl::WString SelectedOption_;
|
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
protected:
|
friend struct ::vl_workflow_global::__vwsnf1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
::vl::presentation::controls::GuiSelectableButton::MutexGroupController* optionGroup;
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
::vl::presentation::controls::GuiCustomControl* self;
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||||
|
#endif
|
||||||
void InitializeComponents()
|
|
||||||
{
|
|
||||||
if (InitializeFromResource())
|
|
||||||
{
|
|
||||||
GUI_INSTANCE_REFERENCE(optionGroup);
|
|
||||||
GUI_INSTANCE_REFERENCE(self);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
|
||||||
MyControl_()
|
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiCustomControl>(L"demo::MyControl")
|
|
||||||
,::vl::presentation::controls::GuiCustomControl(vl::presentation::theme::GetCurrentTheme()->CreateCustomControlStyle())
|
|
||||||
,optionGroup(0)
|
|
||||||
,self(0)
|
|
||||||
{
|
|
||||||
this->SelectedOption_ = vl::reflection::description::UnboxValue<::vl::WString>(
|
|
||||||
[]()
|
|
||||||
{
|
|
||||||
vl::reflection::description::Value value;
|
|
||||||
vl::reflection::description::GetTypeDescriptor<::vl::WString>()->GetSerializableType()->Deserialize(L"A", value);
|
|
||||||
return value;
|
|
||||||
}());
|
|
||||||
}
|
|
||||||
|
|
||||||
vl::Event<void()> SelectedOptionChanged;
|
|
||||||
|
|
||||||
::vl::WString GetSelectedOption()
|
|
||||||
{
|
|
||||||
return SelectedOption_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetSelectedOption(::vl::WString value)
|
|
||||||
{
|
|
||||||
SelectedOption_ = value;
|
|
||||||
SelectedOptionChanged();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
namespace vl
|
|
||||||
{
|
|
||||||
namespace reflection
|
|
||||||
{
|
|
||||||
namespace description
|
|
||||||
{
|
|
||||||
DECL_TYPE_INFO(demo::MainWindow)
|
|
||||||
DECL_TYPE_INFO(demo::MyControl)
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
namespace demo
|
|
||||||
{
|
|
||||||
class MainWindow : public demo::MainWindow_<demo::MainWindow>
|
|
||||||
{
|
|
||||||
friend class demo::MainWindow_<demo::MainWindow>;
|
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<demo::MainWindow>;
|
|
||||||
protected:
|
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
|
||||||
void OnCreate();
|
|
||||||
void OnDestroy();
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
|
||||||
public:
|
public:
|
||||||
MainWindow();
|
MainWindow();
|
||||||
~MainWindow();
|
~MainWindow();
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
class MyControlConstructor : public ::vl::Object, public ::vl::reflection::Description<MyControlConstructor>
|
||||||
namespace demo
|
|
||||||
{
|
|
||||||
class MyControl : public demo::MyControl_<demo::MyControl>
|
|
||||||
{
|
{
|
||||||
friend class demo::MyControl_<demo::MyControl>;
|
friend class ::vl_workflow_global::__vwsnc3_Demo_demo_MyControlConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<demo::MyControl>;
|
friend class ::vl_workflow_global::__vwsnc4_Demo_demo_MyControlConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf2_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf3_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf4_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MyControlConstructor>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
|
::demo::MyControl* self = static_cast<::demo::MyControl*>(nullptr);
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
::vl::presentation::controls::GuiSelectableButton::MutexGroupController* optionGroup = static_cast<::vl::presentation::controls::GuiSelectableButton::MutexGroupController*>(nullptr);
|
||||||
void OnCreate();
|
::vl::presentation::controls::GuiControl* __vwsn_precompile_0 = static_cast<::vl::presentation::controls::GuiControl*>(nullptr);
|
||||||
void OnDestroy();
|
::vl::presentation::compositions::GuiStackComposition* __vwsn_precompile_1 = static_cast<::vl::presentation::compositions::GuiStackComposition*>(nullptr);
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_2 = static_cast<::vl::presentation::compositions::GuiStackItemComposition*>(nullptr);
|
||||||
|
::vl::presentation::controls::GuiSelectableButton* __vwsn_precompile_3 = static_cast<::vl::presentation::controls::GuiSelectableButton*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_4 = static_cast<::vl::presentation::compositions::GuiStackItemComposition*>(nullptr);
|
||||||
|
::vl::presentation::controls::GuiSelectableButton* __vwsn_precompile_5 = static_cast<::vl::presentation::controls::GuiSelectableButton*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiGraphicsComposition* __vwsn_precompile_6 = static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiGraphicsComposition* __vwsn_precompile_7 = static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(nullptr);
|
||||||
|
void __vwsn_initialize_instance_(::demo::MyControl* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
public:
|
public:
|
||||||
|
MyControlConstructor();
|
||||||
|
};
|
||||||
|
|
||||||
|
class MyControl : public ::vl::presentation::controls::GuiCustomControl, public ::demo::MyControlConstructor, public ::vl::reflection::Description<MyControl>
|
||||||
|
{
|
||||||
|
friend class ::demo::MyControlConstructor;
|
||||||
|
friend class ::vl_workflow_global::__vwsnc3_Demo_demo_MyControlConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
friend class ::vl_workflow_global::__vwsnc4_Demo_demo_MyControlConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf2_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf3_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf4_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MyControl>;
|
||||||
|
#endif
|
||||||
|
protected:
|
||||||
|
::vl::WString selectedOption = ::vl::WString(L"A", false);
|
||||||
|
public:
|
||||||
|
::vl::Event<void()> SelectedOptionChanged;
|
||||||
|
::vl::WString GetSelectedOption();
|
||||||
|
void SetSelectedOption(const ::vl::WString& value);
|
||||||
MyControl();
|
MyControl();
|
||||||
~MyControl();
|
~MyControl();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
/***********************************************************************
|
||||||
|
Global Variables and Functions
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
namespace vl_workflow_global
|
||||||
|
{
|
||||||
|
class Demo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
static Demo& Instance();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user