mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-31 22:04:09 +08:00
Xml/Instance_*
This commit is contained in:
@@ -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,124 +1,129 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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_MyControlConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
class __vwsnc2_Demo_demo_MyControlConstructor___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_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
struct __vwsnf2_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>;
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
private:
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
|
::demo::MainWindow* __vwsn_precompile_0 = static_cast<::demo::MainWindow*>(nullptr);
|
||||||
void InitializeComponents()
|
::demo::MyControl* __vwsn_precompile_1 = static_cast<::demo::MyControl*>(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_);
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindowConstructor();
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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:
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
protected:
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||||
::vl::presentation::controls::GuiCustomControl* self;
|
#endif
|
||||||
|
|
||||||
void InitializeComponents()
|
|
||||||
{
|
|
||||||
if (InitializeFromResource())
|
|
||||||
{
|
|
||||||
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())
|
|
||||||
,self(0)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
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::__vwsnc1_Demo_demo_MyControlConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<demo::MyControl>;
|
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MyControlConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
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::__vwsnf1_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf2_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);
|
||||||
|
::vl::presentation::controls::GuiLabel* __vwsn_precompile_0 = static_cast<::vl::presentation::controls::GuiLabel*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_1 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiGraphicsComposition* __vwsn_precompile_2 = static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(nullptr);
|
||||||
|
void __vwsn_initialize_instance_(::demo::MyControl* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
|
public:
|
||||||
|
MyControlConstructor();
|
||||||
|
};
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
class MyControl : public ::vl::presentation::controls::GuiCustomControl, public ::demo::MyControlConstructor, public ::vl::reflection::Description<MyControl>
|
||||||
void OnCreate();
|
{
|
||||||
void OnDestroy();
|
friend class ::demo::MyControlConstructor;
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
friend class ::vl_workflow_global::__vwsnc1_Demo_demo_MyControlConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||||
|
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MyControlConstructor___vwsn_initialize_instance__Subscribe__vl_reflection_description_IValueListener;
|
||||||
|
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::__vwsnf1_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
friend struct ::vl_workflow_global::__vwsnf2_Demo_demo_MyControlConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MyControl>;
|
||||||
|
#endif
|
||||||
public:
|
public:
|
||||||
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
|
||||||
|
|||||||
@@ -1,17 +1,38 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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::AnotherWindow)
|
||||||
|
DECL_TYPE_INFO(::demo::AnotherWindowConstructor)
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindow)
|
||||||
|
DECL_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern bool LoadDemoTypes();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,42 +1,182 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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
|
||||||
|
{
|
||||||
|
/***********************************************************************
|
||||||
|
Closure Definitions
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
struct __vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||||
|
{
|
||||||
|
::demo::MainWindow* __vwsn_this_;
|
||||||
|
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||||
|
|
||||||
|
__vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindow* __vwsnctor___vwsn_this_, ::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||||
|
|
||||||
|
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* __vwsno_1, ::vl::presentation::compositions::GuiEventArgs* __vwsno_2) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------
|
||||||
|
|
||||||
|
__vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__::__vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindow* __vwsnctor___vwsn_this_, ::demo::MainWindowConstructor* __vwsnctorthis_0)
|
||||||
|
:__vwsn_this_(__vwsnctor___vwsn_this_)
|
||||||
|
, __vwsnthis_0(__vwsnctorthis_0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void __vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__::operator()(::vl::presentation::compositions::GuiGraphicsComposition* __vwsno_1, ::vl::presentation::compositions::GuiEventArgs* __vwsno_2) const
|
||||||
|
{
|
||||||
|
return ::vl::__vwsn::This(__vwsn_this_)->buttonShowWindow_Clicked(__vwsno_1, __vwsno_2);
|
||||||
|
}
|
||||||
|
/***********************************************************************
|
||||||
|
Global Functions
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
Demo& Demo::Instance()
|
||||||
|
{
|
||||||
|
return Getvl_workflow_global_Demo().instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Class (::demo::AnotherWindowConstructor)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
void AnotherWindowConstructor::__vwsn_initialize_instance_(::demo::AnotherWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_)
|
||||||
|
{
|
||||||
|
(::vl::__vwsn::This(this)->__vwsn_precompile_0 = __vwsn_this_);
|
||||||
|
(::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 = 320; __vwsn_temp__.y = 280; return __vwsn_temp__; }());
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->SetClientSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = 320; __vwsn_temp__.y = 280; return __vwsn_temp__; }());
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->SetText(::vl::WString(L"Another Window", 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_1)->SetText(::vl::WString(L"This is another window!", false));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::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)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void AnotherWindow::OnCreate()
|
AnotherWindowConstructor::AnotherWindowConstructor()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnotherWindow::OnDestroy()
|
/***********************************************************************
|
||||||
{
|
Class (::demo::AnotherWindow)
|
||||||
}
|
***********************************************************************/
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
|
||||||
|
|
||||||
AnotherWindow::AnotherWindow()
|
AnotherWindow::AnotherWindow()
|
||||||
|
: ::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::AnotherWindow", 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())));
|
||||||
}
|
}
|
||||||
|
|
||||||
AnotherWindow::~AnotherWindow()
|
AnotherWindow::~AnotherWindow()
|
||||||
{
|
{
|
||||||
OnDestroy();
|
::vl::__vwsn::This(this)->ClearSubscriptions();
|
||||||
ClearSubscriptions();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Class (::demo::MainWindowConstructor)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
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)->__vwsn_precompile_3 = ::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->GetBoundsComposition());
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_3)->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"Instance_MultipleWindows", false));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateButtonStyle();
|
||||||
|
(::vl::__vwsn::This(this)->__vwsn_precompile_1 = new ::vl::presentation::controls::GuiButton(__vwsn_controlStyle_));
|
||||||
|
}
|
||||||
|
(::vl::__vwsn::This(this)->__vwsn_precompile_2 = ::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_1)->GetBoundsComposition());
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_2)->SetMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = 20; __vwsn_temp__.top = 20; __vwsn_temp__.right = (- 1); __vwsn_temp__.bottom = (- 1); return __vwsn_temp__; }());
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_1)->SetText(::vl::WString(L"Click me to show another window!", false));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::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::EventAttach(::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_1)->Clicked, LAMBDA(::vl_workflow_global::__vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(__vwsn_this_, this)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
MainWindowConstructor::MainWindowConstructor()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#undef GLOBAL_SYMBOL
|
||||||
|
#undef GLOBAL_NAME
|
||||||
|
#undef GLOBAL_OBJ
|
||||||
|
#undef USERIMPL
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
namespace vl
|
namespace vl
|
||||||
{
|
{
|
||||||
@@ -44,56 +184,71 @@ namespace vl
|
|||||||
{
|
{
|
||||||
namespace description
|
namespace description
|
||||||
{
|
{
|
||||||
#define _ ,
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
IMPL_CPP_TYPE_INFO(demo::AnotherWindow)
|
IMPL_CPP_TYPE_INFO(::demo::AnotherWindow)
|
||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(::demo::AnotherWindowConstructor)
|
||||||
|
IMPL_CPP_TYPE_INFO(::demo::MainWindow)
|
||||||
|
IMPL_CPP_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::AnotherWindow)
|
#define _ ,
|
||||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
BEGIN_CLASS_MEMBER(::demo::AnotherWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::AnotherWindow*(), NO_PARAMETER)
|
END_CLASS_MEMBER(::demo::AnotherWindow)
|
||||||
END_CLASS_MEMBER(demo::AnotherWindow)
|
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
BEGIN_CLASS_MEMBER(::demo::AnotherWindowConstructor)
|
||||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
CLASS_MEMBER_METHOD(__vwsn_initialize_instance_, { L"__vwsn_this_" _ L"__vwsn_resolver_" })
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||||
|
END_CLASS_MEMBER(::demo::AnotherWindowConstructor)
|
||||||
|
|
||||||
CLASS_MEMBER_GUIEVENT_HANDLER(buttonShowWindow_Clicked, ::vl::presentation::compositions::GuiEventArgs)
|
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
CLASS_MEMBER_METHOD(buttonShowWindow_Clicked, { L"sender" _ L"arguments" })
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindow)
|
||||||
|
|
||||||
#undef _
|
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
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(__vwsn_precompile_3)
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
class DemoResourceLoader : public Object, public ITypeLoader
|
#undef _
|
||||||
|
class DemoTypeLoader : public Object, public ITypeLoader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void Load(ITypeManager* manager)
|
void Load(ITypeManager* manager)
|
||||||
{
|
{
|
||||||
ADD_TYPE_INFO(demo::AnotherWindow)
|
ADD_TYPE_INFO(::demo::AnotherWindow)
|
||||||
ADD_TYPE_INFO(demo::MainWindow)
|
ADD_TYPE_INFO(::demo::AnotherWindowConstructor)
|
||||||
|
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,102 +1,102 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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
|
||||||
|
{
|
||||||
|
struct __vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
}
|
||||||
|
|
||||||
namespace demo
|
namespace demo
|
||||||
{
|
{
|
||||||
|
class AnotherWindowConstructor;
|
||||||
class AnotherWindow;
|
class AnotherWindow;
|
||||||
|
class MainWindowConstructor;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|
||||||
template<typename TImpl>
|
class AnotherWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<AnotherWindowConstructor>
|
||||||
class AnotherWindow_ : 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>;
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
private:
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<AnotherWindowConstructor>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
|
::demo::AnotherWindow* __vwsn_precompile_0 = static_cast<::demo::AnotherWindow*>(nullptr);
|
||||||
void InitializeComponents()
|
::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);
|
||||||
if (InitializeFromResource())
|
void __vwsn_initialize_instance_(::demo::AnotherWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
public:
|
||||||
AnotherWindow_()
|
AnotherWindowConstructor();
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::AnotherWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TImpl>
|
class AnotherWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::AnotherWindowConstructor, public ::vl::reflection::Description<AnotherWindow>
|
||||||
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 ::demo::AnotherWindowConstructor;
|
||||||
private:
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
protected:
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<AnotherWindow>;
|
||||||
|
#endif
|
||||||
void InitializeComponents()
|
|
||||||
{
|
|
||||||
if (InitializeFromResource())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
|
||||||
MainWindow_()
|
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
namespace vl
|
|
||||||
{
|
|
||||||
namespace reflection
|
|
||||||
{
|
|
||||||
namespace description
|
|
||||||
{
|
|
||||||
DECL_TYPE_INFO(demo::AnotherWindow)
|
|
||||||
DECL_TYPE_INFO(demo::MainWindow)
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
namespace demo
|
|
||||||
{
|
|
||||||
class AnotherWindow : public demo::AnotherWindow_<demo::AnotherWindow>
|
|
||||||
{
|
|
||||||
friend class demo::AnotherWindow_<demo::AnotherWindow>;
|
|
||||||
friend struct vl::reflection::description::CustomTypeDescriptorSelector<demo::AnotherWindow>;
|
|
||||||
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:
|
||||||
AnotherWindow();
|
AnotherWindow();
|
||||||
~AnotherWindow();
|
~AnotherWindow();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||||
|
{
|
||||||
|
friend struct ::vl_workflow_global::__vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||||
|
#endif
|
||||||
|
protected:
|
||||||
|
::demo::MainWindow* __vwsn_precompile_0 = static_cast<::demo::MainWindow*>(nullptr);
|
||||||
|
::vl::presentation::controls::GuiButton* __vwsn_precompile_1 = static_cast<::vl::presentation::controls::GuiButton*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
|
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_3 = static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr);
|
||||||
|
void __vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
|
public:
|
||||||
|
MainWindowConstructor();
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
/***********************************************************************
|
||||||
|
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
|
||||||
|
|||||||
@@ -1,43 +1,67 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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::buttonShowWindow_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments)
|
||||||
void MainWindow::buttonShowWindow_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs& arguments)
|
|
||||||
{
|
{
|
||||||
auto window = new AnotherWindow;
|
auto window = new AnotherWindow;
|
||||||
window->MoveToScreenCenter();
|
window->MoveToScreenCenter();
|
||||||
window->ShowModalAndDelete(this, [](){});
|
window->ShowModalAndDelete(this, []() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
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,51 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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 struct ::vl_workflow_global::__vwsno1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
|
void buttonShowWindow_Clicked(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments);
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
|
||||||
void buttonShowWindow_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
|
||||||
|
|||||||
@@ -1,16 +1,35 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern bool LoadDemoTypes();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,42 +1,116 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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)->__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"Instance_Window", 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_1)->SetText(::vl::WString(L"This is a window!", false));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
::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)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::OnCreate()
|
MainWindowConstructor::MainWindowConstructor()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OnDestroy()
|
/***********************************************************************
|
||||||
{
|
Class (::demo::MainWindow)
|
||||||
}
|
***********************************************************************/
|
||||||
|
|
||||||
// #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
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
namespace vl
|
namespace vl
|
||||||
{
|
{
|
||||||
@@ -44,47 +118,55 @@ namespace vl
|
|||||||
{
|
{
|
||||||
namespace description
|
namespace description
|
||||||
{
|
{
|
||||||
#define _ ,
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
IMPL_CPP_TYPE_INFO(::demo::MainWindow)
|
||||||
|
IMPL_CPP_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
BEGIN_CLASS_MEMBER(demo::MainWindow)
|
#define _ ,
|
||||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
||||||
CLASS_MEMBER_CONSTRUCTOR(demo::MainWindow*(), NO_PARAMETER)
|
END_CLASS_MEMBER(::demo::MainWindow)
|
||||||
END_CLASS_MEMBER(demo::MainWindow)
|
|
||||||
|
|
||||||
#undef _
|
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
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)
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
class DemoResourceLoader : public Object, public ITypeLoader
|
#undef _
|
||||||
|
class DemoTypeLoader : public Object, public ITypeLoader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void Load(ITypeManager* manager)
|
void Load(ITypeManager* manager)
|
||||||
{
|
{
|
||||||
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,76 +1,79 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
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 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>;
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
private:
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
|
::demo::MainWindow* __vwsn_precompile_0 = static_cast<::demo::MainWindow*>(nullptr);
|
||||||
void InitializeComponents()
|
::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);
|
||||||
if (InitializeFromResource())
|
void __vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_, ::vl::presentation::GuiResourcePathResolver* __vwsn_resolver_);
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public:
|
public:
|
||||||
MainWindow_()
|
MainWindowConstructor();
|
||||||
:vl::presentation::GuiInstancePartialClass<::vl::presentation::controls::GuiWindow>(L"demo::MainWindow")
|
|
||||||
,::vl::presentation::controls::GuiWindow(vl::presentation::theme::GetCurrentTheme()->CreateWindowStyle())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
class MainWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::MainWindowConstructor, public ::vl::reflection::Description<MainWindow>
|
||||||
namespace vl
|
|
||||||
{
|
|
||||||
namespace reflection
|
|
||||||
{
|
{
|
||||||
namespace description
|
friend class ::demo::MainWindowConstructor;
|
||||||
{
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
DECL_TYPE_INFO(demo::MainWindow)
|
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||||
|
#endif
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
/***********************************************************************
|
||||||
|
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