Пример #1
0
        private void buttonLayout_Click(object sender, EventArgs e)
        {
            var prevLayout = _layout;

            if (_layout == LayoutTypes.Standard)
            {
                // przekierowanie okienka na prawą stronię
                this.ShowInTaskbar         = false;
                AppBarHelper.AppBarMessage = "Website Monitoring";
                AppBarHelper.SetAppBar(this, AppBarEdge.Right);

                _layout = LayoutTypes.Docked;
            }
            else if (_layout == LayoutTypes.Docked)
            {
                // przekierowanie okienka -reset
                this.ShowInTaskbar         = true;
                AppBarHelper.AppBarMessage = "Website Monitoring";
                AppBarHelper.SetAppBar(this, AppBarEdge.None);

                _layout = LayoutTypes.Standard;
            }

            LogManager.LogDebug($"Changed layout from {prevLayout.ToString()} to {_layout.ToString()}");
        }
        void picker1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (picker1.SelectedIndex)
            {
            case 0:
            {
                layoutType = LayoutTypes.Squarified;

                break;
            }

            case 1:
            {
                layoutType = LayoutTypes.SliceAndDiceHorizontal;
                break;
            }

            case 2:
            {
                layoutType = LayoutTypes.SliceAndDiceVertical;
                break;
            }

            case 3:
            {
                layoutType = LayoutTypes.SliceAndDiceAuto;
                break;
            }
            }
            tree.LayoutType = layoutType;
            tree.Refresh();
        }
Пример #3
0
 public TagCloud(WordCloudConfig config, ITagCloudVizualizer vizualizer)
 {
     LayoutType  = config.LayoutType;
     Vizualizer  = vizualizer;
     MaxFontSize = config.MaxFontSize;
     MinFontSize = config.MinFontSize;
 }
Пример #4
0
    protected override void OnInspectorGUIInsertion()
    {
        EditorGUILayout.PropertyField(groupArrayType);
        EditorGUILayout.PropertyField(facingType);

        GroupArrayTypes groupArrayTypeIndex = (GroupArrayTypes)groupArrayType.enumValueIndex;

        if (groupArrayTypeIndex == GroupArrayTypes.Round)
        {
            EditorGUILayout.PropertyField(childOffsetX);
            EditorGUILayout.PropertyField(childOffsetY);
            EditorGUILayout.PropertyField(childOffsetZ);
            EditorGUILayout.PropertyField(radius);
        }
        else
        {
            if (groupArrayTypeIndex != GroupArrayTypes.Radial)
            {
                EditorGUILayout.PropertyField(anchorLayout);
            }

            AnchorRelativeBase layoutAnchor = (AnchorRelativeBase)anchorLayout.enumValueIndex;
            if (layoutAnchor != AnchorRelativeBase.MiddleCenter)
            {
                EditorGUILayout.PropertyField(isAnchorWithAxis);
            }
            EditorGUILayout.PropertyField(layoutType);
            LayoutTypes layoutTypeIndex = (LayoutTypes)layoutType.enumValueIndex;
            if (layoutTypeIndex == LayoutTypes.Vertical)
            {
                EditorGUILayout.PropertyField(rows);
                EditorGUILayout.PropertyField(groupVerticalAlign);
            }
            else if (layoutTypeIndex == LayoutTypes.Horizontal)
            {
                EditorGUILayout.PropertyField(columns);
                EditorGUILayout.PropertyField(groupHorizontalAlign);
            }
            EditorGUILayout.PropertyField(spaceX);
            EditorGUILayout.PropertyField(spaceY);


            EditorGUILayout.PropertyField(childOffsetX);
            EditorGUILayout.PropertyField(childOffsetY);
            if (groupArrayTypeIndex == GroupArrayTypes.Plane)
            {
                EditorGUILayout.PropertyField(childOffsetZ);
            }
            else if (groupArrayTypeIndex == GroupArrayTypes.Radial)
            {
                EditorGUILayout.PropertyField(radius);
                EditorGUILayout.PropertyField(radialRange);
            }
            else
            {
                EditorGUILayout.PropertyField(radius);
            }
        }
    }
Пример #5
0
 public MemoryLayout(Memory Memory, LayoutTypes ProcessorId)
 {
     this.Memory      = Memory;
     this.ProcessorId = ProcessorId;
     if (ProcessorId == LayoutTypes.ARM11)
     {
         BootROM11 = new ARM11();
     }
     else if (ProcessorId == LayoutTypes.ARM9)
     {
         BootROM9 = new ARM9();
     }
 }
 public void LayoutSplit(LayoutTypes newLayoutView)
 {
 }
Пример #7
0
        public void LayoutSplit(LayoutTypes newLayoutView)
        {
            // Temporary disabled the layout split with more than one view
            // Also in the MultiViewWorkItemController only onew View3d is built
            if (newLayoutView != LayoutTypes.Single)
            {
                return;
            }

            multiviewTableLayoutPanel.Controls.Clear();

            multiviewTableLayoutPanel.SetRowSpan(topLeftCustomControl, 1);
            multiviewTableLayoutPanel.SetColumnSpan(topLeftCustomControl, 1);
            multiviewTableLayoutPanel.SetRowSpan(topRightCustomControl, 1);
            multiviewTableLayoutPanel.SetColumnSpan(topRightCustomControl, 1);
            multiviewTableLayoutPanel.SetRowSpan(bottomLeftCustomControl, 1);
            multiviewTableLayoutPanel.SetColumnSpan(bottomLeftCustomControl, 1);
            multiviewTableLayoutPanel.SetRowSpan(bottomRightCustomControl, 1);
            multiviewTableLayoutPanel.SetColumnSpan(bottomRightCustomControl, 1);

            multiviewTableLayoutPanel.Controls.Add(topLeftCustomControl, 0, 0);

            switch (newLayoutView)
            {
            case LayoutTypes.Single:
            {
                multiviewTableLayoutPanel.SetRowSpan(topLeftCustomControl, 2);
                multiviewTableLayoutPanel.SetColumnSpan(topLeftCustomControl, 2);
                _currentActiveView = topLeftCustomControl;
            }
            break;

            case LayoutTypes.TwoVertical:
            {
                multiviewTableLayoutPanel.Controls.Add(topRightCustomControl, 1, 0);
                multiviewTableLayoutPanel.SetRowSpan(topLeftCustomControl, 2);
                multiviewTableLayoutPanel.SetRowSpan(topRightCustomControl, 2);
                if (_currentActiveView == bottomLeftCustomControl)
                {
                    _currentActiveView = topLeftCustomControl;
                }
                if (_currentActiveView == bottomRightCustomControl)
                {
                    _currentActiveView = topRightCustomControl;
                }
            }
            break;

            case LayoutTypes.TwoHorizontal:
            {
                multiviewTableLayoutPanel.Controls.Add(bottomLeftCustomControl, 0, 1);
                multiviewTableLayoutPanel.SetColumnSpan(topLeftCustomControl, 2);
                multiviewTableLayoutPanel.SetColumnSpan(bottomLeftCustomControl, 2);
                if (_currentActiveView == topRightCustomControl)
                {
                    _currentActiveView = topLeftCustomControl;
                }
                if (_currentActiveView == bottomRightCustomControl)
                {
                    _currentActiveView = bottomLeftCustomControl;
                }
            }
            break;

            case LayoutTypes.ThreeVertical:
            {
                multiviewTableLayoutPanel.Controls.Add(topRightCustomControl, 1, 0);
                multiviewTableLayoutPanel.Controls.Add(bottomRightCustomControl, 1, 1);
                multiviewTableLayoutPanel.SetRowSpan(topLeftCustomControl, 2);
                if (_currentActiveView == bottomLeftCustomControl)
                {
                    _currentActiveView = topLeftCustomControl;
                }
            }
            break;

            case LayoutTypes.ThreeHorizontal:
            {
                multiviewTableLayoutPanel.Controls.Add(bottomLeftCustomControl, 0, 1);
                multiviewTableLayoutPanel.Controls.Add(bottomRightCustomControl, 1, 1);
                multiviewTableLayoutPanel.SetColumnSpan(topLeftCustomControl, 2);
                if (_currentActiveView == topRightCustomControl)
                {
                    _currentActiveView = topLeftCustomControl;
                }
            }
            break;

            case LayoutTypes.FourView:
            {
                multiviewTableLayoutPanel.Controls.Add(topRightCustomControl, 1, 0);
                multiviewTableLayoutPanel.Controls.Add(bottomLeftCustomControl, 0, 1);
                multiviewTableLayoutPanel.Controls.Add(bottomRightCustomControl, 1, 1);
            }
            break;
            }
            multiviewTableLayoutPanel.PerformLayout();
            multiviewTableLayoutPanel.Refresh();
            Presenter.ResizeHandler(this, null);
        }
Пример #8
0
 public WordCloudConfig(LayoutTypes layoutType, int maxFontSize = 20, int minFontSize = 8)
 {
     this.LayoutType  = layoutType;
     this.MaxFontSize = maxFontSize;
     this.MinFontSize = minFontSize;
 }
Пример #9
0
 public ContainerAttribute(LayoutTypes layout)
 {
     this._layout = layout;
 }
		void picker1_SelectedIndexChanged(object sender, EventArgs e)
		{
			switch (picker1.SelectedIndex)
			{
			case 0:
				{
					layoutType = LayoutTypes.Squarified;

					break;
				}
			case 1:
				{
					layoutType = LayoutTypes.SliceAndDiceHorizontal;
					break;
				}
			case 2:
				{
					layoutType = LayoutTypes.SliceAndDiceVertical;
					break;
				}
			case 3:
				{
					layoutType = LayoutTypes.SliceAndDiceAuto;
					break;
				}

			}
			tree.LayoutType = layoutType;
			tree.Refresh ();
		}