mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-29 04:26:08 +08:00
Add GacUI_Controls\ProgressAndAsync
This commit is contained in:
@@ -42,6 +42,9 @@ popd
|
|||||||
pushd AddressBook\UI
|
pushd AddressBook\UI
|
||||||
call Codegen.bat
|
call Codegen.bat
|
||||||
popd
|
popd
|
||||||
|
pushd ProgressAndAsync\UI
|
||||||
|
call Codegen.bat
|
||||||
|
popd
|
||||||
popd
|
popd
|
||||||
pushd GacUI_ControlTemplate
|
pushd GacUI_ControlTemplate
|
||||||
pushd BlackSkin\UI
|
pushd BlackSkin\UI
|
||||||
|
|||||||
@@ -15,32 +15,54 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ColorPicker", "ColorPicker\
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AddressBook", "AddressBook\AddressBook.vcxproj", "{7F92FCD2-8A1E-4C73-9949-91555BEF3832}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AddressBook", "AddressBook\AddressBook.vcxproj", "{7F92FCD2-8A1E-4C73-9949-91555BEF3832}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ProgressAndAsync", "ProgressAndAsync\ProgressAndAsync.vcxproj", "{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
Release|Win32 = Release|Win32
|
Release|Win32 = Release|Win32
|
||||||
|
Release|x64 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Debug|Win32.ActiveCfg = Debug|Win32
|
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Debug|Win32.Build.0 = Debug|Win32
|
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Release|Win32.ActiveCfg = Release|Win32
|
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Release|Win32.Build.0 = Release|Win32
|
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{0C211930-C5DA-4567-A752-1D847CADEC1C}.Release|x64.ActiveCfg = Release|Win32
|
||||||
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Debug|Win32.ActiveCfg = Debug|Win32
|
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Debug|Win32.Build.0 = Debug|Win32
|
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Release|Win32.ActiveCfg = Release|Win32
|
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Release|Win32.Build.0 = Release|Win32
|
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2}.Release|x64.ActiveCfg = Release|Win32
|
||||||
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Debug|Win32.ActiveCfg = Debug|Win32
|
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Debug|Win32.Build.0 = Debug|Win32
|
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Release|Win32.ActiveCfg = Release|Win32
|
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Release|Win32.Build.0 = Release|Win32
|
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{66069A5E-F697-42E2-8D9E-7D6E82019838}.Release|x64.ActiveCfg = Release|Win32
|
||||||
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Debug|Win32.ActiveCfg = Debug|Win32
|
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Debug|Win32.Build.0 = Debug|Win32
|
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Release|Win32.ActiveCfg = Release|Win32
|
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Release|Win32.Build.0 = Release|Win32
|
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{FBBBA8BF-96A4-4096-8204-A92571100F0E}.Release|x64.ActiveCfg = Release|Win32
|
||||||
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Debug|Win32.ActiveCfg = Debug|Win32
|
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Debug|Win32.Build.0 = Debug|Win32
|
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Release|Win32.ActiveCfg = Release|Win32
|
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Release|Win32.Build.0 = Release|Win32
|
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{7F92FCD2-8A1E-4C73-9949-91555BEF3832}.Release|x64.ActiveCfg = Release|Win32
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}.Release|x64.Build.0 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#define GAC_HEADER_USE_NAMESPACE
|
||||||
|
#include "UI/Source/Demo.h"
|
||||||
|
#include <Windows.h>
|
||||||
|
|
||||||
|
using namespace vl::collections;
|
||||||
|
using namespace vl::stream;
|
||||||
|
|
||||||
|
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int CmdShow)
|
||||||
|
{
|
||||||
|
return SetupWindowsDirect2DRenderer();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuiMain()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
FileStream fileStream(L"../UIRes/ProgressAndAsync.bin", FileStream::ReadOnly);
|
||||||
|
auto resource = GuiResource::LoadPrecompiledBinary(fileStream);
|
||||||
|
GetResourceManager()->SetResource(L"Resource", resource);
|
||||||
|
}
|
||||||
|
demo::MainWindow window;
|
||||||
|
window.MoveToScreenCenter();
|
||||||
|
GetApplication()->Run(&window);
|
||||||
|
}
|
||||||
@@ -0,0 +1,171 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{32CC91B1-D3A5-4030-9355-EAE1B87E12AB}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>ProgressAndAsync</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;VCZH_DEBUG_NO_REFLECTION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;VCZH_DEBUG_NO_REFLECTION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Xml Include="UI\Resource.xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="UI\Source\Demo.h" />
|
||||||
|
<ClInclude Include="UI\Source\DemoPartialClasses.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="Main.cpp" />
|
||||||
|
<ClCompile Include="UI\Source\DemoPartialClasses.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Lib\GacUILite\GacUILite.vcxproj">
|
||||||
|
<Project>{96c559ca-9718-4bec-a053-28a0ab6a8ca2}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="UI">
|
||||||
|
<UniqueIdentifier>{74e461d4-779f-4342-91c2-637cf8eb6050}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Xml Include="UI\Resource.xml">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</Xml>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="UI\Source\DemoPartialClasses.h">
|
||||||
|
<Filter>UI</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="UI\Source\Demo.h">
|
||||||
|
<Filter>UI</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="UI\Source\DemoPartialClasses.cpp">
|
||||||
|
<Filter>UI</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Main.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
..\..\..\..\Tools\GacGen.exe Resource.xml
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Resource>
|
||||||
|
<Folder name="GacGenConfig">
|
||||||
|
<Folder name="Cpp">
|
||||||
|
<Text name="SourceFolder">Source</Text>
|
||||||
|
<Text name="Resource">..\..\UIRes\ProgressAndAsync.bin</Text>
|
||||||
|
<Text name="NormalInclude">GacUI.h</Text>
|
||||||
|
<Text name="Name">Demo</Text>
|
||||||
|
</Folder>
|
||||||
|
</Folder>
|
||||||
|
<Folder name="MainWindow">
|
||||||
|
<Instance name="MainWindowResource">
|
||||||
|
<Instance ref.CodeBehind="false" ref.Class="demo::MainWindow">
|
||||||
|
<Window Text="ProgressAndAsync" ClientSize="x:480 y:320">
|
||||||
|
<att.BoundsComposition-set PreferredMinSize="x:480 y:320"/>
|
||||||
|
</Window>
|
||||||
|
</Instance>
|
||||||
|
</Instance>
|
||||||
|
</Folder>
|
||||||
|
</Resource>
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
/***********************************************************************
|
||||||
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
|
|
||||||
|
GacGen.exe Resource.xml
|
||||||
|
|
||||||
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||||
|
|
||||||
|
#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
|
||||||
@@ -0,0 +1,160 @@
|
|||||||
|
/***********************************************************************
|
||||||
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
|
|
||||||
|
GacGen.exe Resource.xml
|
||||||
|
|
||||||
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
#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
|
||||||
|
{
|
||||||
|
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_1 = ::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_0)->GetBoundsComposition());
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_1)->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"ProgressAndAsync", false));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
MainWindowConstructor::MainWindowConstructor()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Class (::demo::MainWindow)
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
MainWindow::MainWindow()
|
||||||
|
: ::vl::presentation::controls::GuiWindow(::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateWindowStyle())
|
||||||
|
{
|
||||||
|
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()
|
||||||
|
{
|
||||||
|
::vl::__vwsn::This(this)->ClearSubscriptions();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#undef GLOBAL_SYMBOL
|
||||||
|
#undef GLOBAL_NAME
|
||||||
|
#undef GLOBAL_OBJ
|
||||||
|
#undef USERIMPL
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
Reflection
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
namespace vl
|
||||||
|
{
|
||||||
|
namespace reflection
|
||||||
|
{
|
||||||
|
namespace description
|
||||||
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||||
|
IMPL_CPP_TYPE_INFO(demo::MainWindowConstructor)
|
||||||
|
|
||||||
|
#define _ ,
|
||||||
|
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
||||||
|
CLASS_MEMBER_CONSTRUCTOR(::demo::MainWindow*(), NO_PARAMETER)
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindow)
|
||||||
|
|
||||||
|
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::MainWindowConstructor>(), NO_PARAMETER)
|
||||||
|
CLASS_MEMBER_METHOD(__vwsn_initialize_instance_, { L"__vwsn_this_" _ L"__vwsn_resolver_" })
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||||
|
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||||
|
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||||
|
|
||||||
|
#undef _
|
||||||
|
class DemoTypeLoader : public Object, public ITypeLoader
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void Load(ITypeManager* manager)
|
||||||
|
{
|
||||||
|
ADD_TYPE_INFO(::demo::MainWindow)
|
||||||
|
ADD_TYPE_INFO(::demo::MainWindowConstructor)
|
||||||
|
}
|
||||||
|
|
||||||
|
void Unload(ITypeManager* manager)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
bool LoadDemoTypes()
|
||||||
|
{
|
||||||
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||||
|
if (auto manager = GetGlobalTypeManager())
|
||||||
|
{
|
||||||
|
return manager->AddTypeLoader(MakePtr<DemoTypeLoader>());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if defined( _MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
/***********************************************************************
|
||||||
|
!!!!!! DO NOT MODIFY !!!!!!
|
||||||
|
|
||||||
|
GacGen.exe Resource.xml
|
||||||
|
|
||||||
|
This file is generated by Workflow compiler
|
||||||
|
https://github.com/vczh-libraries
|
||||||
|
***********************************************************************/
|
||||||
|
|
||||||
|
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
|
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||||
|
|
||||||
|
#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
|
||||||
|
{
|
||||||
|
class MainWindowConstructor;
|
||||||
|
class MainWindow;
|
||||||
|
|
||||||
|
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||||
|
{
|
||||||
|
#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::compositions::GuiBoundsComposition* __vwsn_precompile_1 = 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:
|
||||||
|
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
|
||||||
Binary file not shown.
Reference in New Issue
Block a user