Update release

This commit is contained in:
vczh
2023-07-06 01:50:42 -07:00
parent 7628e8ab1c
commit c1012a8666
41 changed files with 2626 additions and 2137 deletions
+70 -6
View File
@@ -388,6 +388,7 @@ WindowsForm
static void ClosePopupsOf(WindowsForm* owner, SortedList<WindowsForm*>& exceptions) static void ClosePopupsOf(WindowsForm* owner, SortedList<WindowsForm*>& exceptions)
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < owner->childWindows.Count(); i++) for (vint i = 0; i < owner->childWindows.Count(); i++)
{ {
auto popup = owner->childWindows[i]; auto popup = owner->childWindows[i];
@@ -456,6 +457,7 @@ WindowsForm
List<IWindowsForm*> allRootWindows; List<IWindowsForm*> allRootWindows;
GetAllCreatedWindows(allRootWindows, true); GetAllCreatedWindows(allRootWindows, true);
// TODO: (enumerable) foreach
for (vint i = 0; i < allRootWindows.Count(); i++) for (vint i = 0; i < allRootWindows.Count(); i++)
{ {
if (auto windowsForm = dynamic_cast<WindowsForm*>(allRootWindows[i])) if (auto windowsForm = dynamic_cast<WindowsForm*>(allRootWindows[i]))
@@ -475,6 +477,7 @@ WindowsForm
{ {
LPRECT rawBounds=(LPRECT)lParam; LPRECT rawBounds=(LPRECT)lParam;
NativeRect bounds(rawBounds->left, rawBounds->top, rawBounds->right, rawBounds->bottom); NativeRect bounds(rawBounds->left, rawBounds->top, rawBounds->right, rawBounds->bottom);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->Moving(bounds, false, (uMsg == WM_SIZING)); listeners[i]->Moving(bounds, false, (uMsg == WM_SIZING));
@@ -494,6 +497,7 @@ WindowsForm
break; break;
case WM_MOVE:case WM_SIZE: case WM_MOVE:case WM_SIZE:
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->Moved(); listeners[i]->Moved();
@@ -508,11 +512,13 @@ WindowsForm
auto newRect = (RECT*)lParam; auto newRect = (RECT*)lParam;
MoveWindow(handle, newRect->left, newRect->top, (newRect->right - newRect->left), (newRect->bottom - newRect->top), FALSE); MoveWindow(handle, newRect->left, newRect->top, (newRect->right - newRect->left), (newRect->bottom - newRect->top), FALSE);
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
listeners[i]->DpiChanged(true); listeners[i]->DpiChanged(true);
} }
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
listeners[i]->DpiChanged(false); listeners[i]->DpiChanged(false);
@@ -522,6 +528,7 @@ WindowsForm
// ************************************** state // ************************************** state
case WM_ENABLE: case WM_ENABLE:
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
if(wParam==TRUE) if(wParam==TRUE)
@@ -544,6 +551,7 @@ WindowsForm
break; break;
case WM_ACTIVATE: case WM_ACTIVATE:
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
if (wParam == WA_ACTIVE || wParam == WA_CLICKACTIVE) if (wParam == WA_ACTIVE || wParam == WA_CLICKACTIVE)
@@ -564,6 +572,7 @@ WindowsForm
{ {
if (wParam == TRUE) if (wParam == TRUE)
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
listeners[i]->Opened(); listeners[i]->Opened();
@@ -571,6 +580,7 @@ WindowsForm
} }
else else
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
listeners[i]->Closed(); listeners[i]->Closed();
@@ -581,12 +591,14 @@ WindowsForm
case WM_CLOSE: case WM_CLOSE:
{ {
bool cancel = false; bool cancel = false;
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
listeners[i]->BeforeClosing(cancel); listeners[i]->BeforeClosing(cancel);
} }
if (!cancel) if (!cancel)
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
listeners[i]->AfterClosing(); listeners[i]->AfterClosing();
@@ -602,6 +614,7 @@ WindowsForm
case WM_LBUTTONDOWN: case WM_LBUTTONDOWN:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->LeftButtonDown(info); listeners[i]->LeftButtonDown(info);
@@ -614,6 +627,7 @@ WindowsForm
case WM_LBUTTONUP: case WM_LBUTTONUP:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->LeftButtonUp(info); listeners[i]->LeftButtonUp(info);
@@ -626,6 +640,7 @@ WindowsForm
case WM_LBUTTONDBLCLK: case WM_LBUTTONDBLCLK:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->LeftButtonDoubleClick(info); listeners[i]->LeftButtonDoubleClick(info);
@@ -638,6 +653,7 @@ WindowsForm
case WM_RBUTTONDOWN: case WM_RBUTTONDOWN:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->RightButtonDown(info); listeners[i]->RightButtonDown(info);
@@ -650,6 +666,7 @@ WindowsForm
case WM_RBUTTONUP: case WM_RBUTTONUP:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->RightButtonUp(info); listeners[i]->RightButtonUp(info);
@@ -662,6 +679,7 @@ WindowsForm
case WM_RBUTTONDBLCLK: case WM_RBUTTONDBLCLK:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->RightButtonDoubleClick(info); listeners[i]->RightButtonDoubleClick(info);
@@ -674,6 +692,7 @@ WindowsForm
case WM_MBUTTONDOWN: case WM_MBUTTONDOWN:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->MiddleButtonDown(info); listeners[i]->MiddleButtonDown(info);
@@ -686,6 +705,7 @@ WindowsForm
case WM_MBUTTONUP: case WM_MBUTTONUP:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->MiddleButtonUp(info); listeners[i]->MiddleButtonUp(info);
@@ -698,6 +718,7 @@ WindowsForm
case WM_MBUTTONDBLCLK: case WM_MBUTTONDBLCLK:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, false, nonClient);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->MiddleButtonDoubleClick(info); listeners[i]->MiddleButtonDoubleClick(info);
@@ -715,12 +736,14 @@ WindowsForm
if(!mouseHoving) if(!mouseHoving)
{ {
mouseHoving=true; mouseHoving=true;
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->MouseEntered(); listeners[i]->MouseEntered();
} }
TrackMouse(true); TrackMouse(true);
} }
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->MouseMoving(info); listeners[i]->MouseMoving(info);
@@ -732,6 +755,7 @@ WindowsForm
case WM_MOUSEHWHEEL: case WM_MOUSEHWHEEL:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, true, false); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, true, false);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->HorizontalWheel(info); listeners[i]->HorizontalWheel(info);
@@ -741,6 +765,7 @@ WindowsForm
case WM_MOUSEWHEEL: case WM_MOUSEWHEEL:
{ {
NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, true, false); NativeWindowMouseInfo info=ConvertMouse(wParam, lParam, true, false);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->VerticalWheel(info); listeners[i]->VerticalWheel(info);
@@ -756,6 +781,7 @@ WindowsForm
mouseLastX=-1; mouseLastX=-1;
mouseLastY=-1; mouseLastY=-1;
mouseHoving=false; mouseHoving=false;
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->MouseLeaved(); listeners[i]->MouseLeaved();
@@ -773,6 +799,7 @@ WindowsForm
{ {
NativeWindowKeyInfo info=ConvertKey(wParam, lParam); NativeWindowKeyInfo info=ConvertKey(wParam, lParam);
info.autoRepeatKeyDown = false; info.autoRepeatKeyDown = false;
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->KeyUp(info); listeners[i]->KeyUp(info);
@@ -782,6 +809,7 @@ WindowsForm
case WM_KEYDOWN: case WM_KEYDOWN:
{ {
NativeWindowKeyInfo info=ConvertKey(wParam, lParam); NativeWindowKeyInfo info=ConvertKey(wParam, lParam);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->KeyDown(info); listeners[i]->KeyDown(info);
@@ -810,6 +838,7 @@ WindowsForm
{ {
break; break;
} }
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->KeyDown(info); listeners[i]->KeyDown(info);
@@ -819,6 +848,7 @@ WindowsForm
case WM_CHAR: case WM_CHAR:
{ {
NativeWindowCharInfo info=ConvertChar(wParam); NativeWindowCharInfo info=ConvertChar(wParam);
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->Char(info); listeners[i]->Char(info);
@@ -828,6 +858,7 @@ WindowsForm
// ************************************** painting // ************************************** painting
case WM_PAINT: case WM_PAINT:
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->Paint(); listeners[i]->Paint();
@@ -971,6 +1002,7 @@ WindowsForm
case WM_LBUTTONUP: case WM_LBUTTONUP:
{ {
POINTS location = MAKEPOINTS(lParam); POINTS location = MAKEPOINTS(lParam);
// TODO: (enumerable) this for-loop needs to be removed, because it is not looping, just leave the body
for (vint i = 0; i < listeners.Count(); i++) for (vint i = 0; i < listeners.Count(); i++)
{ {
switch (PerformHitTest(From(listeners), { location.x,location.y })) switch (PerformHitTest(From(listeners), { location.x,location.y }))
@@ -1065,6 +1097,7 @@ WindowsForm
{ {
parentWindow->childWindows.Remove(this); parentWindow->childWindows.Remove(this);
} }
// TODO: (enumerable) foreach
for (vint i = childWindows.Count() - 1; i >= 0; i--) for (vint i = childWindows.Count() - 1; i >= 0; i--)
{ {
childWindows[i]->SetParent(parentWindow); childWindows[i]->SetParent(parentWindow);
@@ -1073,6 +1106,7 @@ WindowsForm
*flagDisposed.Obj() = true; *flagDisposed.Obj() = true;
List<INativeWindowListener*> copiedListeners; List<INativeWindowListener*> copiedListeners;
CopyFrom(copiedListeners, listeners); CopyFrom(copiedListeners, listeners);
// TODO: (enumerable) foreach
for (vint i = 0; i < copiedListeners.Count(); i++) for (vint i = 0; i < copiedListeners.Count(); i++)
{ {
INativeWindowListener* listener = copiedListeners[i]; INativeWindowListener* listener = copiedListeners[i];
@@ -1091,6 +1125,7 @@ WindowsForm
void InvokeDestroying() void InvokeDestroying()
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->Destroying(); listeners[i]->Destroying();
@@ -1220,6 +1255,7 @@ WindowsForm
void SetBounds(const NativeRect& bounds)override void SetBounds(const NativeRect& bounds)override
{ {
NativeRect newBounds=bounds; NativeRect newBounds=bounds;
// TODO: (enumerable) foreach
for(vint i=0;i<listeners.Count();i++) for(vint i=0;i<listeners.Count();i++)
{ {
listeners[i]->Moving(newBounds, true, false); listeners[i]->Moving(newBounds, true, false);
@@ -1926,6 +1962,7 @@ WindowsController
{ {
DestroyNativeWindow(window); DestroyNativeWindow(window);
} }
// TODO: (enumerable) foreach:reversed
for (vint i = windows.Count() - 1; i >= 0; i--) for (vint i = windows.Count() - 1; i >= 0; i--)
{ {
auto window = windows.Values()[i]; auto window = windows.Values()[i];
@@ -2466,7 +2503,7 @@ WindowListener 1.1
if (size.x <= 1) size.x = 1; if (size.x <= 1) size.x = 1;
if (size.y <= 1) size.y = 1; if (size.y <= 1) size.y = 1;
if(!d2dDeviceContext) if (!d2dDeviceContext)
{ {
if (!dxgiDevice) if (!dxgiDevice)
{ {
@@ -2479,8 +2516,6 @@ WindowListener 1.1
} }
d2dDeviceContext = CreateDeviceContext(dxgiDevice.Obj()); d2dDeviceContext = CreateDeviceContext(dxgiDevice.Obj());
auto d2dBitmap = CreateBitmap(dxgiSwapChain.Obj(), d2dDeviceContext.Obj());
d2dDeviceContext->SetTarget(d2dBitmap.Obj());
IWindowsForm* form = GetWindowsForm(window); IWindowsForm* form = GetWindowsForm(window);
{ {
UINT dpiX = 0; UINT dpiX = 0;
@@ -2488,18 +2523,26 @@ WindowListener 1.1
DpiAwared_GetDpiForWindow(form->GetWindowHandle(), &dpiX, &dpiY); DpiAwared_GetDpiForWindow(form->GetWindowHandle(), &dpiX, &dpiY);
d2dDeviceContext->SetDpi((FLOAT)dpiX, (FLOAT)dpiY); d2dDeviceContext->SetDpi((FLOAT)dpiX, (FLOAT)dpiY);
} }
previousSize = { 0,0 };
} }
else if(previousSize!=size)
if (previousSize != size)
{ {
previousSize = size;
d2dDeviceContext->SetTarget(nullptr); d2dDeviceContext->SetTarget(nullptr);
HRESULT hr = dxgiSwapChain->ResizeBuffers(0, 0, 0, DXGI_FORMAT_UNKNOWN, 0); HRESULT hr = dxgiSwapChain->ResizeBuffers(
0,
(UINT)size.x.value,
(UINT)size.y.value,
DXGI_FORMAT_UNKNOWN,
0
);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
auto d2dBitmap = CreateBitmap(dxgiSwapChain.Obj(), d2dDeviceContext.Obj()); auto d2dBitmap = CreateBitmap(dxgiSwapChain.Obj(), d2dDeviceContext.Obj());
d2dDeviceContext->SetTarget(d2dBitmap.Obj()); d2dDeviceContext->SetTarget(d2dBitmap.Obj());
} }
} }
previousSize=size;
} }
public: public:
Direct2DWindowsNativeWindowListener_1_1(INativeWindow* _window, ComPtr<ID2D1Factory1> _d2dFactory1, ID3D11Device* _d3d11Device) Direct2DWindowsNativeWindowListener_1_1(INativeWindow* _window, ComPtr<ID2D1Factory1> _d2dFactory1, ID3D11Device* _d3d11Device)
@@ -2578,6 +2621,7 @@ ControllerListener
~Direct2DWindowsNativeControllerListener() ~Direct2DWindowsNativeControllerListener()
{ {
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < nativeWindowListeners.Count(); i++) for (vint i = 0; i < nativeWindowListeners.Count(); i++)
{ {
auto window = nativeWindowListeners.Keys()[i]; auto window = nativeWindowListeners.Keys()[i];
@@ -3133,6 +3177,7 @@ WindowsDirect2DParagraph (Ranges)
void CutMap(Dictionary<TextRange, T>& map, vint start, vint length) void CutMap(Dictionary<TextRange, T>& map, vint start, vint length)
{ {
vint end=start+length; vint end=start+length;
// TODO: (enumerable) foreach:alterable(reversed) on group
for(vint i=map.Count()-1;i>=0;i--) for(vint i=map.Count()-1;i>=0;i--)
{ {
TextRange key=map.Keys()[i]; TextRange key=map.Keys()[i];
@@ -3166,6 +3211,7 @@ WindowsDirect2DParagraph (Ranges)
void UpdateOverlappedMap(Dictionary<TextRange, T>& map, vint start, vint length, const T& value) void UpdateOverlappedMap(Dictionary<TextRange, T>& map, vint start, vint length, const T& value)
{ {
vint end=start+length; vint end=start+length;
// TODO: (enumerable) foreach:alterable(reversed)) on dictionary
for(vint i=map.Count()-1;i>=0;i--) for(vint i=map.Count()-1;i>=0;i--)
{ {
TextRange key=map.Keys()[i]; TextRange key=map.Keys()[i];
@@ -3181,6 +3227,7 @@ WindowsDirect2DParagraph (Ranges)
{ {
vint lastIndex=map.Count()-1; vint lastIndex=map.Count()-1;
T lastValue=map.Values()[lastIndex]; T lastValue=map.Values()[lastIndex];
// TODO: (enumerable) foreach:indexed(alterable(reversed)) on dictionary
for(vint i=map.Count()-2;i>=-1;i--) for(vint i=map.Count()-2;i>=-1;i--)
{ {
if(i==-1 || map.Values()[i]!=lastValue) if(i==-1 || map.Values()[i]!=lastValue)
@@ -3262,6 +3309,7 @@ WindowsDirect2DParagraph (Layout Retriving)
lineTops.Resize(lineCount); lineTops.Resize(lineCount);
vint start=0; vint start=0;
FLOAT top=0; FLOAT top=0;
// TODO: (enumerable) foreach
for(vint i=0;i<lineMetrics.Count();i++) for(vint i=0;i<lineMetrics.Count();i++)
{ {
DWRITE_LINE_METRICS& metrics=lineMetrics[i]; DWRITE_LINE_METRICS& metrics=lineMetrics[i];
@@ -3285,6 +3333,7 @@ WindowsDirect2DParagraph (Layout Retriving)
{ {
vint textPos=0; vint textPos=0;
hitTestMetrics.Resize(clusterMetrics.Count()); hitTestMetrics.Resize(clusterMetrics.Count());
// TODO: (enumerable) foreach
for(vint i=0;i<hitTestMetrics.Count();i++) for(vint i=0;i<hitTestMetrics.Count();i++)
{ {
FLOAT x=0; FLOAT x=0;
@@ -3296,6 +3345,7 @@ WindowsDirect2DParagraph (Layout Retriving)
} }
{ {
charHitTestMap.Resize(paragraphText.Length()); charHitTestMap.Resize(paragraphText.Length());
// TODO: (enumerable) foreach
for(vint i=0;i<hitTestMetrics.Count();i++) for(vint i=0;i<hitTestMetrics.Count();i++)
{ {
DWRITE_HIT_TEST_METRICS& metrics=hitTestMetrics[i]; DWRITE_HIT_TEST_METRICS& metrics=hitTestMetrics[i];
@@ -3520,6 +3570,7 @@ WindowsDirect2DParagraph (Formatting)
{ {
return false; return false;
} }
// TODO: (enumerable) foreach
for(vint i=0;i<inlineElements.Count();i++) for(vint i=0;i<inlineElements.Count();i++)
{ {
ComPtr<WindowsDirect2DElementInlineObject> inlineObject=inlineElements.Values().Get(i); ComPtr<WindowsDirect2DElementInlineObject> inlineObject=inlineElements.Values().Get(i);
@@ -3695,6 +3746,7 @@ WindowsDirect2DParagraph (Rendering)
BackgroundRenderer backgroundRenderer; BackgroundRenderer backgroundRenderer;
backgroundRenderer.renderTarget = renderTarget; backgroundRenderer.renderTarget = renderTarget;
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < backgroundColors.Count(); i++) for (vint i = 0; i < backgroundColors.Count(); i++)
{ {
TextRange key = backgroundColors.Keys()[i]; TextRange key = backgroundColors.Keys()[i];
@@ -5216,6 +5268,7 @@ GuiPolygonElementRenderer
p.x = (FLOAT)(oldPoints[0].x + offset.x) + 0.5f; p.x = (FLOAT)(oldPoints[0].x + offset.x) + 0.5f;
p.y = (FLOAT)(oldPoints[0].y + offset.y) + 0.5f; p.y = (FLOAT)(oldPoints[0].y + offset.y) + 0.5f;
pgs->BeginFigure(p, D2D1_FIGURE_BEGIN_FILLED); pgs->BeginFigure(p, D2D1_FIGURE_BEGIN_FILLED);
// TODO: (enumerable) foreach
for (vint i = 1; i < oldPoints.Count(); i++) for (vint i = 1; i < oldPoints.Count(); i++)
{ {
p.x = (FLOAT)(oldPoints[i].x + offset.x) + 0.5f; p.x = (FLOAT)(oldPoints[i].x + offset.x) + 0.5f;
@@ -5319,6 +5372,7 @@ GuiPolygonElementRenderer
} }
else else
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<oldPoints.Count();i++) for(vint i=0;i<oldPoints.Count();i++)
{ {
if(oldPoints[i]!=element->GetPoint(i)) if(oldPoints[i]!=element->GetPoint(i))
@@ -5344,6 +5398,7 @@ GuiColorizedTextElementRenderer
if(_renderTarget) if(_renderTarget)
{ {
colors.Resize(element->GetColors().Count()); colors.Resize(element->GetColors().Count());
// TODO: (enumerable) foreach:indexed
for(vint i=0;i<colors.Count();i++) for(vint i=0;i<colors.Count();i++)
{ {
text::ColorEntry entry=element->GetColors().Get(i); text::ColorEntry entry=element->GetColors().Get(i);
@@ -5370,6 +5425,7 @@ GuiColorizedTextElementRenderer
{ {
if(_renderTarget) if(_renderTarget)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<colors.Count();i++) for(vint i=0;i<colors.Count();i++)
{ {
_renderTarget->DestroyDirect2DBrush(colors[i].normal.text); _renderTarget->DestroyDirect2DBrush(colors[i].normal.text);
@@ -8442,6 +8498,7 @@ namespace vl
~GdiWindowsNativeControllerListener() ~GdiWindowsNativeControllerListener()
{ {
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < nativeWindowListeners.Count(); i++) for (vint i = 0; i < nativeWindowListeners.Count(); i++)
{ {
auto window = nativeWindowListeners.Keys()[i]; auto window = nativeWindowListeners.Keys()[i];
@@ -9774,6 +9831,7 @@ GuiColorizedTextElementRenderer
void GuiColorizedTextElementRenderer::DestroyColors() void GuiColorizedTextElementRenderer::DestroyColors()
{ {
auto resourceManager=GetWindowsGDIResourceManager(); auto resourceManager=GetWindowsGDIResourceManager();
// TODO: (enumerable) foreach
for(vint i=0;i<colors.Count();i++) for(vint i=0;i<colors.Count();i++)
{ {
resourceManager->DestroyGdiBrush(colors[i].normal.background); resourceManager->DestroyGdiBrush(colors[i].normal.background);
@@ -9787,6 +9845,7 @@ GuiColorizedTextElementRenderer
auto resourceManager=GetWindowsGDIResourceManager(); auto resourceManager=GetWindowsGDIResourceManager();
ColorArray newColors; ColorArray newColors;
newColors.Resize(element->GetColors().Count()); newColors.Resize(element->GetColors().Count());
// TODO: (enumerable) foreach:indexed
for(vint i=0;i<newColors.Count();i++) for(vint i=0;i<newColors.Count();i++)
{ {
text::ColorEntry entry=element->GetColors().Get(i); text::ColorEntry entry=element->GetColors().Get(i);
@@ -13481,6 +13540,7 @@ WindowsDialogService
Array<wchar_t> filterBuffer(filter.Length()+2); Array<wchar_t> filterBuffer(filter.Length()+2);
vint index=0; vint index=0;
// TODO: (enumerable) foreach
for(vint i=0;i<filterSeparators.Count();i++) for(vint i=0;i<filterSeparators.Count();i++)
{ {
vint end=filterSeparators[i]; vint end=filterSeparators[i];
@@ -13619,6 +13679,7 @@ WindowsImageFrame
WindowsImageFrame::~WindowsImageFrame() WindowsImageFrame::~WindowsImageFrame()
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<caches.Count();i++) for(vint i=0;i<caches.Count();i++)
{ {
caches.Values().Get(i)->OnDetach(this); caches.Values().Get(i)->OnDetach(this);
@@ -13919,6 +13980,7 @@ WindowsImage
{ {
if ((vint)actualCount > colorContexts.Count()) if ((vint)actualCount > colorContexts.Count())
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < colorContexts.Count(); i++) colorContexts[i]->Release(); for (vint i = 0; i < colorContexts.Count(); i++) colorContexts[i]->Release();
colorContexts.Resize((vint)actualCount); colorContexts.Resize((vint)actualCount);
bitmapDecoder->GetColorContexts(actualCount, &colorContexts[0], &actualCount); bitmapDecoder->GetColorContexts(actualCount, &colorContexts[0], &actualCount);
@@ -14639,6 +14701,7 @@ WindowsScreenService
void WindowsScreenService::RefreshScreenInformation() void WindowsScreenService::RefreshScreenInformation()
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<screens.Count();i++) for(vint i=0;i<screens.Count();i++)
{ {
screens[i]->monitor=NULL; screens[i]->monitor=NULL;
@@ -14670,6 +14733,7 @@ WindowsScreenService
HMONITOR monitor=MonitorFromWindow(hwnd, MONITOR_DEFAULTTONULL); HMONITOR monitor=MonitorFromWindow(hwnd, MONITOR_DEFAULTTONULL);
if(monitor!=NULL) if(monitor!=NULL)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<screens.Count();i++) for(vint i=0;i<screens.Count();i++)
{ {
if(screens[i]->monitor==monitor) if(screens[i]->monitor==monitor)
+1431 -1377
View File
File diff suppressed because it is too large Load Diff
+422 -275
View File
File diff suppressed because it is too large Load Diff
+55
View File
@@ -96,6 +96,7 @@ namespace vl
return nullptr; return nullptr;
} }
// TODO: (enumerable) foreach on dictionary
for (auto [fileName, index] : indexed(output->cppFiles.Keys())) for (auto [fileName, index] : indexed(output->cppFiles.Keys()))
{ {
WString code = output->cppFiles.Values()[index]; WString code = output->cppFiles.Values()[index];
@@ -658,6 +659,7 @@ GuiInstanceGradientAnimation::InitStruct
tds.Add(td); tds.Add(td);
auto ref = Ptr(new WfConstructorExpression); auto ref = Ptr(new WfConstructorExpression);
// TODO: (enumerable) foreach:alterable
for (vint i = 0; i < tds.Count(); i++) for (vint i = 0; i < tds.Count(); i++)
{ {
auto currentTd = tds[i]; auto currentTd = tds[i];
@@ -2167,6 +2169,7 @@ GuiDefaultInstanceLoader
block->statements.Add(stat); block->statements.Add(stat);
} }
// TODO: (enumerable) foreach
for (vint i = 0; i < values.Count(); i++) for (vint i = 0; i < values.Count(); i++)
{ {
auto refCollection = Ptr(new WfReferenceExpression); auto refCollection = Ptr(new WfReferenceExpression);
@@ -2549,6 +2552,7 @@ GuiInstanceLoaderManager
void GetVirtualTypes(collections::List<GlobalStringKey>& typeNames)override void GetVirtualTypes(collections::List<GlobalStringKey>& typeNames)override
{ {
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < typeInfos.Count(); i++) for (vint i = 0; i < typeInfos.Count(); i++)
{ {
if (typeInfos.Values()[i]->parentTypeName != GlobalStringKey::Empty) if (typeInfos.Values()[i]->parentTypeName != GlobalStringKey::Empty)
@@ -3973,6 +3977,7 @@ GuiDataProcessorDeserializer
inferExpr->type = funcType; inferExpr->type = funcType;
funcType->result = CopyType(decl->returnType); funcType->result = CopyType(decl->returnType);
// TODO: (enumerable) Linq:Select
for (vint i = 0; i < decl->arguments.Count(); i++) for (vint i = 0; i < decl->arguments.Count(); i++)
{ {
funcType->arguments.Add(CopyType(itemType)); funcType->arguments.Add(CopyType(itemType));
@@ -4180,6 +4185,7 @@ namespace vl
codes.Add(code); codes.Add(code);
}; };
// TODO: (enumerable) Linq:Select
for (vint i = 0; i < compiled->modules.Count(); i++) for (vint i = 0; i < compiled->modules.Count(); i++)
{ {
manager->AddModule(compiled->modules[i].module); manager->AddModule(compiled->modules[i].module);
@@ -4203,6 +4209,7 @@ namespace vl
} }
else else
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < compiled->modules.Count(); i++) for (vint i = 0; i < compiled->modules.Count(); i++)
{ {
auto module = compiled->modules[i]; auto module = compiled->modules[i];
@@ -4212,6 +4219,7 @@ namespace vl
} }
auto sp = Workflow_GetScriptPosition(context); auto sp = Workflow_GetScriptPosition(context);
// TODO: (enumerable) foreach
for (vint i = 0; i < manager->errors.Count(); i++) for (vint i = 0; i < manager->errors.Count(); i++)
{ {
auto error = manager->errors[i]; auto error = manager->errors[i];
@@ -4312,6 +4320,7 @@ Shared Script Type Resolver (Script)
Workflow_GenerateAssembly(context, Path_Shared, errors, false, context.compilerCallback); Workflow_GenerateAssembly(context, Path_Shared, errors, false, context.compilerCallback);
if (auto compiled = Workflow_GetModule(context, Path_Shared, {})) if (auto compiled = Workflow_GetModule(context, Path_Shared, {}))
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < compiled->modules.Count(); i++) for (vint i = 0; i < compiled->modules.Count(); i++)
{ {
auto& module = compiled->modules[i]; auto& module = compiled->modules[i];
@@ -4474,6 +4483,7 @@ Instance Type Resolver (Instance)
L"\" should have the class name specified in the ref.Class attribute.")); L"\" should have the class name specified in the ref.Class attribute."));
} }
// TODO: (enumerable) Linq:Take
for (auto [localized, index] : for (auto [localized, index] :
indexed(From(obj->localizeds).Where([](Ptr<GuiInstanceLocalized> ls) {return ls->defaultStrings; })) indexed(From(obj->localizeds).Where([](Ptr<GuiInstanceLocalized> ls) {return ls->defaultStrings; }))
) )
@@ -5290,6 +5300,7 @@ GuiInstanceLocalizedStringsBase
} }
else else
{ {
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < textDesc->parameters.Count(); i++) for (vint i = 0; i < textDesc->parameters.Count(); i++)
{ {
auto defaultParameter = defaultDesc->parameters[defaultDesc->positions[i]]; auto defaultParameter = defaultDesc->parameters[defaultDesc->positions[i]];
@@ -5369,6 +5380,7 @@ GuiInstanceLocalizedStringsBase
func->anonymity = WfFunctionAnonymity::Named; func->anonymity = WfFunctionAnonymity::Named;
func->name.value = functionName; func->name.value = functionName;
func->returnType = GetTypeFromTypeInfo(TypeInfoRetriver<WString>::CreateTypeInfo().Obj()); func->returnType = GetTypeFromTypeInfo(TypeInfoRetriver<WString>::CreateTypeInfo().Obj());
// TODO: (enumerable) foreach
for (vint i = 0; i < textDesc->positions.Count(); i++) for (vint i = 0; i < textDesc->positions.Count(); i++)
{ {
auto type = textDesc->parameters[textDesc->positions[i]]; auto type = textDesc->parameters[textDesc->positions[i]];
@@ -5506,6 +5518,7 @@ GuiInstanceLocalizedStringsBase
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < textDesc->parameters.Count(); i++) for (vint i = 0; i < textDesc->parameters.Count(); i++)
{ {
auto varDesc = Ptr(new WfVariableDeclaration); auto varDesc = Ptr(new WfVariableDeclaration);
@@ -5523,6 +5536,7 @@ GuiInstanceLocalizedStringsBase
{ {
Ptr<WfExpression> resultExpr; Ptr<WfExpression> resultExpr;
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < textDesc->texts.Count(); i++) for (vint i = 0; i < textDesc->texts.Count(); i++)
{ {
if (textDesc->texts[i] != L"") if (textDesc->texts[i] != L"")
@@ -6342,6 +6356,7 @@ GuiAttSetterRepr
{ {
GuiValueRepr::CloneBody(repr); GuiValueRepr::CloneBody(repr);
// TODO: (enumerable) foreach on dictionary
for (auto [name, index] : indexed(setters.Keys())) for (auto [name, index] : indexed(setters.Keys()))
{ {
auto src = setters.Values()[index]; auto src = setters.Values()[index];
@@ -6357,6 +6372,7 @@ GuiAttSetterRepr
repr->setters.Add(name, dst); repr->setters.Add(name, dst);
} }
// TODO: (enumerable) foreach on dictionary
for (auto [name, index] : indexed(eventHandlers.Keys())) for (auto [name, index] : indexed(eventHandlers.Keys()))
{ {
auto src = eventHandlers.Values()[index]; auto src = eventHandlers.Values()[index];
@@ -6371,6 +6387,7 @@ GuiAttSetterRepr
repr->eventHandlers.Add(name, dst); repr->eventHandlers.Add(name, dst);
} }
// TODO: (enumerable) foreach on dictionary
for (auto [name, index] : indexed(environmentVariables.Keys())) for (auto [name, index] : indexed(environmentVariables.Keys()))
{ {
auto src = environmentVariables.Values()[index]; auto src = environmentVariables.Values()[index];
@@ -6407,6 +6424,7 @@ GuiAttSetterRepr
xml->attributes.Add(attName); xml->attributes.Add(attName);
} }
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < setters.Count(); i++) for (vint i = 0; i < setters.Count(); i++)
{ {
auto key = setters.Keys()[i]; auto key = setters.Keys()[i];
@@ -6468,6 +6486,7 @@ GuiAttSetterRepr
} }
} }
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < eventHandlers.Count(); i++) for (vint i = 0; i < eventHandlers.Count(); i++)
{ {
auto key = eventHandlers.Keys()[i]; auto key = eventHandlers.Keys()[i];
@@ -6488,6 +6507,7 @@ GuiAttSetterRepr
} }
} }
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < environmentVariables.Count(); i++) for (vint i = 0; i < environmentVariables.Count(); i++)
{ {
auto key = environmentVariables.Keys()[i]; auto key = environmentVariables.Keys()[i];
@@ -7047,6 +7067,7 @@ GuiInstanceContext
attClass->value.value = className; attClass->value.value = className;
xmlInstance->attributes.Add(attClass); xmlInstance->attributes.Add(attClass);
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < namespaces.Count(); i++) for (vint i = 0; i < namespaces.Count(); i++)
{ {
auto key = namespaces.Keys()[i]; auto key = namespaces.Keys()[i];
@@ -7060,6 +7081,7 @@ GuiInstanceContext
} }
xmlInstance->attributes.Add(xmlns); xmlInstance->attributes.Add(xmlns);
// TODO: (enumerable) Linq:Aggregate
for (vint j = 0; j < value->namespaces.Count(); j++) for (vint j = 0; j < value->namespaces.Count(); j++)
{ {
auto ns = value->namespaces[j]; auto ns = value->namespaces[j];
@@ -7133,6 +7155,7 @@ GuiInstanceContext
attStyles->name.value = L"ref.Styles"; attStyles->name.value = L"ref.Styles";
xmlInstance->attributes.Add(attStyles); xmlInstance->attributes.Add(attStyles);
// TODO: (enumerable) Linq:Aggregate
for (vint j = 0; j < stylePaths.Count(); j++) for (vint j = 0; j < stylePaths.Count(); j++)
{ {
if (j != 0) if (j != 0)
@@ -7511,6 +7534,7 @@ GuiCompositionInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
const auto& values = arguments.GetByIndex(index); const auto& values = arguments.GetByIndex(index);
@@ -7669,6 +7693,7 @@ GuiTableCompositionInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
if (prop == _Rows) if (prop == _Rows)
@@ -7703,6 +7728,7 @@ GuiTableCompositionInstanceLoader
block->statements.Add(stat); block->statements.Add(stat);
} }
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < rows.Count(); i++) for (vint i = 0; i < rows.Count(); i++)
{ {
auto refComposition = Ptr(new WfReferenceExpression); auto refComposition = Ptr(new WfReferenceExpression);
@@ -7725,6 +7751,7 @@ GuiTableCompositionInstanceLoader
block->statements.Add(stat); block->statements.Add(stat);
} }
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < columns.Count(); i++) for (vint i = 0; i < columns.Count(); i++)
{ {
auto refComposition = Ptr(new WfReferenceExpression); auto refComposition = Ptr(new WfReferenceExpression);
@@ -7798,6 +7825,7 @@ GuiCellCompositionInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
if (prop == _Site) if (prop == _Site)
@@ -8028,6 +8056,7 @@ GuiDocumentItemInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
const auto& values = arguments.GetByIndex(index); const auto& values = arguments.GetByIndex(index);
@@ -8119,6 +8148,7 @@ GuiDocumentInstanceLoaderBase
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
const auto& values = arguments.GetByIndex(index); const auto& values = arguments.GetByIndex(index);
@@ -8384,6 +8414,7 @@ GuiTreeViewInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
if (prop == _Nodes) if (prop == _Nodes)
@@ -8560,6 +8591,7 @@ GuiTreeNodeInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
if (prop == GlobalStringKey::Empty) if (prop == GlobalStringKey::Empty)
@@ -8793,6 +8825,7 @@ GuiControlInstanceLoader
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
const auto& values = arguments.GetByIndex(index); const auto& values = arguments.GetByIndex(index);
@@ -9258,6 +9291,7 @@ namespace vl
{ {
auto block = Ptr(new WfBlockStatement); auto block = Ptr(new WfBlockStatement);
// TODO: (enumerable) foreach on group
for (auto [prop, index] : indexed(arguments.Keys())) for (auto [prop, index] : indexed(arguments.Keys()))
{ {
const auto& values = arguments.GetByIndex(index); const auto& values = arguments.GetByIndex(index);
@@ -9640,6 +9674,7 @@ ExecuteQueryVisitor
{ {
if (setter) if (setter)
{ {
// TODO: (enumerable) foreach on group
for (auto [attribute, index] : indexed(setter->setters.Keys())) for (auto [attribute, index] : indexed(setter->setters.Keys()))
{ {
auto setterValue = setter->setters.Values()[index]; auto setterValue = setter->setters.Values()[index];
@@ -9751,6 +9786,7 @@ ApplyStyle
void ApplyStyleInternal(Ptr<GuiAttSetterRepr> src, Ptr<GuiAttSetterRepr> dst) void ApplyStyleInternal(Ptr<GuiAttSetterRepr> src, Ptr<GuiAttSetterRepr> dst)
{ {
// TODO: (enumerable) foreach on dictionary
for (auto [attribute, srcIndex] : indexed(src->setters.Keys())) for (auto [attribute, srcIndex] : indexed(src->setters.Keys()))
{ {
auto srcValue = src->setters.Values()[srcIndex]; auto srcValue = src->setters.Values()[srcIndex];
@@ -9776,6 +9812,7 @@ ApplyStyle
} }
} }
// TODO: (enumerable) foreach
for (auto [eventName, srcIndex] : indexed(src->eventHandlers.Keys())) for (auto [eventName, srcIndex] : indexed(src->eventHandlers.Keys()))
{ {
if (!dst->eventHandlers.Keys().Contains(eventName)) if (!dst->eventHandlers.Keys().Contains(eventName))
@@ -9785,6 +9822,7 @@ ApplyStyle
} }
} }
// TODO: (enumerable) foreach
for (auto [varName, srcIndex] : indexed(src->environmentVariables.Keys())) for (auto [varName, srcIndex] : indexed(src->environmentVariables.Keys()))
{ {
if (!dst->environmentVariables.Keys().Contains(varName)) if (!dst->environmentVariables.Keys().Contains(varName))
@@ -10601,6 +10639,7 @@ WorkflowEventNamesVisitor
void Visit(GuiAttSetterRepr* repr)override void Visit(GuiAttSetterRepr* repr)override
{ {
// TODO: (enumerable) foreach on dictionary
for (auto [setter, index] : indexed(repr->setters.Values())) for (auto [setter, index] : indexed(repr->setters.Values()))
{ {
auto loader = GetInstanceLoaderManager()->GetLoader(resolvedTypeInfo.typeName); auto loader = GetInstanceLoaderManager()->GetLoader(resolvedTypeInfo.typeName);
@@ -10639,6 +10678,7 @@ WorkflowEventNamesVisitor
} }
} }
// TODO: (enumerable) foreach on dictionary
for (auto [handler, index] : indexed(repr->eventHandlers.Values())) for (auto [handler, index] : indexed(repr->eventHandlers.Values()))
{ {
if (handler->binding == GlobalStringKey::Empty) if (handler->binding == GlobalStringKey::Empty)
@@ -10994,6 +11034,7 @@ Workflow_GenerateInstanceClass
CopyFrom(unprocessed, memberDecls); CopyFrom(unprocessed, memberDecls);
ReplaceDeclImplVisitor visitor(notImplemented, unprocessed); ReplaceDeclImplVisitor visitor(notImplemented, unprocessed);
// TODO: (enumerable) foreach
for (vint i = 0; i < unprocessed.Count(); i++) for (vint i = 0; i < unprocessed.Count(); i++)
{ {
unprocessed[i]->Accept(&visitor); unprocessed[i]->Accept(&visitor);
@@ -11019,6 +11060,7 @@ Workflow_GenerateInstanceClass
call->type = CopyType(instanceClass->baseTypes[0]); call->type = CopyType(instanceClass->baseTypes[0]);
baseTypeContext = baseTypeResourceItem->GetContent().Cast<GuiInstanceContext>(); baseTypeContext = baseTypeResourceItem->GetContent().Cast<GuiInstanceContext>();
// TODO: (enumerable) foreach
for (auto parameter : baseTypeContext->parameters) for (auto parameter : baseTypeContext->parameters)
{ {
auto parameterTypeInfoTuple = getDefaultType(parameter->className.ToString()); auto parameterTypeInfoTuple = getDefaultType(parameter->className.ToString());
@@ -11839,6 +11881,7 @@ WorkflowReferenceNamesVisitor
auto loader = GetInstanceLoaderManager()->GetLoader(resolvedTypeInfo.typeName); auto loader = GetInstanceLoaderManager()->GetLoader(resolvedTypeInfo.typeName);
// TODO: (enumerable) foreach on dictionary
for (auto [setter, index] : indexed(repr->setters.Values())) for (auto [setter, index] : indexed(repr->setters.Values()))
{ {
List<types::PropertyResolving> possibleInfos; List<types::PropertyResolving> possibleInfos;
@@ -12130,6 +12173,7 @@ WorkflowReferenceNamesVisitor
for (vint i = 0; i < candidatePropertyTypeInfos.Count(); i++) for (vint i = 0; i < candidatePropertyTypeInfos.Count(); i++)
{ {
const auto& typeInfos = candidatePropertyTypeInfos[i].info->acceptableTypes; const auto& typeInfos = candidatePropertyTypeInfos[i].info->acceptableTypes;
// TODO: (enumerable) foreach
for (vint j = 0; j < typeInfos.Count(); j++) for (vint j = 0; j < typeInfos.Count(); j++)
{ {
if (resolvedTypeInfo.typeInfo->GetTypeDescriptor()->CanConvertTo(typeInfos[j]->GetTypeDescriptor())) if (resolvedTypeInfo.typeInfo->GetTypeDescriptor()->CanConvertTo(typeInfos[j]->GetTypeDescriptor()))
@@ -12153,9 +12197,11 @@ WorkflowReferenceNamesVisitor
+ resolvedTypeInfo.typeName.ToString() + resolvedTypeInfo.typeName.ToString()
+ L"\" because it only accepts value of the following types: "; + L"\" because it only accepts value of the following types: ";
// TODO: (enumerable) foreach
for (vint i = 0; i < candidatePropertyTypeInfos.Count(); i++) for (vint i = 0; i < candidatePropertyTypeInfos.Count(); i++)
{ {
const auto& typeInfos = candidatePropertyTypeInfos[i].info->acceptableTypes; const auto& typeInfos = candidatePropertyTypeInfos[i].info->acceptableTypes;
// TODO: (enumerable) LinqLAggregate
for (vint j = 0; j < typeInfos.Count(); j++) for (vint j = 0; j < typeInfos.Count(); j++)
{ {
if (i != 0 || j != 0) if (i != 0 || j != 0)
@@ -12218,6 +12264,7 @@ WorkflowReferenceNamesVisitor
{ {
List<GlobalStringKey> propertyNames; List<GlobalStringKey> propertyNames;
loader->GetPropertyNames(precompileContext, resolvedTypeInfo, propertyNames); loader->GetPropertyNames(precompileContext, resolvedTypeInfo, propertyNames);
// TODO: (enumerable) foreach:indexed(alterable(reversed))
for (vint i = propertyNames.Count() - 1; i >= 0; i--) for (vint i = propertyNames.Count() - 1; i >= 0; i--)
{ {
auto info = loader->GetPropertyType(precompileContext, { resolvedTypeInfo, propertyNames[i] }); auto info = loader->GetPropertyType(precompileContext, { resolvedTypeInfo, propertyNames[i] });
@@ -12498,6 +12545,7 @@ WorkflowGenerateBindingVisitor
{ {
WORKFLOW_ENVIRONMENT_VARIABLE_ADD WORKFLOW_ENVIRONMENT_VARIABLE_ADD
// TODO: (enumerable) foreach on dictionary
for (auto [setter, index] : indexed(repr->setters.Values())) for (auto [setter, index] : indexed(repr->setters.Values()))
{ {
auto propertyName = repr->setters.Keys()[index]; auto propertyName = repr->setters.Keys()[index];
@@ -12518,6 +12566,7 @@ WorkflowGenerateBindingVisitor
} }
} }
// TODO: (enumerable) foreach on dictionary
for (auto [handler, index] : indexed(repr->eventHandlers.Values())) for (auto [handler, index] : indexed(repr->eventHandlers.Values()))
{ {
if (reprTypeInfo.typeInfo) if (reprTypeInfo.typeInfo)
@@ -12789,6 +12838,7 @@ WorkflowGenerateCreatingVisitor
else if (errorCount == errors.Count()) else if (errorCount == errors.Count())
{ {
WString propNames; WString propNames;
// TODO: (enumerable) Linq:Aggregate
for (auto [pairedProp, propIndex] : indexed(pairedProps)) for (auto [pairedProp, propIndex] : indexed(pairedProps))
{ {
if (propIndex > 0)propNames += L", "; if (propIndex > 0)propNames += L", ";
@@ -12819,6 +12869,7 @@ WorkflowGenerateCreatingVisitor
WORKFLOW_ENVIRONMENT_VARIABLE_ADD WORKFLOW_ENVIRONMENT_VARIABLE_ADD
Group<GlobalStringKey, IGuiInstanceLoader*> usedProps; Group<GlobalStringKey, IGuiInstanceLoader*> usedProps;
// TODO: (enumerable) foreach:reversed on dictionary
for (auto prop : From(repr->setters.Keys()).Reverse()) for (auto prop : From(repr->setters.Keys()).Reverse())
{ {
auto setter = repr->setters[prop]; auto setter = repr->setters[prop];
@@ -12869,6 +12920,7 @@ WorkflowGenerateCreatingVisitor
{ {
WORKFLOW_ENVIRONMENT_VARIABLE_ADD WORKFLOW_ENVIRONMENT_VARIABLE_ADD
// TODO: (enumerable) foreach on dictionary
for (auto [prop, index] : indexed(repr->setters.Keys())) for (auto [prop, index] : indexed(repr->setters.Keys()))
{ {
auto setter = repr->setters.Values()[index]; auto setter = repr->setters.Values()[index];
@@ -13394,6 +13446,7 @@ Workflow_GenerateEventHandler
auto expectedType = GetTypeDescriptor<GuiEventArgs>(); auto expectedType = GetTypeDescriptor<GuiEventArgs>();
List<ITypeDescriptor*> types; List<ITypeDescriptor*> types;
types.Add(argumentType); types.Add(argumentType);
// TODO: (enumerable) foreach
for (vint i = 0; i < types.Count(); i++) for (vint i = 0; i < types.Count(); i++)
{ {
auto type = types[i]; auto type = types[i];
@@ -13708,6 +13761,7 @@ Variable
void Workflow_CreateVariablesForReferenceValues(Ptr<workflow::WfClassDeclaration> ctorClass, types::ResolvingResult& resolvingResult) void Workflow_CreateVariablesForReferenceValues(Ptr<workflow::WfClassDeclaration> ctorClass, types::ResolvingResult& resolvingResult)
{ {
const auto& typeInfos = resolvingResult.typeInfos; const auto& typeInfos = resolvingResult.typeInfos;
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < typeInfos.Count(); i++) for (vint i = 0; i < typeInfos.Count(); i++)
{ {
auto key = typeInfos.Keys()[i]; auto key = typeInfos.Keys()[i];
@@ -13744,6 +13798,7 @@ Parser
if (availableAfter.row != 0 || availableAfter.column != 0) if (availableAfter.row != 0 || availableAfter.column != 0)
{ {
// TODO: (enumerable) Linq:Skip
for (vint i = errorCount; i < errors.Count(); i++) for (vint i = errorCount; i < errors.Count(); i++)
{ {
auto& error = errors[i]; auto& error = errors[i];
+19 -30
View File
@@ -1187,6 +1187,7 @@ Type Declaration (Extra)
BEGIN_ENUM_ITEM(FlowAlignment) BEGIN_ENUM_ITEM(FlowAlignment)
ENUM_CLASS_ITEM(Left) ENUM_CLASS_ITEM(Left)
ENUM_CLASS_ITEM(Center) ENUM_CLASS_ITEM(Center)
ENUM_CLASS_ITEM(Right)
ENUM_CLASS_ITEM(Extend) ENUM_CLASS_ITEM(Extend)
END_ENUM_ITEM(FlowAlignment) END_ENUM_ITEM(FlowAlignment)
@@ -1269,7 +1270,6 @@ Type Declaration (Class)
***********************************************************************/ ***********************************************************************/
BEGIN_CLASS_MEMBER(GuiGraphicsComposition) BEGIN_CLASS_MEMBER(GuiGraphicsComposition)
CLASS_MEMBER_EXTERNALMETHOD(SafeDelete, NO_PARAMETER, void(GuiGraphicsComposition::*)(), vl::presentation::compositions::SafeDeleteComposition) CLASS_MEMBER_EXTERNALMETHOD(SafeDelete, NO_PARAMETER, void(GuiGraphicsComposition::*)(), vl::presentation::compositions::SafeDeleteComposition)
CLASS_MEMBER_GUIEVENT_COMPOSITION(leftButtonDown) CLASS_MEMBER_GUIEVENT_COMPOSITION(leftButtonDown)
@@ -1303,7 +1303,6 @@ Type Declaration (Class)
CLASS_MEMBER_PROPERTY_FAST(Visible) CLASS_MEMBER_PROPERTY_FAST(Visible)
CLASS_MEMBER_PROPERTY_READONLY_FAST(EventuallyVisible) CLASS_MEMBER_PROPERTY_READONLY_FAST(EventuallyVisible)
CLASS_MEMBER_PROPERTY_FAST(MinSizeLimitation) CLASS_MEMBER_PROPERTY_FAST(MinSizeLimitation)
CLASS_MEMBER_PROPERTY_READONLY_FAST(GlobalBounds)
CLASS_MEMBER_PROPERTY_FAST(TransparentToMouse) CLASS_MEMBER_PROPERTY_FAST(TransparentToMouse)
CLASS_MEMBER_PROPERTY_READONLY_FAST(AssociatedControl) CLASS_MEMBER_PROPERTY_READONLY_FAST(AssociatedControl)
CLASS_MEMBER_PROPERTY_FAST(AssociatedCursor) CLASS_MEMBER_PROPERTY_FAST(AssociatedCursor)
@@ -1311,13 +1310,8 @@ Type Declaration (Class)
CLASS_MEMBER_PROPERTY_READONLY_FAST(RelatedControl) CLASS_MEMBER_PROPERTY_READONLY_FAST(RelatedControl)
CLASS_MEMBER_PROPERTY_READONLY_FAST(RelatedControlHost) CLASS_MEMBER_PROPERTY_READONLY_FAST(RelatedControlHost)
CLASS_MEMBER_PROPERTY_READONLY_FAST(RelatedCursor) CLASS_MEMBER_PROPERTY_READONLY_FAST(RelatedCursor)
CLASS_MEMBER_PROPERTY_FAST(Margin)
CLASS_MEMBER_PROPERTY_FAST(InternalMargin) CLASS_MEMBER_PROPERTY_FAST(InternalMargin)
CLASS_MEMBER_PROPERTY_FAST(PreferredMinSize) CLASS_MEMBER_PROPERTY_FAST(PreferredMinSize)
CLASS_MEMBER_PROPERTY_READONLY_FAST(ClientArea)
CLASS_MEMBER_PROPERTY_READONLY_FAST(MinPreferredClientSize)
CLASS_MEMBER_PROPERTY_READONLY_FAST(PreferredBounds)
CLASS_MEMBER_PROPERTY_READONLY_FAST(Bounds)
CLASS_MEMBER_METHOD_RENAME(GetChildren, Children, NO_PARAMETER) CLASS_MEMBER_METHOD_RENAME(GetChildren, Children, NO_PARAMETER)
CLASS_MEMBER_PROPERTY_READONLY(Children, GetChildren) CLASS_MEMBER_PROPERTY_READONLY(Children, GetChildren)
@@ -1328,28 +1322,26 @@ Type Declaration (Class)
CLASS_MEMBER_METHOD(MoveChild, {L"child" _ L"newIndex"}) CLASS_MEMBER_METHOD(MoveChild, {L"child" _ L"newIndex"})
CLASS_MEMBER_METHOD(Render, {L"size"}) CLASS_MEMBER_METHOD(Render, {L"size"})
CLASS_MEMBER_METHOD(FindComposition, {L"location" _ L"forMouseEvent"}) CLASS_MEMBER_METHOD(FindComposition, {L"location" _ L"forMouseEvent"})
CLASS_MEMBER_METHOD(ForceCalculateSizeImmediately, NO_PARAMETER)
CLASS_MEMBER_METHOD(IsSizeAffectParent, NO_PARAMETER) CLASS_MEMBER_GUIEVENT(CachedMinSizeChanged)
CLASS_MEMBER_GUIEVENT(CachedBoundsChanged)
CLASS_MEMBER_PROPERTY_EVENT_READONLY_FAST(CachedMinSize, CachedMinSizeChanged)
CLASS_MEMBER_PROPERTY_EVENT_READONLY_FAST(CachedMinClientSize, CachedMinSizeChanged)
CLASS_MEMBER_PROPERTY_EVENT_READONLY_FAST(CachedBounds, CachedBoundsChanged)
CLASS_MEMBER_PROPERTY_EVENT_READONLY_FAST(CachedClientArea, CachedBoundsChanged)
CLASS_MEMBER_PROPERTY_READONLY_FAST(GlobalBounds)
END_CLASS_MEMBER(GuiGraphicsComposition) END_CLASS_MEMBER(GuiGraphicsComposition)
BEGIN_CLASS_MEMBER(GuiGraphicsSite)
CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_PROPERTY_GUIEVENT_READONLY_FAST(Bounds)
CLASS_MEMBER_PROPERTY_READONLY_FAST(PreviousCalculatedBounds)
END_CLASS_MEMBER(GuiGraphicsSite)
BEGIN_CLASS_MEMBER(GuiWindowComposition) BEGIN_CLASS_MEMBER(GuiWindowComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiWindowComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiWindowComposition*(), NO_PARAMETER)
END_CLASS_MEMBER(GuiWindowComposition) END_CLASS_MEMBER(GuiWindowComposition)
BEGIN_CLASS_MEMBER(GuiBoundsComposition) BEGIN_CLASS_MEMBER(GuiBoundsComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiBoundsComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiBoundsComposition*(), NO_PARAMETER)
CLASS_MEMBER_PROPERTY_FAST(SizeAffectParent) CLASS_MEMBER_PROPERTY_FAST(ExpectedBounds)
CLASS_MEMBER_PROPERTY_EVENT_FAST(Bounds, BoundsChanged)
CLASS_MEMBER_PROPERTY_FAST(AlignmentToParent) CLASS_MEMBER_PROPERTY_FAST(AlignmentToParent)
CLASS_MEMBER_METHOD(IsAlignedToParent, NO_PARAMETER) CLASS_MEMBER_METHOD(IsAlignedToParent, NO_PARAMETER)
@@ -1371,10 +1363,9 @@ Type Declaration (Class)
END_CLASS_MEMBER(GuiStackComposition) END_CLASS_MEMBER(GuiStackComposition)
BEGIN_CLASS_MEMBER(GuiStackItemComposition) BEGIN_CLASS_MEMBER(GuiStackItemComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiStackItemComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiStackItemComposition*(), NO_PARAMETER)
CLASS_MEMBER_PROPERTY_EVENT_FAST(Bounds, BoundsChanged)
CLASS_MEMBER_PROPERTY_FAST(ExtraMargin) CLASS_MEMBER_PROPERTY_FAST(ExtraMargin)
END_CLASS_MEMBER(GuiStackItemComposition) END_CLASS_MEMBER(GuiStackItemComposition)
@@ -1400,12 +1391,10 @@ Type Declaration (Class)
CLASS_MEMBER_METHOD(SetRowOption, {L"row" _ L"option"}) CLASS_MEMBER_METHOD(SetRowOption, {L"row" _ L"option"})
CLASS_MEMBER_METHOD(GetColumnOption, {L"column"}) CLASS_MEMBER_METHOD(GetColumnOption, {L"column"})
CLASS_MEMBER_METHOD(SetColumnOption, {L"column" _ L"option"}) CLASS_MEMBER_METHOD(SetColumnOption, {L"column" _ L"option"})
CLASS_MEMBER_METHOD(GetCellArea, NO_PARAMETER)
CLASS_MEMBER_METHOD(UpdateCellBounds, NO_PARAMETER)
END_CLASS_MEMBER(GuiTableComposition) END_CLASS_MEMBER(GuiTableComposition)
BEGIN_CLASS_MEMBER(GuiCellComposition) BEGIN_CLASS_MEMBER(GuiCellComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiCellComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiCellComposition*(), NO_PARAMETER)
CLASS_MEMBER_PROPERTY_READONLY_FAST(TableParent) CLASS_MEMBER_PROPERTY_READONLY_FAST(TableParent)
@@ -1418,7 +1407,7 @@ Type Declaration (Class)
END_CLASS_MEMBER(GuiCellComposition) END_CLASS_MEMBER(GuiCellComposition)
BEGIN_CLASS_MEMBER(GuiTableSplitterCompositionBase) BEGIN_CLASS_MEMBER(GuiTableSplitterCompositionBase)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_PROPERTY_READONLY_FAST(TableParent) CLASS_MEMBER_PROPERTY_READONLY_FAST(TableParent)
END_CLASS_MEMBER(GuiRowSplitterComposition) END_CLASS_MEMBER(GuiRowSplitterComposition)
@@ -1452,16 +1441,15 @@ Type Declaration (Class)
END_CLASS_MEMBER(GuiFlowComposition) END_CLASS_MEMBER(GuiFlowComposition)
BEGIN_CLASS_MEMBER(GuiFlowItemComposition) BEGIN_CLASS_MEMBER(GuiFlowItemComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiFlowItemComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiFlowItemComposition*(), NO_PARAMETER)
CLASS_MEMBER_PROPERTY_EVENT_FAST(Bounds, BoundsChanged)
CLASS_MEMBER_PROPERTY_FAST(ExtraMargin) CLASS_MEMBER_PROPERTY_FAST(ExtraMargin)
CLASS_MEMBER_PROPERTY_FAST(FlowOption) CLASS_MEMBER_PROPERTY_FAST(FlowOption)
END_CLASS_MEMBER(GuiFlowItemComposition) END_CLASS_MEMBER(GuiFlowItemComposition)
BEGIN_CLASS_MEMBER(GuiSideAlignedComposition) BEGIN_CLASS_MEMBER(GuiSideAlignedComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiSideAlignedComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiSideAlignedComposition*(), NO_PARAMETER)
CLASS_MEMBER_PROPERTY_FAST(Direction) CLASS_MEMBER_PROPERTY_FAST(Direction)
@@ -1470,7 +1458,7 @@ Type Declaration (Class)
END_CLASS_MEMBER(GuiSideAlignedComposition) END_CLASS_MEMBER(GuiSideAlignedComposition)
BEGIN_CLASS_MEMBER(GuiPartialViewComposition) BEGIN_CLASS_MEMBER(GuiPartialViewComposition)
CLASS_MEMBER_BASE(GuiGraphicsSite) CLASS_MEMBER_BASE(GuiGraphicsComposition)
CLASS_MEMBER_CONSTRUCTOR(GuiPartialViewComposition*(), NO_PARAMETER) CLASS_MEMBER_CONSTRUCTOR(GuiPartialViewComposition*(), NO_PARAMETER)
CLASS_MEMBER_PROPERTY_FAST(WidthRatio) CLASS_MEMBER_PROPERTY_FAST(WidthRatio)
@@ -1498,6 +1486,7 @@ Type Declaration (Class)
CLASS_MEMBER_GUIEVENT(ItemRemoved) CLASS_MEMBER_GUIEVENT(ItemRemoved)
CLASS_MEMBER_PROPERTY_FAST(ItemTemplate) CLASS_MEMBER_PROPERTY_FAST(ItemTemplate)
CLASS_MEMBER_PROPERTY_FAST(ItemSource) CLASS_MEMBER_PROPERTY_FAST(ItemSource)
CLASS_MEMBER_PROPERTY_GUIEVENT_FAST(Context)
END_CLASS_MEMBER(GuiRepeatCompositionBase) END_CLASS_MEMBER(GuiRepeatCompositionBase)
BEGIN_CLASS_MEMBER(GuiRepeatStackComposition) BEGIN_CLASS_MEMBER(GuiRepeatStackComposition)
+2 -3
View File
@@ -260,10 +260,10 @@ Type List (Compositions)
F(presentation::compositions::IGuiAltActionContainer)\ F(presentation::compositions::IGuiAltActionContainer)\
F(presentation::compositions::IGuiAltActionHost)\ F(presentation::compositions::IGuiAltActionHost)\
F(presentation::compositions::IGuiTabAction)\ F(presentation::compositions::IGuiTabAction)\
F(presentation::compositions::GuiRepeatCompositionBase)\
#define GUIREFLECTIONCOMPOSITION_CLASS_TYPELIST(F)\ #define GUIREFLECTIONCOMPOSITION_CLASS_TYPELIST(F)\
F(presentation::compositions::GuiGraphicsComposition)\ F(presentation::compositions::GuiGraphicsComposition)\
F(presentation::compositions::GuiGraphicsSite)\
F(presentation::compositions::GuiWindowComposition)\ F(presentation::compositions::GuiWindowComposition)\
F(presentation::compositions::GuiBoundsComposition)\ F(presentation::compositions::GuiBoundsComposition)\
F(presentation::compositions::GuiStackComposition)\ F(presentation::compositions::GuiStackComposition)\
@@ -279,7 +279,6 @@ Type List (Compositions)
F(presentation::compositions::GuiPartialViewComposition)\ F(presentation::compositions::GuiPartialViewComposition)\
F(presentation::compositions::GuiSharedSizeItemComposition)\ F(presentation::compositions::GuiSharedSizeItemComposition)\
F(presentation::compositions::GuiSharedSizeRootComposition)\ F(presentation::compositions::GuiSharedSizeRootComposition)\
F(presentation::compositions::GuiRepeatCompositionBase)\
F(presentation::compositions::GuiRepeatStackComposition)\ F(presentation::compositions::GuiRepeatStackComposition)\
F(presentation::compositions::GuiRepeatFlowComposition)\ F(presentation::compositions::GuiRepeatFlowComposition)\
F(presentation::compositions::GuiResponsiveCompositionBase)\ F(presentation::compositions::GuiResponsiveCompositionBase)\
@@ -359,6 +358,7 @@ Type List (Controls)
F(presentation::theme::ThemeName)\ F(presentation::theme::ThemeName)\
F(presentation::theme::ITheme)\ F(presentation::theme::ITheme)\
F(presentation::theme::ThemeTemplates)\ F(presentation::theme::ThemeTemplates)\
F(presentation::controls::GuiDisposedFlag)\
F(presentation::controls::GuiDialogBase)\ F(presentation::controls::GuiDialogBase)\
F(presentation::controls::GuiMessageDialog)\ F(presentation::controls::GuiMessageDialog)\
F(presentation::controls::GuiColorDialog)\ F(presentation::controls::GuiColorDialog)\
@@ -439,7 +439,6 @@ Type List (Controls)
F(presentation::controls::list::DataProvider)\ F(presentation::controls::list::DataProvider)\
#define GUIREFLECTIONCONTROLS_CLASS_TYPELIST(F)\ #define GUIREFLECTIONCONTROLS_CLASS_TYPELIST(F)\
F(presentation::controls::GuiDisposedFlag)\
F(presentation::controls::GuiControl)\ F(presentation::controls::GuiControl)\
F(presentation::controls::GuiCustomControl)\ F(presentation::controls::GuiCustomControl)\
F(presentation::controls::GuiLabel)\ F(presentation::controls::GuiLabel)\
File diff suppressed because it is too large Load Diff
+21 -13
View File
@@ -1370,7 +1370,8 @@ namespace darkskin
::vl::presentation::compositions::GuiBoundsComposition* container; ::vl::presentation::compositions::GuiBoundsComposition* container;
::darkskin::DocumentTextBoxTemplate* self; ::darkskin::DocumentTextBoxTemplate* self;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_0; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_0;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_1; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_1;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_2;
void __vwsn_darkskin_DocumentTextBoxTemplate_Initialize(::darkskin::DocumentTextBoxTemplate* __vwsn_this_); void __vwsn_darkskin_DocumentTextBoxTemplate_Initialize(::darkskin::DocumentTextBoxTemplate* __vwsn_this_);
public: public:
DocumentTextBoxTemplateConstructor(); DocumentTextBoxTemplateConstructor();
@@ -2381,7 +2382,8 @@ namespace darkskin
::vl::presentation::compositions::GuiBoundsComposition* container; ::vl::presentation::compositions::GuiBoundsComposition* container;
::darkskin::RibbonGroupMenuTemplate* __vwsn_precompile_0; ::darkskin::RibbonGroupMenuTemplate* __vwsn_precompile_0;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_2; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_3;
void __vwsn_darkskin_RibbonGroupMenuTemplate_Initialize(::darkskin::RibbonGroupMenuTemplate* __vwsn_this_); void __vwsn_darkskin_RibbonGroupMenuTemplate_Initialize(::darkskin::RibbonGroupMenuTemplate* __vwsn_this_);
public: public:
RibbonGroupMenuTemplateConstructor(); RibbonGroupMenuTemplateConstructor();
@@ -2467,7 +2469,8 @@ namespace darkskin
::darkskin::RibbonIconLabelTemplate* self; ::darkskin::RibbonIconLabelTemplate* self;
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0; ::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0;
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1;
::vl::Ptr<::vl::presentation::elements::GuiImageFrameElement> __vwsn_precompile_2; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2;
::vl::Ptr<::vl::presentation::elements::GuiImageFrameElement> __vwsn_precompile_3;
void __vwsn_darkskin_RibbonIconLabelTemplate_Initialize(::darkskin::RibbonIconLabelTemplate* __vwsn_this_); void __vwsn_darkskin_RibbonIconLabelTemplate_Initialize(::darkskin::RibbonIconLabelTemplate* __vwsn_this_);
public: public:
RibbonIconLabelTemplateConstructor(); RibbonIconLabelTemplateConstructor();
@@ -2877,10 +2880,11 @@ namespace darkskin
::darkskin::RibbonSmallIconLabelTemplate* self; ::darkskin::RibbonSmallIconLabelTemplate* self;
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0; ::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_0;
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_1;
::vl::Ptr<::vl::presentation::elements::GuiImageFrameElement> __vwsn_precompile_2; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2;
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_3; ::vl::Ptr<::vl::presentation::elements::GuiImageFrameElement> __vwsn_precompile_3;
::vl::presentation::compositions::GuiSharedSizeItemComposition* __vwsn_precompile_4; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_4;
::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement> __vwsn_precompile_5; ::vl::presentation::compositions::GuiSharedSizeItemComposition* __vwsn_precompile_5;
::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement> __vwsn_precompile_6;
void __vwsn_darkskin_RibbonSmallIconLabelTemplate_Initialize(::darkskin::RibbonSmallIconLabelTemplate* __vwsn_this_); void __vwsn_darkskin_RibbonSmallIconLabelTemplate_Initialize(::darkskin::RibbonSmallIconLabelTemplate* __vwsn_this_);
public: public:
RibbonSmallIconLabelTemplateConstructor(); RibbonSmallIconLabelTemplateConstructor();
@@ -3083,7 +3087,7 @@ namespace darkskin
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<RibbonToolstripMenuTemplateConstructor>; friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<RibbonToolstripMenuTemplateConstructor>;
#endif #endif
protected: protected:
::vl::presentation::compositions::GuiCellComposition* container; ::vl::presentation::compositions::GuiBoundsComposition* container;
::vl::presentation::compositions::GuiCellComposition* content; ::vl::presentation::compositions::GuiCellComposition* content;
::darkskin::RibbonToolstripMenuTemplate* __vwsn_precompile_0; ::darkskin::RibbonToolstripMenuTemplate* __vwsn_precompile_0;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1;
@@ -3094,9 +3098,10 @@ namespace darkskin
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_6; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_6;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_7; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_7;
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_8; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_8;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_9; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_9;
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_10; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_10;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_11; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_11;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_12;
void __vwsn_darkskin_RibbonToolstripMenuTemplate_Initialize(::darkskin::RibbonToolstripMenuTemplate* __vwsn_this_); void __vwsn_darkskin_RibbonToolstripMenuTemplate_Initialize(::darkskin::RibbonToolstripMenuTemplate* __vwsn_this_);
public: public:
RibbonToolstripMenuTemplateConstructor(); RibbonToolstripMenuTemplateConstructor();
@@ -3252,7 +3257,8 @@ namespace darkskin
::vl::presentation::compositions::GuiBoundsComposition* container; ::vl::presentation::compositions::GuiBoundsComposition* container;
::darkskin::SinglelineTextBoxTemplate* self; ::darkskin::SinglelineTextBoxTemplate* self;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_0; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_0;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_1; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_1;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_2;
void __vwsn_darkskin_SinglelineTextBoxTemplate_Initialize(::darkskin::SinglelineTextBoxTemplate* __vwsn_this_); void __vwsn_darkskin_SinglelineTextBoxTemplate_Initialize(::darkskin::SinglelineTextBoxTemplate* __vwsn_this_);
public: public:
SinglelineTextBoxTemplateConstructor(); SinglelineTextBoxTemplateConstructor();
@@ -3770,7 +3776,8 @@ namespace darkskin
::vl::presentation::compositions::GuiBoundsComposition* container; ::vl::presentation::compositions::GuiBoundsComposition* container;
::darkskin::ToolstripMenuTemplate* __vwsn_precompile_0; ::darkskin::ToolstripMenuTemplate* __vwsn_precompile_0;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_2; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_2;
::vl::Ptr<::vl::presentation::elements::GuiSolidBorderElement> __vwsn_precompile_3;
void __vwsn_darkskin_ToolstripMenuTemplate_Initialize(::darkskin::ToolstripMenuTemplate* __vwsn_this_); void __vwsn_darkskin_ToolstripMenuTemplate_Initialize(::darkskin::ToolstripMenuTemplate* __vwsn_this_);
public: public:
ToolstripMenuTemplateConstructor(); ToolstripMenuTemplateConstructor();
@@ -3924,6 +3931,7 @@ namespace darkskin
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<ToolstripTemplateConstructor>; friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<ToolstripTemplateConstructor>;
#endif #endif
protected: protected:
::vl::presentation::compositions::GuiBoundsComposition* container;
::darkskin::ToolstripTemplate* __vwsn_precompile_0; ::darkskin::ToolstripTemplate* __vwsn_precompile_0;
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1; ::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_1;
void __vwsn_darkskin_ToolstripTemplate_Initialize(::darkskin::ToolstripTemplate* __vwsn_this_); void __vwsn_darkskin_ToolstripTemplate_Initialize(::darkskin::ToolstripTemplate* __vwsn_this_);
@@ -391,6 +391,7 @@ namespace vl
CLASS_MEMBER_METHOD(__vwsn_darkskin_DocumentTextBoxTemplate_Initialize, { L"__vwsn_this_" }) CLASS_MEMBER_METHOD(__vwsn_darkskin_DocumentTextBoxTemplate_Initialize, { L"__vwsn_this_" })
CLASS_MEMBER_FIELD(__vwsn_precompile_0) CLASS_MEMBER_FIELD(__vwsn_precompile_0)
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(container) CLASS_MEMBER_FIELD(container)
CLASS_MEMBER_FIELD(self) CLASS_MEMBER_FIELD(self)
END_CLASS_MEMBER(::darkskin::DocumentTextBoxTemplateConstructor) END_CLASS_MEMBER(::darkskin::DocumentTextBoxTemplateConstructor)
@@ -831,6 +832,7 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_0) CLASS_MEMBER_FIELD(__vwsn_precompile_0)
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(__vwsn_precompile_2) CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
CLASS_MEMBER_FIELD(container) CLASS_MEMBER_FIELD(container)
END_CLASS_MEMBER(::darkskin::RibbonGroupMenuTemplateConstructor) END_CLASS_MEMBER(::darkskin::RibbonGroupMenuTemplateConstructor)
@@ -870,6 +872,7 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_0) CLASS_MEMBER_FIELD(__vwsn_precompile_0)
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(__vwsn_precompile_2) CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
CLASS_MEMBER_FIELD(container) CLASS_MEMBER_FIELD(container)
CLASS_MEMBER_FIELD(self) CLASS_MEMBER_FIELD(self)
END_CLASS_MEMBER(::darkskin::RibbonIconLabelTemplateConstructor) END_CLASS_MEMBER(::darkskin::RibbonIconLabelTemplateConstructor)
@@ -1013,6 +1016,7 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_3) CLASS_MEMBER_FIELD(__vwsn_precompile_3)
CLASS_MEMBER_FIELD(__vwsn_precompile_4) CLASS_MEMBER_FIELD(__vwsn_precompile_4)
CLASS_MEMBER_FIELD(__vwsn_precompile_5) CLASS_MEMBER_FIELD(__vwsn_precompile_5)
CLASS_MEMBER_FIELD(__vwsn_precompile_6)
CLASS_MEMBER_FIELD(container) CLASS_MEMBER_FIELD(container)
CLASS_MEMBER_FIELD(self) CLASS_MEMBER_FIELD(self)
END_CLASS_MEMBER(::darkskin::RibbonSmallIconLabelTemplateConstructor) END_CLASS_MEMBER(::darkskin::RibbonSmallIconLabelTemplateConstructor)
@@ -1093,6 +1097,7 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(__vwsn_precompile_10) CLASS_MEMBER_FIELD(__vwsn_precompile_10)
CLASS_MEMBER_FIELD(__vwsn_precompile_11) CLASS_MEMBER_FIELD(__vwsn_precompile_11)
CLASS_MEMBER_FIELD(__vwsn_precompile_12)
CLASS_MEMBER_FIELD(__vwsn_precompile_2) CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(__vwsn_precompile_3) CLASS_MEMBER_FIELD(__vwsn_precompile_3)
CLASS_MEMBER_FIELD(__vwsn_precompile_4) CLASS_MEMBER_FIELD(__vwsn_precompile_4)
@@ -1181,6 +1186,7 @@ namespace vl
CLASS_MEMBER_METHOD(__vwsn_darkskin_SinglelineTextBoxTemplate_Initialize, { L"__vwsn_this_" }) CLASS_MEMBER_METHOD(__vwsn_darkskin_SinglelineTextBoxTemplate_Initialize, { L"__vwsn_this_" })
CLASS_MEMBER_FIELD(__vwsn_precompile_0) CLASS_MEMBER_FIELD(__vwsn_precompile_0)
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(container) CLASS_MEMBER_FIELD(container)
CLASS_MEMBER_FIELD(self) CLASS_MEMBER_FIELD(self)
END_CLASS_MEMBER(::darkskin::SinglelineTextBoxTemplateConstructor) END_CLASS_MEMBER(::darkskin::SinglelineTextBoxTemplateConstructor)
@@ -1367,6 +1373,7 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_0) CLASS_MEMBER_FIELD(__vwsn_precompile_0)
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(__vwsn_precompile_2) CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
CLASS_MEMBER_FIELD(container) CLASS_MEMBER_FIELD(container)
END_CLASS_MEMBER(::darkskin::ToolstripMenuTemplateConstructor) END_CLASS_MEMBER(::darkskin::ToolstripMenuTemplateConstructor)
@@ -1439,6 +1446,7 @@ namespace vl
CLASS_MEMBER_METHOD(__vwsn_darkskin_ToolstripTemplate_Initialize, { L"__vwsn_this_" }) CLASS_MEMBER_METHOD(__vwsn_darkskin_ToolstripTemplate_Initialize, { L"__vwsn_this_" })
CLASS_MEMBER_FIELD(__vwsn_precompile_0) CLASS_MEMBER_FIELD(__vwsn_precompile_0)
CLASS_MEMBER_FIELD(__vwsn_precompile_1) CLASS_MEMBER_FIELD(__vwsn_precompile_1)
CLASS_MEMBER_FIELD(container)
END_CLASS_MEMBER(::darkskin::ToolstripTemplateConstructor) END_CLASS_MEMBER(::darkskin::ToolstripTemplateConstructor)
BEGIN_CLASS_MEMBER(::darkskin::TooltipTemplate) BEGIN_CLASS_MEMBER(::darkskin::TooltipTemplate)
+2
View File
@@ -4363,6 +4363,7 @@ MergeInsExecContext
{ {
// check if all stack objects are the same // check if all stack objects are the same
bool sameStackObject = true; bool sameStackObject = true;
// TODO: (enumerable) Linq:Skip
for (vint index = 1; index < stacks.Count(); index++) for (vint index = 1; index < stacks.Count(); index++)
{ {
if (stacks[0] != stacks[index]) if (stacks[0] != stacks[index])
@@ -4388,6 +4389,7 @@ MergeInsExecContext
// call this macro to create a one-time set for InsExec* // call this macro to create a one-time set for InsExec*
NEW_MERGE_STACK_MAGIC_COUNTER; NEW_MERGE_STACK_MAGIC_COUNTER;
auto magicPush = MergeStack_MagicCounter; auto magicPush = MergeStack_MagicCounter;
// TODO: (enumerable) foreach
for (vint index = 0; index < stacks.Count(); index++) for (vint index = 0; index < stacks.Count(); index++)
{ {
// do not visit the same stack object repeatly // do not visit the same stack object repeatly
+33 -1
View File
@@ -2644,6 +2644,7 @@ AstClassSymbol
List<AstClassSymbol*> visited; List<AstClassSymbol*> visited;
visited.Add(newBaseClass); visited.Add(newBaseClass);
// TODO: (enumerable) foreach:alterable
for (vint i = 0; i < visited.Count(); i++) for (vint i = 0; i < visited.Count(); i++)
{ {
auto currentSymbol = visited[i]; auto currentSymbol = visited[i];
@@ -2828,6 +2829,7 @@ AstDefFile
List<WString> visited; List<WString> visited;
visited.Add(dependency); visited.Add(dependency);
// TODO: (enumerable) foreach
for (vint i = 0; i < visited.Count(); i++) for (vint i = 0; i < visited.Count(); i++)
{ {
auto currentName = visited[i]; auto currentName = visited[i];
@@ -2842,6 +2844,7 @@ AstDefFile
return false; return false;
} }
auto current = ownerManager->Files()[currentName]; auto current = ownerManager->Files()[currentName];
// TODO: (enumerable) foreach
for (vint j = 0; j < current->dependencies.Count(); j++) for (vint j = 0; j < current->dependencies.Count(); j++)
{ {
auto dep = current->dependencies[j]; auto dep = current->dependencies[j];
@@ -4210,6 +4213,7 @@ CalculateFirstSet
while (true) while (true)
{ {
vint offset = 0; vint offset = 0;
// TODO: (enumerable) foreach:alterable
for (auto [rule, index] : indexed(indirect.Keys())) for (auto [rule, index] : indexed(indirect.Keys()))
{ {
auto&& startRules1 = indirect.GetByIndex(index); auto&& startRules1 = indirect.GetByIndex(index);
@@ -5586,6 +5590,7 @@ FillMissingPrefixMergeClauses
if (index != -1) if (index != -1)
{ {
auto&& values = const_cast<List<RuleClausePath>&>(references.GetByIndex(index)); auto&& values = const_cast<List<RuleClausePath>&>(references.GetByIndex(index));
// TODO: (enumerable) foreach:indexed(alterable(reversed))
for (vint i = values.Count() - 1; i >= 0; i--) for (vint i = values.Count() - 1; i >= 0; i--)
{ {
if (values[i].clause == clause) if (values[i].clause == clause)
@@ -5777,6 +5782,7 @@ CreateRewrittenRules
originRule->name.value += L"_LRI_Original"; originRule->name.value += L"_LRI_Original";
} }
// TODO: (enumerable) foreach
for (auto [ruleSymbol, index] : indexed(rContext.extractPrefixClauses.Keys())) for (auto [ruleSymbol, index] : indexed(rContext.extractPrefixClauses.Keys()))
{ {
auto originRule = vContext.astRules[ruleSymbol]; auto originRule = vContext.astRules[ruleSymbol];
@@ -6149,6 +6155,7 @@ RewriteRules (Unaffected)
SortedList<WString>& knownOptionalStartRules SortedList<WString>& knownOptionalStartRules
) )
{ {
// TODO: (enumerable) foreach on group
for (auto [pmName, pmIndex] : indexed(pmClauses.Keys())) for (auto [pmName, pmIndex] : indexed(pmClauses.Keys()))
{ {
// if originRule is not left recursive // if originRule is not left recursive
@@ -6245,6 +6252,7 @@ RewriteRules (Affected)
} }
} }
// TODO: (enumerable) foreach on group
for (auto [pmName, pmIndex] : indexed(pmClauses.Keys())) for (auto [pmName, pmIndex] : indexed(pmClauses.Keys()))
{ {
// if originRule is not left recursive // if originRule is not left recursive
@@ -6359,6 +6367,7 @@ RewriteRules (Affected)
SortedList<WString>& knownOptionalStartRules SortedList<WString>& knownOptionalStartRules
) )
{ {
// TODO: (enumerable) foreach on group
for (auto [conflictedClause, conflictedIndex] : indexed(conflict->conflictedClauses.Keys())) for (auto [conflictedClause, conflictedIndex] : indexed(conflict->conflictedClauses.Keys()))
{ {
auto conflictedRuleSymbol = vContext.simpleUseClauseToReferencedRules[conflictedClause]; auto conflictedRuleSymbol = vContext.simpleUseClauseToReferencedRules[conflictedClause];
@@ -6410,6 +6419,7 @@ RewriteRules
auto cont1 = c1->continuation; auto cont1 = c1->continuation;
auto cont2 = c2->continuation; auto cont2 = c2->continuation;
if (cont1->flags.Count() != cont2->flags.Count()) return false; if (cont1->flags.Count() != cont2->flags.Count()) return false;
// TODO: (enumerable) foreach:indexed, flag not used, considering Linq:Zip, Any
for (auto [flag, i] : indexed(cont1->flags)) for (auto [flag, i] : indexed(cont1->flags))
{ {
if (cont1->flags[i]->flag.value != cont2->flags[i]->flag.value) return false; if (cont1->flags[i]->flag.value != cont2->flags[i]->flag.value) return false;
@@ -6438,6 +6448,7 @@ RewriteRules
{ {
auto candidate = candidates[candidates.Count() - 1]; auto candidate = candidates[candidates.Count() - 1];
candidates.RemoveAt(candidates.Count() - 1); candidates.RemoveAt(candidates.Count() - 1);
// TODO: (enumerable) foreach:indexed(alterable(reversed))
for (vint i = candidates.Count() - 1; i >= 0; i--) for (vint i = candidates.Count() - 1; i >= 0; i--)
{ {
auto compare = candidates[i]; auto compare = candidates[i];
@@ -7175,6 +7186,7 @@ ExpandClauseVisitor
auto alt = Ptr(new GlrAlternativeSyntax); auto alt = Ptr(new GlrAlternativeSyntax);
alt->first = items[0]; alt->first = items[0];
alt->second = items[1]; alt->second = items[1];
// TODO: (enumerable) Linq:Skip
for (vint i = 2; i < items.Count(); i++) for (vint i = 2; i < items.Count(); i++)
{ {
auto newAlt = Ptr(new GlrAlternativeSyntax); auto newAlt = Ptr(new GlrAlternativeSyntax);
@@ -7528,6 +7540,7 @@ RewriteSyntax
void CreateRuleSymbols(SyntaxSymbolManager& syntaxManager, Group<RuleSymbol*, Ptr<GlrRule>>& expandedRules) void CreateRuleSymbols(SyntaxSymbolManager& syntaxManager, Group<RuleSymbol*, Ptr<GlrRule>>& expandedRules)
{ {
// TODO: (enumerable) foreach on group, sort pairs instead of calling Get
for (auto ruleSymbol : From(expandedRules.Keys()) for (auto ruleSymbol : From(expandedRules.Keys())
.OrderByKey([](auto&& a) { return a->Name(); }) .OrderByKey([](auto&& a) { return a->Name(); })
) )
@@ -8265,6 +8278,7 @@ ValidatePrefixMerge
SortedList<RuleSymbol*> visited; SortedList<RuleSymbol*> visited;
CopyFrom(visiting, context.clauseToStartRules.GetByIndex(index)); CopyFrom(visiting, context.clauseToStartRules.GetByIndex(index));
// TODO: (enumerable) visiting/visited
for (vint i = 0; i < visiting.Count(); i++) for (vint i = 0; i < visiting.Count(); i++)
{ {
auto visitingRule = visiting[i]; auto visitingRule = visiting[i];
@@ -9138,6 +9152,7 @@ CollectRuleAffectedSwitchesSecondPassVisitor
vint indexSwitch = sContext.ruleAffectedSwitches.Keys().IndexOf(refRuleSymbol); vint indexSwitch = sContext.ruleAffectedSwitches.Keys().IndexOf(refRuleSymbol);
if (indexSwitch != -1) if (indexSwitch != -1)
{ {
// TODO: (enumerable) operate on GetByIndex returned list object directly
for (auto&& name : sContext.ruleAffectedSwitches.GetByIndex(indexSwitch)) for (auto&& name : sContext.ruleAffectedSwitches.GetByIndex(indexSwitch))
{ {
if (!pushedSwitches.Contains(name)) if (!pushedSwitches.Contains(name))
@@ -15242,6 +15257,7 @@ SyntaxSymbolManager
if (!visited.Contains(startState)) if (!visited.Contains(startState))
{ {
vint startIndex = visited.Add(startState); vint startIndex = visited.Add(startState);
// TODO: (enumerable) Linq:Skip
for (vint i = startIndex; i < visited.Count(); i++) for (vint i = startIndex; i < visited.Count(); i++)
{ {
auto state = visited[i]; auto state = visited[i];
@@ -15503,6 +15519,7 @@ AutomatonBuilder (Syntax)
*/ */
CHECK_ERROR(elements.Count() > 0, L"vl::glr::parsergen::AutomatonBuilder::BuildSequenceSyntax(List<StateBuilder>&)#Elements must not be empty."); CHECK_ERROR(elements.Count() > 0, L"vl::glr::parsergen::AutomatonBuilder::BuildSequenceSyntax(List<StateBuilder>&)#Elements must not be empty.");
auto pair = elements[0](); auto pair = elements[0]();
// TODO: (enumerable) Linq:Skip
for (vint i = 1; i < elements.Count(); i++) for (vint i = 1; i < elements.Count(); i++)
{ {
clauseDisplayText += L" "; clauseDisplayText += L" ";
@@ -15528,6 +15545,7 @@ AutomatonBuilder (Syntax)
startPoses.Add(pair.begin, clauseDisplayText.Length()); startPoses.Add(pair.begin, clauseDisplayText.Length());
clauseDisplayText += L"( "; clauseDisplayText += L"( ";
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < elements.Count(); i++) for (vint i = 0; i < elements.Count(); i++)
{ {
if (i > 0) clauseDisplayText += L" | "; if (i > 0) clauseDisplayText += L" | ";
@@ -15647,6 +15665,7 @@ AutomatonBuilder (Clause)
} }
clauseDisplayText += L"lrp:("; clauseDisplayText += L"lrp:(";
// TODO: (enumerable) Linq:Aggregate
for (vint i = 0; i < flags.Count(); i++) for (vint i = 0; i < flags.Count(); i++)
{ {
if (i > 0) clauseDisplayText += L","; if (i > 0) clauseDisplayText += L",";
@@ -15674,6 +15693,7 @@ AutomatonBuilder (Clause)
} }
clauseDisplayText += L"lri:("; clauseDisplayText += L"lri:(";
// TODO: (enumerable) Linq:Aggregate
for (vint i = 0; i < flags.Count(); i++) for (vint i = 0; i < flags.Count(); i++)
{ {
if (i > 0) clauseDisplayText += L","; if (i > 0) clauseDisplayText += L",";
@@ -16550,6 +16570,7 @@ SyntaxSymbolManager::BuildLeftRecEdge
CopyFrom(newEdge->insBeforeInput, lrecPrefixEdge->insBeforeInput, true); CopyFrom(newEdge->insBeforeInput, lrecPrefixEdge->insBeforeInput, true);
CopyFrom(newEdge->insAfterInput, lrecPrefixEdge->insAfterInput, true); CopyFrom(newEdge->insAfterInput, lrecPrefixEdge->insAfterInput, true);
// TODO: (enumerable) foreach:indexed(alterable(reversed))
for (vint i = newEdge->insBeforeInput.Count() - 1; i >= 0; i--) for (vint i = newEdge->insBeforeInput.Count() - 1; i >= 0; i--)
{ {
if (newEdge->insBeforeInput[i].type == AstInsType::BeginObject) if (newEdge->insBeforeInput[i].type == AstInsType::BeginObject)
@@ -16558,6 +16579,7 @@ SyntaxSymbolManager::BuildLeftRecEdge
newEdge->insBeforeInput.Insert(i + 2, { AstInsType::LriFetch }); newEdge->insBeforeInput.Insert(i + 2, { AstInsType::LriFetch });
} }
} }
// TODO: (enumerable) foreach:indexed(alterable(reversed))
for (vint i = newEdge->insAfterInput.Count() - 1; i >= 0; i--) for (vint i = newEdge->insAfterInput.Count() - 1; i >= 0; i--)
{ {
if (newEdge->insAfterInput[i].type == AstInsType::BeginObject) if (newEdge->insAfterInput[i].type == AstInsType::BeginObject)
@@ -16672,6 +16694,7 @@ SyntaxSymbolManager::EliminateSingleRulePrefix
} }
} }
// TODO: (enumerable) foreach on group
for (auto [ruleSymbol, prefixIndex] : indexed(prefixEdges.Keys())) for (auto [ruleSymbol, prefixIndex] : indexed(prefixEdges.Keys()))
{ {
auto&& prefixEdgesOfRule = prefixEdges.GetByIndex(prefixIndex); auto&& prefixEdgesOfRule = prefixEdges.GetByIndex(prefixIndex);
@@ -16693,6 +16716,7 @@ SyntaxSymbolManager::EliminateSingleRulePrefix
// if their insBeforeInput are different // if their insBeforeInput are different
// move prefixEdge's insBeforeInput to insAfterInput with help from LriStore and LriFetch // move prefixEdge's insBeforeInput to insAfterInput with help from LriStore and LriFetch
SortedList<RuleSymbol*> compatibleInsBeforeInputPrefixRules; SortedList<RuleSymbol*> compatibleInsBeforeInputPrefixRules;
// TODO: (enumerable) foreach on group
for (auto [ruleSymbol, prefixIndex] : indexed(prefixEdges.Keys())) for (auto [ruleSymbol, prefixIndex] : indexed(prefixEdges.Keys()))
{ {
// see if all prefixEdges are compatible // see if all prefixEdges are compatible
@@ -16725,6 +16749,7 @@ SyntaxSymbolManager::EliminateSingleRulePrefix
// for all prefixEdge that fails the above test // for all prefixEdge that fails the above test
// combine insBeforeInput with insAfterInput with the help from LriStore and LriFetch // combine insBeforeInput with insAfterInput with the help from LriStore and LriFetch
// properly move instructions from prefixEdge to endingEdge // properly move instructions from prefixEdge to endingEdge
// TODO: (enumerable) foreach on group
for (auto [ruleSymbol, prefixIndex] : indexed(prefixEdges.Keys())) for (auto [ruleSymbol, prefixIndex] : indexed(prefixEdges.Keys()))
{ {
bool compatible = compatibleInsBeforeInputPrefixRules.Contains(ruleSymbol); bool compatible = compatibleInsBeforeInputPrefixRules.Contains(ruleSymbol);
@@ -16849,6 +16874,7 @@ SyntaxSymbolManager::EliminateEpsilonEdges
// all epsilon-NFAs of its clauses become one connected epsilon-NFA of this rule // all epsilon-NFAs of its clauses become one connected epsilon-NFA of this rule
// we can build the compact-NFA out of this epsilon-NFA starting from the start state // we can build the compact-NFA out of this epsilon-NFA starting from the start state
// TODO: (enumerable) foreach:alterable
for (vint i = 0; i < visited.Count(); i++) for (vint i = 0; i < visited.Count(); i++)
{ {
auto current = visited[i]; auto current = visited[i];
@@ -17080,6 +17106,7 @@ SyntaxSymbolManager::FixLeftRecursionInjectEdge
auto& endingStates = endingStatesArray[index]; auto& endingStates = endingStatesArray[index];
auto& returnEdges = returnEdgesArray[index]; auto& returnEdges = returnEdgesArray[index];
// TODO: (enumerable) foreach:indexed(reversed)
for (vint i = returnEdges.Count() - 1; i >= 0; i--) for (vint i = returnEdges.Count() - 1; i >= 0; i--)
{ {
auto endingState = endingStates[i]; auto endingState = endingStates[i];
@@ -17122,6 +17149,7 @@ SyntaxSymbolManager::FixLeftRecursionInjectEdge
} }
} }
// TODO: (enumerable) foreach on group
for (auto [input, inputIndex] : indexed(acceptableInputs.Keys())) for (auto [input, inputIndex] : indexed(acceptableInputs.Keys()))
{ {
auto [inputToken, returnEdgeCount] = input; auto [inputToken, returnEdgeCount] = input;
@@ -17160,6 +17188,7 @@ SyntaxSymbolManager::FixLeftRecursionInjectEdge
Group<Entry, vint> simpleUseRecords; Group<Entry, vint> simpleUseRecords;
// search for placeholder edges where their excluded return edges are all reuse edges // search for placeholder edges where their excluded return edges are all reuse edges
// TODO: (enumerable) foreach on group
for (vint recordIndex = 0; recordIndex < placeholderRecords.Count(); recordIndex++) for (vint recordIndex = 0; recordIndex < placeholderRecords.Count(); recordIndex++)
{ {
auto [placeholderIndex, lrEdge, tokenEdge] = placeholderRecords[recordIndex]; auto [placeholderIndex, lrEdge, tokenEdge] = placeholderRecords[recordIndex];
@@ -17176,6 +17205,7 @@ SyntaxSymbolManager::FixLeftRecursionInjectEdge
// for each group, if there are more than one placeholder edges // for each group, if there are more than one placeholder edges
// mark them as deleted except the first one // mark them as deleted except the first one
SortedList<vint> recordsToRemove; SortedList<vint> recordsToRemove;
// TODO: (enumerable) foreach on group
for (vint recordGroup = 0; recordGroup < simpleUseRecords.Count(); recordGroup++) for (vint recordGroup = 0; recordGroup < simpleUseRecords.Count(); recordGroup++)
{ {
auto&& records = simpleUseRecords.GetByIndex(recordGroup); auto&& records = simpleUseRecords.GetByIndex(recordGroup);
@@ -17187,6 +17217,7 @@ SyntaxSymbolManager::FixLeftRecursionInjectEdge
// delete them in Group // delete them in Group
// this way is not recommended but the group is going to be discarded very soon // this way is not recommended but the group is going to be discarded very soon
// TODO: (enumerable) foreach:reversed
for (vint i = recordsToRemove.Count() - 1; i >= 0; i--) for (vint i = recordsToRemove.Count() - 1; i >= 0; i--)
{ {
const_cast<List<InputValue>&>(placeholderRecords).RemoveAt(recordsToRemove[i]); const_cast<List<InputValue>&>(placeholderRecords).RemoveAt(recordsToRemove[i]);
@@ -17222,7 +17253,8 @@ SyntaxSymbolManager::FixLeftRecursionInjectEdge
CopyFrom(instructionPrefix, placeholderEdge->insBeforeInput, true); CopyFrom(instructionPrefix, placeholderEdge->insBeforeInput, true);
instructionPrefix.Add({ AstInsType::LriFetch }); instructionPrefix.Add({ AstInsType::LriFetch });
for (vint i = returnEdges.Count() - 1; i >= returnEdgeCount;i --) // TODO: (enumerable) foreach:reversed
for (vint i = returnEdges.Count() - 1; i >= returnEdgeCount; i--)
{ {
auto endingState = endingStates[i]; auto endingState = endingStates[i];
auto returnEdge = returnEdges[i]; auto returnEdge = returnEdges[i];
+1
View File
@@ -1298,6 +1298,7 @@ ThreadPoolLite
} }
threadPoolData->taskFinishEvent.Wait(); threadPoolData->taskFinishEvent.Wait();
// TODO: (enumerable) foreach
for (vint i = 0; i < threadPoolData->taskThreads.Count(); i++) for (vint i = 0; i < threadPoolData->taskThreads.Count(); i++)
{ {
auto thread = threadPoolData->taskThreads[i]; auto thread = threadPoolData->taskThreads[i];
+1
View File
@@ -431,6 +431,7 @@ Utilities
if (!connectedInternet) goto CLEANUP; if (!connectedInternet) goto CLEANUP;
// open request // open request
// TODO: (enumerable) Linq:Select
for (vint i = 0; i < request.acceptTypes.Count(); i++) for (vint i = 0; i < request.acceptTypes.Count(); i++)
{ {
acceptTypes.Add(request.acceptTypes.Get(i).Buffer()); acceptTypes.Add(request.acceptTypes.Get(i).Buffer());
+1
View File
@@ -1082,6 +1082,7 @@ BroadcastStream
vint BroadcastStream::Write(void* _buffer, vint _size) vint BroadcastStream::Write(void* _buffer, vint _size)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<streams.Count();i++) for(vint i=0;i<streams.Count();i++)
{ {
vint written = streams[i]->Write(_buffer, _size); vint written = streams[i]->Write(_buffer, _size);
+17
View File
@@ -137,6 +137,7 @@ description::TypeManager
{ {
loaded = true; loaded = true;
auto oldTypeVersion = typeVersion; auto oldTypeVersion = typeVersion;
// TODO: (enumerable) foreach
for (vint i = 0; i < typeLoaders.Count(); i++) for (vint i = 0; i < typeLoaders.Count(); i++)
{ {
typeLoaders[i]->Load(this); typeLoaders[i]->Load(this);
@@ -157,6 +158,7 @@ description::TypeManager
loaded = false; loaded = false;
rootType = 0; rootType = 0;
auto oldTypeVersion = typeVersion; auto oldTypeVersion = typeVersion;
// TODO: (enumerable) foreach
for (vint i = 0; i < typeLoaders.Count(); i++) for (vint i = 0; i < typeLoaders.Count(); i++)
{ {
typeLoaders[i]->Unload(this); typeLoaders[i]->Unload(this);
@@ -865,6 +867,7 @@ MetaonlyTypeInfo
default:; default:;
} }
WString result = elementType->GetTypeFriendlyName() + L"<"; WString result = elementType->GetTypeFriendlyName() + L"<";
// TODO: (enumerable) Linq:Aggregate
for (auto [type, i] : indexed(genericArguments)) for (auto [type, i] : indexed(genericArguments))
{ {
if (i > 0) result += L", "; if (i > 0) result += L", ";
@@ -1107,6 +1110,7 @@ IMethodInfo
: context(_context) : context(_context)
, metadata(_metadata) , metadata(_metadata)
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < metadata->parameters.Count(); i++) for (vint i = 0; i < metadata->parameters.Count(); i++)
{ {
parameters.Add(Ptr(new MetaonlyParameterInfo(context, metadata->parameters[i], metadata->ownerTypeDescriptor, this))); parameters.Add(Ptr(new MetaonlyParameterInfo(context, metadata->parameters[i], metadata->ownerTypeDescriptor, this)));
@@ -1443,6 +1447,7 @@ ITypeDescriptor
serializableType = context->serializableTypes[metadata->typeName].Obj(); serializableType = context->serializableTypes[metadata->typeName].Obj();
} }
// TODO: (enumerable) foreach
for (vint i = 0; i < metadata->methodGroups.Count(); i++) for (vint i = 0; i < metadata->methodGroups.Count(); i++)
{ {
methodGroups.Add(Ptr(new MetaonlyMethodGroupInfo(context, metadata, metadata->methodGroups[i]))); methodGroups.Add(Ptr(new MetaonlyMethodGroupInfo(context, metadata, metadata->methodGroups[i])));
@@ -1659,6 +1664,7 @@ ITypeDescriptor
IMethodGroupInfo* GetMethodGroupByName(const WString& name, bool inheritable) override IMethodGroupInfo* GetMethodGroupByName(const WString& name, bool inheritable) override
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < methodGroups.Count(); i++) for (vint i = 0; i < methodGroups.Count(); i++)
{ {
auto info = methodGroups[i].Obj(); auto info = methodGroups[i].Obj();
@@ -1932,6 +1938,7 @@ LoadMetaonlyTypes
void Load(ITypeManager* manager) override void Load(ITypeManager* manager) override
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < context->tds.Count(); i++) for (vint i = 0; i < context->tds.Count(); i++)
{ {
auto td = context->tds[i]; auto td = context->tds[i];
@@ -2533,6 +2540,7 @@ description::Value
} }
else else
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<methods.Count();i++) for(vint i=0;i<methods.Count();i++)
{ {
IMethodInfo* method=methods[i]; IMethodInfo* method=methods[i];
@@ -3375,6 +3383,7 @@ MethodInfoImpl
{ {
throw ArgumentCountMismtatchException(ownerMethodGroup); throw ArgumentCountMismtatchException(ownerMethodGroup);
} }
// TODO: (enumerable) foreach
for(vint i=0;i<parameters.Count();i++) for(vint i=0;i<parameters.Count();i++)
{ {
if(!arguments[i].CanConvertTo(parameters[i]->GetType())) if(!arguments[i].CanConvertTo(parameters[i]->GetType()))
@@ -3430,6 +3439,7 @@ MethodInfoImpl
bool MethodInfoImpl::AddParameter(Ptr<IParameterInfo> parameter) bool MethodInfoImpl::AddParameter(Ptr<IParameterInfo> parameter)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<parameters.Count();i++) for(vint i=0;i<parameters.Count();i++)
{ {
if(parameters[i]->GetName()==parameter->GetName()) if(parameters[i]->GetName()==parameter->GetName())
@@ -3969,6 +3979,7 @@ TypeDescriptorImpl
{ {
Load(); Load();
if (this == targetType) return true; if (this == targetType) return true;
// TODO: (enumerable) foreach
for (vint i = 0; i < baseTypeDescriptors.Count(); i++) for (vint i = 0; i < baseTypeDescriptors.Count(); i++)
{ {
if (baseTypeDescriptors[i]->CanConvertTo(targetType)) return true; if (baseTypeDescriptors[i]->CanConvertTo(targetType)) return true;
@@ -4004,6 +4015,7 @@ TypeDescriptorImpl
} }
if(inheritable) if(inheritable)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<baseTypeDescriptors.Count();i++) for(vint i=0;i<baseTypeDescriptors.Count();i++)
{ {
if(baseTypeDescriptors[i]->IsPropertyExists(name, true)) if(baseTypeDescriptors[i]->IsPropertyExists(name, true))
@@ -4025,6 +4037,7 @@ TypeDescriptorImpl
} }
if(inheritable) if(inheritable)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<baseTypeDescriptors.Count();i++) for(vint i=0;i<baseTypeDescriptors.Count();i++)
{ {
IPropertyInfo* result=baseTypeDescriptors[i]->GetPropertyByName(name, true); IPropertyInfo* result=baseTypeDescriptors[i]->GetPropertyByName(name, true);
@@ -4065,6 +4078,7 @@ TypeDescriptorImpl
} }
if(inheritable) if(inheritable)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<baseTypeDescriptors.Count();i++) for(vint i=0;i<baseTypeDescriptors.Count();i++)
{ {
if(baseTypeDescriptors[i]->IsEventExists(name, true)) if(baseTypeDescriptors[i]->IsEventExists(name, true))
@@ -4086,6 +4100,7 @@ TypeDescriptorImpl
} }
if(inheritable) if(inheritable)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<baseTypeDescriptors.Count();i++) for(vint i=0;i<baseTypeDescriptors.Count();i++)
{ {
IEventInfo* result=baseTypeDescriptors[i]->GetEventByName(name, true); IEventInfo* result=baseTypeDescriptors[i]->GetEventByName(name, true);
@@ -4126,6 +4141,7 @@ TypeDescriptorImpl
} }
if(inheritable) if(inheritable)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<baseTypeDescriptors.Count();i++) for(vint i=0;i<baseTypeDescriptors.Count();i++)
{ {
if(baseTypeDescriptors[i]->IsMethodGroupExists(name, true)) if(baseTypeDescriptors[i]->IsMethodGroupExists(name, true))
@@ -4147,6 +4163,7 @@ TypeDescriptorImpl
} }
if(inheritable) if(inheritable)
{ {
// TODO: (enumerable) foreach
for(vint i=0;i<baseTypeDescriptors.Count();i++) for(vint i=0;i<baseTypeDescriptors.Count();i++)
{ {
IMethodGroupInfo* result=baseTypeDescriptors[i]->GetMethodGroupByName(name, true); IMethodGroupInfo* result=baseTypeDescriptors[i]->GetMethodGroupByName(name, true);
+27
View File
@@ -79,6 +79,7 @@ RegexMatch_<T>
: success(true) : success(true)
, result(_string, _result->start, _result->length) , result(_string, _result->start, _result->length)
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < _result->captures.Count(); i++) for (vint i = 0; i < _result->captures.Count(); i++)
{ {
CaptureRecord& capture = _result->captures[i]; CaptureRecord& capture = _result->captures[i];
@@ -994,6 +995,7 @@ RegexLexer_<T>
expression->CollectCharSet(subsets); expression->CollectCharSet(subsets);
expressions.Add(expression); expressions.Add(expression);
} }
// TODO: (enumerable) foreach
for (vint i = 0; i < expressions.Count(); i++) for (vint i = 0; i < expressions.Count(); i++)
{ {
Dictionary<State*, State*> nfaStateMap; Dictionary<State*, State*> nfaStateMap;
@@ -1006,9 +1008,11 @@ RegexLexer_<T>
} }
// Mark all states in DFAs // Mark all states in DFAs
// TODO: (enumerable) foreach
for (vint i = 0; i < dfas.Count(); i++) for (vint i = 0; i < dfas.Count(); i++)
{ {
Ptr<Automaton> dfa = dfas[i]; Ptr<Automaton> dfa = dfas[i];
// TODO: (enumerable) foreach
for (vint j = 0; j < dfa->states.Count(); j++) for (vint j = 0; j < dfa->states.Count(); j++)
{ {
if (dfa->states[j]->finalState) if (dfa->states[j]->finalState)
@@ -1024,12 +1028,14 @@ RegexLexer_<T>
// Connect all DFAs to an e-NFA // Connect all DFAs to an e-NFA
auto bigEnfa = Ptr(new Automaton); auto bigEnfa = Ptr(new Automaton);
// TODO: (enumerable) foreach
for (vint i = 0; i < dfas.Count(); i++) for (vint i = 0; i < dfas.Count(); i++)
{ {
CopyFrom(bigEnfa->states, dfas[i]->states, true); CopyFrom(bigEnfa->states, dfas[i]->states, true);
CopyFrom(bigEnfa->transitions, dfas[i]->transitions, true); CopyFrom(bigEnfa->transitions, dfas[i]->transitions, true);
} }
bigEnfa->startState = bigEnfa->NewState(); bigEnfa->startState = bigEnfa->NewState();
// TODO: (enumerable) foreach
for (vint i = 0; i < dfas.Count(); i++) for (vint i = 0; i < dfas.Count(); i++)
{ {
bigEnfa->NewEpsilon(bigEnfa->startState, dfas[i]->startState); bigEnfa->NewEpsilon(bigEnfa->startState, dfas[i]->startState);
@@ -1039,12 +1045,14 @@ RegexLexer_<T>
Dictionary<State*, State*> nfaStateMap; Dictionary<State*, State*> nfaStateMap;
Group<State*, State*> dfaStateMap; Group<State*, State*> dfaStateMap;
auto bigNfa = EpsilonNfaToNfa(bigEnfa, PureEpsilonChecker, nfaStateMap); auto bigNfa = EpsilonNfaToNfa(bigEnfa, PureEpsilonChecker, nfaStateMap);
// TODO: (enumerable) foreach on dictionary
for (vint i = 0; i < nfaStateMap.Keys().Count(); i++) for (vint i = 0; i < nfaStateMap.Keys().Count(); i++)
{ {
void* userData = nfaStateMap.Values().Get(i)->userData; void* userData = nfaStateMap.Values().Get(i)->userData;
nfaStateMap.Keys()[i]->userData = userData; nfaStateMap.Keys()[i]->userData = userData;
} }
auto bigDfa = NfaToDfa(bigNfa, dfaStateMap); auto bigDfa = NfaToDfa(bigNfa, dfaStateMap);
// TODO: (enumerable) foreach on group
for (vint i = 0; i < dfaStateMap.Keys().Count(); i++) for (vint i = 0; i < dfaStateMap.Keys().Count(); i++)
{ {
void* userData = dfaStateMap.GetByIndex(i).Get(0)->userData; void* userData = dfaStateMap.GetByIndex(i).Get(0)->userData;
@@ -1346,6 +1354,7 @@ PureInterpretor
{ {
charMap[i] = charSetCount - 1; charMap[i] = charSetCount - 1;
} }
// TODO: (enumerable) foreach
for (vint i = 0; i < charRanges.Count(); i++) for (vint i = 0; i < charRanges.Count(); i++)
{ {
CharRange range = charRanges[i]; CharRange range = charRanges[i];
@@ -1377,6 +1386,7 @@ PureInterpretor
} }
State* state = dfa->states[i].Obj(); State* state = dfa->states[i].Obj();
// TODO: (enumerable) foreach
for (vint j = 0; j < state->transitions.Count(); j++) for (vint j = 0; j < state->transitions.Count(); j++)
{ {
Transition* dfaTransition = state->transitions[j]; Transition* dfaTransition = state->transitions[j];
@@ -1717,12 +1727,14 @@ RichInterpretor
{ {
datas = new UserData[dfa->states.Count()]; datas = new UserData[dfa->states.Count()];
// TODO: (enumerable) foreach
for (vint i = 0; i < dfa->states.Count(); i++) for (vint i = 0; i < dfa->states.Count(); i++)
{ {
State* state = dfa->states[i].Obj(); State* state = dfa->states[i].Obj();
vint charEdges = 0; vint charEdges = 0;
vint nonCharEdges = 0; vint nonCharEdges = 0;
bool mustSave = false; bool mustSave = false;
// TODO: (enumerable) foreach
for (vint j = 0; j < state->transitions.Count(); j++) for (vint j = 0; j < state->transitions.Count(); j++)
{ {
if (state->transitions[j]->type == Transition::Chars) if (state->transitions[j]->type == Transition::Chars)
@@ -1762,6 +1774,7 @@ RichInterpretor
bool found = false; // true means at least one transition matches the input bool found = false; // true means at least one transition matches the input
StateSaver<TChar> oldState = currentState; StateSaver<TChar> oldState = currentState;
// Iterate through all transitions from the current state // Iterate through all transitions from the current state
// TODO: (enumerable) foreach:reversed
for (vint i = currentState.minTransition; i < currentState.currentState->transitions.Count(); i++) for (vint i = currentState.minTransition; i < currentState.currentState->transitions.Count(); i++)
{ {
Transition* transition = currentState.currentState->transitions[i]; Transition* transition = currentState.currentState->transitions[i];
@@ -1972,6 +1985,7 @@ RichInterpretor
// Find the next NegativeFail transition // Find the next NegativeFail transition
// Because when a negative lookahead regex failed to match, it is actually succeeded // Because when a negative lookahead regex failed to match, it is actually succeeded
// Since a negative lookahead means we don't want to match this regex // Since a negative lookahead means we don't want to match this regex
// TODO: (enumerable) foreach:reversed
for (vint i = 0; i < currentState.currentState->transitions.Count(); i++) for (vint i = 0; i < currentState.currentState->transitions.Count(); i++)
{ {
Transition* transition = currentState.currentState->transitions[i]; Transition* transition = currentState.currentState->transitions[i];
@@ -2185,6 +2199,7 @@ CharSetExpression
range.begin = range.end; range.begin = range.end;
range.end = t; range.end = t;
} }
// TODO: (enumerable) foreach
for (vint i = 0; i < ranges.Count(); i++) for (vint i = 0; i < ranges.Count(); i++)
{ {
if (!(range<ranges[i] || range>ranges[i])) if (!(range<ranges[i] || range>ranges[i]))
@@ -2389,6 +2404,7 @@ CharSetAlgorithm
if (expression->reverse) if (expression->reverse)
{ {
char32_t begin = 1; char32_t begin = 1;
// TODO: (enumerable) foreach
for (vint i = 0; i < ranges.Count(); i++) for (vint i = 0; i < ranges.Count(); i++)
{ {
CharRange range = ranges[i]; CharRange range = ranges[i];
@@ -2405,6 +2421,7 @@ CharSetAlgorithm
} }
else else
{ {
// TODO: (enumerable) foreach
for (vint i = 0; i < ranges.Count(); i++) for (vint i = 0; i < ranges.Count(); i++)
{ {
Process(expression, target, ranges[i]); Process(expression, target, ranges[i]);
@@ -2535,6 +2552,7 @@ SetNormalizedCharSetAlgorithm
public: public:
void Process(CharSetExpression* expression, NormalizedCharSet* target, CharRange range) void Process(CharSetExpression* expression, NormalizedCharSet* target, CharRange range)
{ {
// TODO: (enumerable) foreach
for (vint j = 0; j < target->ranges.Count(); j++) for (vint j = 0; j < target->ranges.Count(); j++)
{ {
CharRange targetRange = target->ranges[j]; CharRange targetRange = target->ranges[j];
@@ -2643,6 +2661,7 @@ EpsilonNfaAlgorithm
EpsilonNfa nfa; EpsilonNfa nfa;
nfa.start = target->NewState(); nfa.start = target->NewState();
nfa.end = target->NewState(); nfa.end = target->NewState();
// TODO: (enumerable) foreach
for (vint i = 0; i < expression->ranges.Count(); i++) for (vint i = 0; i < expression->ranges.Count(); i++)
{ {
target->NewChars(nfa.start, nfa.end, expression->ranges[i]); target->NewChars(nfa.start, nfa.end, expression->ranges[i]);
@@ -2949,6 +2968,7 @@ IsEqualAlgorithm
{ {
if (expression->reverse != expected->reverse)return false; if (expression->reverse != expected->reverse)return false;
if (expression->ranges.Count() != expected->ranges.Count())return false; if (expression->ranges.Count() != expected->ranges.Count())return false;
// TODO: (enumerable) foreach:indexed
for (vint i = 0; i < expression->ranges.Count(); i++) for (vint i = 0; i < expression->ranges.Count(); i++)
{ {
if (expression->ranges[i] != expected->ranges[i])return false; if (expression->ranges[i] != expected->ranges[i])return false;
@@ -3881,6 +3901,7 @@ RegexNode
auto target = Ptr(new CharSetExpression); auto target = Ptr(new CharSetExpression);
target->reverse = false; target->reverse = false;
CopyFrom(target->ranges, left->ranges); CopyFrom(target->ranges, left->ranges);
// TODO: (enumerable) foreach
for (vint i = 0; i < right->ranges.Count(); i++) for (vint i = 0; i < right->ranges.Count(); i++)
{ {
if (!target->AddRangeWithConflict(right->ranges[i])) if (!target->AddRangeWithConflict(right->ranges[i]))
@@ -4142,6 +4163,7 @@ Helpers
if (!epsilonStates.Contains(sourceState)) if (!epsilonStates.Contains(sourceState))
{ {
epsilonStates.Add(sourceState); epsilonStates.Add(sourceState);
// TODO: (enumerable) foreach:alterable
for (vint i = 0; i < sourceState->transitions.Count(); i++) for (vint i = 0; i < sourceState->transitions.Count(); i++)
{ {
Transition* transition = sourceState->transitions[i]; Transition* transition = sourceState->transitions[i];
@@ -4176,6 +4198,7 @@ Helpers
target->startState = target->states[0].Obj(); target->startState = target->states[0].Obj();
CopyFrom(target->captureNames, source->captureNames); CopyFrom(target->captureNames, source->captureNames);
// TODO: (enumerable) foreach
for (vint i = 0; i < target->states.Count(); i++) for (vint i = 0; i < target->states.Count(); i++)
{ {
// Clear cache // Clear cache
@@ -4192,6 +4215,7 @@ Helpers
CollectEpsilon(targetState, sourceState, epsilonChecker, epsilonStates, transitions); CollectEpsilon(targetState, sourceState, epsilonChecker, epsilonStates, transitions);
// Iterate through all non-epsilon transitions // Iterate through all non-epsilon transitions
// TODO: (enumerable) foreach
for (vint j = 0; j < transitions.Count(); j++) for (vint j = 0; j < transitions.Count(); j++)
{ {
Transition* transition = transitions[j]; Transition* transition = transitions[j];
@@ -4244,6 +4268,7 @@ Helpers
if (transitionClass == nullptr) if (transitionClass == nullptr)
{ {
// TODO: (enumerable) foreach
for (vint l = 0; l < orderedTransitionClasses.Count(); l++) for (vint l = 0; l < orderedTransitionClasses.Count(); l++)
{ {
Transition* key = orderedTransitionClasses[l]; Transition* key = orderedTransitionClasses[l];
@@ -4283,6 +4308,7 @@ Helpers
// Check if these NFA states represent a created DFA state // Check if these NFA states represent a created DFA state
State* dfaState = 0; State* dfaState = 0;
// TODO: (enumerable) foreach on dictionary
for (vint k = 0; k < dfaStateMap.Count(); k++) for (vint k = 0; k < dfaStateMap.Count(); k++)
{ {
// Compare two NFA states set // Compare two NFA states set
@@ -4295,6 +4321,7 @@ Helpers
if (!dfaState) if (!dfaState)
{ {
dfaState = target->NewState(); dfaState = target->NewState();
// TODO: (enumerable) foreach
for (vint k = 0; k < transitionTargets.Count(); k++) for (vint k = 0; k < transitionTargets.Count(); k++)
{ {
dfaStateMap.Add(dfaState, transitionTargets[k]); dfaStateMap.Add(dfaState, transitionTargets[k]);
Binary file not shown.
Binary file not shown.
@@ -101,9 +101,9 @@
var sin = Math::Sin(angle); var sin = Math::Sin(angle);
var cos = Math::Cos(angle); var cos = Math::Cos(angle);
var cx = (container.Bounds.x2 - container.Bounds.x1) / 2; var cx = (container.CachedBounds.x2 - container.CachedBounds.x1) / 2;
var cy = (container.Bounds.y2 - container.Bounds.y1) / 2; var cy = (container.CachedBounds.y2 - container.CachedBounds.y1) / 2;
var radiusBall = (ball.Bounds.x2 - ball.Bounds.x1) / 2; var radiusBall = (ball.CachedBounds.x2 - ball.CachedBounds.x1) / 2;
var radiusOrbit = Math::Min(cx, cy) - radiusBall; var radiusOrbit = Math::Min(cx, cy) - radiusBall;
var x = cast int Math::Round(cos * radiusOrbit + cx); var x = cast int Math::Round(cos * radiusOrbit + cx);
@@ -199,7 +199,7 @@
<att.Pages> <att.Pages>
<TabPage Text="Gradient Animation"> <TabPage Text="Gradient Animation">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -27,7 +27,7 @@
]]> ]]>
</ref.Ctor> </ref.Ctor>
<TabPage ref.Name="self" Text="BindableDataGrid"> <TabPage ref.Name="self" Text="BindableDataGrid">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -2,7 +2,7 @@
<Instance name="DatePickerTabPageResource"> <Instance name="DatePickerTabPageResource">
<Instance ref.CodeBehind="false" ref.Class="demo::DatePickerTabPage"> <Instance ref.CodeBehind="false" ref.Class="demo::DatePickerTabPage">
<TabPage ref.Name="self" Text="DatePicker"> <TabPage ref.Name="self" Text="DatePicker">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -8,7 +8,7 @@
</ref.Members> </ref.Members>
<Window ref.Name="self" Text="Hyperlink" ClientSize="x:320 y:80" SizeBox="false" MinimizedBox="false" MaximizedBox="false" ShowInTaskBar="false"> <Window ref.Name="self" Text="Hyperlink" ClientSize="x:320 y:80" SizeBox="false" MinimizedBox="false" MaximizedBox="false" ShowInTaskBar="false">
<att.BoundsComposition-set PreferredMinSize="x:320 y:80"/> <att.BoundsComposition-set PreferredMinSize="x:320 y:80"/>
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:Percentage percentage:1.0</_> <_>composeType:Percentage percentage:1.0</_>
@@ -168,7 +168,7 @@
Text="The document has been changed since the last time it was saved as a Private Format file. Do you want to save this file?" Text="The document has been changed since the last time it was saved as a Private Format file. Do you want to save this file?"
/> />
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -237,8 +237,8 @@
<att.AfterHeaders-set> <att.AfterHeaders-set>
<Stack Direction="Horizontal" AlignmentToParent="left:0 top:-1 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren"> <Stack Direction="Horizontal" AlignmentToParent="left:0 top:-1 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<StackItem InternalMargin="left:0 top:0 right:10 bottom:0"> <StackItem>
<SolidLabel Font-bind="self.DisplayFont" Color="#FFFFFF" Text="Search:" HorizontalAlignment="Center" VerticalAlignment="Center"/> <SolidLabel Font-bind="self.DisplayFont" Color="#FFFFFF" Text="Search: " HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackItem> </StackItem>
<StackItem> <StackItem>
<SinglelineTextBox Alt="S"> <SinglelineTextBox Alt="S">
@@ -1,6 +1,6 @@
<Instance ref.CodeBehind="false" ref.Class="demo::ElementTabPage"> <Instance ref.CodeBehind="false" ref.Class="demo::ElementTabPage">
<TabPage ref.Name="self" Text="Elements"> <TabPage ref.Name="self" Text="Elements">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="10"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="10" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:Absolute absolute:45</_> <_>composeType:Absolute absolute:45</_>
<_>composeType:Absolute absolute:45</_> <_>composeType:Absolute absolute:45</_>
@@ -21,7 +21,7 @@
]]> ]]>
</ref.Ctor> </ref.Ctor>
<TabPage ref.Name="self" Text="ListView"> <TabPage ref.Name="self" Text="ListView">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -52,7 +52,7 @@
<Instance name="LocalizedDialogsTabPageResource"> <Instance name="LocalizedDialogsTabPageResource">
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedDialogsTabPage" xmlns:demo="demo::*"> <Instance ref.CodeBehind="false" ref.Class="demo::LocalizedDialogsTabPage" xmlns:demo="demo::*">
<TabPage ref.Name="self" Text="Dialogs"> <TabPage ref.Name="self" Text="Dialogs">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:Percentage percentage:1.0</_> <_>composeType:Percentage percentage:1.0</_>
@@ -169,7 +169,7 @@
]]></ref.Ctor> ]]></ref.Ctor>
<TabPage ref.Name="self" Text="MessageDialog"> <TabPage ref.Name="self" Text="MessageDialog">
<MessageDialog ref.Name="dialog"/> <MessageDialog ref.Name="dialog"/>
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -259,7 +259,7 @@
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedColorDialogTabPage"> <Instance ref.CodeBehind="false" ref.Class="demo::LocalizedColorDialogTabPage">
<TabPage ref.Name="self" Text="ColorDialog"> <TabPage ref.Name="self" Text="ColorDialog">
<ColorDialog ref.Name="dialog" EnabledCustomColor="true"/> <ColorDialog ref.Name="dialog" EnabledCustomColor="true"/>
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:Absolute absolute:30</_> <_>composeType:Absolute absolute:30</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -295,7 +295,7 @@
<Instance ref.CodeBehind="false" ref.Class="demo::LocalizedFontDialogTabPage"> <Instance ref.CodeBehind="false" ref.Class="demo::LocalizedFontDialogTabPage">
<TabPage ref.Name="self" Text="FontDialog"> <TabPage ref.Name="self" Text="FontDialog">
<FontDialog ref.Name="dialog" ForceFontExist="true"/> <FontDialog ref.Name="dialog" ForceFontExist="true"/>
<Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" BorderVisible="true" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -365,7 +365,7 @@
<SaveFileDialog ref.Name="dialogSave"/> <SaveFileDialog ref.Name="dialogSave"/>
<Stack Direction="Vertical" Padding="5" AlignmentToParent="left:5 top:5 right:5 bottom:5" MinSizeLimitation="LimitToElementAndChildren"> <Stack Direction="Vertical" Padding="5" AlignmentToParent="left:5 top:5 right:5 bottom:5" MinSizeLimitation="LimitToElementAndChildren">
<StackItem> <StackItem>
<Table CellPadding="5" BorderVisible="false" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" BorderVisible="false" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
@@ -44,7 +44,7 @@
</ref.Members> </ref.Members>
<ref.LocalizedStrings Name="Strings" Class="demo::StringResource" Default="true"/> <ref.LocalizedStrings Name="Strings" Class="demo::StringResource" Default="true"/>
<TabPage ref.Name="self" Text-str="Title()"> <TabPage ref.Name="self" Text-str="Title()">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:Percentage percentage:1.0</_> <_>composeType:Percentage percentage:1.0</_>
@@ -117,8 +117,7 @@
<CustomControl ref.Name="self"> <CustomControl ref.Name="self">
<GroupBox Text-bind="self.Text"> <GroupBox Text-bind="self.Text">
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:-1"/> <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:-1"/>
<att.ContainerComposition-set InternalMargin="left:5 top:0 right:5 bottom:5"/> <Stack Direction="Vertical" Padding="5" AlignmentToParent="left:5 top:0 right:5 bottom:5" MinSizeLimitation="LimitToElementAndChildren">
<Stack Direction="Vertical" Padding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<StackItem> <StackItem>
<Button Alt="A" Text="Add 10 items"> <Button Alt="A" Text="Add 10 items">
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/> <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
@@ -1,6 +1,6 @@
<Instance ref.CodeBehind="false" ref.Class="demo::RepeatTabPage" xmlns:demo="demo::*"> <Instance ref.CodeBehind="false" ref.Class="demo::RepeatTabPage" xmlns:demo="demo::*">
<TabPage ref.Name="self" Text="Repeat"> <TabPage ref.Name="self" Text="Repeat">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:Percentage percentage:1.0</_> <_>composeType:Percentage percentage:1.0</_>
<_>composeType:Absolute absolute:20</_> <_>composeType:Absolute absolute:20</_>
@@ -17,9 +17,9 @@
</att.Columns> </att.Columns>
<Cell Site="row:0 column:0 rowSpan:5"> <Cell Site="row:0 column:0 rowSpan:5">
<Bounds MinSizeLimitation="LimitToElementAndChildren" InternalMargin="left:1 top:1 right:1 bottom:1"> <Bounds MinSizeLimitation="LimitToElementAndChildren">
<SolidBorder Color="#00FF00"/> <SolidBorder Color="#00FF00"/>
<ResponsiveView ref.Name="responsive"> <ResponsiveView ref.Name="responsive" AlignmentToParent="left:1 top:1 right:1 bottom:1">
<att.SharedControls> <att.SharedControls>
<DocumentTextBox ref.Name="documentBox" EditMode="Editable" Text="Edit me!"/> <DocumentTextBox ref.Name="documentBox" EditMode="Editable" Text="Edit me!"/>
</att.SharedControls> </att.SharedControls>
@@ -106,9 +106,9 @@
</att.Columns> </att.Columns>
<Cell Site="row:0 column:0 rowSpan:5"> <Cell Site="row:0 column:0 rowSpan:5">
<Bounds MinSizeLimitation="LimitToElementAndChildren" InternalMargin="left:1 top:1 right:1 bottom:1"> <Bounds MinSizeLimitation="LimitToElementAndChildren">
<SolidBorder Color="#00FF00"/> <SolidBorder Color="#00FF00"/>
<ResponsiveStack ref.Name="responsive"> <ResponsiveStack ref.Name="responsive" AlignmentToParent="left:1 top:1 right:1 bottom:1">
<Stack AlignmentToParent="left:0 top:0 right:0 bottom:0" Padding="10" MinSizeLimitation="LimitToElementAndChildren" Direction="Vertical"> <Stack AlignmentToParent="left:0 top:0 right:0 bottom:0" Padding="10" MinSizeLimitation="LimitToElementAndChildren" Direction="Vertical">
<StackItem> <StackItem>
<ResponsiveView> <ResponsiveView>
@@ -186,9 +186,9 @@
</att.Columns> </att.Columns>
<Cell Site="row:0 column:0 rowSpan:5"> <Cell Site="row:0 column:0 rowSpan:5">
<Bounds MinSizeLimitation="LimitToElementAndChildren" InternalMargin="left:1 top:1 right:1 bottom:1"> <Bounds MinSizeLimitation="LimitToElementAndChildren">
<SolidBorder Color="#00FF00"/> <SolidBorder Color="#00FF00"/>
<ResponsiveGroup ref.Name="responsive"> <ResponsiveGroup ref.Name="responsive" AlignmentToParent="left:1 top:1 right:1 bottom:1">
<Stack AlignmentToParent="left:0 top:0 right:0 bottom:0" Padding="10" MinSizeLimitation="LimitToElementAndChildren" Direction="Vertical"> <Stack AlignmentToParent="left:0 top:0 right:0 bottom:0" Padding="10" MinSizeLimitation="LimitToElementAndChildren" Direction="Vertical">
<StackItem> <StackItem>
<ResponsiveView> <ResponsiveView>
@@ -487,9 +487,9 @@ Closures
auto angle = (((circleRatio * ::vl::reflection::description::Math::Pi()) * static_cast<double>(static_cast<::vl::vint>(2))) + (::vl::reflection::description::Math::Pi() * static_cast<double>(1.5))); auto angle = (((circleRatio * ::vl::reflection::description::Math::Pi()) * static_cast<double>(static_cast<::vl::vint>(2))) + (::vl::reflection::description::Math::Pi() * static_cast<double>(1.5)));
auto sin = ::vl::reflection::description::Math::Sin(angle); auto sin = ::vl::reflection::description::Math::Sin(angle);
auto cos = ::vl::reflection::description::Math::Cos(angle); auto cos = ::vl::reflection::description::Math::Cos(angle);
auto cx = ((::vl::__vwsn::This(container)->GetBounds().x2 - ::vl::__vwsn::This(container)->GetBounds().x1) / static_cast<::vl::vint>(2)); auto cx = ((::vl::__vwsn::This(container)->GetCachedBounds().x2 - ::vl::__vwsn::This(container)->GetCachedBounds().x1) / static_cast<::vl::vint>(2));
auto cy = ((::vl::__vwsn::This(container)->GetBounds().y2 - ::vl::__vwsn::This(container)->GetBounds().y1) / static_cast<::vl::vint>(2)); auto cy = ((::vl::__vwsn::This(container)->GetCachedBounds().y2 - ::vl::__vwsn::This(container)->GetCachedBounds().y1) / static_cast<::vl::vint>(2));
auto radiusBall = ((::vl::__vwsn::This(ball)->GetBounds().x2 - ::vl::__vwsn::This(ball)->GetBounds().x1) / static_cast<::vl::vint>(2)); auto radiusBall = ((::vl::__vwsn::This(ball)->GetCachedBounds().x2 - ::vl::__vwsn::This(ball)->GetCachedBounds().x1) / static_cast<::vl::vint>(2));
auto radiusOrbit = (::vl::reflection::description::Math::Min(cx, cy) - radiusBall); auto radiusOrbit = (::vl::reflection::description::Math::Min(cx, cy) - radiusBall);
auto x = static_cast<::vl::vint>(::vl::reflection::description::Math::Round(((cos * static_cast<double>(radiusOrbit)) + static_cast<double>(cx)))); auto x = static_cast<::vl::vint>(::vl::reflection::description::Math::Round(((cos * static_cast<double>(radiusOrbit)) + static_cast<double>(cx))));
auto y = static_cast<::vl::vint>(::vl::reflection::description::Math::Round(((sin * static_cast<double>(radiusOrbit)) + static_cast<double>(cx)))); auto y = static_cast<::vl::vint>(::vl::reflection::description::Math::Round(((sin * static_cast<double>(radiusOrbit)) + static_cast<double>(cx))));
@@ -14891,6 +14891,9 @@ namespace demo
{ {
::vl::__vwsn::This(this->__vwsn_precompile_3)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_3)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_3)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_3)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_3)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -15754,6 +15757,9 @@ Class (::demo::DataGridTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -16389,6 +16395,9 @@ Class (::demo::DatePickerTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -16664,6 +16673,9 @@ Class (::demo::DocumentBoxSubTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -16909,6 +16921,9 @@ Class (::demo::DocumentEditorBaseConstructor)
::vl::__vwsn::This(this->self)->AddComponent(static_cast<::vl::presentation::controls::GuiComponent*>(this->dialogQueryClose)); ::vl::__vwsn::This(this->self)->AddComponent(static_cast<::vl::presentation::controls::GuiComponent*>(this->dialogQueryClose));
} }
(this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition()); (this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -17677,9 +17692,6 @@ Class (::demo::DocumentEditorRibbonConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_90)->SetDirection(::vl::presentation::compositions::GuiStackComposition::Direction::Horizontal); ::vl::__vwsn::This(this->__vwsn_precompile_90)->SetDirection(::vl::presentation::compositions::GuiStackComposition::Direction::Horizontal);
} }
(this->__vwsn_precompile_91 = new ::vl::presentation::compositions::GuiStackItemComposition()); (this->__vwsn_precompile_91 = new ::vl::presentation::compositions::GuiStackItemComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_91)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(10); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
}
(this->__vwsn_precompile_92 = ::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement>(::vl::reflection::description::Element_Constructor<::vl::presentation::elements::GuiSolidLabelElement>())); (this->__vwsn_precompile_92 = ::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement>(::vl::reflection::description::Element_Constructor<::vl::presentation::elements::GuiSolidLabelElement>()));
{ {
::vl::__vwsn::This(this->__vwsn_precompile_92.Obj())->SetColor(::vl::__vwsn::Parse<::vl::presentation::Color>(::vl::WString::Unmanaged(L"#FFFFFF"))); ::vl::__vwsn::This(this->__vwsn_precompile_92.Obj())->SetColor(::vl::__vwsn::Parse<::vl::presentation::Color>(::vl::WString::Unmanaged(L"#FFFFFF")));
@@ -17691,7 +17703,7 @@ Class (::demo::DocumentEditorRibbonConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_92.Obj())->SetHorizontalAlignment(::vl::presentation::Alignment::Center); ::vl::__vwsn::This(this->__vwsn_precompile_92.Obj())->SetHorizontalAlignment(::vl::presentation::Alignment::Center);
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_92.Obj())->SetText(::vl::WString::Unmanaged(L"Search:")); ::vl::__vwsn::This(this->__vwsn_precompile_92.Obj())->SetText(::vl::WString::Unmanaged(L"Search: "));
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_91)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_92)); ::vl::__vwsn::This(this->__vwsn_precompile_91)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_92));
@@ -19812,6 +19824,9 @@ Class (::demo::ElementTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(10)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(10));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -20411,10 +20426,6 @@ Class (::demo::EnglishNumbersControllerConstructor)
{ {
(this->__vwsn_precompile_0 = new ::vl::presentation::controls::GuiControl(::vl::presentation::theme::ThemeName::GroupBox)); (this->__vwsn_precompile_0 = new ::vl::presentation::controls::GuiControl(::vl::presentation::theme::ThemeName::GroupBox));
} }
(this->__vwsn_precompile_18 = ::vl::__vwsn::This(this->__vwsn_precompile_0)->GetContainerComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_18)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(5); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(5); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
}
(this->__vwsn_precompile_17 = ::vl::__vwsn::This(this->__vwsn_precompile_0)->GetBoundsComposition()); (this->__vwsn_precompile_17 = ::vl::__vwsn::This(this->__vwsn_precompile_0)->GetBoundsComposition());
{ {
::vl::__vwsn::This(this->__vwsn_precompile_17)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = (- static_cast<::vl::vint>(1)); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_17)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = (- static_cast<::vl::vint>(1)); return __vwsn_temp__; }());
@@ -20427,7 +20438,7 @@ Class (::demo::EnglishNumbersControllerConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_1)->SetPadding(static_cast<::vl::vint>(5));
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_1)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(5); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(5); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetDirection(::vl::presentation::compositions::GuiStackComposition::Direction::Vertical); ::vl::__vwsn::This(this->__vwsn_precompile_1)->SetDirection(::vl::presentation::compositions::GuiStackComposition::Direction::Vertical);
@@ -20585,7 +20596,6 @@ Class (::demo::EnglishNumbersControllerConstructor)
, __vwsn_precompile_15(static_cast<::vl::presentation::controls::GuiButton*>(nullptr)) , __vwsn_precompile_15(static_cast<::vl::presentation::controls::GuiButton*>(nullptr))
, __vwsn_precompile_16(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr)) , __vwsn_precompile_16(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr))
, __vwsn_precompile_17(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr)) , __vwsn_precompile_17(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr))
, __vwsn_precompile_18(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(nullptr))
{ {
} }
@@ -21168,6 +21178,9 @@ Class (::demo::HyperlinkWindowConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -21361,6 +21374,9 @@ Class (::demo::ListViewTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -21831,6 +21847,9 @@ Class (::demo::LocalizedColorDialogTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -21923,6 +21942,9 @@ Class (::demo::LocalizedDialogsTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -22103,6 +22125,9 @@ Class (::demo::LocalizedFileDialogTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -22738,6 +22763,9 @@ Class (::demo::LocalizedFontDialogTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -22865,6 +22893,9 @@ Class (::demo::LocalizedMessageDialogTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -23237,6 +23268,9 @@ Class (::demo::LocalizedStringsTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -24263,6 +24297,9 @@ Class (::demo::RepeatTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -24738,9 +24775,6 @@ Class (::demo::ResponsiveGroupControlConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(5), static_cast<::vl::vint>(1)); ::vl::__vwsn::This(this->__vwsn_precompile_1)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(5), static_cast<::vl::vint>(1));
} }
(this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiBoundsComposition()); (this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiBoundsComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(1); __vwsn_temp__.top = static_cast<::vl::vint>(1); __vwsn_temp__.right = static_cast<::vl::vint>(1); __vwsn_temp__.bottom = static_cast<::vl::vint>(1); return __vwsn_temp__; }());
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
} }
@@ -24752,6 +24786,9 @@ Class (::demo::ResponsiveGroupControlConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_3)); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_3));
} }
(this->responsive = new ::vl::presentation::compositions::GuiResponsiveGroupComposition()); (this->responsive = new ::vl::presentation::compositions::GuiResponsiveGroupComposition());
{
::vl::__vwsn::This(this->responsive)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(1); __vwsn_temp__.top = static_cast<::vl::vint>(1); __vwsn_temp__.right = static_cast<::vl::vint>(1); __vwsn_temp__.bottom = static_cast<::vl::vint>(1); return __vwsn_temp__; }());
}
(this->__vwsn_precompile_4 = new ::vl::presentation::compositions::GuiStackComposition()); (this->__vwsn_precompile_4 = new ::vl::presentation::compositions::GuiStackComposition());
{ {
::vl::__vwsn::This(this->__vwsn_precompile_4)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren); ::vl::__vwsn::This(this->__vwsn_precompile_4)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
@@ -25130,9 +25167,6 @@ Class (::demo::ResponsiveStackControlConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(5), static_cast<::vl::vint>(1)); ::vl::__vwsn::This(this->__vwsn_precompile_1)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(5), static_cast<::vl::vint>(1));
} }
(this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiBoundsComposition()); (this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiBoundsComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(1); __vwsn_temp__.top = static_cast<::vl::vint>(1); __vwsn_temp__.right = static_cast<::vl::vint>(1); __vwsn_temp__.bottom = static_cast<::vl::vint>(1); return __vwsn_temp__; }());
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
} }
@@ -25144,6 +25178,9 @@ Class (::demo::ResponsiveStackControlConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_3)); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_3));
} }
(this->responsive = new ::vl::presentation::compositions::GuiResponsiveStackComposition()); (this->responsive = new ::vl::presentation::compositions::GuiResponsiveStackComposition());
{
::vl::__vwsn::This(this->responsive)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(1); __vwsn_temp__.top = static_cast<::vl::vint>(1); __vwsn_temp__.right = static_cast<::vl::vint>(1); __vwsn_temp__.bottom = static_cast<::vl::vint>(1); return __vwsn_temp__; }());
}
(this->__vwsn_precompile_4 = new ::vl::presentation::compositions::GuiStackComposition()); (this->__vwsn_precompile_4 = new ::vl::presentation::compositions::GuiStackComposition());
{ {
::vl::__vwsn::This(this->__vwsn_precompile_4)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren); ::vl::__vwsn::This(this->__vwsn_precompile_4)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
@@ -25675,9 +25712,6 @@ Class (::demo::ResponsiveViewControlConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(5), static_cast<::vl::vint>(1)); ::vl::__vwsn::This(this->__vwsn_precompile_1)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(5), static_cast<::vl::vint>(1));
} }
(this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiBoundsComposition()); (this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiBoundsComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(1); __vwsn_temp__.top = static_cast<::vl::vint>(1); __vwsn_temp__.right = static_cast<::vl::vint>(1); __vwsn_temp__.bottom = static_cast<::vl::vint>(1); return __vwsn_temp__; }());
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren); ::vl::__vwsn::This(this->__vwsn_precompile_2)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
} }
@@ -25870,6 +25904,9 @@ Class (::demo::ResponsiveViewControlConstructor)
auto __vwsn_collection_ = ::vl::__vwsn::UnboxCollection<::vl::reflection::description::IValueList>(::vl::__vwsn::This(this->responsive)->GetSharedControls()); auto __vwsn_collection_ = ::vl::__vwsn::UnboxCollection<::vl::reflection::description::IValueList>(::vl::__vwsn::This(this->responsive)->GetSharedControls());
::vl::__vwsn::This(__vwsn_collection_.Obj())->Add(::vl::__vwsn::Box(this->documentBox)); ::vl::__vwsn::This(__vwsn_collection_.Obj())->Add(::vl::__vwsn::Box(this->documentBox));
} }
{
::vl::__vwsn::This(this->responsive)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(1); __vwsn_temp__.top = static_cast<::vl::vint>(1); __vwsn_temp__.right = static_cast<::vl::vint>(1); __vwsn_temp__.bottom = static_cast<::vl::vint>(1); return __vwsn_temp__; }());
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_2)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->responsive)); ::vl::__vwsn::This(this->__vwsn_precompile_2)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->responsive));
} }
@@ -26776,6 +26813,9 @@ Class (::demo::TextBoxSubTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -26910,6 +26950,9 @@ Class (::demo::TextBoxTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -27171,6 +27214,9 @@ Class (::demo::TextListTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -27271,10 +27317,6 @@ Class (::demo::TextListTabPageConstructor)
{ {
(this->__vwsn_precompile_10 = new ::vl::presentation::controls::GuiControl(::vl::presentation::theme::ThemeName::GroupBox)); (this->__vwsn_precompile_10 = new ::vl::presentation::controls::GuiControl(::vl::presentation::theme::ThemeName::GroupBox));
} }
(this->__vwsn_precompile_40 = ::vl::__vwsn::This(this->__vwsn_precompile_10)->GetContainerComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_40)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(5); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(5); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
}
(this->__vwsn_precompile_39 = ::vl::__vwsn::This(this->__vwsn_precompile_10)->GetBoundsComposition()); (this->__vwsn_precompile_39 = ::vl::__vwsn::This(this->__vwsn_precompile_10)->GetBoundsComposition());
{ {
::vl::__vwsn::This(this->__vwsn_precompile_39)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = (- static_cast<::vl::vint>(1)); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_39)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = (- static_cast<::vl::vint>(1)); return __vwsn_temp__; }());
@@ -27290,7 +27332,7 @@ Class (::demo::TextListTabPageConstructor)
::vl::__vwsn::This(this->__vwsn_precompile_11)->SetPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_11)->SetPadding(static_cast<::vl::vint>(5));
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_11)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_11)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(5); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(5); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_11)->SetDirection(::vl::presentation::compositions::GuiStackComposition::Direction::Vertical); ::vl::__vwsn::This(this->__vwsn_precompile_11)->SetDirection(::vl::presentation::compositions::GuiStackComposition::Direction::Vertical);
@@ -27472,9 +27514,9 @@ Class (::demo::TextListTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->__vwsn_precompile_9)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->__vwsn_precompile_9));
} }
(this->__vwsn_precompile_41 = new ::vl::presentation::compositions::GuiCellComposition()); (this->__vwsn_precompile_40 = new ::vl::presentation::compositions::GuiCellComposition());
{ {
::vl::__vwsn::This(this->__vwsn_precompile_41)->SetSite(static_cast<::vl::vint>(1), static_cast<::vl::vint>(2), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1)); ::vl::__vwsn::This(this->__vwsn_precompile_40)->SetSite(static_cast<::vl::vint>(1), static_cast<::vl::vint>(2), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1));
} }
{ {
(this->bindableTextList = new ::vl::presentation::controls::GuiBindableTextList(::vl::presentation::theme::ThemeName::TextList)); (this->bindableTextList = new ::vl::presentation::controls::GuiBindableTextList(::vl::presentation::theme::ThemeName::TextList));
@@ -27494,15 +27536,15 @@ Class (::demo::TextListTabPageConstructor)
{ {
::vl::__vwsn::This(this->bindableTextList)->SetAlt(::vl::WString::Unmanaged(L"B")); ::vl::__vwsn::This(this->bindableTextList)->SetAlt(::vl::WString::Unmanaged(L"B"));
} }
(this->__vwsn_precompile_42 = ::vl::__vwsn::This(this->bindableTextList)->GetBoundsComposition()); (this->__vwsn_precompile_41 = ::vl::__vwsn::This(this->bindableTextList)->GetBoundsComposition());
{ {
::vl::__vwsn::This(this->__vwsn_precompile_42)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_41)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_41)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(::vl::__vwsn::This(this->bindableTextList)->GetBoundsComposition())); ::vl::__vwsn::This(this->__vwsn_precompile_40)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(::vl::__vwsn::This(this->bindableTextList)->GetBoundsComposition()));
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->__vwsn_precompile_41)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->__vwsn_precompile_40));
} }
{ {
::vl::__vwsn::This(::vl::__vwsn::This(this->self)->GetContainerComposition())->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->__vwsn_precompile_0)); ::vl::__vwsn::This(::vl::__vwsn::This(this->self)->GetContainerComposition())->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->__vwsn_precompile_0));
@@ -27588,9 +27630,8 @@ Class (::demo::TextListTabPageConstructor)
, __vwsn_precompile_37(static_cast<::vl::presentation::controls::GuiSelectableButton*>(nullptr)) , __vwsn_precompile_37(static_cast<::vl::presentation::controls::GuiSelectableButton*>(nullptr))
, __vwsn_precompile_38(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr)) , __vwsn_precompile_38(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr))
, __vwsn_precompile_39(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr)) , __vwsn_precompile_39(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr))
, __vwsn_precompile_40(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(nullptr)) , __vwsn_precompile_40(static_cast<::vl::presentation::compositions::GuiCellComposition*>(nullptr))
, __vwsn_precompile_41(static_cast<::vl::presentation::compositions::GuiCellComposition*>(nullptr)) , __vwsn_precompile_41(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr))
, __vwsn_precompile_42(static_cast<::vl::presentation::compositions::GuiBoundsComposition*>(nullptr))
{ {
} }
@@ -27720,6 +27761,9 @@ Class (::demo::TreeViewTabPageConstructor)
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5)); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetCellPadding(static_cast<::vl::vint>(5));
} }
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -1728,7 +1728,6 @@ namespace demo
::vl::presentation::controls::GuiButton* __vwsn_precompile_15; ::vl::presentation::controls::GuiButton* __vwsn_precompile_15;
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_16; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_16;
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_17; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_17;
::vl::presentation::compositions::GuiGraphicsComposition* __vwsn_precompile_18;
void __vwsn_demo_EnglishNumbersController_Initialize(::demo::EnglishNumbersController* __vwsn_this_); void __vwsn_demo_EnglishNumbersController_Initialize(::demo::EnglishNumbersController* __vwsn_this_);
public: public:
EnglishNumbersControllerConstructor(); EnglishNumbersControllerConstructor();
@@ -3483,9 +3482,8 @@ namespace demo
::vl::presentation::controls::GuiSelectableButton* __vwsn_precompile_37; ::vl::presentation::controls::GuiSelectableButton* __vwsn_precompile_37;
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_38; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_38;
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_39; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_39;
::vl::presentation::compositions::GuiGraphicsComposition* __vwsn_precompile_40; ::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_40;
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_41; ::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_41;
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_42;
void __vwsn_demo_TextListTabPage_Initialize(::demo::TextListTabPage* __vwsn_this_); void __vwsn_demo_TextListTabPage_Initialize(::demo::TextListTabPage* __vwsn_this_);
public: public:
TextListTabPageConstructor(); TextListTabPageConstructor();
@@ -874,7 +874,6 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_15) CLASS_MEMBER_FIELD(__vwsn_precompile_15)
CLASS_MEMBER_FIELD(__vwsn_precompile_16) CLASS_MEMBER_FIELD(__vwsn_precompile_16)
CLASS_MEMBER_FIELD(__vwsn_precompile_17) CLASS_MEMBER_FIELD(__vwsn_precompile_17)
CLASS_MEMBER_FIELD(__vwsn_precompile_18)
CLASS_MEMBER_FIELD(__vwsn_precompile_2) CLASS_MEMBER_FIELD(__vwsn_precompile_2)
CLASS_MEMBER_FIELD(__vwsn_precompile_3) CLASS_MEMBER_FIELD(__vwsn_precompile_3)
CLASS_MEMBER_FIELD(__vwsn_precompile_4) CLASS_MEMBER_FIELD(__vwsn_precompile_4)
@@ -1967,7 +1966,6 @@ namespace vl
CLASS_MEMBER_FIELD(__vwsn_precompile_4) CLASS_MEMBER_FIELD(__vwsn_precompile_4)
CLASS_MEMBER_FIELD(__vwsn_precompile_40) CLASS_MEMBER_FIELD(__vwsn_precompile_40)
CLASS_MEMBER_FIELD(__vwsn_precompile_41) CLASS_MEMBER_FIELD(__vwsn_precompile_41)
CLASS_MEMBER_FIELD(__vwsn_precompile_42)
CLASS_MEMBER_FIELD(__vwsn_precompile_5) CLASS_MEMBER_FIELD(__vwsn_precompile_5)
CLASS_MEMBER_FIELD(__vwsn_precompile_6) CLASS_MEMBER_FIELD(__vwsn_precompile_6)
CLASS_MEMBER_FIELD(__vwsn_precompile_7) CLASS_MEMBER_FIELD(__vwsn_precompile_7)
@@ -83,7 +83,7 @@ So as I pray, unlimited blade works.]]>
]]> ]]>
</ref.Members> </ref.Members>
<TabPage ref.Name="self"> <TabPage ref.Name="self">
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<CellOption>composeType:MinSize</CellOption> <CellOption>composeType:MinSize</CellOption>
<CellOption>composeType:Percentage percentage:1.0</CellOption> <CellOption>composeType:Percentage percentage:1.0</CellOption>
@@ -116,7 +116,7 @@ So as I pray, unlimited blade works.]]>
]]> ]]>
</ref.Members> </ref.Members>
<TabPage ref.Name="self"> <TabPage ref.Name="self">
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<CellOption>composeType:MinSize</CellOption> <CellOption>composeType:MinSize</CellOption>
<CellOption>composeType:Percentage percentage:1.0</CellOption> <CellOption>composeType:Percentage percentage:1.0</CellOption>
@@ -179,7 +179,7 @@ So as I pray, unlimited blade works.]]>
]]> ]]>
</ev.OnMakeFontSmaller-eval> </ev.OnMakeFontSmaller-eval>
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0"> <Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<CellOption>composeType:Percentage percentage:1.0</CellOption> <CellOption>composeType:Percentage percentage:1.0</CellOption>
<CellOption>composeType:MinSize</CellOption> <CellOption>composeType:MinSize</CellOption>
@@ -7,7 +7,7 @@
</ref.Members> </ref.Members>
<TabPage ref.Name="self" Text="TextList"> <TabPage ref.Name="self" Text="TextList">
<x:MutexGroupController ref.Name="mutexGroupController"/> <x:MutexGroupController ref.Name="mutexGroupController"/>
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:Percentage percentage:1.0</_> <_>composeType:Percentage percentage:1.0</_>
@@ -66,8 +66,7 @@
<Cell Site="row:1 column:1"> <Cell Site="row:1 column:1">
<GroupBox Text="Operations"> <GroupBox Text="Operations">
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:-1"/> <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:-1"/>
<att.ContainerComposition-set InternalMargin="left:5 top:0 right:5 bottom:5"/> <Stack Direction="Vertical" Padding="5" AlignmentToParent="left:5 top:0 right:5 bottom:5" MinSizeLimitation="LimitToElementAndChildren">
<Stack Direction="Vertical" Padding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
<StackItem> <StackItem>
<Button Alt="A" Text="Add 10 items"> <Button Alt="A" Text="Add 10 items">
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/> <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
@@ -10,7 +10,7 @@
]]> ]]>
</ref.Ctor> </ref.Ctor>
<TabPage ref.Name="self" Text="TreeView"> <TabPage ref.Name="self" Text="TreeView">
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5"> <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" MinSizeLimitation="LimitToElementAndChildren">
<att.Rows> <att.Rows>
<_>composeType:MinSize</_> <_>composeType:MinSize</_>
<_>composeType:Percentage percentage:1.0</_> <_>composeType:Percentage percentage:1.0</_>
@@ -2982,6 +2982,9 @@ namespace demo
::vl::__vwsn::This(this->self)->AddComponent(static_cast<::vl::presentation::controls::GuiComponent*>(this->dialogQueryClose)); ::vl::__vwsn::This(this->self)->AddComponent(static_cast<::vl::presentation::controls::GuiComponent*>(this->dialogQueryClose));
} }
(this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition()); (this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -3757,6 +3760,9 @@ Class (::demo::HyperlinkWindowConstructor)
::vl::__vwsn::This(this->self)->SetText(::vl::WString::Unmanaged(L"Hyperlink")); ::vl::__vwsn::This(this->self)->SetText(::vl::WString::Unmanaged(L"Hyperlink"));
} }
(this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition()); (this->__vwsn_precompile_0 = new ::vl::presentation::compositions::GuiTableComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
}
{ {
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }()); ::vl::__vwsn::This(this->__vwsn_precompile_0)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
} }
@@ -1920,9 +1920,6 @@ namespace demo
::vl::__vwsn::This(this->__vwsn_precompile_13)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren); ::vl::__vwsn::This(this->__vwsn_precompile_13)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
} }
(this->__vwsn_precompile_14 = new ::vl::presentation::compositions::GuiStackItemComposition()); (this->__vwsn_precompile_14 = new ::vl::presentation::compositions::GuiStackItemComposition());
{
::vl::__vwsn::This(this->__vwsn_precompile_14)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(10); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
}
(this->__vwsn_precompile_15 = ::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement>(::vl::reflection::description::Element_Constructor<::vl::presentation::elements::GuiSolidLabelElement>())); (this->__vwsn_precompile_15 = ::vl::Ptr<::vl::presentation::elements::GuiSolidLabelElement>(::vl::reflection::description::Element_Constructor<::vl::presentation::elements::GuiSolidLabelElement>()));
{ {
::vl::__vwsn::This(this->__vwsn_precompile_15.Obj())->SetVerticalAlignment(::vl::presentation::Alignment::Center); ::vl::__vwsn::This(this->__vwsn_precompile_15.Obj())->SetVerticalAlignment(::vl::presentation::Alignment::Center);
@@ -1934,7 +1931,7 @@ namespace demo
::vl::__vwsn::This(this->__vwsn_precompile_15.Obj())->SetColor(::vl::__vwsn::Parse<::vl::presentation::Color>(::vl::WString::Unmanaged(L"#FFFFFF"))); ::vl::__vwsn::This(this->__vwsn_precompile_15.Obj())->SetColor(::vl::__vwsn::Parse<::vl::presentation::Color>(::vl::WString::Unmanaged(L"#FFFFFF")));
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_15.Obj())->SetText(::vl::WString::Unmanaged(L"Search:")); ::vl::__vwsn::This(this->__vwsn_precompile_15.Obj())->SetText(::vl::WString::Unmanaged(L"Search: "));
} }
{ {
::vl::__vwsn::This(this->__vwsn_precompile_14)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_15)); ::vl::__vwsn::This(this->__vwsn_precompile_14)->SetOwnedElement(::vl::Ptr<::vl::presentation::elements::IGuiGraphicsElement>(this->__vwsn_precompile_15));
Binary file not shown.
Binary file not shown.