protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { Name = nodes[1].Token.Text; } if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: FormatedTextPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.OpaqueAssignment: Opaque = ANode.NumberValue; break; case AssignmentType.LineHeightAssignment: LineHeight = ANode.NumberValue; break; case AssignmentType.EdgeOffsetLAssignment: EdgeOffsetL = ANode.NumberValue; break; case AssignmentType.EdgeOffsetRAssignment: EdgeOffsetR = ANode.NumberValue; break; case AssignmentType.EdgeOffsetTAssignment: EdgeOffsetT = ANode.NumberValue; break; case AssignmentType.EdgeOffsetBAssignment: EdgeOffsetB = ANode.NumberValue; break; } } AsString = "AddFormatedText"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); Control = nodes[1].Token.Text; Image = ""; if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.PositionAssignment: PositionAssignment = new int[2]; PositionAssignment[0] = ANode.Array.Numbers[0]; PositionAssignment[1] = ANode.Array.Numbers[1]; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.ThumbSizeAssignment: ThumbSize = ANode.Array; break; case AssignmentType.ThumbMarginsAssignment: ThumbMargins = ANode.Array; break; case AssignmentType.ThumbImageSizeAssignment: ThumbImageSize = ANode.Array; break; case AssignmentType.ThumbImageOffsetsAssignment: ThumbImageOffsets = ANode.Array; break; case AssignmentType.ThumbButtonImageAssignment: ThumbButtonImage = ANode.StrValue; break; } } AsString = "SetControlProperties"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { Name = nodes[1].Token.Text; } if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: TextPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.ColorAssignment: Color = ANode.Array; break; case AssignmentType.TextAssignment: Text = ANode.StrValue; break; case AssignmentType.AlignmentAssignment: Alignment = (TextAlignment)ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.OpaqueAssignment: Opaque = ANode.NumberValue; break; } } AsString = "AddText"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { Name = nodes[1].Token.Text; } if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: ProgressbarPosition = ANode.Array; break; case AssignmentType.ForegroundImageAssignment: ForegroundImage = ANode.StrValue; break; case AssignmentType.BackgroundImageAssignment: BackgroundImage = ANode.StrValue; break; case AssignmentType.MaxValueAssignment: MaximumValue = ANode.NumberValue; break; case AssignmentType.MinValueAssignment: MinimumValue = ANode.NumberValue; break; case AssignmentType.ValueAssignment: Value = ANode.NumberValue; break; } } AsString = "AddProgressBar"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { Name = nodes[1].Token.Text; } if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: ListBoxPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.VisibleRowsAssignment: VisibleRows = ANode.NumberValue; break; case AssignmentType.ColumnsAssignment: Columns = ANode.NumberValue; break; case AssignmentType.AlignmentsAssignment: Alignments = ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.RowHeightAssignment: RowHeight = ANode.NumberValue; break; case AssignmentType.TransparentAssignment: Transparent = ANode.NumberValue; break; case AssignmentType.FillColorAssignment: FillColor = ANode.Array; break; case AssignmentType.SelectionFillColorAssignment: SelectionFillColor = ANode.Array; break; case AssignmentType.CursorAssignment: Cursor = ANode.NumberValue; break; } } AsString = "AddListBox"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[1].AstNode; foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.StringTableAssignment: StringTable = ANode.NumberValue; break; case AssignmentType.PositionAssignment: ControlPosition = ANode.Array; break; case AssignmentType.ColorAssignment: Color = ANode.Array; break; case AssignmentType.TextColorAssignment: TextColor = ANode.Array; break; case AssignmentType.TextColorSelectedAssignment: TextColorSelected = ANode.Array; break; case AssignmentType.TextColorHighlightedAssignment: TextColorHighlighted = ANode.Array; break; case AssignmentType.TextColorDisabledAssignment: TextColorDisabled = ANode.Array; break; case AssignmentType.BackColorAssignment: BackColor = ANode.Array; break; case AssignmentType.CursorAssignment: CursorColor = ANode.Array; break; case AssignmentType.OpaqueAssignment: Opaque = ANode.NumberValue; break; case AssignmentType.TransparentAssignment: Transparent = ANode.NumberValue; break; case AssignmentType.AlignmentAssignment: Alignment = ANode.NumberValue; break; case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.TooltipAssignment: Tooltip = ANode.StrValue; break; case AssignmentType.TextAssignment: Text = ANode.StrValue; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.OrientationAssignment: Orientation = ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.TextButtonAssignment: TextButton = (ANode.NumberValue == 1 ? true : false); break; } } AsString = "SetSharedProperties"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { Name = nodes[1].Token.Text; } if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.PositionAssignment: ButtonPosition = ANode.Array; break; case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.SizeAssignment: ButtonSize = ANode.Array; break; case AssignmentType.TextAssignment: Text = ANode.StrValue; break; case AssignmentType.TriggerAssignment: Trigger = ANode.NumberValue; break; case AssignmentType.TrackingAssignment: Tracking = ANode.NumberValue; break; case AssignmentType.TooltipAssignment: Tooltip = ANode.StrValue; break; case AssignmentType.ImageStatesAssignment: ImageStates = ANode.NumberValue; break; case AssignmentType.TextButtonAssignment: TextButton = ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.TextColorAssignment: TextColor = ANode.Array; break; case AssignmentType.TextColorDisabledAssignment: TextColorDisabled = ANode.Array; break; case AssignmentType.TextColorHighlightedAssignment: TextColorHighlighted = ANode.Array; break; case AssignmentType.TextColorSelectedAssignment: TextColorSelected = ANode.Array; break; } } AsString = "AddButton"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[1].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.StringTableAssignment: StringTable = ANode.NumberValue; break; case AssignmentType.PositionAssignment: ControlPosition = ANode.Array; break; case AssignmentType.ColorAssignment: Color = ANode.Array; break; case AssignmentType.TextColorAssignment: TextColor = ANode.Array; break; case AssignmentType.TextColorSelectedAssignment: TextColorSelected = ANode.Array; break; case AssignmentType.TextColorHighlightedAssignment: TextColorHighlighted = ANode.Array; break; case AssignmentType.TextColorDisabledAssignment: TextColorDisabled = ANode.Array; break; case AssignmentType.BackColorAssignment: BackColor = ANode.Array; break; case AssignmentType.CursorAssignment: CursorColor = ANode.Array; break; case AssignmentType.OpaqueAssignment: Opaque = ANode.NumberValue; break; case AssignmentType.TransparentAssignment: Transparent = ANode.NumberValue; break; case AssignmentType.AlignmentAssignment: Alignment = ANode.NumberValue; break; case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.TooltipAssignment: Tooltip = ANode.StrValue; break; case AssignmentType.TextAssignment: Text = ANode.StrValue; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.OrientationAssignment: Orientation = ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.TextButtonAssignment: TextButton = (ANode.NumberValue == 1 ? true : false); break; } } AsString = "SetSharedProperties"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) Name = nodes[1].Token.Text; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: TextPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.ColorAssignment: Color = ANode.Array; break; case AssignmentType.TextAssignment: Text = ANode.StrValue; break; case AssignmentType.AlignmentAssignment: Alignment = (TextAlignment)ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.OpaqueAssignment: Opaque = ANode.NumberValue; break; } } AsString = "AddText"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) Name = nodes[1].Token.Text; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.PositionAssignment: SliderPosition = ANode.Array; break; case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.MinValueAssignment: MinimumValue = ANode.NumberValue; break; case AssignmentType.MaxValueAssignment: MaximumValue = ANode.NumberValue; break; case AssignmentType.OrientationAssignment: Orientation = ANode.NumberValue; break; } } AsString = "AddSlider"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) Name = nodes[1].Token.Text; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach(AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.PositionAssignment: ButtonPosition = ANode.Array; break; case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.SizeAssignment: ButtonSize = ANode.Array; break; case AssignmentType.TextAssignment: Text = ANode.StrValue; break; case AssignmentType.TriggerAssignment: Trigger = ANode.NumberValue; break; case AssignmentType.TrackingAssignment: Tracking = ANode.NumberValue; break; case AssignmentType.TooltipAssignment: Tooltip = ANode.StrValue; break; case AssignmentType.ImageStatesAssignment: ImageStates = ANode.NumberValue; break; case AssignmentType.TextButtonAssignment: TextButton = ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.TextColorAssignment: TextColor = ANode.Array; break; case AssignmentType.TextColorDisabledAssignment: TextColorDisabled = ANode.Array; break; case AssignmentType.TextColorHighlightedAssignment: TextColorHighlighted = ANode.Array; break; case AssignmentType.TextColorSelectedAssignment: TextColorSelected = ANode.Array; break; } } AsString = "AddButton"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); Control = nodes[1].Token.Text; Image = ""; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach(AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch(ANode.TypeOfAssignment) { case AssignmentType.ImageAssignment: Image = ANode.StrValue; break; case AssignmentType.PositionAssignment: PositionAssignment = new int[2]; PositionAssignment[0] = ANode.Array.Numbers[0]; PositionAssignment[1] = ANode.Array.Numbers[1]; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.ThumbSizeAssignment: ThumbSize = ANode.Array; break; case AssignmentType.ThumbMarginsAssignment: ThumbMargins = ANode.Array; break; case AssignmentType.ThumbImageSizeAssignment: ThumbImageSize = ANode.Array; break; case AssignmentType.ThumbImageOffsetsAssignment: ThumbImageOffsets = ANode.Array; break; case AssignmentType.ThumbButtonImageAssignment: ThumbButtonImage = ANode.StrValue; break; } } AsString = "SetControlProperties"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) { Name = nodes[1].Token.Text; } if (nodes[2].AstNode != null) { AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; } foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: TextEditPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.LinesAssignment: Lines = ANode.NumberValue; break; case AssignmentType.CapacityAssignment: Capacity = ANode.NumberValue; break; case AssignmentType.FrameOnFocusAssignment: FrameOnFocus = ANode.NumberValue; break; case AssignmentType.ColorAssignment: Color = ANode.Array; break; case AssignmentType.BackColorAssignment: BackColor = ANode.Array; break; case AssignmentType.CursorColorAssignment: CursorColor = ANode.Array; break; case AssignmentType.FrameColorAssignment: FrameColor = ANode.Array; break; case AssignmentType.TransparentAssignment: Transparent = ANode.NumberValue; break; case AssignmentType.AlignmentAssignment: Alignment = ANode.NumberValue; break; case AssignmentType.FlashOnEmptyAssignment: FlashOnEmpty = ANode.NumberValue; break; case AssignmentType.TooltipAssignment: Tooltip = ANode.StrValue; break; } } AsString = "AddTextEdit"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) Name = nodes[1].Token.Text; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: TextEditPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.LinesAssignment: Lines = ANode.NumberValue; break; case AssignmentType.CapacityAssignment: Capacity = ANode.NumberValue; break; case AssignmentType.FrameOnFocusAssignment: FrameOnFocus = ANode.NumberValue; break; case AssignmentType.ColorAssignment: Color = ANode.Array; break; case AssignmentType.BackColorAssignment: BackColor = ANode.Array; break; case AssignmentType.CursorColorAssignment: CursorColor = ANode.Array; break; case AssignmentType.FrameColorAssignment: FrameColor = ANode.Array; break; case AssignmentType.TransparentAssignment: Transparent = ANode.NumberValue; break; case AssignmentType.AlignmentAssignment: Alignment = ANode.NumberValue; break; case AssignmentType.FlashOnEmptyAssignment: FlashOnEmpty = ANode.NumberValue; break; case AssignmentType.TooltipAssignment: Tooltip = ANode.StrValue; break; } } AsString = "AddTextEdit"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) Name = nodes[1].Token.Text; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: ListBoxPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.VisibleRowsAssignment: VisibleRows = ANode.NumberValue; break; case AssignmentType.ColumnsAssignment: Columns = ANode.NumberValue; break; case AssignmentType.AlignmentsAssignment: Alignments = ANode.NumberValue; break; case AssignmentType.FontAssignment: Font = ANode.NumberValue; break; case AssignmentType.RowHeightAssignment: RowHeight = ANode.NumberValue; break; case AssignmentType.TransparentAssignment: Transparent = ANode.NumberValue; break; case AssignmentType.FillColorAssignment: FillColor = ANode.Array; break; case AssignmentType.SelectionFillColorAssignment: SelectionFillColor = ANode.Array; break; case AssignmentType.CursorAssignment: Cursor = ANode.NumberValue; break; } } AsString = "AddListBox"; }
protected override void InitChildren(ParseTreeNodeList nodes) { InitChildrenAsList(nodes); if (nodes[1].AstNode != null) Name = nodes[1].Token.Text; if (nodes[2].AstNode != null) AssignmentBlock = (AssignmentBlockNode)nodes[2].AstNode; foreach (AssignmentNode ANode in AssignmentBlock.ChildNodes[0].ChildNodes) { switch (ANode.TypeOfAssignment) { case AssignmentType.IDAssignment: ID = ANode.NumberValue; break; case AssignmentType.PositionAssignment: FormatedTextPosition = ANode.Array; break; case AssignmentType.SizeAssignment: Size = ANode.Array; break; case AssignmentType.OpaqueAssignment: Opaque = ANode.NumberValue; break; case AssignmentType.LineHeightAssignment: LineHeight = ANode.NumberValue; break; case AssignmentType.EdgeOffsetLAssignment: EdgeOffsetL = ANode.NumberValue; break; case AssignmentType.EdgeOffsetRAssignment: EdgeOffsetR = ANode.NumberValue; break; case AssignmentType.EdgeOffsetTAssignment: EdgeOffsetT = ANode.NumberValue; break; case AssignmentType.EdgeOffsetBAssignment: EdgeOffsetB = ANode.NumberValue; break; } } AsString = "AddFormatedText"; }