From dd1d95f2b214ab63d6545cc7565e9aa12fdd42d4 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Fri, 18 Jul 2014 16:36:55 -0400 Subject: [PATCH] Various updates to Unreal Engine editor --- ...portTableEntryPropertiesDialog.Designer.cs | 356 ++++++++++++++++++ .../ExportTableEntryPropertiesDialog.cs | 17 + .../ExportTableEntryPropertiesDialog.resx | 120 ++++++ .../UnrealPackageEditor.Designer.cs | 134 +++---- .../UnrealEngine/UnrealPackageEditor.cs | 37 ++ ...alEngine.UserInterface.WindowsForms.csproj | 9 + 6 files changed, 610 insertions(+), 63 deletions(-) create mode 100644 CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.Designer.cs create mode 100644 CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.cs create mode 100644 CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.resx diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.Designer.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.Designer.cs new file mode 100644 index 00000000..03216770 --- /dev/null +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.Designer.cs @@ -0,0 +1,356 @@ +namespace UniversalEditor.Dialogs.UnrealEngine +{ + partial class ExportTableEntryPropertiesDialog + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.lblObjectName = new System.Windows.Forms.Label(); + this.txtObjectName = new System.Windows.Forms.TextBox(); + this.lblParentObjectName = new System.Windows.Forms.Label(); + this.cboParentObjectName = new System.Windows.Forms.ComboBox(); + this.lblClassName = new System.Windows.Forms.Label(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.fraFlags = new System.Windows.Forms.GroupBox(); + this.cmdBrowse = new System.Windows.Forms.Button(); + this.lblSourceData = new System.Windows.Forms.Label(); + this.txtSourceData = new System.Windows.Forms.TextBox(); + this.cmdCancel = new System.Windows.Forms.Button(); + this.cmdOK = new System.Windows.Forms.Button(); + this.chkTransactional = new System.Windows.Forms.CheckBox(); + this.chkUnreachable = new System.Windows.Forms.CheckBox(); + this.chkPublic = new System.Windows.Forms.CheckBox(); + this.chkImporting = new System.Windows.Forms.CheckBox(); + this.chkExporting = new System.Windows.Forms.CheckBox(); + this.chkSourceModified = new System.Windows.Forms.CheckBox(); + this.chkGarbageCollect = new System.Windows.Forms.CheckBox(); + this.chkRequireLoad = new System.Windows.Forms.CheckBox(); + this.chkHighlightName = new System.Windows.Forms.CheckBox(); + this.chkRemappedName = new System.Windows.Forms.CheckBox(); + this.chkSuppressed = new System.Windows.Forms.CheckBox(); + this.fraFlags.SuspendLayout(); + this.SuspendLayout(); + // + // lblObjectName + // + this.lblObjectName.AutoSize = true; + this.lblObjectName.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.lblObjectName.Location = new System.Drawing.Point(12, 15); + this.lblObjectName.Name = "lblObjectName"; + this.lblObjectName.Size = new System.Drawing.Size(70, 13); + this.lblObjectName.TabIndex = 0; + this.lblObjectName.Text = "Object &name:"; + // + // txtObjectName + // + this.txtObjectName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtObjectName.Location = new System.Drawing.Point(120, 12); + this.txtObjectName.Name = "txtObjectName"; + this.txtObjectName.Size = new System.Drawing.Size(260, 20); + this.txtObjectName.TabIndex = 1; + // + // lblParentObjectName + // + this.lblParentObjectName.AutoSize = true; + this.lblParentObjectName.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.lblParentObjectName.Location = new System.Drawing.Point(12, 41); + this.lblParentObjectName.Name = "lblParentObjectName"; + this.lblParentObjectName.Size = new System.Drawing.Size(102, 13); + this.lblParentObjectName.TabIndex = 2; + this.lblParentObjectName.Text = "&Parent object name:"; + // + // cboParentObjectName + // + this.cboParentObjectName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.cboParentObjectName.FormattingEnabled = true; + this.cboParentObjectName.Location = new System.Drawing.Point(120, 38); + this.cboParentObjectName.Name = "cboParentObjectName"; + this.cboParentObjectName.Size = new System.Drawing.Size(260, 21); + this.cboParentObjectName.TabIndex = 3; + // + // lblClassName + // + this.lblClassName.AutoSize = true; + this.lblClassName.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.lblClassName.Location = new System.Drawing.Point(12, 68); + this.lblClassName.Name = "lblClassName"; + this.lblClassName.Size = new System.Drawing.Size(64, 13); + this.lblClassName.TabIndex = 4; + this.lblClassName.Text = "&Class name:"; + // + // comboBox1 + // + this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(120, 65); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(260, 21); + this.comboBox1.TabIndex = 5; + // + // fraFlags + // + this.fraFlags.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.fraFlags.Controls.Add(this.chkSuppressed); + this.fraFlags.Controls.Add(this.chkRemappedName); + this.fraFlags.Controls.Add(this.chkHighlightName); + this.fraFlags.Controls.Add(this.chkRequireLoad); + this.fraFlags.Controls.Add(this.chkExporting); + this.fraFlags.Controls.Add(this.chkImporting); + this.fraFlags.Controls.Add(this.chkGarbageCollect); + this.fraFlags.Controls.Add(this.chkSourceModified); + this.fraFlags.Controls.Add(this.chkPublic); + this.fraFlags.Controls.Add(this.chkUnreachable); + this.fraFlags.Controls.Add(this.chkTransactional); + this.fraFlags.Location = new System.Drawing.Point(12, 121); + this.fraFlags.Name = "fraFlags"; + this.fraFlags.Size = new System.Drawing.Size(368, 188); + this.fraFlags.TabIndex = 9; + this.fraFlags.TabStop = false; + this.fraFlags.Text = "Flags"; + // + // cmdBrowse + // + this.cmdBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.cmdBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdBrowse.Location = new System.Drawing.Point(305, 92); + this.cmdBrowse.Name = "cmdBrowse"; + this.cmdBrowse.Size = new System.Drawing.Size(75, 23); + this.cmdBrowse.TabIndex = 8; + this.cmdBrowse.Text = "&Browse..."; + this.cmdBrowse.UseVisualStyleBackColor = true; + // + // lblSourceData + // + this.lblSourceData.AutoSize = true; + this.lblSourceData.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.lblSourceData.Location = new System.Drawing.Point(12, 97); + this.lblSourceData.Name = "lblSourceData"; + this.lblSourceData.Size = new System.Drawing.Size(68, 13); + this.lblSourceData.TabIndex = 6; + this.lblSourceData.Text = "Source data:"; + // + // txtSourceData + // + this.txtSourceData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtSourceData.Location = new System.Drawing.Point(120, 94); + this.txtSourceData.Name = "txtSourceData"; + this.txtSourceData.ReadOnly = true; + this.txtSourceData.Size = new System.Drawing.Size(179, 20); + this.txtSourceData.TabIndex = 7; + this.txtSourceData.Text = "(0 bytes)"; + // + // cmdCancel + // + this.cmdCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdCancel.Location = new System.Drawing.Point(305, 315); + this.cmdCancel.Name = "cmdCancel"; + this.cmdCancel.Size = new System.Drawing.Size(75, 23); + this.cmdCancel.TabIndex = 11; + this.cmdCancel.Text = "Cancel"; + this.cmdCancel.UseVisualStyleBackColor = true; + // + // cmdOK + // + this.cmdOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.cmdOK.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdOK.Location = new System.Drawing.Point(224, 315); + this.cmdOK.Name = "cmdOK"; + this.cmdOK.Size = new System.Drawing.Size(75, 23); + this.cmdOK.TabIndex = 10; + this.cmdOK.Text = "&OK"; + this.cmdOK.UseVisualStyleBackColor = true; + // + // chkTransactional + // + this.chkTransactional.AutoSize = true; + this.chkTransactional.Location = new System.Drawing.Point(22, 19); + this.chkTransactional.Name = "chkTransactional"; + this.chkTransactional.Size = new System.Drawing.Size(90, 17); + this.chkTransactional.TabIndex = 0; + this.chkTransactional.Text = "&Transactional"; + this.chkTransactional.UseVisualStyleBackColor = true; + // + // chkUnreachable + // + this.chkUnreachable.AutoSize = true; + this.chkUnreachable.Location = new System.Drawing.Point(22, 42); + this.chkUnreachable.Name = "chkUnreachable"; + this.chkUnreachable.Size = new System.Drawing.Size(87, 17); + this.chkUnreachable.TabIndex = 0; + this.chkUnreachable.Text = "Un&reachable"; + this.chkUnreachable.UseVisualStyleBackColor = true; + // + // chkPublic + // + this.chkPublic.AutoSize = true; + this.chkPublic.Location = new System.Drawing.Point(22, 65); + this.chkPublic.Name = "chkPublic"; + this.chkPublic.Size = new System.Drawing.Size(55, 17); + this.chkPublic.TabIndex = 0; + this.chkPublic.Text = "P&ublic"; + this.chkPublic.UseVisualStyleBackColor = true; + // + // chkImporting + // + this.chkImporting.AutoSize = true; + this.chkImporting.Location = new System.Drawing.Point(142, 19); + this.chkImporting.Name = "chkImporting"; + this.chkImporting.Size = new System.Drawing.Size(69, 17); + this.chkImporting.TabIndex = 0; + this.chkImporting.Text = "&Importing"; + this.chkImporting.UseVisualStyleBackColor = true; + // + // chkExporting + // + this.chkExporting.AutoSize = true; + this.chkExporting.Location = new System.Drawing.Point(142, 42); + this.chkExporting.Name = "chkExporting"; + this.chkExporting.Size = new System.Drawing.Size(70, 17); + this.chkExporting.TabIndex = 0; + this.chkExporting.Text = "&Exporting"; + this.chkExporting.UseVisualStyleBackColor = true; + // + // chkSourceModified + // + this.chkSourceModified.AutoSize = true; + this.chkSourceModified.Location = new System.Drawing.Point(22, 88); + this.chkSourceModified.Name = "chkSourceModified"; + this.chkSourceModified.Size = new System.Drawing.Size(102, 17); + this.chkSourceModified.TabIndex = 0; + this.chkSourceModified.Text = "Source &modified"; + this.chkSourceModified.UseVisualStyleBackColor = true; + // + // chkGarbageCollect + // + this.chkGarbageCollect.AutoSize = true; + this.chkGarbageCollect.Location = new System.Drawing.Point(22, 111); + this.chkGarbageCollect.Name = "chkGarbageCollect"; + this.chkGarbageCollect.Size = new System.Drawing.Size(101, 17); + this.chkGarbageCollect.TabIndex = 0; + this.chkGarbageCollect.Text = "Gar&bage collect"; + this.chkGarbageCollect.UseVisualStyleBackColor = true; + // + // chkRequireLoad + // + this.chkRequireLoad.AutoSize = true; + this.chkRequireLoad.Location = new System.Drawing.Point(142, 65); + this.chkRequireLoad.Name = "chkRequireLoad"; + this.chkRequireLoad.Size = new System.Drawing.Size(86, 17); + this.chkRequireLoad.TabIndex = 0; + this.chkRequireLoad.Text = "Re&quire load"; + this.chkRequireLoad.UseVisualStyleBackColor = true; + // + // chkHighlightName + // + this.chkHighlightName.AutoSize = true; + this.chkHighlightName.Location = new System.Drawing.Point(142, 88); + this.chkHighlightName.Name = "chkHighlightName"; + this.chkHighlightName.Size = new System.Drawing.Size(174, 17); + this.chkHighlightName.TabIndex = 0; + this.chkHighlightName.Text = "&Highlight name/eliminate object"; + this.chkHighlightName.UseVisualStyleBackColor = true; + // + // chkRemappedName + // + this.chkRemappedName.AutoSize = true; + this.chkRemappedName.Location = new System.Drawing.Point(142, 111); + this.chkRemappedName.Name = "chkRemappedName"; + this.chkRemappedName.Size = new System.Drawing.Size(189, 17); + this.chkRemappedName.TabIndex = 0; + this.chkRemappedName.Text = "Remappe&d name/singular function"; + this.chkRemappedName.UseVisualStyleBackColor = true; + // + // chkSuppressed + // + this.chkSuppressed.AutoSize = true; + this.chkSuppressed.Location = new System.Drawing.Point(142, 134); + this.chkSuppressed.Name = "chkSuppressed"; + this.chkSuppressed.Size = new System.Drawing.Size(155, 17); + this.chkSuppressed.TabIndex = 0; + this.chkSuppressed.Text = "&Suppressed/state changed"; + this.chkSuppressed.UseVisualStyleBackColor = true; + // + // ExportTableEntryPropertiesDialog + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(392, 350); + this.Controls.Add(this.cmdOK); + this.Controls.Add(this.cmdCancel); + this.Controls.Add(this.lblSourceData); + this.Controls.Add(this.cmdBrowse); + this.Controls.Add(this.fraFlags); + this.Controls.Add(this.comboBox1); + this.Controls.Add(this.cboParentObjectName); + this.Controls.Add(this.lblClassName); + this.Controls.Add(this.txtSourceData); + this.Controls.Add(this.txtObjectName); + this.Controls.Add(this.lblParentObjectName); + this.Controls.Add(this.lblObjectName); + this.MinimumSize = new System.Drawing.Size(400, 272); + this.Name = "ExportTableEntryPropertiesDialog"; + this.Text = "Export Table Entry Properties"; + this.fraFlags.ResumeLayout(false); + this.fraFlags.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lblObjectName; + private System.Windows.Forms.Label lblParentObjectName; + private System.Windows.Forms.Label lblClassName; + private System.Windows.Forms.GroupBox fraFlags; + private System.Windows.Forms.Button cmdBrowse; + private System.Windows.Forms.Label lblSourceData; + private System.Windows.Forms.Button cmdCancel; + private System.Windows.Forms.Button cmdOK; + internal System.Windows.Forms.TextBox txtObjectName; + internal System.Windows.Forms.ComboBox cboParentObjectName; + internal System.Windows.Forms.ComboBox comboBox1; + internal System.Windows.Forms.TextBox txtSourceData; + private System.Windows.Forms.CheckBox chkTransactional; + private System.Windows.Forms.CheckBox chkUnreachable; + private System.Windows.Forms.CheckBox chkPublic; + private System.Windows.Forms.CheckBox chkExporting; + private System.Windows.Forms.CheckBox chkImporting; + private System.Windows.Forms.CheckBox chkSourceModified; + private System.Windows.Forms.CheckBox chkGarbageCollect; + private System.Windows.Forms.CheckBox chkRequireLoad; + private System.Windows.Forms.CheckBox chkHighlightName; + private System.Windows.Forms.CheckBox chkRemappedName; + private System.Windows.Forms.CheckBox chkSuppressed; + } +} \ No newline at end of file diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.cs new file mode 100644 index 00000000..9c143d73 --- /dev/null +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace UniversalEditor.Dialogs.UnrealEngine +{ + public partial class ExportTableEntryPropertiesDialog : Form + { + public ExportTableEntryPropertiesDialog() + { + InitializeComponent(); + } + } +} diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.resx b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.resx new file mode 100644 index 00000000..7080a7d1 --- /dev/null +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Dialogs/UnrealEngine/ExportTableEntryPropertiesDialog.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.Designer.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.Designer.cs index 3f026d3c..15b22fba 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.Designer.cs +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.Designer.cs @@ -32,10 +32,10 @@ this.tv = new System.Windows.Forms.TreeView(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.pnlExportTable = new System.Windows.Forms.Panel(); - this.button5 = new System.Windows.Forms.Button(); - this.button6 = new System.Windows.Forms.Button(); - this.button7 = new System.Windows.Forms.Button(); - this.button8 = new System.Windows.Forms.Button(); + this.cmdExportTableEntryClear = new System.Windows.Forms.Button(); + this.cmdExportTableEntryRemove = new System.Windows.Forms.Button(); + this.cmdExportTableEntryModify = new System.Windows.Forms.Button(); + this.cmdExportTableEntryAdd = new System.Windows.Forms.Button(); this.lvExportTable = new System.Windows.Forms.ListView(); this.chExportObjectName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chExportObjectParent = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -43,6 +43,8 @@ this.chExportObjectFlags = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chExportObjectOffset = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chExportObjectSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.mnuContextExportTable = new AwesomeControls.CommandBars.CBContextMenu(this.components); + this.mnuExportTableCopyTo = new System.Windows.Forms.ToolStripMenuItem(); this.pnlHeritageTable = new System.Windows.Forms.Panel(); this.button9 = new System.Windows.Forms.Button(); this.button10 = new System.Windows.Forms.Button(); @@ -67,16 +69,14 @@ this.lvNameTable = new System.Windows.Forms.ListView(); this.chName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chFlags = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.mnuContextExportTable = new AwesomeControls.CommandBars.CBContextMenu(this.components); - this.mnuExportTableCopyTo = new System.Windows.Forms.ToolStripMenuItem(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.pnlExportTable.SuspendLayout(); + this.mnuContextExportTable.SuspendLayout(); this.pnlHeritageTable.SuspendLayout(); this.pnlImportTable.SuspendLayout(); this.pnlNameTable.SuspendLayout(); - this.mnuContextExportTable.SuspendLayout(); this.SuspendLayout(); // // tv @@ -113,10 +113,10 @@ // // pnlExportTable // - this.pnlExportTable.Controls.Add(this.button5); - this.pnlExportTable.Controls.Add(this.button6); - this.pnlExportTable.Controls.Add(this.button7); - this.pnlExportTable.Controls.Add(this.button8); + this.pnlExportTable.Controls.Add(this.cmdExportTableEntryClear); + this.pnlExportTable.Controls.Add(this.cmdExportTableEntryRemove); + this.pnlExportTable.Controls.Add(this.cmdExportTableEntryModify); + this.pnlExportTable.Controls.Add(this.cmdExportTableEntryAdd); this.pnlExportTable.Controls.Add(this.lvExportTable); this.pnlExportTable.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlExportTable.Enabled = false; @@ -126,46 +126,53 @@ this.pnlExportTable.TabIndex = 2; this.pnlExportTable.Visible = false; // - // button5 + // cmdExportTableEntryClear // - this.button5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.button5.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.button5.Location = new System.Drawing.Point(306, 3); - this.button5.Name = "button5"; - this.button5.Size = new System.Drawing.Size(75, 23); - this.button5.TabIndex = 1; - this.button5.Text = "&Clear"; - this.button5.UseVisualStyleBackColor = true; + this.cmdExportTableEntryClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.cmdExportTableEntryClear.Enabled = false; + this.cmdExportTableEntryClear.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdExportTableEntryClear.Location = new System.Drawing.Point(306, 3); + this.cmdExportTableEntryClear.Name = "cmdExportTableEntryClear"; + this.cmdExportTableEntryClear.Size = new System.Drawing.Size(75, 23); + this.cmdExportTableEntryClear.TabIndex = 1; + this.cmdExportTableEntryClear.Text = "&Clear"; + this.cmdExportTableEntryClear.UseVisualStyleBackColor = true; + this.cmdExportTableEntryClear.Click += new System.EventHandler(this.cmdExportTableEntryClear_Click); // - // button6 + // cmdExportTableEntryRemove // - this.button6.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.button6.Location = new System.Drawing.Point(165, 3); - this.button6.Name = "button6"; - this.button6.Size = new System.Drawing.Size(75, 23); - this.button6.TabIndex = 1; - this.button6.Text = "&Remove..."; - this.button6.UseVisualStyleBackColor = true; + this.cmdExportTableEntryRemove.Enabled = false; + this.cmdExportTableEntryRemove.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdExportTableEntryRemove.Location = new System.Drawing.Point(165, 3); + this.cmdExportTableEntryRemove.Name = "cmdExportTableEntryRemove"; + this.cmdExportTableEntryRemove.Size = new System.Drawing.Size(75, 23); + this.cmdExportTableEntryRemove.TabIndex = 1; + this.cmdExportTableEntryRemove.Text = "&Remove..."; + this.cmdExportTableEntryRemove.UseVisualStyleBackColor = true; + this.cmdExportTableEntryRemove.Click += new System.EventHandler(this.cmdExportTableEntryRemove_Click); // - // button7 + // cmdExportTableEntryModify // - this.button7.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.button7.Location = new System.Drawing.Point(84, 3); - this.button7.Name = "button7"; - this.button7.Size = new System.Drawing.Size(75, 23); - this.button7.TabIndex = 1; - this.button7.Text = "&Modify..."; - this.button7.UseVisualStyleBackColor = true; + this.cmdExportTableEntryModify.Enabled = false; + this.cmdExportTableEntryModify.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdExportTableEntryModify.Location = new System.Drawing.Point(84, 3); + this.cmdExportTableEntryModify.Name = "cmdExportTableEntryModify"; + this.cmdExportTableEntryModify.Size = new System.Drawing.Size(75, 23); + this.cmdExportTableEntryModify.TabIndex = 1; + this.cmdExportTableEntryModify.Text = "&Modify..."; + this.cmdExportTableEntryModify.UseVisualStyleBackColor = true; + this.cmdExportTableEntryModify.Click += new System.EventHandler(this.cmdExportTableEntryModify_Click); // - // button8 + // cmdExportTableEntryAdd // - this.button8.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.button8.Location = new System.Drawing.Point(3, 3); - this.button8.Name = "button8"; - this.button8.Size = new System.Drawing.Size(75, 23); - this.button8.TabIndex = 1; - this.button8.Text = "&Add..."; - this.button8.UseVisualStyleBackColor = true; + this.cmdExportTableEntryAdd.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cmdExportTableEntryAdd.Location = new System.Drawing.Point(3, 3); + this.cmdExportTableEntryAdd.Name = "cmdExportTableEntryAdd"; + this.cmdExportTableEntryAdd.Size = new System.Drawing.Size(75, 23); + this.cmdExportTableEntryAdd.TabIndex = 1; + this.cmdExportTableEntryAdd.Text = "&Add..."; + this.cmdExportTableEntryAdd.UseVisualStyleBackColor = true; + this.cmdExportTableEntryAdd.Click += new System.EventHandler(this.cmdExportTableEntryAdd_Click); // // lvExportTable // @@ -190,6 +197,7 @@ this.lvExportTable.UseCompatibleStateImageBehavior = false; this.lvExportTable.View = System.Windows.Forms.View.Details; this.lvExportTable.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.lvExportTable_ItemDrag); + this.lvExportTable.SelectedIndexChanged += new System.EventHandler(this.lvExportTable_SelectedIndexChanged); // // chExportObjectName // @@ -220,6 +228,20 @@ // this.chExportObjectSize.Text = "Size"; // + // mnuContextExportTable + // + this.mnuContextExportTable.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.mnuExportTableCopyTo}); + this.mnuContextExportTable.Name = "mnuContextExportTable"; + this.mnuContextExportTable.Size = new System.Drawing.Size(127, 26); + // + // mnuExportTableCopyTo + // + this.mnuExportTableCopyTo.Name = "mnuExportTableCopyTo"; + this.mnuExportTableCopyTo.Size = new System.Drawing.Size(126, 22); + this.mnuExportTableCopyTo.Text = "&Copy To..."; + this.mnuExportTableCopyTo.Click += new System.EventHandler(this.mnuExportTableCopyTo_Click); + // // pnlHeritageTable // this.pnlHeritageTable.Controls.Add(this.button9); @@ -472,20 +494,6 @@ this.chFlags.Text = "Flags"; this.chFlags.Width = 134; // - // mnuContextExportTable - // - this.mnuContextExportTable.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.mnuExportTableCopyTo}); - this.mnuContextExportTable.Name = "mnuContextExportTable"; - this.mnuContextExportTable.Size = new System.Drawing.Size(153, 48); - // - // mnuExportTableCopyTo - // - this.mnuExportTableCopyTo.Name = "mnuExportTableCopyTo"; - this.mnuExportTableCopyTo.Size = new System.Drawing.Size(152, 22); - this.mnuExportTableCopyTo.Text = "&Copy To..."; - this.mnuExportTableCopyTo.Click += new System.EventHandler(this.mnuExportTableCopyTo_Click); - // // UnrealPackageEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -497,10 +505,10 @@ this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); this.pnlExportTable.ResumeLayout(false); + this.mnuContextExportTable.ResumeLayout(false); this.pnlHeritageTable.ResumeLayout(false); this.pnlImportTable.ResumeLayout(false); this.pnlNameTable.ResumeLayout(false); - this.mnuContextExportTable.ResumeLayout(false); this.ResumeLayout(false); } @@ -527,10 +535,10 @@ private System.Windows.Forms.ColumnHeader chImportObjectName; private System.Windows.Forms.ColumnHeader chImportClassName; private System.Windows.Forms.Panel pnlExportTable; - private System.Windows.Forms.Button button5; - private System.Windows.Forms.Button button6; - private System.Windows.Forms.Button button7; - private System.Windows.Forms.Button button8; + private System.Windows.Forms.Button cmdExportTableEntryClear; + private System.Windows.Forms.Button cmdExportTableEntryRemove; + private System.Windows.Forms.Button cmdExportTableEntryModify; + private System.Windows.Forms.Button cmdExportTableEntryAdd; private System.Windows.Forms.ListView lvExportTable; private System.Windows.Forms.ColumnHeader chExportObjectParent; private System.Windows.Forms.ColumnHeader chExportObjectClass; diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs index b9fb8ab2..b79935e0 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs @@ -5,6 +5,7 @@ using System.Drawing; using System.Text; using System.Windows.Forms; using UniversalEditor.Accessors; +using UniversalEditor.Dialogs.UnrealEngine; using UniversalEditor.ObjectModels.UnrealEngine; using UniversalEditor.UserInterface.WindowsForms; @@ -274,5 +275,41 @@ namespace UniversalEditor.Editors.UnrealEngine } } } + + private void cmdExportTableEntryAdd_Click(object sender, EventArgs e) + { + ExportTableEntryPropertiesDialog dlg = new ExportTableEntryPropertiesDialog(); + if (dlg.ShowDialog() == DialogResult.OK) + { + } + } + + private void cmdExportTableEntryModify_Click(object sender, EventArgs e) + { + if (lvExportTable.SelectedItems.Count == 1) + { + ExportTableEntryPropertiesDialog dlg = new ExportTableEntryPropertiesDialog(); + + if (dlg.ShowDialog() == DialogResult.OK) + { + } + } + } + + private void cmdExportTableEntryRemove_Click(object sender, EventArgs e) + { + + } + + private void cmdExportTableEntryClear_Click(object sender, EventArgs e) + { + + } + + private void lvExportTable_SelectedIndexChanged(object sender, EventArgs e) + { + cmdExportTableEntryModify.Enabled = (lvExportTable.SelectedItems.Count == 1); + cmdExportTableEntryRemove.Enabled = (lvExportTable.SelectedItems.Count > 0); + } } } diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms.csproj b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms.csproj index a25b7fa3..52bcccb2 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms.csproj +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms.csproj @@ -41,6 +41,12 @@ + + Form + + + ExportTableEntryPropertiesDialog.cs + UserControl @@ -73,6 +79,9 @@ + + ExportTableEntryPropertiesDialog.cs + UnrealPackageEditor.cs