mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-21 04:31:33 +08:00
Add tutorial: GacUI_Controls/Dialogs
This commit is contained in:
@@ -0,0 +1,474 @@
|
||||
<Resource>
|
||||
<Folder name="GacGenConfig">
|
||||
<Folder name="Cpp">
|
||||
<Text name="SourceFolder">Source</Text>
|
||||
<Text name="Resource">..\..\UIRes\Dialogs.bin</Text>
|
||||
<Text name="NormalInclude">GacUI.h</Text>
|
||||
<Text name="ReflectionInclude">GacUIReflection.h</Text>
|
||||
<Text name="Name">Demo</Text>
|
||||
</Folder>
|
||||
</Folder>
|
||||
|
||||
<LocalizedStrings name="DialogStringsInjection">
|
||||
<LocalizedStringsInjection ref.Class="demo::DialogStringsInjection" ref.InjectInto="gaclib_controls::DialogStrings">
|
||||
<Strings Locales="zh-CN">
|
||||
<String Name="OK" Text="确定"/>
|
||||
<String Name="Cancel" Text="取消"/>
|
||||
<String Name="Yes" Text="是"/>
|
||||
<String Name="No" Text="否"/>
|
||||
<String Name="Retry" Text="重试"/>
|
||||
<String Name="Abort" Text="关于"/>
|
||||
<String Name="Ignore" Text="忽略"/>
|
||||
<String Name="TryAgain" Text="再试一次"/>
|
||||
<String Name="Continue" Text="继续"/>
|
||||
|
||||
<String Name="ColorDialogTitle" Text="选择颜色"/>
|
||||
<String Name="Red" Text="红色:"/>
|
||||
<String Name="Green" Text="绿色:"/>
|
||||
<String Name="Blue" Text="蓝色:"/>
|
||||
<String Name="Color" Text="颜色:"/>
|
||||
|
||||
<String Name="FontDialogTitle" Text="选择字体"/>
|
||||
<String Name="FontNameGroup" Text="字体:"/>
|
||||
<String Name="FontSizeGroup" Text="尺寸:"/>
|
||||
<String Name="FontEffectGroup" Text="效果:"/>
|
||||
<String Name="FontColorGroup" Text="颜色:"/>
|
||||
<String Name="FontColorGroup2" Text="选择颜色:"/>
|
||||
<String Name="FontPreviewGroup" Text="预览:"/>
|
||||
<String Name="Bold" Text="粗体"/>
|
||||
<String Name="Italic" Text="斜体"/>
|
||||
<String Name="Underline" Text="下划线"/>
|
||||
<String Name="Strikeline" Text="删除线"/>
|
||||
<String Name="HAA" Text="水平抗锯齿"/>
|
||||
<String Name="VAA" Text="垂直抗锯齿"/>
|
||||
|
||||
<String Name="FileDialogFileName" Text="文件名:"/>
|
||||
<String Name="FileDialogOpen" Text="打开"/>
|
||||
<String Name="FileDialogSave" Text="保存"/>
|
||||
|
||||
<String Name="FileDialogTextLoadingFolders" Text="(正在加载……)"/>
|
||||
<String Name="FileDialogTextLoadingFiles" Text="(正在加载文件夹和文件……)"/>
|
||||
<String Name="FileDialogErrorEmptySelection" Text="应该选中至少一个文件。"/>
|
||||
<String Name="FileDialogErrorFileNotExist" Text="下列文件不存在:"/>
|
||||
<String Name="FileDialogErrorFileExpected" Text="下列文件夹不应该被选中:"/>
|
||||
<String Name="FileDialogErrorFolderNotExist" Text="文件夹不存在:"/>
|
||||
<String Name="FileDialogErrorMultipleSelectionNotEnabled" Text="本对话框不支持多选。"/>
|
||||
<String Name="FileDialogAskCreateFile" Text="你确定想要创建下列文件吗?"/>
|
||||
<String Name="FileDialogAskOverrideFile" Text="你确定想要覆盖下列文件吗?"/>
|
||||
</Strings>
|
||||
</LocalizedStringsInjection>
|
||||
</LocalizedStrings>
|
||||
|
||||
<Instance name="MainWindowResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::MainWindow" xmlns:demo="demo::*">
|
||||
<Window ref.Name="self" Text="Dialogs" ClientSize="x:640 y:480">
|
||||
<att.BoundsComposition-set PreferredMinSize="x:640 y:480"/>
|
||||
<Tab>
|
||||
<att.BoundsComposition-set AlignmentToParent="left:5 top:5 right:5 bottom:5"/>
|
||||
<att.Pages>
|
||||
<demo:LocalizedMessageDialogTabPage Alt="M"/>
|
||||
<demo:LocalizedColorDialogTabPage Alt="C"/>
|
||||
<demo:LocalizedFontDialogTabPage Alt="F"/>
|
||||
<demo:LocalizedFileDialogTabPage Alt="F"/>
|
||||
</att.Pages>
|
||||
</Tab>
|
||||
</Window>
|
||||
</Instance>
|
||||
</Instance>
|
||||
|
||||
<Instance name="LocalizedMessageDialogTabPageResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedMessageDialogTabPage">
|
||||
<ref.Members><![CDATA[
|
||||
var inputValues : INativeDialogService::MessageBoxButtonsInput[] = {
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayOK;
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayOKCancel;
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayYesNo;
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayYesNoCancel;
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayRetryCancel;
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayAbortRetryIgnore;
|
||||
INativeDialogService::MessageBoxButtonsInput::DisplayCancelTryAgainContinue;
|
||||
};
|
||||
var inputTexts : string[] = {
|
||||
"DisplayOK";
|
||||
"DisplayOKCancel";
|
||||
"DisplayYesNo";
|
||||
"DisplayYesNoCancel";
|
||||
"DisplayRetryCancel";
|
||||
"DisplayAbortRetryIgnore";
|
||||
"DisplayCancelTryAgainContinue";
|
||||
};
|
||||
|
||||
var defaultButtonValues : INativeDialogService::MessageBoxDefaultButton[] = {
|
||||
INativeDialogService::MessageBoxDefaultButton::DefaultFirst;
|
||||
INativeDialogService::MessageBoxDefaultButton::DefaultSecond;
|
||||
INativeDialogService::MessageBoxDefaultButton::DefaultThird;
|
||||
};
|
||||
var defaultButtonTexts : string[] = {
|
||||
"DefaultFirst";
|
||||
"DefaultSecond";
|
||||
"DefaultThird";
|
||||
};
|
||||
|
||||
var iconValues : INativeDialogService::MessageBoxIcons[] = {
|
||||
INativeDialogService::MessageBoxIcons::IconNone;
|
||||
INativeDialogService::MessageBoxIcons::IconError;
|
||||
INativeDialogService::MessageBoxIcons::IconQuestion;
|
||||
INativeDialogService::MessageBoxIcons::IconWarning;
|
||||
INativeDialogService::MessageBoxIcons::IconInformation;
|
||||
};
|
||||
var iconTexts : string[] = {
|
||||
"IconNone";
|
||||
"IconError";
|
||||
"IconQuestion";
|
||||
"IconWarning";
|
||||
"IconInformation";
|
||||
};
|
||||
|
||||
var outputValues : INativeDialogService::MessageBoxButtonsOutput[] = {
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectOK;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectCancel;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectYes;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectNo;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectRetry;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectAbort;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectIgnore;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectTryAgain;
|
||||
INativeDialogService::MessageBoxButtonsOutput::SelectContinue;
|
||||
};
|
||||
var outputTexts : string[] = {
|
||||
"SelectOK";
|
||||
"SelectCancel";
|
||||
"SelectYes";
|
||||
"SelectNo";
|
||||
"SelectRetry";
|
||||
"SelectAbort";
|
||||
"SelectIgnore";
|
||||
"SelectTryAgain";
|
||||
"SelectContinue";
|
||||
};
|
||||
]]></ref.Members>
|
||||
<ref.Ctor><![CDATA[
|
||||
{
|
||||
self.comboInput.SelectedIndex = 0;
|
||||
self.comboDefaultButton.SelectedIndex = 0;
|
||||
self.comboIcon.SelectedIndex = 0;
|
||||
}
|
||||
]]></ref.Ctor>
|
||||
<TabPage ref.Name="self" Text="MessageDialog">
|
||||
<MessageDialog ref.Name="dialog"/>
|
||||
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0">
|
||||
<att.Rows>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
</att.Rows>
|
||||
<att.Columns>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Absolute absolute:200</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Columns>
|
||||
|
||||
<Cell Site="row:0 column:0"><Label Text="Title:"/></Cell>
|
||||
<Cell Site="row:1 column:0"><Label Text="Text:"/></Cell>
|
||||
<Cell Site="row:2 column:0"><Label Text="Input:"/></Cell>
|
||||
<Cell Site="row:3 column:0"><Label Text="DefaultButton:"/></Cell>
|
||||
<Cell Site="row:4 column:0"><Label Text="Icon:"/></Cell>
|
||||
<Cell Site="row:5 column:0"><Label Text="Output:"/></Cell>
|
||||
|
||||
<Cell Site="row:0 column:1">
|
||||
<SinglelineTextBox ref.Name="txtTitle" Text="The Title">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:1 column:1">
|
||||
<SinglelineTextBox ref.Name="txtText" Text="This is a message!">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:2 column:1">
|
||||
<ComboBox ref.Name="comboInput">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
<att.ListControl>
|
||||
<BindableTextList ItemSource-eval="self.inputTexts" TextProperty-eval="[cast string $1]" HorizontalAlwaysVisible="false" VerticalAlwaysVisible="false"/>
|
||||
</att.ListControl>
|
||||
</ComboBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:3 column:1">
|
||||
<ComboBox ref.Name="comboDefaultButton">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
<att.ListControl>
|
||||
<BindableTextList ItemSource-eval="self.defaultButtonTexts" TextProperty-eval="[cast string $1]" HorizontalAlwaysVisible="false" VerticalAlwaysVisible="false"/>
|
||||
</att.ListControl>
|
||||
</ComboBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:4 column:1">
|
||||
<ComboBox ref.Name="comboIcon">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
<att.ListControl>
|
||||
<BindableTextList ItemSource-eval="self.iconTexts" TextProperty-eval="[cast string $1]" HorizontalAlwaysVisible="false" VerticalAlwaysVisible="false"/>
|
||||
</att.ListControl>
|
||||
</ComboBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:5 column:1">
|
||||
<Label ref.Name="lblOutput"/>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:6 column:1">
|
||||
<Button Text="Show Dialog">
|
||||
<ev.Clicked-eval><![CDATA[
|
||||
{
|
||||
dialog.Title = txtTitle.Text;
|
||||
dialog.Text = txtText.Text;
|
||||
dialog.Input = self.inputValues[comboInput.SelectedIndex];
|
||||
dialog.DefaultButton = self.defaultButtonValues[comboDefaultButton.SelectedIndex];
|
||||
dialog.Icon = self.iconValues[comboIcon.SelectedIndex];
|
||||
var result = dialog.ShowDialog();
|
||||
lblOutput.Text = self.outputTexts[self.outputValues.IndexOf(result)];
|
||||
}
|
||||
]]></ev.Clicked-eval>
|
||||
</Button>
|
||||
</Cell>
|
||||
</Table>
|
||||
</TabPage>
|
||||
</Instance>
|
||||
</Instance>
|
||||
|
||||
<Instance name="LocalizedColorDialogTabPageResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedColorDialogTabPage">
|
||||
<TabPage ref.Name="self" Text="ColorDialog">
|
||||
<ColorDialog ref.Name="dialog" EnabledCustomColor="true"/>
|
||||
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0">
|
||||
<att.Rows>
|
||||
<_>composeType:Absolute absolute:30</_>
|
||||
<_>composeType:MinSize</_>
|
||||
</att.Rows>
|
||||
<att.Columns>
|
||||
<_>composeType:Absolute absolute:100</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Columns>
|
||||
|
||||
<Cell Site="row:0 column:0">
|
||||
<SolidBackground ref.Name="background" Color="#FFFFFF"/>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:1 column:0">
|
||||
<Button Text="Show Dialog">
|
||||
<ev.Clicked-eval><![CDATA[
|
||||
{
|
||||
dialog.SelectedColor = background.Color;
|
||||
if (dialog.ShowDialog())
|
||||
{
|
||||
background.Color = dialog.SelectedColor;
|
||||
}
|
||||
}
|
||||
]]></ev.Clicked-eval>
|
||||
</Button>
|
||||
</Cell>
|
||||
</Table>
|
||||
</TabPage>
|
||||
</Instance>
|
||||
</Instance>
|
||||
|
||||
<Instance name="LocalizedFontDialogTabPageResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedFontDialogTabPage">
|
||||
<TabPage ref.Name="self" Text="FontDialog">
|
||||
<FontDialog ref.Name="dialog" ForceFontExist="true"/>
|
||||
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0">
|
||||
<att.Rows>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
</att.Rows>
|
||||
<att.Columns>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Columns>
|
||||
|
||||
<Cell Site="row:0 column:0">
|
||||
<SolidLabel ref.Name="label" Font-eval="self.DisplayFont" Color="#FFFFFF" Text="Sample Text"/>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:1 column:0">
|
||||
<CheckBox ref.Name="checkEffect" Text="Effect" Selected="false"/>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:2 column:0">
|
||||
<Button Text="Show Dialog">
|
||||
<ev.Clicked-eval><![CDATA[
|
||||
{
|
||||
dialog.ShowEffect = checkEffect.Selected;
|
||||
dialog.SelectedFont = label.Font;
|
||||
dialog.SelectedColor = label.Color;
|
||||
if (dialog.ShowDialog())
|
||||
{
|
||||
label.Font = dialog.SelectedFont;
|
||||
label.Color = dialog.SelectedColor;
|
||||
}
|
||||
}
|
||||
]]></ev.Clicked-eval>
|
||||
</Button>
|
||||
</Cell>
|
||||
</Table>
|
||||
</TabPage>
|
||||
</Instance>
|
||||
</Instance>
|
||||
|
||||
<Instance name="LocalizedFileDialogTabPageResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedFileDialogTabPage">
|
||||
<ref.Members><![CDATA[
|
||||
func SetDialogProperties(dialog : GuiFileDialogBase*) : void
|
||||
{
|
||||
dialog.Title = txtTitle.Text;
|
||||
dialog.Directory = txtDirectory.Text;
|
||||
dialog.FileName = txtFileName.Text;
|
||||
dialog.Filter = txtFilter.Text;
|
||||
dialog.FilterIndex = (cast int txtFilterIndex.Text) ?? 0;
|
||||
dialog.DefaultExtension = txtDefaultExtension.Text;
|
||||
|
||||
var options : INativeDialogService::FileDialogOptions = None;
|
||||
if (chkFileDialogAllowMultipleSelection.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogAllowMultipleSelection; }
|
||||
if (chkFileDialogFileMustExist.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogFileMustExist; }
|
||||
if (chkFileDialogShowReadOnlyCheckBox.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogShowReadOnlyCheckBox; }
|
||||
if (chkFileDialogDereferenceLinks.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogDereferenceLinks; }
|
||||
if (chkFileDialogShowNetworkButton.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogShowNetworkButton; }
|
||||
if (chkFileDialogPromptCreateFile.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogPromptCreateFile; }
|
||||
if (chkFileDialogPromptOverwriteFile.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogPromptOverwriteFile; }
|
||||
if (chkFileDialogDirectoryMustExist.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogDirectoryMustExist; }
|
||||
if (chkFileDialogAddToRecent.Selected) { options = options | INativeDialogService::FileDialogOptions::FileDialogAddToRecent; }
|
||||
dialog.Options = options;
|
||||
}
|
||||
]]></ref.Members>
|
||||
<TabPage ref.Name="self" Text="Open/Save FileDialog">
|
||||
<OpenFileDialog ref.Name="dialogOpen"/>
|
||||
<SaveFileDialog ref.Name="dialogSave"/>
|
||||
<Stack Direction="Vertical" Padding="5" AlignmentToParent="left:5 top:5 right:5 bottom:5" MinSizeLimitation="LimitToElementAndChildren">
|
||||
<StackItem>
|
||||
<Table CellPadding="5" BorderVisible="false" AlignmentToParent="left:0 top:0 right:0 bottom:0">
|
||||
<att.Rows>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Rows>
|
||||
<att.Columns>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Absolute absolute:200</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Columns>
|
||||
|
||||
<Cell Site="row:0 column:0"><Label Text="Title:"/></Cell>
|
||||
<Cell Site="row:1 column:0"><Label Text="Directory:"/></Cell>
|
||||
<Cell Site="row:2 column:0"><Label Text="FileName:"/></Cell>
|
||||
<Cell Site="row:3 column:0"><Label Text="Filter:"/></Cell>
|
||||
<Cell Site="row:4 column:0"><Label Text="FilterIndex:"/></Cell>
|
||||
<Cell Site="row:5 column:0"><Label Text="DefaultExtension:"/></Cell>
|
||||
|
||||
<Cell Site="row:0 column:1">
|
||||
<SinglelineTextBox ref.Name="txtTitle" Text="The Title">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:1 column:1">
|
||||
<SinglelineTextBox ref.Name="txtDirectory" Text="C:\">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:2 column:1">
|
||||
<SinglelineTextBox ref.Name="txtFileName" Text="C:\File.txt">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:3 column:1">
|
||||
<SinglelineTextBox ref.Name="txtFilter" Text="Text Files (*.txt)|*.txt|XML Files (*.xml)|*.xml|All Files (*.*)|*.*">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:4 column:1">
|
||||
<SinglelineTextBox ref.Name="txtFilterIndex" Text="0">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:5 column:1">
|
||||
<SinglelineTextBox ref.Name="txtDefaultExtension" Text="txt">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</SinglelineTextBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:0 column:2 rowSpan:7">
|
||||
<Stack Direction="Vertical" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogAllowMultipleSelection" Text="FileDialogAllowMultipleSelection"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogFileMustExist" Text="FileDialogFileMustExist"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogShowReadOnlyCheckBox" Text="FileDialogShowReadOnlyCheckBox"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogDereferenceLinks" Text="FileDialogDereferenceLinks"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogShowNetworkButton" Text="FileDialogShowNetworkButton"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogPromptCreateFile" Text="FileDialogPromptCreateFile"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogPromptOverwriteFile" Text="FileDialogPromptOverwriteFile"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogDirectoryMustExist" Text="FileDialogDirectoryMustExist"/></StackItem>
|
||||
<StackItem><CheckBox ref.Name="chkFileDialogAddToRecent" Text="FileDialogAddToRecent"/></StackItem>
|
||||
</Stack>
|
||||
</Cell>
|
||||
</Table>
|
||||
</StackItem>
|
||||
|
||||
<StackItem><Label Text="Selected Files:"/></StackItem>
|
||||
|
||||
<StackItem>
|
||||
<BindableTextList ref.Name="lstFiles" VerticalAlwaysVisible="false" HorizontalAlwaysVisible="false">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0" PreferredMinSize="y:80"/>
|
||||
<att.TextProperty-eval>[cast string $1]</att.TextProperty-eval>
|
||||
</BindableTextList>
|
||||
</StackItem>
|
||||
|
||||
<StackItem>
|
||||
<Stack Direction="Horizontal" Padding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
|
||||
<StackItem>
|
||||
<Button Text="Show Open File Dialog">
|
||||
<ev.Clicked-eval><![CDATA[
|
||||
{
|
||||
self.SetDialogProperties(dialogOpen);
|
||||
if (dialogOpen.ShowDialog())
|
||||
{
|
||||
lstFiles.ItemSource = dialogOpen.FileNames;
|
||||
}
|
||||
}
|
||||
]]></ev.Clicked-eval>
|
||||
</Button>
|
||||
</StackItem>
|
||||
<StackItem>
|
||||
<Button Text="Show Save File Dialog">
|
||||
<ev.Clicked-eval><![CDATA[
|
||||
{
|
||||
self.SetDialogProperties(dialogSave);
|
||||
if (dialogSave.ShowDialog())
|
||||
{
|
||||
lstFiles.ItemSource = {dialogSave.FileName} of string[];
|
||||
}
|
||||
}
|
||||
]]></ev.Clicked-eval>
|
||||
</Button>
|
||||
</StackItem>
|
||||
</Stack>
|
||||
</StackItem>
|
||||
</Stack>
|
||||
</TabPage>
|
||||
</Instance>
|
||||
</Instance>
|
||||
</Resource>
|
||||
@@ -0,0 +1,15 @@
|
||||
/***********************************************************************
|
||||
!!!!!! 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"
|
||||
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,484 @@
|
||||
/***********************************************************************
|
||||
!!!!!! 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(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#endif
|
||||
|
||||
namespace vl_workflow_global
|
||||
{
|
||||
struct __vwsnf1_Demo_demo_LocalizedColorDialogTabPageConstructor___vwsn_demo_LocalizedColorDialogTabPage_Initialize_;
|
||||
struct __vwsnf3_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
struct __vwsnf4_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
struct __vwsnf5_Demo_demo_LocalizedFontDialogTabPageConstructor___vwsn_demo_LocalizedFontDialogTabPage_Initialize_;
|
||||
struct __vwsnf9_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
struct __vwsno2_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
struct __vwsno6_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
struct __vwsno7_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
struct __vwsno8_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
class __vwsnc1_Demo_demo_DialogStringsInjection___vwsn_ls_zh_CN_BuildStrings__gaclib_controls_IDialogStringsStrings;
|
||||
}
|
||||
|
||||
namespace demo
|
||||
{
|
||||
class DialogStringsInjection;
|
||||
class LocalizedColorDialogTabPageConstructor;
|
||||
class LocalizedColorDialogTabPage;
|
||||
class LocalizedFileDialogTabPageConstructor;
|
||||
class LocalizedFileDialogTabPage;
|
||||
class LocalizedFontDialogTabPageConstructor;
|
||||
class LocalizedFontDialogTabPage;
|
||||
class LocalizedMessageDialogTabPageConstructor;
|
||||
class LocalizedMessageDialogTabPage;
|
||||
class MainWindowConstructor;
|
||||
class MainWindow;
|
||||
|
||||
class DialogStringsInjection : public ::vl::Object, public ::vl::reflection::Description<DialogStringsInjection>
|
||||
{
|
||||
friend class ::vl_workflow_global::__vwsnc1_Demo_demo_DialogStringsInjection___vwsn_ls_zh_CN_BuildStrings__gaclib_controls_IDialogStringsStrings;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<DialogStringsInjection>;
|
||||
#endif
|
||||
public:
|
||||
static ::vl::Ptr<::gaclib_controls::IDialogStringsStrings> __vwsn_ls_zh_CN_BuildStrings(::vl::Locale __vwsn_ls_locale);
|
||||
DialogStringsInjection();
|
||||
};
|
||||
|
||||
class LocalizedColorDialogTabPageConstructor : public ::vl::Object, public ::vl::reflection::Description<LocalizedColorDialogTabPageConstructor>
|
||||
{
|
||||
friend struct ::vl_workflow_global::__vwsnf1_Demo_demo_LocalizedColorDialogTabPageConstructor___vwsn_demo_LocalizedColorDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedColorDialogTabPageConstructor>;
|
||||
#endif
|
||||
protected:
|
||||
::demo::LocalizedColorDialogTabPage* self;
|
||||
::vl::presentation::controls::GuiColorDialog* dialog;
|
||||
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> background;
|
||||
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_2;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_3;
|
||||
void __vwsn_demo_LocalizedColorDialogTabPage_Initialize(::demo::LocalizedColorDialogTabPage* __vwsn_this_);
|
||||
public:
|
||||
LocalizedColorDialogTabPageConstructor();
|
||||
};
|
||||
|
||||
class LocalizedColorDialogTabPage : public ::vl::presentation::controls::GuiTabPage, public ::demo::LocalizedColorDialogTabPageConstructor, public ::vl::reflection::Description<LocalizedColorDialogTabPage>
|
||||
{
|
||||
friend class ::demo::LocalizedColorDialogTabPageConstructor;
|
||||
friend struct ::vl_workflow_global::__vwsnf1_Demo_demo_LocalizedColorDialogTabPageConstructor___vwsn_demo_LocalizedColorDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedColorDialogTabPage>;
|
||||
#endif
|
||||
public:
|
||||
LocalizedColorDialogTabPage();
|
||||
~LocalizedColorDialogTabPage();
|
||||
};
|
||||
|
||||
class LocalizedFileDialogTabPageConstructor : public ::vl::Object, public ::vl::reflection::Description<LocalizedFileDialogTabPageConstructor>
|
||||
{
|
||||
friend struct ::vl_workflow_global::__vwsnf3_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsnf4_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno2_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedFileDialogTabPageConstructor>;
|
||||
#endif
|
||||
protected:
|
||||
::demo::LocalizedFileDialogTabPage* self;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtTitle;
|
||||
::vl::presentation::controls::GuiOpenFileDialog* dialogOpen;
|
||||
::vl::presentation::controls::GuiSaveFileDialog* dialogSave;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtDirectory;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtFileName;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtFilter;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtFilterIndex;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtDefaultExtension;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogAllowMultipleSelection;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogFileMustExist;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogShowReadOnlyCheckBox;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogDereferenceLinks;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogShowNetworkButton;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogPromptCreateFile;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogPromptOverwriteFile;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogDirectoryMustExist;
|
||||
::vl::presentation::controls::GuiSelectableButton* chkFileDialogAddToRecent;
|
||||
::vl::presentation::controls::GuiBindableTextList* lstFiles;
|
||||
::vl::presentation::compositions::GuiStackComposition* __vwsn_precompile_0;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_1;
|
||||
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_2;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_3;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_4;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_5;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_6;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_7;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_8;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_9;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_10;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_11;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_12;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_13;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_14;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_15;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_16;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_17;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_18;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_19;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_20;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_21;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_22;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_23;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_24;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_25;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_26;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_27;
|
||||
::vl::presentation::compositions::GuiStackComposition* __vwsn_precompile_28;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_29;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_30;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_31;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_32;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_33;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_34;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_35;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_36;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_37;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_38;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_39;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_40;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_41;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_42;
|
||||
::vl::presentation::compositions::GuiStackComposition* __vwsn_precompile_43;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_44;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_45;
|
||||
::vl::presentation::compositions::GuiStackItemComposition* __vwsn_precompile_46;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_47;
|
||||
void __vwsn_demo_LocalizedFileDialogTabPage_Initialize(::demo::LocalizedFileDialogTabPage* __vwsn_this_);
|
||||
public:
|
||||
LocalizedFileDialogTabPageConstructor();
|
||||
};
|
||||
|
||||
class LocalizedFileDialogTabPage : public ::vl::presentation::controls::GuiTabPage, public ::demo::LocalizedFileDialogTabPageConstructor, public ::vl::reflection::Description<LocalizedFileDialogTabPage>
|
||||
{
|
||||
friend class ::demo::LocalizedFileDialogTabPageConstructor;
|
||||
friend struct ::vl_workflow_global::__vwsnf3_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsnf4_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno2_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedFileDialogTabPage>;
|
||||
#endif
|
||||
public:
|
||||
void SetDialogProperties(::vl::presentation::controls::GuiFileDialogBase* dialog);
|
||||
LocalizedFileDialogTabPage();
|
||||
~LocalizedFileDialogTabPage();
|
||||
};
|
||||
|
||||
class LocalizedFontDialogTabPageConstructor : public ::vl::Object, public ::vl::reflection::Description<LocalizedFontDialogTabPageConstructor>
|
||||
{
|
||||
friend struct ::vl_workflow_global::__vwsnf5_Demo_demo_LocalizedFontDialogTabPageConstructor___vwsn_demo_LocalizedFontDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedFontDialogTabPageConstructor>;
|
||||
#endif
|
||||
protected:
|
||||
::demo::LocalizedFontDialogTabPage* self;
|
||||
::vl::presentation::controls::GuiFontDialog* dialog;
|
||||
::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement> label;
|
||||
::vl::presentation::controls::GuiSelectableButton* checkEffect;
|
||||
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_2;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_3;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_4;
|
||||
void __vwsn_demo_LocalizedFontDialogTabPage_Initialize(::demo::LocalizedFontDialogTabPage* __vwsn_this_);
|
||||
public:
|
||||
LocalizedFontDialogTabPageConstructor();
|
||||
};
|
||||
|
||||
class LocalizedFontDialogTabPage : public ::vl::presentation::controls::GuiTabPage, public ::demo::LocalizedFontDialogTabPageConstructor, public ::vl::reflection::Description<LocalizedFontDialogTabPage>
|
||||
{
|
||||
friend class ::demo::LocalizedFontDialogTabPageConstructor;
|
||||
friend struct ::vl_workflow_global::__vwsnf5_Demo_demo_LocalizedFontDialogTabPageConstructor___vwsn_demo_LocalizedFontDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedFontDialogTabPage>;
|
||||
#endif
|
||||
public:
|
||||
LocalizedFontDialogTabPage();
|
||||
~LocalizedFontDialogTabPage();
|
||||
};
|
||||
|
||||
class LocalizedMessageDialogTabPageConstructor : public ::vl::Object, public ::vl::reflection::Description<LocalizedMessageDialogTabPageConstructor>
|
||||
{
|
||||
friend struct ::vl_workflow_global::__vwsnf9_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno6_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno7_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno8_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedMessageDialogTabPageConstructor>;
|
||||
#endif
|
||||
protected:
|
||||
::demo::LocalizedMessageDialogTabPage* self;
|
||||
::vl::presentation::controls::GuiMessageDialog* dialog;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtTitle;
|
||||
::vl::presentation::controls::GuiSinglelineTextBox* txtText;
|
||||
::vl::presentation::controls::GuiComboBoxListControl* comboInput;
|
||||
::vl::presentation::controls::GuiComboBoxListControl* comboDefaultButton;
|
||||
::vl::presentation::controls::GuiComboBoxListControl* comboIcon;
|
||||
::vl::presentation::controls::GuiLabel* lblOutput;
|
||||
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_2;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_3;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_4;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_5;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_6;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_7;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_8;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_9;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_10;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_11;
|
||||
::vl::presentation::controls::GuiLabel* __vwsn_precompile_12;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_13;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_14;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_15;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_16;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_17;
|
||||
::vl::presentation::controls::GuiBindableTextList* __vwsn_precompile_18;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_19;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_20;
|
||||
::vl::presentation::controls::GuiBindableTextList* __vwsn_precompile_21;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_22;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_23;
|
||||
::vl::presentation::controls::GuiBindableTextList* __vwsn_precompile_24;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_25;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_26;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_27;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_28;
|
||||
void __vwsn_demo_LocalizedMessageDialogTabPage_Initialize(::demo::LocalizedMessageDialogTabPage* __vwsn_this_);
|
||||
public:
|
||||
LocalizedMessageDialogTabPageConstructor();
|
||||
};
|
||||
|
||||
class LocalizedMessageDialogTabPage : public ::vl::presentation::controls::GuiTabPage, public ::demo::LocalizedMessageDialogTabPageConstructor, public ::vl::reflection::Description<LocalizedMessageDialogTabPage>
|
||||
{
|
||||
friend class ::demo::LocalizedMessageDialogTabPageConstructor;
|
||||
friend struct ::vl_workflow_global::__vwsnf9_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno6_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno7_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
friend struct ::vl_workflow_global::__vwsno8_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<LocalizedMessageDialogTabPage>;
|
||||
#endif
|
||||
public:
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> inputValues;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> inputTexts;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> defaultButtonValues;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> defaultButtonTexts;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> iconValues;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> iconTexts;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> outputValues;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> outputTexts;
|
||||
LocalizedMessageDialogTabPage();
|
||||
void __vwsn_instance_ctor_();
|
||||
~LocalizedMessageDialogTabPage();
|
||||
};
|
||||
|
||||
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||
{
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||
#endif
|
||||
protected:
|
||||
::demo::MainWindow* self;
|
||||
::vl::presentation::controls::GuiTab* __vwsn_precompile_0;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_1;
|
||||
::demo::LocalizedMessageDialogTabPage* __vwsn_precompile_2;
|
||||
::demo::LocalizedColorDialogTabPage* __vwsn_precompile_3;
|
||||
::demo::LocalizedFontDialogTabPage* __vwsn_precompile_4;
|
||||
::demo::LocalizedFileDialogTabPage* __vwsn_precompile_5;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_6;
|
||||
void __vwsn_demo_MainWindow_Initialize(::demo::MainWindow* __vwsn_this_);
|
||||
public:
|
||||
MainWindowConstructor();
|
||||
};
|
||||
|
||||
class MainWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::MainWindowConstructor, public ::vl::reflection::Description<MainWindow>
|
||||
{
|
||||
friend class ::demo::MainWindowConstructor;
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
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();
|
||||
};
|
||||
|
||||
/***********************************************************************
|
||||
Closures
|
||||
***********************************************************************/
|
||||
|
||||
struct __vwsnf1_Demo_demo_LocalizedColorDialogTabPageConstructor___vwsn_demo_LocalizedColorDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedColorDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf1_Demo_demo_LocalizedColorDialogTabPageConstructor___vwsn_demo_LocalizedColorDialogTabPage_Initialize_(::demo::LocalizedColorDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsnf3_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedFileDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf3_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_(::demo::LocalizedFileDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsnf4_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedFileDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf4_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_(::demo::LocalizedFileDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsnf5_Demo_demo_LocalizedFontDialogTabPageConstructor___vwsn_demo_LocalizedFontDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedFontDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf5_Demo_demo_LocalizedFontDialogTabPageConstructor___vwsn_demo_LocalizedFontDialogTabPage_Initialize_(::demo::LocalizedFontDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsnf9_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedMessageDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf9_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_(::demo::LocalizedMessageDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsno2_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedFileDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsno2_Demo_demo_LocalizedFileDialogTabPageConstructor___vwsn_demo_LocalizedFileDialogTabPage_Initialize_(::demo::LocalizedFileDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::WString operator()(const ::vl::reflection::description::Value& __vwsno_1) const;
|
||||
};
|
||||
|
||||
struct __vwsno6_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedMessageDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsno6_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_(::demo::LocalizedMessageDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::WString operator()(const ::vl::reflection::description::Value& __vwsno_1) const;
|
||||
};
|
||||
|
||||
struct __vwsno7_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedMessageDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsno7_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_(::demo::LocalizedMessageDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::WString operator()(const ::vl::reflection::description::Value& __vwsno_1) const;
|
||||
};
|
||||
|
||||
struct __vwsno8_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_
|
||||
{
|
||||
::demo::LocalizedMessageDialogTabPageConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsno8_Demo_demo_LocalizedMessageDialogTabPageConstructor___vwsn_demo_LocalizedMessageDialogTabPage_Initialize_(::demo::LocalizedMessageDialogTabPageConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::WString operator()(const ::vl::reflection::description::Value& __vwsno_1) const;
|
||||
};
|
||||
|
||||
class __vwsnc1_Demo_demo_DialogStringsInjection___vwsn_ls_zh_CN_BuildStrings__gaclib_controls_IDialogStringsStrings : public ::vl::Object, public virtual ::gaclib_controls::IDialogStringsStrings
|
||||
{
|
||||
public:
|
||||
__vwsnc1_Demo_demo_DialogStringsInjection___vwsn_ls_zh_CN_BuildStrings__gaclib_controls_IDialogStringsStrings();
|
||||
|
||||
::vl::WString Abort() override;
|
||||
::vl::WString Blue() override;
|
||||
::vl::WString Bold() override;
|
||||
::vl::WString Cancel() override;
|
||||
::vl::WString Color() override;
|
||||
::vl::WString ColorDialogTitle() override;
|
||||
::vl::WString Continue() override;
|
||||
::vl::WString FileDialogAskCreateFile() override;
|
||||
::vl::WString FileDialogAskOverrideFile() override;
|
||||
::vl::WString FileDialogErrorEmptySelection() override;
|
||||
::vl::WString FileDialogErrorFileExpected() override;
|
||||
::vl::WString FileDialogErrorFileNotExist() override;
|
||||
::vl::WString FileDialogErrorFolderNotExist() override;
|
||||
::vl::WString FileDialogErrorMultipleSelectionNotEnabled() override;
|
||||
::vl::WString FileDialogFileName() override;
|
||||
::vl::WString FileDialogOpen() override;
|
||||
::vl::WString FileDialogSave() override;
|
||||
::vl::WString FileDialogTextLoadingFiles() override;
|
||||
::vl::WString FileDialogTextLoadingFolders() override;
|
||||
::vl::WString FontColorGroup() override;
|
||||
::vl::WString FontColorGroup2() override;
|
||||
::vl::WString FontDialogTitle() override;
|
||||
::vl::WString FontEffectGroup() override;
|
||||
::vl::WString FontNameGroup() override;
|
||||
::vl::WString FontPreviewGroup() override;
|
||||
::vl::WString FontSizeGroup() override;
|
||||
::vl::WString Green() override;
|
||||
::vl::WString HAA() override;
|
||||
::vl::WString Ignore() override;
|
||||
::vl::WString Italic() override;
|
||||
::vl::WString No() override;
|
||||
::vl::WString OK() override;
|
||||
::vl::WString Red() override;
|
||||
::vl::WString Retry() override;
|
||||
::vl::WString Strikeline() override;
|
||||
::vl::WString TryAgain() override;
|
||||
::vl::WString Underline() override;
|
||||
::vl::WString VAA() override;
|
||||
::vl::WString Yes() override;
|
||||
};
|
||||
}
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,297 @@
|
||||
/***********************************************************************
|
||||
!!!!!! DO NOT MODIFY !!!!!!
|
||||
|
||||
GacGen.exe Resource.xml
|
||||
|
||||
This file is generated by Workflow compiler
|
||||
https://github.com/vczh-libraries
|
||||
***********************************************************************/
|
||||
|
||||
#include "DemoReflection.h"
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4250)
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
Reflection
|
||||
***********************************************************************/
|
||||
|
||||
namespace vl
|
||||
{
|
||||
namespace reflection
|
||||
{
|
||||
namespace description
|
||||
{
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
IMPL_CPP_TYPE_INFO(demo::DialogStringsInjection)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedColorDialogTabPage)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedColorDialogTabPageConstructor)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedFileDialogTabPage)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedFileDialogTabPageConstructor)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedFontDialogTabPage)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedFontDialogTabPageConstructor)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedMessageDialogTabPage)
|
||||
IMPL_CPP_TYPE_INFO(demo::LocalizedMessageDialogTabPageConstructor)
|
||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||
IMPL_CPP_TYPE_INFO(demo::MainWindowConstructor)
|
||||
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
#define _ ,
|
||||
BEGIN_CLASS_MEMBER(::demo::DialogStringsInjection)
|
||||
CLASS_MEMBER_BASE(::vl::reflection::DescriptableObject)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::DialogStringsInjection>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_STATIC_METHOD(__vwsn_ls_zh_CN_BuildStrings, { L"__vwsn_ls_locale" })
|
||||
END_CLASS_MEMBER(::demo::DialogStringsInjection)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedColorDialogTabPage)
|
||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiTabPage)
|
||||
CLASS_MEMBER_BASE(::demo::LocalizedColorDialogTabPageConstructor)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::demo::LocalizedColorDialogTabPage*(), NO_PARAMETER)
|
||||
END_CLASS_MEMBER(::demo::LocalizedColorDialogTabPage)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedColorDialogTabPageConstructor)
|
||||
CLASS_MEMBER_BASE(::vl::reflection::DescriptableObject)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::LocalizedColorDialogTabPageConstructor>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_demo_LocalizedColorDialogTabPage_Initialize, { L"__vwsn_this_" })
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
||||
CLASS_MEMBER_FIELD(background)
|
||||
CLASS_MEMBER_FIELD(dialog)
|
||||
CLASS_MEMBER_FIELD(self)
|
||||
END_CLASS_MEMBER(::demo::LocalizedColorDialogTabPageConstructor)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedFileDialogTabPage)
|
||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiTabPage)
|
||||
CLASS_MEMBER_BASE(::demo::LocalizedFileDialogTabPageConstructor)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::demo::LocalizedFileDialogTabPage*(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(SetDialogProperties, { L"dialog" })
|
||||
END_CLASS_MEMBER(::demo::LocalizedFileDialogTabPage)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedFileDialogTabPageConstructor)
|
||||
CLASS_MEMBER_BASE(::vl::reflection::DescriptableObject)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::LocalizedFileDialogTabPageConstructor>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_demo_LocalizedFileDialogTabPage_Initialize, { L"__vwsn_this_" })
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_10)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_11)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_12)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_13)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_14)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_15)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_16)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_17)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_18)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_19)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_20)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_21)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_22)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_23)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_24)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_25)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_26)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_27)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_28)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_29)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_30)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_31)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_32)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_33)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_34)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_35)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_36)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_37)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_38)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_39)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_4)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_40)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_41)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_42)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_43)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_44)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_45)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_46)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_47)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_5)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_6)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_7)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_8)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_9)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogAddToRecent)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogAllowMultipleSelection)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogDereferenceLinks)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogDirectoryMustExist)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogFileMustExist)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogPromptCreateFile)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogPromptOverwriteFile)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogShowNetworkButton)
|
||||
CLASS_MEMBER_FIELD(chkFileDialogShowReadOnlyCheckBox)
|
||||
CLASS_MEMBER_FIELD(dialogOpen)
|
||||
CLASS_MEMBER_FIELD(dialogSave)
|
||||
CLASS_MEMBER_FIELD(lstFiles)
|
||||
CLASS_MEMBER_FIELD(self)
|
||||
CLASS_MEMBER_FIELD(txtDefaultExtension)
|
||||
CLASS_MEMBER_FIELD(txtDirectory)
|
||||
CLASS_MEMBER_FIELD(txtFileName)
|
||||
CLASS_MEMBER_FIELD(txtFilter)
|
||||
CLASS_MEMBER_FIELD(txtFilterIndex)
|
||||
CLASS_MEMBER_FIELD(txtTitle)
|
||||
END_CLASS_MEMBER(::demo::LocalizedFileDialogTabPageConstructor)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedFontDialogTabPage)
|
||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiTabPage)
|
||||
CLASS_MEMBER_BASE(::demo::LocalizedFontDialogTabPageConstructor)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::demo::LocalizedFontDialogTabPage*(), NO_PARAMETER)
|
||||
END_CLASS_MEMBER(::demo::LocalizedFontDialogTabPage)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedFontDialogTabPageConstructor)
|
||||
CLASS_MEMBER_BASE(::vl::reflection::DescriptableObject)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::LocalizedFontDialogTabPageConstructor>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_demo_LocalizedFontDialogTabPage_Initialize, { L"__vwsn_this_" })
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_4)
|
||||
CLASS_MEMBER_FIELD(checkEffect)
|
||||
CLASS_MEMBER_FIELD(dialog)
|
||||
CLASS_MEMBER_FIELD(label)
|
||||
CLASS_MEMBER_FIELD(self)
|
||||
END_CLASS_MEMBER(::demo::LocalizedFontDialogTabPageConstructor)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedMessageDialogTabPage)
|
||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiTabPage)
|
||||
CLASS_MEMBER_BASE(::demo::LocalizedMessageDialogTabPageConstructor)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::demo::LocalizedMessageDialogTabPage*(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_instance_ctor_, NO_PARAMETER)
|
||||
CLASS_MEMBER_FIELD(defaultButtonTexts)
|
||||
CLASS_MEMBER_FIELD(defaultButtonValues)
|
||||
CLASS_MEMBER_FIELD(iconTexts)
|
||||
CLASS_MEMBER_FIELD(iconValues)
|
||||
CLASS_MEMBER_FIELD(inputTexts)
|
||||
CLASS_MEMBER_FIELD(inputValues)
|
||||
CLASS_MEMBER_FIELD(outputTexts)
|
||||
CLASS_MEMBER_FIELD(outputValues)
|
||||
END_CLASS_MEMBER(::demo::LocalizedMessageDialogTabPage)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::LocalizedMessageDialogTabPageConstructor)
|
||||
CLASS_MEMBER_BASE(::vl::reflection::DescriptableObject)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::LocalizedMessageDialogTabPageConstructor>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_demo_LocalizedMessageDialogTabPage_Initialize, { L"__vwsn_this_" })
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_10)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_11)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_12)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_13)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_14)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_15)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_16)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_17)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_18)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_19)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_20)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_21)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_22)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_23)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_24)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_25)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_26)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_27)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_28)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_4)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_5)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_6)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_7)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_8)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_9)
|
||||
CLASS_MEMBER_FIELD(comboDefaultButton)
|
||||
CLASS_MEMBER_FIELD(comboIcon)
|
||||
CLASS_MEMBER_FIELD(comboInput)
|
||||
CLASS_MEMBER_FIELD(dialog)
|
||||
CLASS_MEMBER_FIELD(lblOutput)
|
||||
CLASS_MEMBER_FIELD(self)
|
||||
CLASS_MEMBER_FIELD(txtText)
|
||||
CLASS_MEMBER_FIELD(txtTitle)
|
||||
END_CLASS_MEMBER(::demo::LocalizedMessageDialogTabPageConstructor)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
||||
CLASS_MEMBER_BASE(::vl::presentation::controls::GuiWindow)
|
||||
CLASS_MEMBER_BASE(::demo::MainWindowConstructor)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::demo::MainWindow*(), NO_PARAMETER)
|
||||
END_CLASS_MEMBER(::demo::MainWindow)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||
CLASS_MEMBER_BASE(::vl::reflection::DescriptableObject)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::MainWindowConstructor>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_demo_MainWindow_Initialize, { L"__vwsn_this_" })
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_4)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_5)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_6)
|
||||
CLASS_MEMBER_FIELD(self)
|
||||
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||
|
||||
#undef _
|
||||
class DemoTypeLoader : public Object, public ITypeLoader
|
||||
{
|
||||
public:
|
||||
void Load(ITypeManager* manager)
|
||||
{
|
||||
ADD_TYPE_INFO(::demo::DialogStringsInjection)
|
||||
ADD_TYPE_INFO(::demo::LocalizedColorDialogTabPage)
|
||||
ADD_TYPE_INFO(::demo::LocalizedColorDialogTabPageConstructor)
|
||||
ADD_TYPE_INFO(::demo::LocalizedFileDialogTabPage)
|
||||
ADD_TYPE_INFO(::demo::LocalizedFileDialogTabPageConstructor)
|
||||
ADD_TYPE_INFO(::demo::LocalizedFontDialogTabPage)
|
||||
ADD_TYPE_INFO(::demo::LocalizedFontDialogTabPageConstructor)
|
||||
ADD_TYPE_INFO(::demo::LocalizedMessageDialogTabPage)
|
||||
ADD_TYPE_INFO(::demo::LocalizedMessageDialogTabPageConstructor)
|
||||
ADD_TYPE_INFO(::demo::MainWindow)
|
||||
ADD_TYPE_INFO(::demo::MainWindowConstructor)
|
||||
}
|
||||
|
||||
void Unload(ITypeManager* manager)
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool LoadDemoTypes()
|
||||
{
|
||||
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
|
||||
if (auto manager = GetGlobalTypeManager())
|
||||
{
|
||||
return manager->AddTypeLoader(Ptr(new DemoTypeLoader));
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
@@ -0,0 +1,65 @@
|
||||
/***********************************************************************
|
||||
!!!!!! DO NOT MODIFY !!!!!!
|
||||
|
||||
GacGen.exe Resource.xml
|
||||
|
||||
This file is generated by Workflow compiler
|
||||
https://github.com/vczh-libraries
|
||||
***********************************************************************/
|
||||
|
||||
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION
|
||||
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION
|
||||
|
||||
#include "Demo.h"
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
#include "GacUIReflection.h"
|
||||
#endif
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4250)
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
Reflection
|
||||
***********************************************************************/
|
||||
|
||||
namespace vl
|
||||
{
|
||||
namespace reflection
|
||||
{
|
||||
namespace description
|
||||
{
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
DECL_TYPE_INFO(::demo::DialogStringsInjection)
|
||||
DECL_TYPE_INFO(::demo::LocalizedColorDialogTabPage)
|
||||
DECL_TYPE_INFO(::demo::LocalizedColorDialogTabPageConstructor)
|
||||
DECL_TYPE_INFO(::demo::LocalizedFileDialogTabPage)
|
||||
DECL_TYPE_INFO(::demo::LocalizedFileDialogTabPageConstructor)
|
||||
DECL_TYPE_INFO(::demo::LocalizedFontDialogTabPage)
|
||||
DECL_TYPE_INFO(::demo::LocalizedFontDialogTabPageConstructor)
|
||||
DECL_TYPE_INFO(::demo::LocalizedMessageDialogTabPage)
|
||||
DECL_TYPE_INFO(::demo::LocalizedMessageDialogTabPageConstructor)
|
||||
DECL_TYPE_INFO(::demo::MainWindow)
|
||||
DECL_TYPE_INFO(::demo::MainWindowConstructor)
|
||||
#endif
|
||||
|
||||
extern bool LoadDemoTypes();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user