Minor UI fixes

This commit is contained in:
niksedk 2022-01-08 16:54:57 +01:00
parent c9de9d354b
commit 5fcd2c4802
2 changed files with 24 additions and 19 deletions

View File

@ -288,6 +288,8 @@ namespace Nikse.SubtitleEdit.Forms.Assa
comboboxStorageCategories.SelectedItem = _currentCategory.Name;
}
comboboxStorageCategories.Left = labelStorageCategory.Right + 5;
comboboxStorageCategories.Width = buttonStorageCategoryNew.Left - comboboxStorageCategories.Left - 10;
comboBoxOpaqueBoxStyle.Items.Clear();
comboBoxOpaqueBoxStyle.Items.Add(l.BoxPerLine);

View File

@ -38,7 +38,7 @@
this.listViewCategories = new System.Windows.Forms.ListView();
this.columnHeaderForName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeaderForStyles = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeaderForDefault = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.Default = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.contextMenuStripCategories = new System.Windows.Forms.ContextMenuStrip(this.components);
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemRename = new System.Windows.Forms.ToolStripMenuItem();
@ -61,9 +61,9 @@
//
// groupBoxCategories
//
this.groupBoxCategories.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.groupBoxCategories.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.groupBoxCategories.Controls.Add(this.buttonExportCategories);
this.groupBoxCategories.Controls.Add(this.buttonImportCategories);
this.groupBoxCategories.Controls.Add(this.buttonSetDefaultCategory);
@ -79,7 +79,8 @@
//
// buttonExportCategories
//
this.buttonExportCategories.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.buttonExportCategories.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonExportCategories.Location = new System.Drawing.Point(178, 380);
this.buttonExportCategories.Name = "buttonExportCategories";
this.buttonExportCategories.Size = new System.Drawing.Size(164, 23);
@ -101,7 +102,8 @@
//
// buttonSetDefaultCategory
//
this.buttonSetDefaultCategory.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSetDefaultCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonSetDefaultCategory.Location = new System.Drawing.Point(8, 352);
this.buttonSetDefaultCategory.Name = "buttonSetDefaultCategory";
this.buttonSetDefaultCategory.Size = new System.Drawing.Size(335, 23);
@ -112,7 +114,8 @@
//
// buttonRemoveCategory
//
this.buttonRemoveCategory.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.buttonRemoveCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonRemoveCategory.Location = new System.Drawing.Point(178, 324);
this.buttonRemoveCategory.Name = "buttonRemoveCategory";
this.buttonRemoveCategory.Size = new System.Drawing.Size(164, 23);
@ -134,27 +137,26 @@
//
// listViewCategories
//
this.listViewCategories.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.listViewCategories.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.listViewCategories.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeaderForName,
this.columnHeaderForStyles,
this.columnHeaderForDefault});
this.Default});
this.listViewCategories.ContextMenuStrip = this.contextMenuStripCategories;
this.listViewCategories.FullRowSelect = true;
this.listViewCategories.GridLines = true;
this.listViewCategories.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.listViewCategories.HideSelection = false;
this.listViewCategories.Location = new System.Drawing.Point(8, 20);
this.listViewCategories.MultiSelect = true;
this.listViewCategories.Name = "listViewCategories";
this.listViewCategories.Size = new System.Drawing.Size(335, 299);
this.listViewCategories.TabIndex = 0;
this.listViewCategories.UseCompatibleStateImageBehavior = false;
this.listViewCategories.View = System.Windows.Forms.View.Details;
this.listViewCategories.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewCategories_KeyDown);
this.listViewCategories.SelectedIndexChanged += new System.EventHandler(this.ListViewCategories_SelectedIndexChanged);
this.listViewCategories.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewCategories_KeyDown);
//
// columnHeaderForName
//
@ -166,11 +168,11 @@
this.columnHeaderForStyles.Text = "Number of styles";
this.columnHeaderForStyles.Width = 100;
//
// columnHeaderForDefault
// Default
//
this.columnHeaderForDefault.Name = "Default";
this.columnHeaderForDefault.Text = "Default";
this.columnHeaderForDefault.Width = 100;
this.Default.Name = "Default";
this.Default.Text = "Default";
this.Default.Width = 100;
//
// contextMenuStripCategories
//
@ -188,13 +190,13 @@
this.importToolStripMenuItem,
this.exportToolStripMenuItem});
this.contextMenuStripCategories.Name = "contextMenuStripCategories";
this.contextMenuStripCategories.Size = new System.Drawing.Size(216, 214);
this.contextMenuStripCategories.Size = new System.Drawing.Size(216, 236);
this.contextMenuStripCategories.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripCategories_Opening);
//
// newToolStripMenuItem
//
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.N)));
this.newToolStripMenuItem.Size = new System.Drawing.Size(215, 22);
this.newToolStripMenuItem.Text = "New...";
@ -314,13 +316,13 @@
this.Controls.Add(this.buttonCancel);
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(200, 300);
this.MinimumSize = new System.Drawing.Size(376, 491);
this.Name = "SubStationAlphaStylesCategoriesManager";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Assa Categories Manager";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SubStationAlphaStylesCategoriesManager_KeyDown);
this.ResizeEnd += new System.EventHandler(this.SubStationAlphaStylesCategoriesManager_ResizeEnd);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SubStationAlphaStylesCategoriesManager_KeyDown);
this.groupBoxCategories.ResumeLayout(false);
this.contextMenuStripCategories.ResumeLayout(false);
this.ResumeLayout(false);
@ -355,5 +357,6 @@
private System.Windows.Forms.Button buttonOK;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.OpenFileDialog openFileDialogImport;
private System.Windows.Forms.ColumnHeader Default;
}
}