mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-28 02:35:32 +08:00
...
This commit is contained in:
+40
-11
@@ -6980,6 +6980,7 @@ GuiWindow
|
|||||||
case templates::BoolOption::AlwaysFalse: \
|
case templates::BoolOption::AlwaysFalse: \
|
||||||
VARIABLE = false; \
|
VARIABLE = false; \
|
||||||
break; \
|
break; \
|
||||||
|
default:; \
|
||||||
} \
|
} \
|
||||||
|
|
||||||
FIX_WINDOW_PROPERTY(hasMaximizedBox, MaximizedBox)
|
FIX_WINDOW_PROPERTY(hasMaximizedBox, MaximizedBox)
|
||||||
@@ -7511,6 +7512,7 @@ GuiPopup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
.\GRAPHICSCOMPOSITION\GUIGRAPHICSCOMPOSITION.CPP
|
.\GRAPHICSCOMPOSITION\GUIGRAPHICSCOMPOSITION.CPP
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -31124,11 +31126,6 @@ GuiToolstripCollectionBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiToolstripCollectionBase::OnInterestingMenuButtonPropertyChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments)
|
|
||||||
{
|
|
||||||
InvokeUpdateLayout();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool GuiToolstripCollectionBase::QueryInsert(vint index, GuiControl* const& child)
|
bool GuiToolstripCollectionBase::QueryInsert(vint index, GuiControl* const& child)
|
||||||
{
|
{
|
||||||
return !items.Contains(child);
|
return !items.Contains(child);
|
||||||
@@ -31170,22 +31167,54 @@ GuiToolstripCollectionBase
|
|||||||
GuiToolstripCollection
|
GuiToolstripCollection
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
|
void GuiToolstripCollection::UpdateItemVisibility(vint index, GuiControl* child)
|
||||||
|
{
|
||||||
|
auto stackItem = stackComposition->GetStackItems()[index];
|
||||||
|
if (child->GetVisible())
|
||||||
|
{
|
||||||
|
stackItem->SetMinSizeLimitation(GuiGraphicsComposition::LimitToElementAndChildren);
|
||||||
|
child->GetBoundsComposition()->SetAlignmentToParent(Margin(0, 0, 0, 0));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
stackItem->SetMinSizeLimitation(GuiGraphicsComposition::NoLimit);
|
||||||
|
child->GetBoundsComposition()->SetAlignmentToParent(Margin(-1, -1, -1, -1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuiToolstripCollection::OnItemVisibleChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments)
|
||||||
|
{
|
||||||
|
auto child = sender->GetRelatedControl();
|
||||||
|
vint index = IndexOf(child);
|
||||||
|
UpdateItemVisibility(index, child);
|
||||||
|
InvokeUpdateLayout();
|
||||||
|
}
|
||||||
|
|
||||||
void GuiToolstripCollection::BeforeRemove(vint index, GuiControl* const& child)
|
void GuiToolstripCollection::BeforeRemove(vint index, GuiControl* const& child)
|
||||||
{
|
{
|
||||||
GuiStackItemComposition* stackItem = stackComposition->GetStackItems().Get(index);
|
GuiStackItemComposition* stackItem = stackComposition->GetStackItems().Get(index);
|
||||||
stackComposition->RemoveChild(stackItem);
|
stackComposition->RemoveChild(stackItem);
|
||||||
|
{
|
||||||
|
auto eventHandler = eventHandlers[index];
|
||||||
|
child->VisibleChanged.Detach(eventHandler);
|
||||||
|
eventHandlers.RemoveAt(index);
|
||||||
|
}
|
||||||
GuiToolstripCollectionBase::BeforeRemove(index, child);
|
GuiToolstripCollectionBase::BeforeRemove(index, child);
|
||||||
SafeDeleteComposition(stackItem);
|
SafeDeleteComposition(stackItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiToolstripCollection::AfterInsert(vint index, GuiControl* const& child)
|
void GuiToolstripCollection::AfterInsert(vint index, GuiControl* const& child)
|
||||||
{
|
{
|
||||||
GuiStackItemComposition* stackItem=new GuiStackItemComposition;
|
{
|
||||||
child->GetBoundsComposition()->SetAlignmentToParent(Margin(0, 0, 0, 0));
|
GuiStackItemComposition* stackItem = new GuiStackItemComposition;
|
||||||
stackItem->AddChild(child->GetBoundsComposition());
|
stackItem->AddChild(child->GetBoundsComposition());
|
||||||
stackComposition->InsertChild(index, stackItem);
|
stackComposition->InsertChild(index, stackItem);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
auto eventHandler = child->VisibleChanged.AttachMethod(this, &GuiToolstripCollection::OnItemVisibleChanged);
|
||||||
|
eventHandlers.Insert(index, eventHandler);
|
||||||
|
}
|
||||||
|
UpdateItemVisibility(index, child);
|
||||||
GuiToolstripCollectionBase::AfterInsert(index, child);
|
GuiToolstripCollectionBase::AfterInsert(index, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
-3
@@ -10332,7 +10332,7 @@ Scroll View
|
|||||||
GuiScrollView(theme::ThemeName themeName);
|
GuiScrollView(theme::ThemeName themeName);
|
||||||
~GuiScrollView();
|
~GuiScrollView();
|
||||||
|
|
||||||
virtual void SetFont(const FontProperties& value);
|
virtual void SetFont(const FontProperties& value)override;
|
||||||
|
|
||||||
/// <summary>Force to update contents and scroll bars.</summary>
|
/// <summary>Force to update contents and scroll bars.</summary>
|
||||||
void CalculateView();
|
void CalculateView();
|
||||||
@@ -10398,6 +10398,7 @@ Scroll View
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
.\CONTROLS\GUIWINDOWCONTROLS.H
|
.\CONTROLS\GUIWINDOWCONTROLS.H
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -17115,7 +17116,6 @@ Toolstrip Item Collection
|
|||||||
IToolstripUpdateLayout * contentCallback;
|
IToolstripUpdateLayout * contentCallback;
|
||||||
|
|
||||||
void InvokeUpdateLayout();
|
void InvokeUpdateLayout();
|
||||||
void OnInterestingMenuButtonPropertyChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments);
|
|
||||||
bool QueryInsert(vint index, GuiControl* const& child)override;
|
bool QueryInsert(vint index, GuiControl* const& child)override;
|
||||||
void BeforeRemove(vint index, GuiControl* const& child)override;
|
void BeforeRemove(vint index, GuiControl* const& child)override;
|
||||||
void AfterInsert(vint index, GuiControl* const& child)override;
|
void AfterInsert(vint index, GuiControl* const& child)override;
|
||||||
@@ -17128,9 +17128,13 @@ Toolstrip Item Collection
|
|||||||
/// <summary>Toolstrip item collection.</summary>
|
/// <summary>Toolstrip item collection.</summary>
|
||||||
class GuiToolstripCollection : public GuiToolstripCollectionBase
|
class GuiToolstripCollection : public GuiToolstripCollectionBase
|
||||||
{
|
{
|
||||||
|
using EventHandlerList = collections::List<Ptr<compositions::IGuiGraphicsEventHandler>>;
|
||||||
protected:
|
protected:
|
||||||
compositions::GuiStackComposition* stackComposition;
|
compositions::GuiStackComposition* stackComposition;
|
||||||
|
EventHandlerList eventHandlers;
|
||||||
|
|
||||||
|
void UpdateItemVisibility(vint index, GuiControl* child);
|
||||||
|
void OnItemVisibleChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments);
|
||||||
void BeforeRemove(vint index, GuiControl* const& child)override;
|
void BeforeRemove(vint index, GuiControl* const& child)override;
|
||||||
void AfterInsert(vint index, GuiControl* const& child)override;
|
void AfterInsert(vint index, GuiControl* const& child)override;
|
||||||
public:
|
public:
|
||||||
@@ -17211,7 +17215,7 @@ Toolstrip Component
|
|||||||
IToolstripUpdateLayout* callback = nullptr;
|
IToolstripUpdateLayout* callback = nullptr;
|
||||||
Ptr<compositions::IGuiGraphicsEventHandler> descriptionChangedHandler;
|
Ptr<compositions::IGuiGraphicsEventHandler> descriptionChangedHandler;
|
||||||
|
|
||||||
void SetCallback(IToolstripUpdateLayout* _callback);
|
void SetCallback(IToolstripUpdateLayout* _callback)override;
|
||||||
void UpdateCommandContent();
|
void UpdateCommandContent();
|
||||||
void OnLayoutAwaredPropertyChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments);
|
void OnLayoutAwaredPropertyChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments);
|
||||||
void OnClicked(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments);
|
void OnClicked(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments);
|
||||||
@@ -17335,6 +17339,7 @@ Toolstrip Group
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
.\RESOURCES\GUIDOCUMENTEDITOR.H
|
.\RESOURCES\GUIDOCUMENTEDITOR.H
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|||||||
@@ -11400,12 +11400,12 @@ GuiCommonDatePickerLookLoader
|
|||||||
return IGuiInstanceLoader::GetPropertyType(propertyInfo);
|
return IGuiInstanceLoader::GetPropertyType(propertyInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CanCreate(const TypeInfo& typeInfo)
|
bool CanCreate(const TypeInfo& typeInfo)override
|
||||||
{
|
{
|
||||||
return typeInfo.typeName == typeName;
|
return typeInfo.typeName == typeName;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr<workflow::WfStatement> CreateInstance(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, const TypeInfo& typeInfo, GlobalStringKey variableName, ArgumentMap& arguments, GuiResourceTextPos tagPosition, GuiResourceError::List& errors)
|
Ptr<workflow::WfStatement> CreateInstance(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, const TypeInfo& typeInfo, GlobalStringKey variableName, ArgumentMap& arguments, GuiResourceTextPos tagPosition, GuiResourceError::List& errors)override
|
||||||
{
|
{
|
||||||
if (CanCreate(typeInfo))
|
if (CanCreate(typeInfo))
|
||||||
{
|
{
|
||||||
@@ -11484,12 +11484,12 @@ GuiCommonScrollViewLookLoader
|
|||||||
return IGuiInstanceLoader::GetPropertyType(propertyInfo);
|
return IGuiInstanceLoader::GetPropertyType(propertyInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CanCreate(const TypeInfo& typeInfo)
|
bool CanCreate(const TypeInfo& typeInfo)override
|
||||||
{
|
{
|
||||||
return typeInfo.typeName == typeName;
|
return typeInfo.typeName == typeName;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr<workflow::WfStatement> CreateInstance(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, const TypeInfo& typeInfo, GlobalStringKey variableName, ArgumentMap& arguments, GuiResourceTextPos tagPosition, GuiResourceError::List& errors)
|
Ptr<workflow::WfStatement> CreateInstance(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, const TypeInfo& typeInfo, GlobalStringKey variableName, ArgumentMap& arguments, GuiResourceTextPos tagPosition, GuiResourceError::List& errors)override
|
||||||
{
|
{
|
||||||
if (CanCreate(typeInfo))
|
if (CanCreate(typeInfo))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15425,7 +15425,7 @@ CompleteScopeForClassMember
|
|||||||
node->Accept((WfVirtualCseDeclaration::IVisitor*)this);
|
node->Accept((WfVirtualCseDeclaration::IVisitor*)this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Visit(WfStateMachineDeclaration* node)
|
void Visit(WfStateMachineDeclaration* node)override
|
||||||
{
|
{
|
||||||
auto scope = manager->nodeScopes[node];
|
auto scope = manager->nodeScopes[node];
|
||||||
FOREACH(Ptr<WfStateInput>, input, node->inputs)
|
FOREACH(Ptr<WfStateInput>, input, node->inputs)
|
||||||
@@ -15883,6 +15883,7 @@ CheckScopes_BaseType
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
.\ANALYZER\WFANALYZER_CONTEXTFREEDESUGAR.CPP
|
.\ANALYZER\WFANALYZER_CONTEXTFREEDESUGAR.CPP
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user