Skip to content

Commit

Permalink
new release 0.6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vczh committed Dec 24, 2013
1 parent e36d665 commit 8404567
Show file tree
Hide file tree
Showing 1,666 changed files with 30,167 additions and 14,228 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
<ClCompile Include="Main.cpp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GacUIStaticLibrary\GacUIStaticLibrary.vcxproj">
<Project>{6698c71d-0d4e-4031-846a-8698f9c9d658}</Project>
<ProjectReference Include="..\GacUIReflectionStaticLibrary\GacUIReflectionStaticLibrary.vcxproj">
<Project>{8c242464-8009-4a8a-9443-abe406809c71}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
4 changes: 3 additions & 1 deletion GacUIDemo/Controls.DataGrid.ChemicalElements/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "..\..\Public\Source\GacUI.h"
#include "..\..\Public\Source\GacUIReflection.h"
#include "..\..\Public\Source\GacUIWindows.h"

using namespace vl::regex;
Expand Down Expand Up @@ -552,6 +552,8 @@ GuiMain

void GuiMain()
{
description::GetTypeDescriptor<GuiWindow>(); // should be called due to VC++'s static library bug

GuiWindow* window=new ChemicalElementWindow;
GetApplication()->Run(window);
delete window;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
<ClCompile Include="Main.cpp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GacUIStaticLibrary\GacUIStaticLibrary.vcxproj">
<Project>{6698c71d-0d4e-4031-846a-8698f9c9d658}</Project>
<ProjectReference Include="..\GacUIReflectionStaticLibrary\GacUIReflectionStaticLibrary.vcxproj">
<Project>{8c242464-8009-4a8a-9443-abe406809c71}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
3 changes: 3 additions & 0 deletions GacUIDemo/Controls.DataGrid.FileExplorer/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "..\CommonLibrary\FileSystemInformation.h"
#include "..\..\Public\Source\GacUIReflection.h"

using namespace vl::regex;
using namespace vl::collections;
Expand Down Expand Up @@ -331,6 +332,8 @@ GuiMain

void GuiMain()
{
description::GetTypeDescriptor<GuiWindow>(); // should be called due to VC++'s static library bug

GuiWindow* window=new FileExplorerWindow;
GetApplication()->Run(window);
delete window;
Expand Down
21 changes: 8 additions & 13 deletions GacUIDemo/Controls.Tab.TextBoxPage/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ class TextBoxPage : public GuiTabPage
});
}

void OnPageContainerReady(GuiGraphicsComposition* sender, GuiEventArgs& arguments)
public:
TextBoxPage()
:closeButton(0)
,textBox(0)
{
// create a table to place a button and a text box
this->SetText(L"TextBoxPage Sample No."+itow(++pageCounter));
GuiTableComposition* table=new GuiTableComposition;
table->SetRowsAndColumns(2, 1);
table->SetRowOption(0, GuiCellOption::MinSizeOption());
Expand Down Expand Up @@ -64,16 +68,7 @@ class TextBoxPage : public GuiTabPage
cell->AddChild(textBox->GetBoundsComposition());
}

this->GetContainer()->GetContainerComposition()->AddChild(table);
}

public:
TextBoxPage()
:closeButton(0)
,textBox(0)
{
PageContainerReady.AttachMethod(this, &TextBoxPage::OnPageContainerReady);
this->SetText(L"TextBoxPage Sample No."+itow(++pageCounter));
this->GetContainerComposition()->AddChild(table);
}

~TextBoxPage()
Expand Down Expand Up @@ -117,8 +112,8 @@ class TextBoxPageWindow : public GuiWindow
buttonAddPage=g::NewButton();
buttonAddPage->SetText(L"Add a tab page");
buttonAddPage->Clicked.AttachMethod(this, &TextBoxPageWindow::buttonAddPage_Clicked);
controlPanelPage->GetContainer()->GetContainerComposition()->SetInternalMargin(Margin(2, 2, 2, 2));
controlPanelPage->GetContainer()->AddChild(buttonAddPage);
controlPanelPage->GetContainerComposition()->SetInternalMargin(Margin(2, 2, 2, 2));
controlPanelPage->GetContainerComposition()->AddChild(buttonAddPage->GetBoundsComposition());

this->ForceCalculateSizeImmediately();
this->MoveToScreenCenter();
Expand Down
4 changes: 2 additions & 2 deletions GacUIDemo/Controls.Tooltip.RichTextAndResource/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class TooltipWindow : public GuiWindow
L"Tooltips/SaveAs",
};

GuiToolstripToolbar* toolbar=g::NewToolbar();
GuiToolstripToolBar* toolbar=g::NewToolBar();
toolbar->GetBoundsComposition()->SetAlignmentToParent(Margin(0, 0, 0, -1));
AddChild(toolbar);
for(vint i=0;i<4;i++)
{
GuiToolstripButton* button=g::NewToolbarButton();
GuiToolstripButton* button=g::NewToolBarButton();
button->SetImage(resource->GetValueByPath(images[i]).Cast<GuiImageData>());
AddTooltip(button, resource, paths[i], 100);
toolbar->GetToolstripItems().Add(button);
Expand Down
Loading

0 comments on commit 8404567

Please sign in to comment.