/* Generated by MyraPad at 20/09/2021 14:15:54 */
using Myra;
using Myra.Graphics2D;
using Myra.Graphics2D.TextureAtlases;
using Myra.Graphics2D.UI;
using Myra.Graphics2D.Brushes;
using Myra.Graphics2D.UI.Properties;

#if MONOGAME || FNA
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#elif STRIDE
using Stride.Core.Mathematics;
#else
using System.Drawing;
using System.Numerics;
#endif

namespace Sledgemapper.UI
{
	partial class MainWidget: VerticalStackPanel
	{
		private void BuildUI()
		{
			MenuFileLoad = new MenuItem();
			MenuFileLoad.Text = "&Load";
			MenuFileLoad.ShortcutText = "Ctrl+L";
			MenuFileLoad.Id = "MenuFileLoad";

			MenuFileSave = new MenuItem();
			MenuFileSave.Text = "&Save";
			MenuFileSave.ShortcutText = "Ctrl+S";
			MenuFileSave.Id = "MenuFileSave";

			var menuSeparator1 = new MenuSeparator();

			MenuFileSettings = new MenuItem();
			MenuFileSettings.Text = "S&ettings";
			MenuFileSettings.ShortcutText = "Ctrl+E";
			MenuFileSettings.Id = "MenuFileSettings";

			var menuSeparator2 = new MenuSeparator();

			MenuFileQuit = new MenuItem();
			MenuFileQuit.Text = "&Quit";
			MenuFileQuit.ShortcutText = "Ctrl+Q";
			MenuFileQuit.Id = "MenuFileQuit";

			MenuFile = new MenuItem();
			MenuFile.Text = "&File";
			MenuFile.Id = "MenuFile";
			MenuFile.Items.Add(MenuFileLoad);
			MenuFile.Items.Add(MenuFileSave);
			MenuFile.Items.Add(menuSeparator1);
			MenuFile.Items.Add(MenuFileSettings);
			MenuFile.Items.Add(menuSeparator2);
			MenuFile.Items.Add(MenuFileQuit);

			MenuConnectLogin = new MenuItem();
			MenuConnectLogin.Text = "L&ogin";
			MenuConnectLogin.ShortcutText = "Ctrl+O";
			MenuConnectLogin.Id = "MenuConnectLogin";

			var menuItem1 = new MenuItem();
			menuItem1.Text = "&Connect";
			menuItem1.Items.Add(MenuConnectLogin);

			MenuCampaingNew = new MenuItem();
			MenuCampaingNew.Text = "&New";
			MenuCampaingNew.ShortcutText = "Ctrl+N";
			MenuCampaingNew.Id = "MenuCampaingNew";

			MenuCampaignOpen = new MenuItem();
			MenuCampaignOpen.Text = "&Open";
			MenuCampaignOpen.ShortcutText = "Ctrl+O";
			MenuCampaignOpen.Id = "MenuCampaignOpen";

			var menuSeparator3 = new MenuSeparator();

			MenuCampaignPlayers = new MenuItem();
			MenuCampaignPlayers.Text = "&Players";
			MenuCampaignPlayers.ShortcutText = "CtrI+P";
			MenuCampaignPlayers.Id = "MenuCampaignPlayers";

			var menuItem2 = new MenuItem();
			menuItem2.Text = "C&ampaign";
			menuItem2.Items.Add(MenuCampaingNew);
			menuItem2.Items.Add(MenuCampaignOpen);
			menuItem2.Items.Add(menuSeparator3);
			menuItem2.Items.Add(MenuCampaignPlayers);

			MenuMapNew = new MenuItem();
			MenuMapNew.Text = "&New";
			MenuMapNew.ShortcutText = "Ctrl+N";
			MenuMapNew.Id = "MenuMapNew";

			MenuMapOpen = new MenuItem();
			MenuMapOpen.Text = "&Open";
			MenuMapOpen.ShortcutText = "Ctrl+O";
			MenuMapOpen.Id = "MenuMapOpen";

			MenuConnectSync = new MenuItem();
			MenuConnectSync.Text = "S&ync";
			MenuConnectSync.ShortcutText = "Ctrl+Y";
			MenuConnectSync.Id = "MenuConnectSync";

			MenuConnectUpload = new MenuItem();
			MenuConnectUpload.Text = "&Upload";
			MenuConnectUpload.ShortcutText = "Ctrl+U";
			MenuConnectUpload.Id = "MenuConnectUpload";

			var menuItem3 = new MenuItem();
			menuItem3.Text = "&Map";
			menuItem3.ShortcutText = "Ctrl+M";
			menuItem3.Items.Add(MenuMapNew);
			menuItem3.Items.Add(MenuMapOpen);
			menuItem3.Items.Add(MenuConnectSync);
			menuItem3.Items.Add(MenuConnectUpload);

			MenuViewShowNotes = new MenuItem();
			MenuViewShowNotes.Text = "N&otes";
			MenuViewShowNotes.ShortcutText = "Ctrl+O";
			MenuViewShowNotes.Id = "MenuViewShowNotes";

			MenuViewShowCellNUmbers = new MenuItem();
			MenuViewShowCellNUmbers.Text = "S&how cell numbers";
			MenuViewShowCellNUmbers.ShortcutText = "Ctrl+H";
			MenuViewShowCellNUmbers.Id = "MenuViewShowCellNUmbers";

			MenuViewCenterOnSelection = new MenuItem();
			MenuViewCenterOnSelection.Text = "C&enter on selection";
			MenuViewCenterOnSelection.ShortcutText = "Ctrl+E";
			MenuViewCenterOnSelection.Id = "MenuViewCenterOnSelection";

			var menuItem4 = new MenuItem();
			menuItem4.Text = "&View";
			menuItem4.Items.Add(MenuViewShowNotes);
			menuItem4.Items.Add(MenuViewShowCellNUmbers);
			menuItem4.Items.Add(MenuViewCenterOnSelection);

			MenuHelpAbout = new MenuItem();
			MenuHelpAbout.Text = "&About";
			MenuHelpAbout.Id = "MenuHelpAbout";

			var menuItem5 = new MenuItem();
			menuItem5.Text = "&Help";
			menuItem5.Items.Add(MenuHelpAbout);

			_mainMenu = new HorizontalMenu();
			_mainMenu.Id = "_mainMenu";
			_mainMenu.Items.Add(MenuFile);
			_mainMenu.Items.Add(menuItem1);
			_mainMenu.Items.Add(menuItem2);
			_mainMenu.Items.Add(menuItem3);
			_mainMenu.Items.Add(menuItem4);
			_mainMenu.Items.Add(menuItem5);

			BtnToolbarLine = new ImageTextButton();
			BtnToolbarLine.Text = "    C";
			BtnToolbarLine.Width = 40;
			BtnToolbarLine.Height = 40;
			BtnToolbarLine.BorderThickness = new Thickness(2);
			BtnToolbarLine.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
			BtnToolbarLine.Id = "BtnToolbarLine";

			BtnToolbarRoom = new ImageTextButton();
			BtnToolbarRoom.Text = "    R";
			BtnToolbarRoom.Width = 40;
			BtnToolbarRoom.Height = 40;
			BtnToolbarRoom.BorderThickness = new Thickness(2);
			BtnToolbarRoom.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
			BtnToolbarRoom.Id = "BtnToolbarRoom";

			BtnToolbarDelete = new ImageTextButton();
			BtnToolbarDelete.Text = "    D";
			BtnToolbarDelete.Width = 40;
			BtnToolbarDelete.Height = 40;
			BtnToolbarDelete.BorderThickness = new Thickness(2);
			BtnToolbarDelete.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
			BtnToolbarDelete.Id = "BtnToolbarDelete";

			Toolbar = new HorizontalStackPanel();
			Toolbar.Spacing = 12;
			Toolbar.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Auto,
			});
			Toolbar.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
			Toolbar.Height = 51;
			Toolbar.Padding = new Thickness(4, 0, 0, 0);
			Toolbar.Background = new SolidBrush("#404040FF");
			Toolbar.Id = "Toolbar";
			Toolbar.Widgets.Add(BtnToolbarLine);
			Toolbar.Widgets.Add(BtnToolbarRoom);
			Toolbar.Widgets.Add(BtnToolbarDelete);

			GridWalls = new Grid();
			GridWalls.ColumnSpacing = 8;
			GridWalls.RowSpacing = 8;
			GridWalls.DefaultColumnProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridWalls.DefaultRowProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridWalls.Id = "GridWalls";

			var scrollViewer1 = new ScrollViewer();
			scrollViewer1.Content = GridWalls;

			var verticalStackPanel1 = new VerticalStackPanel();
			verticalStackPanel1.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			verticalStackPanel1.Widgets.Add(scrollViewer1);

			GridOverlays = new Grid();
			GridOverlays.ColumnSpacing = 8;
			GridOverlays.RowSpacing = 8;
			GridOverlays.DefaultColumnProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridOverlays.DefaultRowProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridOverlays.Id = "GridOverlays";

			ScrOverlay = new ScrollViewer();
			ScrOverlay.Id = "ScrOverlay";
			ScrOverlay.Content = GridOverlays;

			TxtOverlaySearch = new TextBox();
			TxtOverlaySearch.Height = 25;
			TxtOverlaySearch.BorderThickness = new Thickness(1);
			TxtOverlaySearch.Border = new SolidBrush("#000000FF");
			TxtOverlaySearch.Id = "TxtOverlaySearch";

			var verticalStackPanel2 = new VerticalStackPanel();
			verticalStackPanel2.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			verticalStackPanel2.Widgets.Add(ScrOverlay);
			verticalStackPanel2.Widgets.Add(TxtOverlaySearch);

			var verticalSplitPane1 = new VerticalSplitPane();
			verticalSplitPane1.Width = 200;
			verticalSplitPane1.Background = new SolidBrush("#A1A1A1FF");
			verticalSplitPane1.Widgets.Add(verticalStackPanel1);
			verticalSplitPane1.Widgets.Add(verticalStackPanel2);

			var label1 = new Label();
			label1.Text = "Connection:";

			lblConnectionStatus = new Label();
			lblConnectionStatus.Text = "Disconnected";
			lblConnectionStatus.MinWidth = 50;
			lblConnectionStatus.Id = "lblConnectionStatus";

			var verticalSeparator1 = new VerticalSeparator();

			var label2 = new Label();
			label2.Text = "Initials:";

			lblUsername = new Label();
			lblUsername.Text = "n/a";
			lblUsername.MinWidth = 50;
			lblUsername.Id = "lblUsername";

			var verticalSeparator2 = new VerticalSeparator();

			var label3 = new Label();
			label3.Text = "Campaign:";

			lblCampaign = new Label();
			lblCampaign.Text = "n/a";
			lblCampaign.MinWidth = 50;
			lblCampaign.Id = "lblCampaign";

			var verticalSeparator3 = new VerticalSeparator();

			var label4 = new Label();
			label4.Text = "Map:";

			lblMap = new Label();
			lblMap.Text = "n/a";
			lblMap.MinWidth = 50;
			lblMap.Id = "lblMap";

			var horizontalStackPanel1 = new HorizontalStackPanel();
			horizontalStackPanel1.Spacing = 10;
			horizontalStackPanel1.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Auto,
			});
			horizontalStackPanel1.Height = 25;
			horizontalStackPanel1.Background = new SolidBrush("#333333FF");
			horizontalStackPanel1.Widgets.Add(label1);
			horizontalStackPanel1.Widgets.Add(lblConnectionStatus);
			horizontalStackPanel1.Widgets.Add(verticalSeparator1);
			horizontalStackPanel1.Widgets.Add(label2);
			horizontalStackPanel1.Widgets.Add(lblUsername);
			horizontalStackPanel1.Widgets.Add(verticalSeparator2);
			horizontalStackPanel1.Widgets.Add(label3);
			horizontalStackPanel1.Widgets.Add(lblCampaign);
			horizontalStackPanel1.Widgets.Add(verticalSeparator3);
			horizontalStackPanel1.Widgets.Add(label4);
			horizontalStackPanel1.Widgets.Add(lblMap);

			
			Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Auto,
			});
			Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Auto,
			});
			Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			Widgets.Add(_mainMenu);
			Widgets.Add(Toolbar);
			Widgets.Add(verticalSplitPane1);
			Widgets.Add(horizontalStackPanel1);
		}

		
		public MenuItem MenuFileLoad;
		public MenuItem MenuFileSave;
		public MenuItem MenuFileSettings;
		public MenuItem MenuFileQuit;
		public MenuItem MenuFile;
		public MenuItem MenuConnectLogin;
		public MenuItem MenuCampaingNew;
		public MenuItem MenuCampaignOpen;
		public MenuItem MenuCampaignPlayers;
		public MenuItem MenuMapNew;
		public MenuItem MenuMapOpen;
		public MenuItem MenuConnectSync;
		public MenuItem MenuConnectUpload;
		public MenuItem MenuViewShowNotes;
		public MenuItem MenuViewShowCellNUmbers;
		public MenuItem MenuViewCenterOnSelection;
		public MenuItem MenuHelpAbout;
		public HorizontalMenu _mainMenu;
		public ImageTextButton BtnToolbarLine;
		public ImageTextButton BtnToolbarRoom;
		public ImageTextButton BtnToolbarDelete;
		public HorizontalStackPanel Toolbar;
		public Grid GridWalls;
		public Grid GridOverlays;
		public ScrollViewer ScrOverlay;
		public TextBox TxtOverlaySearch;
		public Label lblConnectionStatus;
		public Label lblUsername;
		public Label lblCampaign;
		public Label lblMap;
	}
}
