protected void CreateTollCardMenu(MenuBarItem mc) { AppMenuCommand stype1 = new AppMenuCommand("cmdMakeParameterCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuMakeParameterCardCaption", "RES_MenuMakeParameterCardDesc", 6, _shortcuts); AppMenuCommand stype2 = new AppMenuCommand("cmdMakeTimeCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuMakeTimeCardCaption", "RES_MenuMakeTimeCardDesc", 7, _shortcuts); AppMenuCommand stype3 = new AppMenuCommand("cmdMakeGasCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuMakeGasCardCaption", "RES_MenuMakeGasCardDesc", 13, _shortcuts); AppMenuCommand stype4 = new AppMenuCommand("cmdMakeDataCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuMakeDataCardCaption", "RES_MenuMakeDataCardDesc", 14, _shortcuts); AppMenuCommand stype5 = new AppMenuCommand("cmdMakeCheckCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuMakeCheckCardCaption", "RES_MenuMakeCheckCardDesc", 15, _shortcuts); mc.MenuItems.AddRange(new MenuButtonItem[] { stype1, stype2, stype3, stype4, stype5 }); }
public static MenuBar GetStandardMenuBar(ColorScheme colorScheme, string typeName = null, Action exportAction = null, Action importAction = null) { List <MenuItem> fileSubMenu = new List <MenuItem>(); if (importAction != null) { fileSubMenu.Add(new MenuItem($"_Import {typeName}", "", () => importAction())); } if (exportAction != null) { fileSubMenu.Add(new MenuItem($"_Export {typeName}", "", () => exportAction())); } if (typeName == null) { fileSubMenu.Add(new MenuItem("_Quit", "", () => Application.RequestStop())); } var fileMenuBar = new MenuBarItem("_File", fileSubMenu.ToArray()); var colorSchemeBar = new MenuBarItem("_Color Scheme", CreateColorSchemeMenuItems(colorScheme)); var aboutBar = new MenuBarItem("_About", "", () => MessageBox.Query("About SmartThings Terminal", GetAboutMessage(), "Ok")); var menuBar = new MenuBar(new MenuBarItem[] { fileMenuBar, colorSchemeBar, aboutBar }); return(menuBar); }
/// <summary> /// Creat the FirstMenu /// </summary> private void InitMenuBar() { // Init the MainMenuControl menuBarMain.SuspendLayout(); menuBarMain.ImageList = _toolImages; // Create the top level Menu MenuBarItem top0 = new MenuBarItem(Framework.Core.Resource.Manager["RES_MainMenuFileCaption"]); top0.ToolTipText = Framework.Core.Resource.Manager["RES_MainMenuFileDesc"]; MenuBarItem top1 = new MenuBarItem(Framework.Core.Resource.Manager["RES_MainMenuCustomCardCaption"]); top1.ToolTipText = Framework.Core.Resource.Manager["RES_MainMenuCustomCardDesc"]; MenuBarItem top2 = new MenuBarItem(Framework.Core.Resource.Manager["RES_MainMenuTollCardCaption"]); top2.ToolTipText = Framework.Core.Resource.Manager["RES_MainMenuToolCardDesc"]; MenuBarItem top4 = new MenuBarItem(Framework.Core.Resource.Manager["RES_MainMenuHelpCaption"]); top4.ToolTipText = Framework.Core.Resource.Manager["RES_MainMenuHelpDesc"]; // Create the submenus CreateFileMenu(top0); CreateCustomCardMenu(top1); CreateTollCardMenu(top2); CreateHelpMenu(top4); menuBarMain.Buttons.AddRange(new MenuItemBase[] { top0, top1, top2, top4 }); menuBarMain.ResumeLayout(false); }
void ToggleMenuBarItem(object sender, EventArgs e) { MenuBarItem barItem = MenuBarItems.FirstOrDefault(x => x.Text == "Added Menu"); if (barItem == null) { barItem = new MenuBarItem() { Text = "Added Menu" }; barItem.Add(new MenuFlyoutItem() { Text = "Added Flyout Item", Command = new Command(() => ItemClicked(barItem.First(), EventArgs.Empty)) }); MenuBarItems.Add(barItem); } else { MenuBarItems.Remove(barItem); } }
public void AdditionalTargets() { var tracker = new MenuBarTracker(); var menubaritem1 = new MenuBarItem(); var menubarItem2 = new MenuBarItem(); var page = new ContentPage { MenuBarItems = { menubaritem1 } }; var additionalPage = new ContentPage { MenuBarItems = { menubarItem2 } }; tracker.Target = page; tracker.AdditionalTargets = new[] { additionalPage }; Assert.True(tracker.ToolbarItems.Contains(menubaritem1)); Assert.True(tracker.ToolbarItems.Contains(menubarItem2)); }
public async Task PopAfterTrackingStarted() { var tracker = new MenuBarTracker(); var menubaritem1 = new MenuBarItem(); var menubarItem2 = new MenuBarItem(); var page = new NavigationPage(new ContentPage()) { MenuBarItems = { menubaritem1 } }; var firstPage = new ContentPage { MenuBarItems = { menubarItem2 } }; tracker.Target = page; await page.Navigation.PushAsync(firstPage); Assert.True(tracker.ToolbarItems.Contains(menubaritem1)); Assert.True(tracker.ToolbarItems.Contains(menubarItem2)); await page.Navigation.PopAsync(); Assert.True(tracker.ToolbarItems.Contains(menubaritem1)); Assert.False(tracker.ToolbarItems.Contains(menubarItem2)); }
private void UpdateMenu(string tag_name, MenuBarItem menu) { //Check to see if Preview should be enabled (not all tags can be previewed) bool bValidPreview = false; if (tag_name.IndexOf("Bitmap") != -1) { bValidPreview = true; } if (tag_name.IndexOf("GBXModel") != -1) { bValidPreview = true; } if (tag_name.IndexOf("Scenario_Structure_Bsp") != -1) { bValidPreview = true; } //if(tag_name.IndexOf("model_animations") != -1)bValidPreview = true; //if(tag_name.IndexOf("shader_environment") != -1)bValidPreview = true; //if(tag_name.IndexOf("shader_model") != -1)bValidPreview = true; //if(tag_name.IndexOf("shader_transparent_chicago") != -1)bValidPreview = true; //if(tag_name.IndexOf("sky") != -1)bValidPreview = true; mbiFile_PreviewTag.Enabled = bValidPreview; }
public async Task ShellToolbarWithOnlyMenuBarItemsIsVisible() { SetupBuilder(); var shell = await CreateShellAsync((shell) => { var contentPage = new ContentPage(); var menuFlyoutItem = new MenuFlyoutItem { Text = "Test" }; var menuBarItem = new MenuBarItem { Text = "File" }; menuBarItem.Add(menuFlyoutItem); contentPage.MenuBarItems.Add(menuBarItem); shell.Items.Add(contentPage); }); await CreateHandlerAndAddToWindow <ShellHandler>(shell, (handler) => { Assert.True(IsNavigationBarVisible(handler)); return(Task.CompletedTask); }); }
public Menu(MenuBar host, int x, int y, MenuBarItem barItems) : base(MakeFrame(x, y, barItems.Children)) { this.barItems = barItems; this.host = host; if (barItems.IsTopLevel) { // This is a standalone MenuItem on a MenuBar ColorScheme = Colors.Menu; CanFocus = true; } else { current = -1; for (int i = 0; i < barItems.Children.Length; i++) { if (barItems.Children [i] != null) { current = i; break; } } ColorScheme = Colors.Menu; CanFocus = true; WantMousePositionReports = host.WantMousePositionReports; } }
public void AddCustomObjectToMenu(string name, int index) { MenuBarItem newObjectButton = Instantiate(objectMenuButton, objectsSubmenu); newObjectButton.GetComponentInChildren <Text>().text = "Add " + name; newObjectButton.callbackIndex = index; newObjectButton.callback.AddListener(newObjectButton.CustomObjectCallback); }
internal void OpenMenu(int index, int sIndex = -1, MenuBarItem subMenu = null) { isMenuOpening = true; OnOpenMenu?.Invoke(this, null); int pos = 0; switch (subMenu) { case null: lastFocused = lastFocused ?? SuperView.MostFocused; if (openSubMenu != null) { CloseMenu(false, true); } if (openMenu != null) { SuperView.Remove(openMenu); } for (int i = 0; i < index; i++) { pos += Menus [i].Title.Length + 2; } openMenu = new Menu(this, pos, 1, Menus [index]); openCurrentMenu = openMenu; openCurrentMenu.previousSubFocused = openMenu; SuperView.Add(openMenu); SuperView.SetFocus(openMenu); break; default: if (openSubMenu == null) { openSubMenu = new List <Menu> (); } if (sIndex > -1) { RemoveSubMenu(sIndex); } else { var last = openSubMenu.Count > 0 ? openSubMenu.Last() : openMenu; openCurrentMenu = new Menu(this, last.Frame.Left + last.Frame.Width, last.Frame.Top + 1 + last.current, subMenu); openCurrentMenu.previousSubFocused = last.previousSubFocused; openSubMenu.Add(openCurrentMenu); SuperView.Add(openCurrentMenu); } selectedSub = openSubMenu.Count - 1; SuperView?.SetFocus(openCurrentMenu); break; } isMenuOpening = false; isMenuClosed = false; MenuOpen = true; }
public MenuBarPage SelectSimpleMenuBarOption(string name, string child = null) { MenuBarItem option = this.SimpleMenuBar.ClickOption(name); if (!string.IsNullOrWhiteSpace(child)) { option.ClickChildOption(child); } return(this); }
protected void CreateFileMenu(MenuBarItem mc) { AppMenuCommand stype1 = new AppMenuCommand("cmdExit", owner.Mediator, new ExecuteCommandHandler(owner.CmdExitApp), "RES_MenuExitCaption", "RES_MenuExitDesc", 3, _shortcuts); stype1.BeginGroup = true; mc.MenuItems.AddRange(new MenuButtonItem[] { stype1 }); }
// Activates the menu, handles either first focus, or activating an entry when it was already active // For mouse events. internal void Activate(int idx, int sIdx = -1, MenuBarItem subMenu = null) { selected = idx; selectedSub = sIdx; if (openMenu == null) { previousFocused = SuperView.Focused; } OpenMenu(idx, sIdx, subMenu); SetNeedsDisplay(); }
public void OnPaintItem(PaintEventArgs e, MenuBarItem item) { GraphicsHelper helper = new GraphicsHelper(e.Graphics); const int radius = 3; Rectangle bound = item.Bound; helper.RoundedGradient(UColor.Rgb(0x4d, 0x9f, 0xcf), UColor.Rgb(0x15, 0x69, 0x97), item.Bound, 90, radius); helper.Gradient(UColor.Blend(130, UColor.White), UColor.Blend(70, UColor.White), new Rectangle(item.Bound.X, item.Bound.Y + 1, 1, item.Bound.Height - radius), 90); helper.Gradient(UColor.Blend(130, UColor.White), UColor.Blend(70, UColor.White), new Rectangle(item.Bound.X + item.Bound.Width - radius + 2, item.Bound.Y + 1, 1, item.Bound.Height - radius), 90); helper.RoundedOutline(UColor.Rgb(0x18, 0x18, 0x18), item.Bound, radius); helper.Line(UColor.White, bound.X + radius, bound.Y + bound.Height - 1, bound.Width - radius, bound.Y + bound.Height - 1); }
private void Awake() { image = GetComponent <Image>(); if (isSubmenuItem) { parentItem = transform.parent.parent.GetComponent <MenuBarItem>(); parentMenu = parentItem.transform.parent.parent.GetComponent <MenuBarButton>(); } else { parentMenu = transform.parent.parent.GetComponent <MenuBarButton>(); } }
protected void CreateHelpMenu(MenuBarItem mc) { AppMenuCommand stype2 = new AppMenuCommand("cmdAbout", owner.Mediator, new ExecuteCommandHandler(this.CmdAboutApp), "RES_MenuAboutCaption", "RES_MenuAboutDesc", 9, _shortcuts); AppMenuCommand stype3 = new AppMenuCommand("cmdRefresh", owner.Mediator, new ExecuteCommandHandler(this.CmdRefresh), "RES_MenuRefreshCaption", "RES_MenuRefreshDesc", 10, _shortcuts); mc.MenuItems.AddRange(new MenuButtonItem[] { stype2, stype3 }); }
public static void Localize(MenuBarItem item) { string text = Localizer.Localize(item.Text); if (text == null) { item.Visible = false; return; } item.Text = text; foreach (MenuButtonItem item2 in item.Items) { Localizer.Localize(item2); } }
public Menu() : base(null) { Menus = new MenuBarItem[] { new MenuBarItem("_File", new MenuItem[] { new MenuItem("_Exit", null, () => Exit?.Invoke()) }), new MenuBarItem("_View", new MenuItem[] { new MenuItem("_Search", "Search for schedules", () => Search?.Invoke()), new MenuItem("_Schedule", "Display a schedule", () => Schedule?.Invoke()), }) }; }
private void ProcessMenu(int i, MenuBarItem mi) { if (mi.IsTopLevel) { var menu = new Menu(this, i, 0, mi); menu.Run(mi.Action); } else { openedByHotKey = true; Application.GrabMouse(this); selected = i; OpenMenu(i); } }
protected void CreateCustomCardMenu(MenuBarItem mc) { AppMenuCommand stype1 = new AppMenuCommand("cmdMakeCustomCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuMakeCustomCardCaption", "RES_MenuMakeCustomCardDesc", 0, _shortcuts); AppMenuCommand stype2 = new AppMenuCommand("cmdFillMoneyCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuFillMoneyCardCaption", "RES_MenuFillMoneyCardDesc", 1, _shortcuts); AppMenuCommand stype3 = new AppMenuCommand("cmdReplaceCustomCard", owner.Mediator, new ExecuteCommandHandler(this.CmdLoadChild), "RES_MenuReplaceCustomCardCaption", "RES_MenuReplaceCustomCardDesc", 5, _shortcuts); mc.MenuItems.AddRange(new MenuButtonItem[] { stype1, stype2, stype3 }); }
public void InitializeTopMenuComponents(View parent) { _menuItemStartListening = new MenuItem("_Start Listening", "", StartListening); _menuBarItemConnections = new MenuBarItem("Connection", new[] { _menuItemStartListening }); _menuItemClose = new MenuItem("Close", "", null); _menuBarItemMain = new MenuBarItem("Main", new[] { _menuItemClose }); _menuBar = new MenuBar(new [] { _menuBarItemMain, _menuBarItemConnections }); parent.Add(_menuBar); }
public void OnPointerExit(PointerEventData eventData) { if (isDisabled) { return; } if (hasSubmenu) { CloseSubMenu(); currentOpenSubmenu = null; } if (!isSubmenuOpen) { image.color = defaultColor; } }
public void TrackPreConstructedTabbedPage() { var tracker = new MenuBarTracker(); var menubaritem1 = new MenuBarItem(); var menubarItem2 = new MenuBarItem(); var menubarItem3 = new MenuBarItem(); var subPage1 = new ContentPage { MenuBarItems = { menubaritem1 } }; var subPage2 = new ContentPage { MenuBarItems = { menubarItem2, menubarItem3 } }; var tabbedpage = new TabbedPage { Children = { subPage1, subPage2 } }; tabbedpage.CurrentPage = subPage1; tracker.Target = tabbedpage; Assert.True(tracker.ToolbarItems.Count() == 1); Assert.True(tracker.ToolbarItems.First() == subPage1.MenuBarItems[0]); bool changed = false; tracker.CollectionChanged += (sender, args) => changed = true; tabbedpage.CurrentPage = subPage2; Assert.True(tracker.ToolbarItems.Count() == 2); Assert.True(tracker.ToolbarItems.First() == subPage2.MenuBarItems[0]); Assert.True(tracker.ToolbarItems.Last() == subPage2.MenuBarItems[1]); Assert.IsTrue(changed); }
void ReleaseDesignerOutlets() { if (CenterPointTransitionButton != null) { CenterPointTransitionButton.Dispose(); CenterPointTransitionButton = null; } if (CircleButtonTransitionButton != null) { CircleButtonTransitionButton.Dispose(); CircleButtonTransitionButton = null; } if (MenuBarItem != null) { MenuBarItem.Dispose(); MenuBarItem = null; } if (SquareButtonTransitionButton != null) { SquareButtonTransitionButton.Dispose(); SquareButtonTransitionButton = null; } if (TransitionSpeedSlider != null) { TransitionSpeedSlider.Dispose(); TransitionSpeedSlider = null; } if (TransitionSpeedValueLabel != null) { TransitionSpeedValueLabel.Dispose(); TransitionSpeedValueLabel = null; } if (MenuLeftRightBarItem != null) { MenuLeftRightBarItem.Dispose(); MenuLeftRightBarItem = null; } }
public static void ObjInit() { // работаем с окнами WndAuthors = null; WndBooks = null; WndReaders = null; // пункты меню главного меню программы MIFileExit = new MenuItem("Выход", "", () => { miFileExit(); }); MIFile = new MenuBarItem("Файл", new MenuItem[] { MIFileExit }); MIRefsAuthors = new MenuItem("Авторы книг", "", () => { WndAuthors = miRefNewAuthors("Авторы", Authors); }); MIRefsBooks = new MenuItem("Книги", "", () => { WndBooks = miRefNewBooks("Книги", Books); }); MIRefsReaders = new MenuItem("Читатели", "", () => { WndReaders = miRefNewReaders("Читатели", Readers); }); MIRefs = new MenuBarItem("Справочники", new MenuItem[] { MIRefsAuthors, MIRefsBooks, MIRefsReaders }); // MIView = new MenuBarItem(Msgs.StrView, LbmiLanguages); MainMenu = new MenuBar(new MenuBarItem[] { MIFile, MIRefs }); }
/// <summary> /// Initialization. Call this function in form Load handler. /// </summary> /// <param name="owner">Owner form</param> /// <param name="mruItem">Recent Files menu item</param> /// <param name="regPath">Registry Path to keep MRU list</param> public void Initialize(Form owner, MenuButtonItem mruItem, string regPath) { // keep reference to owner form ownerForm = owner; // check if owner form implements IMRUClient interface if (!(owner is IMRUClient)) { throw new Exception( "MRUManager: Owner form doesn't implement IMRUClient interface"); } // keep reference to MRU menu item menuItemMRU = mruItem; // keep reference to MRU menu item parent menuItemParent = (MenuBarItem)menuItemMRU.Parent; // keep Registry path adding MRU key to it registryPath = regPath; if (registryPath.EndsWith("\\")) { registryPath += "MRU"; } else { registryPath += "\\MRU"; } // keep current directory in the time of initialization currentDirectory = Directory.GetCurrentDirectory(); // subscribe to MRU parent Popup event menuItemParent.BeforePopup += new MenuItemBase.BeforePopupEventHandler(this.OnMRUParentPopup); // subscribe to owner form Closing event ownerForm.Closing += new System.ComponentModel.CancelEventHandler(OnOwnerClosing); // load MRU list from Registry LoadMRU(); }
private void InitLayout() { MenuItem MenuItem1 = new MenuItem("Open", null, null); this.closeMenutItem = new MenuItem("Close", null, null); MenuItem MenuItem2 = new MenuItem("Exit", null, null); MenuBarItem MenuBarItem1 = new MenuBarItem("File", new MenuItem[] { MenuItem1, closeMenutItem, MenuItem2 }); this.mainMenuBar = new MenuBar(new MenuBarItem[] { MenuBarItem1 }); this.mainWindow = new Window("Hello"); this.ml = new Label(new Rect(3, 17, 47, 1), "Mouse: "); Label Label1 = new Label(new Rect(3, 18, 47, 1), "Cursor: "); Label Label2 = new Label(new Rect(3, 19, 47, 1), "Keyboard: "); Button Button1 = new Button(3, 19, "OK"); this.cancelButton = new Button(3, 20, "Cancel"); // mainWindow mainWindow.Add(ml); mainWindow.Add(Label1); mainWindow.Add(Label2); mainWindow.Add(Button1); mainWindow.Add(cancelButton); mainWindow.X = 0; mainWindow.Y = 1; mainWindow.Width = Dim.Fill(); mainWindow.Height = Dim.Fill() - 1; // (Button1) Button1.Clicked = () => Button1_Clicked(); // cancelButton cancelButton.Clicked = () => cancelButton_Clicked(); // mainMenuBar MenuItem1.Action = () => OnOpen(); closeMenutItem.Action = () => OnClose(); MenuItem2.Action = () => OnExit(); }
private void CreateMenuBar() { _MenuBar = new Skill.Editor.UI.MenuBar() { Dock = Skill.Framework.UI.Dock.Top }; MenuBarItem file = new MenuBarItem() { Title = "File" }; MenuBarItem edit = new MenuBarItem() { Title = "Edit" }; MenuBarItem view = new MenuBarItem() { Title = "View" }; MenuBarItem window = new MenuBarItem() { Title = "Window", Width = 54 }; _ItmSceneMatinee = new UI.MenuItem("Matinees"); file.Add(_ItmSceneMatinee); _MenuBar.Controls.Add(file); _MenuBar.Controls.Add(edit); _MenuBar.Controls.Add(view); _MenuBar.Controls.Add(window); Skill.Editor.UI.MenuItem resetLayout = new Skill.Editor.UI.MenuItem("Reset Layout"); window.Add(resetLayout); resetLayout.Click += resetLayout_Click; _ItmRollBack = new Skill.Editor.UI.MenuItem("Rollback"); edit.Add(_ItmRollBack); _ItmRollBack.Click += mnuRollback_Click; }
public void AddingMenuBarItemsFireCollectionChanged() { var tracker = new MenuBarTracker(); var menubaritem1 = new MenuBarItem(); var menubarItem2 = new MenuBarItem(); var subPage1 = new ContentPage { MenuBarItems = { menubaritem1 } }; tracker.Target = new NavigationPage(subPage1); bool changed = false; tracker.CollectionChanged += (sender, args) => changed = true; subPage1.MenuBarItems.Add(menubarItem2); Assert.IsTrue(changed); }
private void InitializeComponent() { this.components = new Container(); this.sandDockManager = new SandDockManager(); this.sandBarManager = new SandBarManager(this.components); this.leftSandBarDock = new ToolBarContainer(); this.rightSandBarDock = new ToolBarContainer(); this.bottomSandBarDock = new ToolBarContainer(); this.topSandBarDock = new ToolBarContainer(); this.menuBar = new MenuBar(); this.menuBarItem1 = new MenuBarItem(); this.menuItem_newMap = new MenuButtonItem(); this.menuItem_newWilderness = new MenuButtonItem(); this.menuItem_loadMap = new MenuButtonItem(); this.menuItem_saveMap = new MenuButtonItem(); this.menuItem_saveMapAs = new MenuButtonItem(); this.menuItem_exit = new MenuButtonItem(); this.menuBarItem3 = new MenuBarItem(); this.menuItem_Undo = new MenuButtonItem(); this.menuItem_Redo = new MenuButtonItem(); this.menuBarItem2 = new MenuBarItem(); this.menuItem_viewToolParameters = new MenuButtonItem(); this.menuItem_viewEditorSettings = new MenuButtonItem(); this.menuItem_viewContextHelp = new MenuButtonItem(); this.menuBarItem4 = new MenuBarItem(); this.menuItem_TestIngame = new MenuButtonItem(); this.menuBarItem5 = new MenuBarItem(); this.menuItem_OpenCodeEditor = new MenuButtonItem(); this.menuItem_DumpMap = new MenuButtonItem(); this.menuItem_ExtractBigFile = new MenuButtonItem(); this.menuItem_ExportToPC = new MenuButtonItem(); this.menuItem_ExportToConsole = new MenuButtonItem(); this.menuItem_ResetLayout = new MenuButtonItem(); this.menuItem_PrepareThumbnails = new MenuButtonItem(); this.menuItem_ReloadEditor = new MenuButtonItem(); this.menuItem_ImportWorld = new MenuButtonItem(); this.menuItem_ObjectAdmin = new MenuButtonItem(); this.menuBarItem6 = new MenuBarItem(); this.menuItem_visitWebsite = new MenuButtonItem(); this.menuItem_about = new MenuButtonItem(); this.toolBarMain = new TD.SandBar.ToolBar(); this.buttonItem1 = new ButtonItem(); this.buttonItem2 = new ButtonItem(); this.buttonItem3 = new ButtonItem(); this.buttonItem4 = new ButtonItem(); this.buttonItem5 = new ButtonItem(); this.toolTip = new ToolTip(this.components); this.openMapDialog = new OpenFileDialog(); this.saveMapDialog = new SaveFileDialog(); this.timerUIUpdate = new Timer(this.components); this.statusBar = new StatusStrip(); this.statusBarContextMenu = new ContextMenuStrip(this.components); this.whatsThisToolStripMenuItem = new ToolStripMenuItem(); this.statusCaption = new ToolStripStatusLabel(); this.statusBarCameraSpeed = new ToolStripDropDownButton(); this.cameraSpeedStrip = new ContextMenuStrip(this.components); this.statusBarCameraPos = new ToolStripStatusLabel(); this.statusBarCursorPos = new ToolStripStatusLabel(); this.statusBarMemoryUsage = new ToolStripStatusLabel(); this.statusBarObjectUsage = new ToolStripStatusLabel(); this.statusBarFpsItem = new ToolStripStatusLabel(); this.folderBrowserDialog = new FolderBrowserDialog(); this.viewport = new ViewportControl(); this.topSandBarDock.SuspendLayout(); this.statusBar.SuspendLayout(); this.statusBarContextMenu.SuspendLayout(); base.SuspendLayout(); this.sandDockManager.DockSystemContainer = this; this.sandDockManager.MaximumDockContainerSize = 2000; this.sandDockManager.OwnerForm = this; this.sandBarManager.OwnerForm = this; this.sandBarManager.Renderer = new WhidbeyRenderer(); this.leftSandBarDock.Dock = DockStyle.Left; this.leftSandBarDock.Guid = new Guid("5af42533-b4bf-4ff9-b113-19c06ff822ad"); this.leftSandBarDock.Location = new Point(0, 49); this.leftSandBarDock.Manager = this.sandBarManager; this.leftSandBarDock.Name = "leftSandBarDock"; this.leftSandBarDock.Size = new Size(0, 592); this.leftSandBarDock.TabIndex = 0; this.rightSandBarDock.Dock = DockStyle.Right; this.rightSandBarDock.Guid = new Guid("dd1d865e-52de-4df1-b60b-8d95778c6a99"); this.rightSandBarDock.Location = new Point(973, 49); this.rightSandBarDock.Manager = this.sandBarManager; this.rightSandBarDock.Name = "rightSandBarDock"; this.rightSandBarDock.Size = new Size(0, 592); this.rightSandBarDock.TabIndex = 1; this.bottomSandBarDock.Dock = DockStyle.Bottom; this.bottomSandBarDock.Guid = new Guid("241b4d86-e08e-4fbd-9187-85417e2a6762"); this.bottomSandBarDock.Location = new Point(0, 641); this.bottomSandBarDock.Manager = this.sandBarManager; this.bottomSandBarDock.Name = "bottomSandBarDock"; this.bottomSandBarDock.Size = new Size(973, 0); this.bottomSandBarDock.TabIndex = 2; this.topSandBarDock.Controls.Add(this.menuBar); this.topSandBarDock.Controls.Add(this.toolBarMain); this.topSandBarDock.Dock = DockStyle.Top; this.topSandBarDock.Guid = new Guid("9d4d899c-2f1c-48a5-b6b3-c2965fee85b0"); this.topSandBarDock.Location = new Point(0, 0); this.topSandBarDock.Manager = this.sandBarManager; this.topSandBarDock.Name = "topSandBarDock"; this.topSandBarDock.Size = new Size(973, 49); this.topSandBarDock.TabIndex = 3; this.menuBar.Guid = new Guid("67d4f929-8914-4b23-9c2d-b9539a54dd9b"); this.menuBar.Items.AddRange(new ToolbarItemBase[] { this.menuBarItem1, this.menuBarItem3, this.menuBarItem2, this.menuBarItem4, this.menuBarItem5, this.menuBarItem6 }); this.menuBar.Location = new Point(2, 0); this.menuBar.Movable = false; this.menuBar.Name = "menuBar"; this.menuBar.OwnerForm = this; this.menuBar.Size = new Size(971, 23); this.menuBar.TabIndex = 0; this.menuBar.Text = "menuBar1"; this.menuBarItem1.Items.AddRange(new ToolbarItemBase[] { this.menuItem_newMap, this.menuItem_newWilderness, this.menuItem_loadMap, this.menuItem_saveMap, this.menuItem_saveMapAs, this.menuItem_exit }); this.menuBarItem1.Text = "MENU_FILE"; this.menuItem_newMap.Shortcut = Shortcut.CtrlN; this.menuItem_newMap.Text = "MENUITEM_FILE_NEW_MAP"; this.menuItem_newMap.Activate += new EventHandler(this.menuItem_newMap_Activate); this.menuItem_newWilderness.Text = "MENUITEM_FILE_NEW_WILDERNESS"; this.menuItem_newWilderness.Activate += new EventHandler(this.menuItem_newWilderness_Activate); this.menuItem_loadMap.Shortcut = Shortcut.CtrlO; this.menuItem_loadMap.Text = "MENUITEM_FILE_LOAD_MAP"; this.menuItem_loadMap.Activate += new EventHandler(this.menuItem_loadMap_Activate); this.menuItem_saveMap.BeginGroup = true; this.menuItem_saveMap.Shortcut = Shortcut.CtrlS; this.menuItem_saveMap.Text = "MENUITEM_FILE_SAVE_MAP"; this.menuItem_saveMap.Activate += new EventHandler(this.menuItem_saveMap_Activate); this.menuItem_saveMapAs.Text = "MENUITEM_FILE_SAVE_MAP_AS"; this.menuItem_saveMapAs.Activate += new EventHandler(this.menuItem_saveMapAs_Activate); this.menuItem_exit.BeginGroup = true; this.menuItem_exit.Text = "MENUITEM_FILE_EXIT"; this.menuItem_exit.Activate += new EventHandler(this.menuItem_exit_Activate); this.menuBarItem3.Items.AddRange(new ToolbarItemBase[] { this.menuItem_Undo, this.menuItem_Redo }); this.menuBarItem3.Text = "MENU_EDIT"; this.menuItem_Undo.Shortcut = Shortcut.CtrlZ; this.menuItem_Undo.Text = "MENUITEM_EDIT_UNDO"; this.menuItem_Undo.Activate += new EventHandler(this.menuItem_Undo_Activate); this.menuItem_Redo.Shortcut = Shortcut.CtrlShiftZ; this.menuItem_Redo.Text = "MENUITEM_EDIT_REDO"; this.menuItem_Redo.Activate += new EventHandler(this.menuItem_Redo_Activate); this.menuBarItem2.Items.AddRange(new ToolbarItemBase[] { this.menuItem_viewToolParameters, this.menuItem_viewEditorSettings, this.menuItem_viewContextHelp }); this.menuBarItem2.Text = "MENU_VIEW"; this.menuItem_viewToolParameters.Text = "DOCK_TOOL_PARAMETERS"; this.menuItem_viewToolParameters.Activate += new EventHandler(this.menuItem_viewToolParameters_Activate); this.menuItem_viewEditorSettings.Text = "DOCK_EDITOR_SETTINGS"; this.menuItem_viewEditorSettings.Activate += new EventHandler(this.menuItem_viewEditorSettings_Activate); this.menuItem_viewContextHelp.Text = "DOCK_CONTEXT_HELP"; this.menuItem_viewContextHelp.Activate += new EventHandler(this.menuItem_viewContextHelp_Activate); this.menuBarItem4.Items.AddRange(new ToolbarItemBase[] { this.menuItem_TestIngame }); this.menuBarItem4.Text = "MENU_GAME"; this.menuItem_TestIngame.Shortcut = Shortcut.CtrlG; this.menuItem_TestIngame.Text = "MENUITEM_GAME_TEST_INGAME"; this.menuItem_TestIngame.Activate += new EventHandler(this.menuItem_TestIngame_Activate); this.menuBarItem5.Items.AddRange(new ToolbarItemBase[] { this.menuItem_OpenCodeEditor, this.menuItem_DumpMap, this.menuItem_ExtractBigFile, this.menuItem_ExportToPC, this.menuItem_ExportToConsole, this.menuItem_ResetLayout, this.menuItem_PrepareThumbnails, this.menuItem_ReloadEditor, this.menuItem_ImportWorld, this.menuItem_ObjectAdmin }); this.menuBarItem5.Text = "MENU_ADVANCED"; this.menuItem_OpenCodeEditor.Text = "*Code Editor"; this.menuItem_OpenCodeEditor.Activate += new EventHandler(this.menuItem_OpenCodeEditor_Activate); this.menuItem_DumpMap.BeginGroup = true; this.menuItem_DumpMap.Text = "*Dump map"; this.menuItem_DumpMap.Activate += new EventHandler(this.menuItem_DumpMap_Activate); this.menuItem_ExtractBigFile.Text = "*Extract Bigfile"; this.menuItem_ExtractBigFile.Activate += new EventHandler(this.menuItem_ExtractBigFile_Activate); this.menuItem_ExportToPC.BeginGroup = true; this.menuItem_ExportToPC.Text = "*Export to PC"; this.menuItem_ExportToPC.Activate += new EventHandler(this.menuItem_ExportToPC_Activate); this.menuItem_ExportToConsole.Text = "*Export to Console"; this.menuItem_ExportToConsole.Activate += new EventHandler(this.menuItem_ExportToConsole_Activate); this.menuItem_ResetLayout.Text = "MENUITEM_ADVANCED_RESET_LAYOUT"; this.menuItem_ResetLayout.Activate += new EventHandler(this.menuItem_ResetLayout_Activate); this.menuItem_PrepareThumbnails.BeginGroup = true; this.menuItem_PrepareThumbnails.Text = "*Prepare thumbnails"; this.menuItem_PrepareThumbnails.Activate += new EventHandler(this.menuItem_PrepareThumbnails_Activate); this.menuItem_ReloadEditor.BeginGroup = true; this.menuItem_ReloadEditor.Text = "*Reload editor DLL"; this.menuItem_ReloadEditor.Activate += new EventHandler(this.menuItem_ReloadEditor_Activate); this.menuItem_ImportWorld.BeginGroup = true; this.menuItem_ImportWorld.Text = "*Import world"; this.menuItem_ImportWorld.Activate += new EventHandler(this.menuItem_ImportWorld_Activate); this.menuItem_ObjectAdmin.Text = "*Object admin"; this.menuItem_ObjectAdmin.Activate += new EventHandler(this.menuItem_ObjectAdmin_Activate); this.menuBarItem6.Items.AddRange(new ToolbarItemBase[] { this.menuItem_visitWebsite, this.menuItem_about }); this.menuBarItem6.Text = "MENU_HELP"; this.menuItem_visitWebsite.Text = "MENUITEM_HELP_VISIT_WEBSITE"; this.menuItem_visitWebsite.Activate += new EventHandler(this.menuItem_visitWebsite_Activate); this.menuItem_about.BeginGroup = true; this.menuItem_about.Text = "MENUITEM_HELP_ABOUT"; this.menuItem_about.Activate += new EventHandler(this.menuItem_about_Activate); this.toolBarMain.DockLine = 1; this.toolBarMain.FlipLastItem = true; this.toolBarMain.Guid = new Guid("472238c1-4ade-4ff2-ba4f-4429ed30f50f"); this.toolBarMain.Items.AddRange(new ToolbarItemBase[] { this.buttonItem1, this.buttonItem2, this.buttonItem3, this.buttonItem4, this.buttonItem5 }); this.toolBarMain.Location = new Point(2, 23); this.toolBarMain.Name = "toolBarMain"; this.toolBarMain.Size = new Size(146, 26); this.toolBarMain.TabIndex = 1; this.toolBarMain.Text = "TOOLBAR_MAIN"; this.buttonItem1.BuddyMenu = this.menuItem_newMap; this.buttonItem1.Image = Resources.newMap; this.buttonItem2.BuddyMenu = this.menuItem_loadMap; this.buttonItem2.Image = Resources.openMap; this.buttonItem3.BuddyMenu = this.menuItem_saveMap; this.buttonItem3.Image = Resources.save; this.buttonItem4.BeginGroup = true; this.buttonItem4.BuddyMenu = this.menuItem_Undo; this.buttonItem4.Image = Resources.undo; this.buttonItem5.BuddyMenu = this.menuItem_Redo; this.buttonItem5.Image = Resources.redo; this.openMapDialog.DefaultExt = "fc3map"; this.openMapDialog.Filter = "Far Cry 3 maps (*.fc3map)|*.fc3map|All files (*.*)|*.*"; this.openMapDialog.Title = "Open Far Cry 3 map"; this.saveMapDialog.DefaultExt = "fc3map"; this.saveMapDialog.Filter = "Far Cry 3 maps (*.fc3map)|*.fc3map|All files (*.*)|*.*"; this.saveMapDialog.Title = "Save Far Cry 3 map"; this.timerUIUpdate.Enabled = true; this.timerUIUpdate.Tick += new EventHandler(this.timerUIUpdate_Tick); this.statusBar.ContextMenuStrip = this.statusBarContextMenu; this.statusBar.Items.AddRange(new ToolStripItem[] { this.statusCaption, this.statusBarCameraSpeed, this.statusBarCameraPos, this.statusBarCursorPos, this.statusBarMemoryUsage, this.statusBarObjectUsage, this.statusBarFpsItem }); this.statusBar.Location = new Point(0, 641); this.statusBar.Name = "statusBar"; this.statusBar.Size = new Size(973, 22); this.statusBar.TabIndex = 7; this.statusBar.Text = "statusStrip1"; this.statusBarContextMenu.Items.AddRange(new ToolStripItem[] { this.whatsThisToolStripMenuItem }); this.statusBarContextMenu.Name = "statusBarContextMenu"; this.statusBarContextMenu.Size = new Size(179, 26); this.statusBarContextMenu.Opening += new CancelEventHandler(this.statusBarContextMenu_Opening); this.whatsThisToolStripMenuItem.Name = "whatsThisToolStripMenuItem"; this.whatsThisToolStripMenuItem.Size = new Size(178, 22); this.whatsThisToolStripMenuItem.Text = "HELP_WHATS_THIS"; this.whatsThisToolStripMenuItem.Click += new EventHandler(this.whatsThisToolStripMenuItem_Click); this.statusCaption.ImageAlign = ContentAlignment.MiddleLeft; this.statusCaption.Name = "statusCaption"; this.statusCaption.Size = new Size(408, 17); this.statusCaption.Spring = true; this.statusCaption.Text = "Ready"; this.statusCaption.TextAlign = ContentAlignment.MiddleLeft; this.statusBarCameraSpeed.AutoSize = false; this.statusBarCameraSpeed.DropDown = this.cameraSpeedStrip; this.statusBarCameraSpeed.Image = Resources.speed; this.statusBarCameraSpeed.ImageAlign = ContentAlignment.MiddleLeft; this.statusBarCameraSpeed.ImageTransparentColor = Color.Magenta; this.statusBarCameraSpeed.Name = "statusBarCameraSpeed"; this.statusBarCameraSpeed.Size = new Size(55, 20); this.statusBarCameraSpeed.Text = "0"; this.statusBarCameraSpeed.TextAlign = ContentAlignment.MiddleLeft; this.cameraSpeedStrip.Name = "cameraSpeedStrip"; this.cameraSpeedStrip.OwnerItem = this.statusBarCameraSpeed; this.cameraSpeedStrip.ShowImageMargin = false; this.cameraSpeedStrip.Size = new Size(36, 4); this.statusBarCameraPos.AutoSize = false; this.statusBarCameraPos.Image = Resources.camera; this.statusBarCameraPos.ImageAlign = ContentAlignment.MiddleLeft; this.statusBarCameraPos.Name = "statusBarCameraPos"; this.statusBarCameraPos.Size = new Size(150, 17); this.statusBarCameraPos.Text = "(0, 0, 0)"; this.statusBarCameraPos.TextAlign = ContentAlignment.MiddleLeft; this.statusBarCursorPos.AutoSize = false; this.statusBarCursorPos.Image = Resources.cursor; this.statusBarCursorPos.ImageAlign = ContentAlignment.MiddleLeft; this.statusBarCursorPos.Name = "statusBarCursorPos"; this.statusBarCursorPos.Size = new Size(150, 17); this.statusBarCursorPos.Text = "(0, 0, 0)"; this.statusBarCursorPos.TextAlign = ContentAlignment.MiddleLeft; this.statusBarMemoryUsage.AutoSize = false; this.statusBarMemoryUsage.Image = Resources.MemoryUsage; this.statusBarMemoryUsage.ImageAlign = ContentAlignment.MiddleLeft; this.statusBarMemoryUsage.Name = "statusBarMemoryUsage"; this.statusBarMemoryUsage.Size = new Size(60, 17); this.statusBarMemoryUsage.Text = "0"; this.statusBarMemoryUsage.TextAlign = ContentAlignment.MiddleLeft; this.statusBarObjectUsage.AutoSize = false; this.statusBarObjectUsage.Image = Resources.ObjectUsage; this.statusBarObjectUsage.ImageAlign = ContentAlignment.MiddleLeft; this.statusBarObjectUsage.Name = "statusBarObjectUsage"; this.statusBarObjectUsage.Size = new Size(60, 17); this.statusBarObjectUsage.Text = "0"; this.statusBarObjectUsage.TextAlign = ContentAlignment.MiddleLeft; this.statusBarFpsItem.AutoSize = false; this.statusBarFpsItem.Image = Resources.frametime; this.statusBarFpsItem.ImageAlign = ContentAlignment.MiddleLeft; this.statusBarFpsItem.Name = "statusBarFpsItem"; this.statusBarFpsItem.Size = new Size(75, 17); this.statusBarFpsItem.Text = "0.0 fps"; this.statusBarFpsItem.TextAlign = ContentAlignment.MiddleLeft; this.folderBrowserDialog.Description = "Select export folder"; this.viewport.BackColor = SystemColors.AppWorkspace; this.viewport.BlockNextKeyRepeats = false; this.viewport.BorderStyle = BorderStyle.Fixed3D; this.viewport.CameraEnabled = true; this.viewport.CaptureMouse = false; this.viewport.CaptureWheel = false; this.viewport.Cursor = Cursors.Default; this.viewport.DefaultCursor = Cursors.Default; this.viewport.Dock = DockStyle.Fill; this.viewport.Location = new Point(0, 49); this.viewport.Name = "viewport"; this.viewport.Size = new Size(973, 592); this.viewport.TabIndex = 5; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(973, 663); base.Controls.Add(this.viewport); base.Controls.Add(this.leftSandBarDock); base.Controls.Add(this.rightSandBarDock); base.Controls.Add(this.bottomSandBarDock); base.Controls.Add(this.topSandBarDock); base.Controls.Add(this.statusBar); base.Name = "MainForm"; this.Text = "Far Cry 3 Editor"; base.Activated += new EventHandler(this.MainForm_Activated); base.Deactivate += new EventHandler(this.MainForm_Deactivate); base.FormClosing += new FormClosingEventHandler(this.MainForm_FormClosing); base.FormClosed += new FormClosedEventHandler(this.MainForm_FormClosed); base.Load += new EventHandler(this.MainForm_Load); base.LocationChanged += new EventHandler(this.MainForm_LocationChanged); base.SizeChanged += new EventHandler(this.MainForm_SizeChanged); this.topSandBarDock.ResumeLayout(false); this.statusBar.ResumeLayout(false); this.statusBar.PerformLayout(); this.statusBarContextMenu.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
/// <summary> /// Constructs the object with all menus. /// </summary> /// <param name="fileMenu">File menu.</param> /// <param name="viewMenu">View menu.</param> /// <param name="qSetMenu">Q Set menu.</param> /// <param name="queueMenu">Queue menu.</param> /// <param name="messageMenu">Message menu.</param> /// <param name="toolsMenu">Tools menu.</param> /// <param name="helpMenu">Help menu.</param> /// <param name="messageBrowserContextMenu">Message browser context menu.</param> /// <param name="qSetContextMenu">Q Set context menu.</param> public PrimaryMenus( MenuBarItem fileMenu, MenuBarItem viewMenu, MenuBarItem qSetMenu, MenuBarItem queueMenu, MenuBarItem messageMenu, MenuBarItem toolsMenu, MenuBarItem helpMenu, ContextMenuBarItem messageBrowserContextMenu, ContextMenuBarItem qSetContextMenu) { if (fileMenu == null) throw new ArgumentNullException("fileMenu"); else if (viewMenu == null) throw new ArgumentNullException("viewMenu"); else if (qSetMenu == null) throw new ArgumentNullException("qSetMenu"); else if (queueMenu == null) throw new ArgumentNullException("queueMenu"); else if (messageMenu == null) throw new ArgumentNullException("messageMenu"); else if (toolsMenu == null) throw new ArgumentNullException("toolsMenu"); else if (helpMenu == null) throw new ArgumentNullException("helpMenu"); else if (messageBrowserContextMenu == null) throw new ArgumentNullException("messageBrowserContextMenu"); _fileMenu = fileMenu; _viewMenu = viewMenu; _qSetMenu = qSetMenu; _queueMenu = queueMenu; _messageMenu = messageMenu; _toolsMenu = toolsMenu; _helpMenu = helpMenu; _messageBrowserContextMenu = messageBrowserContextMenu; _qSetContextMenu = qSetContextMenu; }
private void UpdateMenu() { Hashtable images=new Hashtable(); int imageIndex=0; foreach ( CommandMapping cmd in Editor.Commands ) { if ( cmd.MenuPath == null ) continue; string fullPath=cmd.MenuPath; string[] parts=fullPath.Split('/'); string current=""; int n=parts.Length; ToolbarItemBaseCollection list=menuBar1.Items; MenuItemBase menuNode=null; foreach ( string part in parts ) { n--; if ( part.Length == 0 ) continue; current+="/"+part; if ( n == 0 ) { MenuButtonItem leaf=new MenuButtonItem(part); if ( cmd.ImagePath != null ) { object o=images[cmd.ImagePath]; if ( o != null ) { IntPtr index=(IntPtr) o; leaf.Image=commandImageList.Images[index.ToInt32()]; } else { if ( ControlUtil.AddImage(commandImageList, typeof(XEditNetCtrl), cmd.ImagePath) ) { leaf.Image=commandImageList.Images[imageIndex]; images[cmd.ImagePath]=new IntPtr(imageIndex++); } } } leaf.MergeIndex=0; leaf.MergeAction=ItemMergeAction.Add; if ( cmd.MenuIndex != -1 ) { leaf.MergeIndex=cmd.MenuIndex; leaf.MergeAction=ItemMergeAction.Insert; } leaf.BeginGroup=cmd.MenuBreak; leaf.Tag=cmd; leaf.Activate+=new EventHandler(DispatchCommand); Shortcut[] keys=cmd.Keys; if ( keys.Length > 0 ) { leaf.Shortcut=keys[0]; if ( keys.Length > 1 ) leaf.Shortcut2=keys[1]; } // TODO: M: check for invalid input (button at top level) menuNode.Items.Add(leaf); } else { menuNode=FindItem(list, part); if ( menuNode == null ) { menuNode=new MenuBarItem(part); menuNode.MergeIndex=-1; menuNode.MergeAction=ItemMergeAction.MergeChildren; menuNode.BeginGroup=cmd.MenuBreak; list.Add(menuNode); } } list=menuNode.Items; } } }
/// <summary> /// Initialization. Call this function in form Load handler. /// </summary> /// <param name="owner">Owner form</param> /// <param name="mruItem">Recent Files menu item</param> /// <param name="regPath">Registry Path to keep MRU list</param> public void Initialize(Form owner, MenuButtonItem mruItem, string regPath) { // keep reference to owner form ownerForm = owner; // check if owner form implements IMRUClient interface if ( ! ( owner is IMRUClient ) ) { throw new Exception( "MRUManager: Owner form doesn't implement IMRUClient interface"); } // keep reference to MRU menu item menuItemMRU = mruItem; // keep reference to MRU menu item parent menuItemParent = (MenuBarItem) menuItemMRU.Parent; // keep Registry path adding MRU key to it registryPath = regPath; if ( registryPath.EndsWith("\\") ) registryPath += "MRU"; else registryPath += "\\MRU"; // keep current directory in the time of initialization currentDirectory = Directory.GetCurrentDirectory(); // subscribe to MRU parent Popup event menuItemParent.BeforePopup += new MenuItemBase.BeforePopupEventHandler(this.OnMRUParentPopup); // subscribe to owner form Closing event ownerForm.Closing += new System.ComponentModel.CancelEventHandler(OnOwnerClosing); // load MRU list from Registry LoadMRU(); }
private void InitializeComponent() { this.components = new Container(); this.codeMapViewerDock1 = new CodeMapViewerDock(); this.sandDockManager1 = new SandDockManager(); this.statusStrip1 = new StatusStrip(); this.toolStripStatusLabel1 = new ToolStripStatusLabel(); this.lineStatusLabel = new ToolStripStatusLabel(); this.columnStatusLabel = new ToolStripStatusLabel(); this.sandBarManager1 = new SandBarManager(this.components); this.leftSandBarDock = new ToolBarContainer(); this.rightSandBarDock = new ToolBarContainer(); this.bottomSandBarDock = new ToolBarContainer(); this.topSandBarDock = new ToolBarContainer(); this.menuBar1 = new MenuBar(); this.menuBarItem1 = new MenuBarItem(); this.newFileMenuItem = new MenuButtonItem(); this.openScriptMenuItem = new MenuButtonItem(); this.saveScriptMenuItem = new MenuButtonItem(); this.exitMenuItem = new MenuButtonItem(); this.menuBarItem2 = new MenuBarItem(); this.undoMenuItem = new MenuButtonItem(); this.redoMenuItem = new MenuButtonItem(); this.cutMenuItem = new MenuButtonItem(); this.copyMenuItem = new MenuButtonItem(); this.pasteMenuItem = new MenuButtonItem(); this.menuBarItem3 = new MenuBarItem(); this.mapViewerMenuItem = new MenuButtonItem(); this.menuBarItem4 = new MenuBarItem(); this.runMenuItem = new MenuButtonItem(); this.menuBarItem5 = new MenuBarItem(); this.toolBar1 = new TD.SandBar.ToolBar(); this.buttonItem1 = new ButtonItem(); this.buttonItem3 = new ButtonItem(); this.buttonItem2 = new ButtonItem(); this.buttonItem4 = new ButtonItem(); this.buttonItem5 = new ButtonItem(); this.buttonItem6 = new ButtonItem(); this.buttonItem8 = new ButtonItem(); this.buttonItem9 = new ButtonItem(); this.buttonItem7 = new ButtonItem(); this.openFileDialog = new OpenFileDialog(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.cutToolStripMenuItem = new ToolStripMenuItem(); this.copyToolStripMenuItem = new ToolStripMenuItem(); this.pasteToolStripMenuItem = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.insertFunctionToolStripMenuItem = new ToolStripMenuItem(); this.insertTextureEntryIDToolStripMenuItem = new ToolStripMenuItem(); this.insertCollectionEntryIDToolStripMenuItem = new ToolStripMenuItem(); DockContainer dockContainer = new DockContainer(); dockContainer.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.topSandBarDock.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); base.SuspendLayout(); dockContainer.Controls.Add(this.codeMapViewerDock1); dockContainer.Dock = DockStyle.Right; dockContainer.LayoutSystem = new SplitLayoutSystem(250, 312, Orientation.Horizontal, new LayoutSystemBase[] { new ControlLayoutSystem(250, 312, new DockControl[] { this.codeMapViewerDock1 }, this.codeMapViewerDock1) }); dockContainer.Location = new Point(274, 49); dockContainer.Manager = this.sandDockManager1; dockContainer.Name = "dockContainer1"; dockContainer.Size = new Size(254, 312); dockContainer.TabIndex = 6; this.codeMapViewerDock1.Guid = new Guid("40b77176-f5ac-44ce-a28c-d2f296197e1d"); this.codeMapViewerDock1.Image = null; this.codeMapViewerDock1.Location = new Point(4, 18); this.codeMapViewerDock1.Name = "codeMapViewerDock1"; this.codeMapViewerDock1.Size = new Size(250, 270); this.codeMapViewerDock1.TabIndex = 0; this.codeMapViewerDock1.Text = "Map Viewer"; this.sandDockManager1.DockSystemContainer = this; this.sandDockManager1.OwnerForm = this; this.sandDockManager1.ActiveTabbedDocumentChanged += new EventHandler(this.sandDockManager1_ActiveTabbedDocumentChanged); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel1, this.lineStatusLabel, this.columnStatusLabel }); this.statusStrip1.Location = new Point(0, 361); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(528, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new Size(447, 17); this.toolStripStatusLabel1.Spring = true; this.lineStatusLabel.Name = "lineStatusLabel"; this.lineStatusLabel.Size = new Size(35, 17); this.lineStatusLabel.Text = "Line 0"; this.columnStatusLabel.Name = "columnStatusLabel"; this.columnStatusLabel.Size = new Size(31, 17); this.columnStatusLabel.Text = "Col 0"; this.sandBarManager1.OwnerForm = this; this.leftSandBarDock.Dock = DockStyle.Left; this.leftSandBarDock.Guid = new Guid("f51f9d3c-d12d-4b04-b3c1-dba150a785e6"); this.leftSandBarDock.Location = new Point(0, 49); this.leftSandBarDock.Manager = this.sandBarManager1; this.leftSandBarDock.Name = "leftSandBarDock"; this.leftSandBarDock.Size = new Size(0, 334); this.leftSandBarDock.TabIndex = 2; this.rightSandBarDock.Dock = DockStyle.Right; this.rightSandBarDock.Guid = new Guid("c3e7b6e1-de74-4788-aa84-badf07d4feb3"); this.rightSandBarDock.Location = new Point(528, 49); this.rightSandBarDock.Manager = this.sandBarManager1; this.rightSandBarDock.Name = "rightSandBarDock"; this.rightSandBarDock.Size = new Size(0, 334); this.rightSandBarDock.TabIndex = 3; this.bottomSandBarDock.Dock = DockStyle.Bottom; this.bottomSandBarDock.Guid = new Guid("214365d9-c066-4c57-b2e9-f4e9b8b58fd5"); this.bottomSandBarDock.Location = new Point(0, 383); this.bottomSandBarDock.Manager = this.sandBarManager1; this.bottomSandBarDock.Name = "bottomSandBarDock"; this.bottomSandBarDock.Size = new Size(528, 0); this.bottomSandBarDock.TabIndex = 4; this.topSandBarDock.Controls.Add(this.menuBar1); this.topSandBarDock.Controls.Add(this.toolBar1); this.topSandBarDock.Dock = DockStyle.Top; this.topSandBarDock.Guid = new Guid("31bfec4a-f321-4810-8e02-c4eccad1d7f9"); this.topSandBarDock.Location = new Point(0, 0); this.topSandBarDock.Manager = this.sandBarManager1; this.topSandBarDock.Name = "topSandBarDock"; this.topSandBarDock.Size = new Size(528, 49); this.topSandBarDock.TabIndex = 5; this.menuBar1.Guid = new Guid("0188290c-f307-4042-a99f-b3a2a1517a38"); this.menuBar1.Items.AddRange(new ToolbarItemBase[] { this.menuBarItem1, this.menuBarItem2, this.menuBarItem3, this.menuBarItem4, this.menuBarItem5 }); this.menuBar1.Location = new Point(2, 0); this.menuBar1.Name = "menuBar1"; this.menuBar1.OwnerForm = this; this.menuBar1.Size = new Size(526, 23); this.menuBar1.TabIndex = 0; this.menuBar1.Text = "menuBar1"; this.menuBarItem1.Items.AddRange(new ToolbarItemBase[] { this.newFileMenuItem, this.openScriptMenuItem, this.saveScriptMenuItem, this.exitMenuItem }); this.menuBarItem1.Text = "&File"; this.newFileMenuItem.Image = Resources.newMap; this.newFileMenuItem.Shortcut = Shortcut.CtrlN; this.newFileMenuItem.Text = "New script"; this.newFileMenuItem.Activate += new EventHandler(this.newFileMenuItem_Activate); this.openScriptMenuItem.Image = Resources.openMap; this.openScriptMenuItem.Shortcut = Shortcut.CtrlO; this.openScriptMenuItem.Text = "Open script"; this.openScriptMenuItem.Activate += new EventHandler(this.openScriptMenuItem_Activate); this.saveScriptMenuItem.BeginGroup = true; this.saveScriptMenuItem.Image = Resources.save; this.saveScriptMenuItem.Shortcut = Shortcut.CtrlS; this.saveScriptMenuItem.Text = "Save script"; this.saveScriptMenuItem.Activate += new EventHandler(this.saveScriptMenuItem_Activate); this.exitMenuItem.Text = "Exit"; this.menuBarItem2.Items.AddRange(new ToolbarItemBase[] { this.undoMenuItem, this.redoMenuItem, this.cutMenuItem, this.copyMenuItem, this.pasteMenuItem }); this.menuBarItem2.Text = "&Edit"; this.undoMenuItem.Image = Resources.undo; this.undoMenuItem.Shortcut = Shortcut.CtrlZ; this.undoMenuItem.Text = "&Undo"; this.undoMenuItem.Activate += new EventHandler(this.undoMenuItem_Activate); this.redoMenuItem.Image = Resources.redo; this.redoMenuItem.Shortcut = Shortcut.CtrlShiftZ; this.redoMenuItem.Text = "&Redo"; this.cutMenuItem.BeginGroup = true; this.cutMenuItem.Image = Resources.cut; this.cutMenuItem.Shortcut = Shortcut.CtrlX; this.cutMenuItem.Text = "C&ut"; this.cutMenuItem.Activate += new EventHandler(this.cutMenuItem_Activate); this.copyMenuItem.Image = Resources.copy; this.copyMenuItem.Shortcut = Shortcut.CtrlC; this.copyMenuItem.Text = "&Copy"; this.copyMenuItem.Activate += new EventHandler(this.copyMenuItem_Activate); this.pasteMenuItem.Image = Resources.paste; this.pasteMenuItem.Shortcut = Shortcut.CtrlV; this.pasteMenuItem.Text = "&Paste"; this.pasteMenuItem.Activate += new EventHandler(this.pasteMenuItem_Activate); this.menuBarItem3.Items.AddRange(new ToolbarItemBase[] { this.mapViewerMenuItem }); this.menuBarItem3.Text = "&View"; this.mapViewerMenuItem.Text = "Map Viewer"; this.mapViewerMenuItem.Activate += new EventHandler(this.mapViewerMenuItem_Activate); this.menuBarItem4.Items.AddRange(new ToolbarItemBase[] { this.runMenuItem }); this.menuBarItem4.MdiWindowList = true; this.menuBarItem4.Text = "&Script"; this.runMenuItem.Image = Resources.PlayHS; this.runMenuItem.Shortcut = Shortcut.F5; this.runMenuItem.Text = "&Run"; this.runMenuItem.Activate += new EventHandler(this.runMenuItem_Activate); this.menuBarItem5.Text = "&Help"; this.toolBar1.DockLine = 1; this.toolBar1.Guid = new Guid("46756475-373b-4e41-8b89-f8ab1b41c370"); this.toolBar1.Items.AddRange(new ToolbarItemBase[] { this.buttonItem1, this.buttonItem3, this.buttonItem2, this.buttonItem4, this.buttonItem5, this.buttonItem6, this.buttonItem8, this.buttonItem9, this.buttonItem7 }); this.toolBar1.Location = new Point(2, 23); this.toolBar1.Name = "toolBar1"; this.toolBar1.Size = new Size(252, 26); this.toolBar1.TabIndex = 1; this.toolBar1.Text = "toolBar1"; this.buttonItem1.BuddyMenu = this.newFileMenuItem; this.buttonItem1.Image = Resources.newMap; this.buttonItem3.BuddyMenu = this.openScriptMenuItem; this.buttonItem3.Image = Resources.openMap; this.buttonItem2.BuddyMenu = this.saveScriptMenuItem; this.buttonItem2.Image = Resources.save; this.buttonItem4.BeginGroup = true; this.buttonItem4.BuddyMenu = this.cutMenuItem; this.buttonItem4.Image = Resources.cut; this.buttonItem5.BuddyMenu = this.copyMenuItem; this.buttonItem5.Image = Resources.copy; this.buttonItem6.BuddyMenu = this.pasteMenuItem; this.buttonItem6.Image = Resources.paste; this.buttonItem8.BeginGroup = true; this.buttonItem8.BuddyMenu = this.undoMenuItem; this.buttonItem8.Image = Resources.undo; this.buttonItem9.BuddyMenu = this.redoMenuItem; this.buttonItem9.Image = Resources.redo; this.buttonItem7.BeginGroup = true; this.buttonItem7.BuddyMenu = this.runMenuItem; this.buttonItem7.Image = Resources.PlayHS; this.openFileDialog.DefaultExt = "lua"; this.openFileDialog.FileName = "openFileDialog1"; this.openFileDialog.Filter = "Far Cry 2 script files (*.lua)|*.lua|All files (*.*)|*.*"; this.openFileDialog.Title = "Open script"; this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.cutToolStripMenuItem, this.copyToolStripMenuItem, this.pasteToolStripMenuItem, this.toolStripSeparator1, this.insertFunctionToolStripMenuItem, this.insertTextureEntryIDToolStripMenuItem, this.insertCollectionEntryIDToolStripMenuItem }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(194, 164); this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; this.cutToolStripMenuItem.Size = new Size(193, 22); this.cutToolStripMenuItem.Text = "Cut"; this.cutToolStripMenuItem.Click += new EventHandler(this.cutToolStripMenuItem_Click); this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.copyToolStripMenuItem.Size = new Size(193, 22); this.copyToolStripMenuItem.Text = "Copy"; this.copyToolStripMenuItem.Click += new EventHandler(this.copyToolStripMenuItem_Click); this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; this.pasteToolStripMenuItem.Size = new Size(193, 22); this.pasteToolStripMenuItem.Text = "Paste"; this.pasteToolStripMenuItem.Click += new EventHandler(this.pasteToolStripMenuItem_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(190, 6); this.insertFunctionToolStripMenuItem.Name = "insertFunctionToolStripMenuItem"; this.insertFunctionToolStripMenuItem.Size = new Size(193, 22); this.insertFunctionToolStripMenuItem.Text = "Insert function"; this.insertTextureEntryIDToolStripMenuItem.Name = "insertTextureEntryIDToolStripMenuItem"; this.insertTextureEntryIDToolStripMenuItem.Size = new Size(193, 22); this.insertTextureEntryIDToolStripMenuItem.Text = "Insert texture entry ID"; this.insertCollectionEntryIDToolStripMenuItem.Name = "insertCollectionEntryIDToolStripMenuItem"; this.insertCollectionEntryIDToolStripMenuItem.Size = new Size(193, 22); this.insertCollectionEntryIDToolStripMenuItem.Text = "Insert collection entry ID"; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(528, 383); base.Controls.Add(dockContainer); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.leftSandBarDock); base.Controls.Add(this.rightSandBarDock); base.Controls.Add(this.bottomSandBarDock); base.Controls.Add(this.topSandBarDock); base.Name = "CodeEditor"; this.Text = "Far Cry 2 Script Editor"; dockContainer.ResumeLayout(false); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.topSandBarDock.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.menuBarItem1 = new TD.SandBar.MenuBarItem(); this.menuBarItem2 = new TD.SandBar.MenuBarItem(); this.menuBarItem3 = new TD.SandBar.MenuBarItem(); this.menuBarItem4 = new TD.SandBar.MenuBarItem(); this.menuBarItem5 = new TD.SandBar.MenuBarItem(); this.sandDockManager = new TD.SandDock.SandDockManager(); this.leftSandDock = new TD.SandDock.DockContainer(); this.rightSandDock = new TD.SandDock.DockContainer(); this.dockElementInsert = new TD.SandDock.DockableWindow(); this.elementInsertPanel = new XEditNet.Widgets.ElementInsertPanel(); this.dockElementChange = new TD.SandDock.DockableWindow(); this.elementChangePanel = new XEditNet.Widgets.ElementChangePanel(); this.dockAttributes = new TD.SandDock.DockableWindow(); this.attributeChangePanel = new XEditNet.Widgets.AttributeChangePanel(); this.bottomSandDock = new TD.SandDock.DockContainer(); this.topSandDock = new TD.SandDock.DockContainer(); this.menuBar1 = new TD.SandBar.MenuBar(); this.menuBarItem6 = new TD.SandBar.MenuBarItem(); this.menuFileSave = new TD.SandBar.MenuButtonItem(); this.menuButtonItem1 = new TD.SandBar.MenuButtonItem(); this.menuBarItem7 = new TD.SandBar.MenuBarItem(); this.menuButtonItem2 = new TD.SandBar.MenuButtonItem(); this.menuBarItem8 = new TD.SandBar.MenuBarItem(); this.menuButtonItem3 = new TD.SandBar.MenuButtonItem(); this.toolBar1 = new TD.SandBar.ToolBar(); this.toolBar2 = new TD.SandBar.ToolBar(); this.buttonItem1 = new TD.SandBar.ButtonItem(); this.quickFixBar = new TD.SandBar.ContainerBar(); this.containerBarClientPanel1 = new TD.SandBar.ContainerBarClientPanel(); this.quickFixPanel = new XEditNet.Widgets.QuickFixPanel(); this.quickFixImageList = new System.Windows.Forms.ImageList(this.components); this.quickFixPreceeding = new TD.SandBar.ButtonItem(); this.quickFixFollowing = new TD.SandBar.ButtonItem(); this.commandImageList = new System.Windows.Forms.ImageList(this.components); this.rightSandDock.SuspendLayout(); this.dockElementInsert.SuspendLayout(); this.dockElementChange.SuspendLayout(); this.dockAttributes.SuspendLayout(); this.quickFixBar.SuspendLayout(); this.containerBarClientPanel1.SuspendLayout(); this.SuspendLayout(); // // menuBarItem1 // this.menuBarItem1.Text = "&File"; // // menuBarItem2 // this.menuBarItem2.Text = "&Edit"; // // menuBarItem3 // this.menuBarItem3.Text = "&View"; // // menuBarItem4 // this.menuBarItem4.MdiWindowList = true; this.menuBarItem4.Text = "&Window"; // // menuBarItem5 // this.menuBarItem5.Text = "&Help"; // // sandDockManager // this.sandDockManager.OwnerForm = this; this.sandDockManager.Renderer = new TD.SandDock.Rendering.Office2003Renderer(); // // leftSandDock // this.leftSandDock.Dock = System.Windows.Forms.DockStyle.Left; this.leftSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400); this.leftSandDock.Location = new System.Drawing.Point(0, 22); this.leftSandDock.Manager = this.sandDockManager; this.leftSandDock.Name = "leftSandDock"; this.leftSandDock.Size = new System.Drawing.Size(0, 480); this.leftSandDock.TabIndex = 0; // // rightSandDock // this.rightSandDock.Controls.Add(this.dockElementInsert); this.rightSandDock.Controls.Add(this.dockElementChange); this.rightSandDock.Controls.Add(this.dockAttributes); this.rightSandDock.Dock = System.Windows.Forms.DockStyle.Right; this.rightSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400, System.Windows.Forms.Orientation.Horizontal, new TD.SandDock.LayoutSystemBase[] { new TD.SandDock.ControlLayoutSystem(212, 238, new TD.SandDock.DockableWindow[] { this.dockElementInsert, this.dockElementChange}, this.dockElementInsert), new TD.SandDock.ControlLayoutSystem(212, 238, new TD.SandDock.DockableWindow[] { this.dockAttributes}, this.dockAttributes)}); this.rightSandDock.Location = new System.Drawing.Point(600, 22); this.rightSandDock.Manager = this.sandDockManager; this.rightSandDock.Name = "rightSandDock"; this.rightSandDock.Size = new System.Drawing.Size(216, 480); this.rightSandDock.TabIndex = 1; // // dockElementInsert // this.dockElementInsert.Controls.Add(this.elementInsertPanel); this.dockElementInsert.Guid = new System.Guid("63fe64f8-5444-45cb-b17d-17f8baf0c91d"); this.dockElementInsert.Location = new System.Drawing.Point(4, 25); this.dockElementInsert.Name = "dockElementInsert"; this.dockElementInsert.Size = new System.Drawing.Size(212, 190); this.dockElementInsert.TabIndex = 1; this.dockElementInsert.Text = "Insert"; // // elementInsertPanel // this.elementInsertPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.elementInsertPanel.Location = new System.Drawing.Point(0, 0); this.elementInsertPanel.Name = "elementInsertPanel"; this.elementInsertPanel.Size = new System.Drawing.Size(212, 190); this.elementInsertPanel.TabIndex = 0; // // dockElementChange // this.dockElementChange.Controls.Add(this.elementChangePanel); this.dockElementChange.Guid = new System.Guid("cb2f6fbf-41de-4588-a08b-f4f00d505fa7"); this.dockElementChange.Location = new System.Drawing.Point(4, 25); this.dockElementChange.Name = "dockElementChange"; this.dockElementChange.Size = new System.Drawing.Size(212, 190); this.dockElementChange.TabIndex = 1; this.dockElementChange.Text = "Change"; // // elementChangePanel // this.elementChangePanel.Dock = System.Windows.Forms.DockStyle.Fill; this.elementChangePanel.Location = new System.Drawing.Point(0, 0); this.elementChangePanel.Name = "elementChangePanel"; this.elementChangePanel.Size = new System.Drawing.Size(212, 190); this.elementChangePanel.TabIndex = 0; // // dockAttributes // this.dockAttributes.Controls.Add(this.attributeChangePanel); this.dockAttributes.Guid = new System.Guid("7a4f064f-d569-4ab2-8133-ca0b6b8c4151"); this.dockAttributes.Location = new System.Drawing.Point(4, 267); this.dockAttributes.Name = "dockAttributes"; this.dockAttributes.Size = new System.Drawing.Size(212, 190); this.dockAttributes.TabIndex = 2; this.dockAttributes.Text = "Attributes"; // // attributeChangePanel // this.attributeChangePanel.Dock = System.Windows.Forms.DockStyle.Fill; this.attributeChangePanel.Location = new System.Drawing.Point(0, 0); this.attributeChangePanel.Name = "attributeChangePanel"; this.attributeChangePanel.Size = new System.Drawing.Size(212, 190); this.attributeChangePanel.TabIndex = 0; // // bottomSandDock // this.bottomSandDock.Dock = System.Windows.Forms.DockStyle.Bottom; this.bottomSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400); this.bottomSandDock.Location = new System.Drawing.Point(0, 502); this.bottomSandDock.Manager = this.sandDockManager; this.bottomSandDock.Name = "bottomSandDock"; this.bottomSandDock.Size = new System.Drawing.Size(816, 0); this.bottomSandDock.TabIndex = 2; // // topSandDock // this.topSandDock.Dock = System.Windows.Forms.DockStyle.Top; this.topSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400); this.topSandDock.Location = new System.Drawing.Point(0, 22); this.topSandDock.Manager = this.sandDockManager; this.topSandDock.Name = "topSandDock"; this.topSandDock.Size = new System.Drawing.Size(816, 0); this.topSandDock.TabIndex = 3; // // menuBar1 // this.menuBar1.AllowMerge = true; this.menuBar1.Guid = new System.Guid("dc0a091b-fb9a-4a33-8bf0-a9a24af4064c"); this.menuBar1.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuBarItem6, this.menuBarItem7, this.menuBarItem8}); this.menuBar1.Location = new System.Drawing.Point(232, 22); this.menuBar1.Name = "menuBar1"; this.menuBar1.OwnerForm = this; this.menuBar1.Size = new System.Drawing.Size(368, 22); this.menuBar1.TabIndex = 0; this.menuBar1.Text = "menuBar1"; this.menuBar1.Visible = false; // // menuBarItem6 // this.menuBarItem6.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuFileSave, this.menuButtonItem1}); this.menuBarItem6.Text = "&File"; // // menuFileSave // this.menuFileSave.BeginGroup = true; this.menuFileSave.MergeAction = TD.SandBar.ItemMergeAction.Insert; this.menuFileSave.MergeIndex = 2; this.menuFileSave.Text = "Save"; this.menuFileSave.Activate += new System.EventHandler(this.SaveFile); // // menuButtonItem1 // this.menuButtonItem1.MergeAction = TD.SandBar.ItemMergeAction.Insert; this.menuButtonItem1.MergeIndex = 3; this.menuButtonItem1.Text = "&Close"; this.menuButtonItem1.Activate += new System.EventHandler(this.CloseFile); // // menuBarItem7 // this.menuBarItem7.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuButtonItem2}); this.menuBarItem7.Text = "&Edit"; // // menuButtonItem2 // this.menuButtonItem2.MergeAction = TD.SandBar.ItemMergeAction.Add; this.menuButtonItem2.MergeIndex = 0; this.menuButtonItem2.Text = "&Test"; // // menuBarItem8 // this.menuBarItem8.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuButtonItem3}); this.menuBarItem8.Text = "&View"; // // menuButtonItem3 // this.menuButtonItem3.MergeAction = TD.SandBar.ItemMergeAction.Add; this.menuButtonItem3.MergeIndex = 0; this.menuButtonItem3.Text = "&ViewTest"; // // toolBar1 // this.toolBar1.DockLine = 1; this.toolBar1.Guid = new System.Guid("88196026-7bd7-4954-85b7-34999dcd37cd"); this.toolBar1.Location = new System.Drawing.Point(2, 24); this.toolBar1.Name = "toolBar1"; this.toolBar1.Size = new System.Drawing.Size(24, 18); this.toolBar1.TabIndex = 1; this.toolBar1.Text = "toolBar1"; // // toolBar2 // this.toolBar2.Guid = new System.Guid("458f1dcc-720e-4fb6-b794-41d5a9f186e2"); this.toolBar2.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.buttonItem1}); this.toolBar2.Location = new System.Drawing.Point(0, 0); this.toolBar2.Name = "toolBar2"; this.toolBar2.Size = new System.Drawing.Size(816, 22); this.toolBar2.TabIndex = 4; this.toolBar2.Text = ""; this.toolBar2.Visible = false; // // buttonItem1 // this.buttonItem1.MergeAction = TD.SandBar.ItemMergeAction.Insert; this.buttonItem1.MergeIndex = 2; this.buttonItem1.Text = "xxxx"; // // quickFixBar // this.quickFixBar.AddRemoveButtonsVisible = false; this.quickFixBar.AllowHorizontalDock = false; this.quickFixBar.Controls.Add(this.containerBarClientPanel1); this.quickFixBar.Dock = System.Windows.Forms.DockStyle.Left; this.quickFixBar.Flow = TD.SandBar.ToolBarLayout.Horizontal; this.quickFixBar.Guid = new System.Guid("0e1e9ede-d2fe-4307-a683-d2e3ea4f4e5f"); this.quickFixBar.ImageList = this.quickFixImageList; this.quickFixBar.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.quickFixPreceeding, this.quickFixFollowing}); this.quickFixBar.Location = new System.Drawing.Point(0, 22); this.quickFixBar.Name = "quickFixBar"; this.quickFixBar.Size = new System.Drawing.Size(232, 480); this.quickFixBar.TabIndex = 5; this.quickFixBar.Text = "Quick Fix"; // // containerBarClientPanel1 // this.containerBarClientPanel1.Controls.Add(this.quickFixPanel); this.containerBarClientPanel1.Location = new System.Drawing.Point(2, 45); this.containerBarClientPanel1.Name = "containerBarClientPanel1"; this.containerBarClientPanel1.Size = new System.Drawing.Size(228, 433); this.containerBarClientPanel1.TabIndex = 0; // // quickFixPanel // this.quickFixPanel.BackColor = System.Drawing.Color.Transparent; this.quickFixPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.quickFixPanel.Location = new System.Drawing.Point(0, 0); this.quickFixPanel.Name = "quickFixPanel"; this.quickFixPanel.Size = new System.Drawing.Size(228, 433); this.quickFixPanel.TabIndex = 0; this.quickFixPanel.FinishUpdate += new System.EventHandler(this.QuickFixUpdated); // // quickFixImageList // this.quickFixImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.quickFixImageList.ImageSize = new System.Drawing.Size(16, 16); this.quickFixImageList.TransparentColor = System.Drawing.Color.Transparent; // // quickFixPreceeding // this.quickFixPreceeding.ImageIndex = 0; this.quickFixPreceeding.Activate += new System.EventHandler(this.GotoPrecedingError); // // quickFixFollowing // this.quickFixFollowing.ImageIndex = 1; this.quickFixFollowing.Activate += new System.EventHandler(this.GotoFollowingError); // // commandImageList // this.commandImageList.ImageSize = new System.Drawing.Size(16, 16); this.commandImageList.TransparentColor = System.Drawing.Color.Transparent; // // XEditNetChildForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(816, 502); this.Controls.Add(this.menuBar1); this.Controls.Add(this.quickFixBar); this.Controls.Add(this.leftSandDock); this.Controls.Add(this.rightSandDock); this.Controls.Add(this.bottomSandDock); this.Controls.Add(this.topSandDock); this.Controls.Add(this.toolBar2); this.Name = "XEditNetChildForm"; this.Text = "XEditNetChildForm"; this.rightSandDock.ResumeLayout(false); this.dockElementInsert.ResumeLayout(false); this.dockElementChange.ResumeLayout(false); this.dockAttributes.ResumeLayout(false); this.quickFixBar.ResumeLayout(false); this.containerBarClientPanel1.ResumeLayout(false); this.ResumeLayout(false); }