private void btnAddToFavorites_Click(object sender, EventArgs e) { // Check if we are in a root folder. // Root folders are shown anyways. if (PathUtils.IsRootPath(lvExplorer.Path)) { return; } if (AddToFavoriteFolders != null) { if (AddToFavoriteFolders(lvExplorer.Path)) { try { string title = Path.GetFileName(lvExplorer.Path); OPMToolStripButton btn = new OPMToolStripButton(title); btn.Name = title; btn.Image = ImageProvider.GetIcon(lvExplorer.Path, true); btn.ToolTipText = lvExplorer.Path; btn.ImageAlign = System.Drawing.ContentAlignment.TopCenter; btn.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.SizeToFit; btn.ImageTransparentColor = System.Drawing.Color.Magenta; btn.AutoSize = true; btn.Tag = lvExplorer.Path; btn.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; tsSpecialFolders.Items.Add(btn); } catch { } } } }
private void FillDriveList() { try { if (!Directory.Exists(this.InitialDirectory)) { this.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop, Environment.SpecialFolderOption.Create); } System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives(); foreach (System.IO.DriveInfo di in drives) { try { string path = di.RootDirectory.FullName.ToUpperInvariant(); string title = di.Name; if (di.IsReady) { title += $" [{di.VolumeLabel}]"; } OPMToolStripButton btn = new OPMToolStripButton(title); btn.Name = title; btn.Image = ImageProvider.GetIcon(path, true); btn.ToolTipText = path; btn.TextAlign = ContentAlignment.MiddleLeft; btn.ImageAlign = System.Drawing.ContentAlignment.TopCenter; btn.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.SizeToFit; btn.ImageTransparentColor = System.Drawing.Color.Magenta; btn.AutoSize = true; btn.Tag = path; btn.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; tsSpecialFolders.Items.Add(btn); } catch (Exception ex) { Logger.LogException(ex); } } } catch (Exception ex) { ErrorDispatcher.DispatchError(ex, false); } }
private void FillFavoriteFolders() { if (FillFavoriteFoldersEvt != null) { List <string> favorites = FillFavoriteFoldersEvt(); if (favorites != null) { foreach (string fav in favorites) { try { string title = ""; if (PathUtils.IsRootPath(fav)) { DriveInfo di = new DriveInfo(fav); title = $"{di.VolumeLabel} [{di.DriveType}]"; } else { title = Path.GetFileName(fav); } OPMToolStripButton btn = new OPMToolStripButton(title); btn.Name = title; btn.Image = ImageProvider.GetIcon(fav, true); btn.ToolTipText = fav; btn.ImageAlign = System.Drawing.ContentAlignment.TopCenter; btn.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.SizeToFit; btn.ImageTransparentColor = System.Drawing.Color.Magenta; btn.AutoSize = true; btn.Tag = fav; btn.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; tsSpecialFolders.Items.Add(btn); } catch { } } } } }
private void tsSpecialFolders_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { OPMToolStripButton tsb = e.ClickedItem as OPMToolStripButton; if (tsb != null) { foreach (ToolStripItem tsi in tsSpecialFolders.Items) { OPMToolStripButton button = tsi as OPMToolStripButton; if (button != null) { button.Checked = (button == tsb); } } SpecialFolderButton sfb = tsb as SpecialFolderButton; if (sfb != null) { // TODO fix //SelectDrive(sfb.Path); lvExplorer.Path = sfb.Path; } else { string path = tsb.Tag as string; if (Directory.Exists(path)) { // TODO fix //SelectDrive(path); lvExplorer.Path = path; } } } }
void _tmrUpdateUi_Tick(object sender, EventArgs e) { lblCurrentPath.Text = Translator.Translate("TXT_CURRENT_PATH", lvExplorer.Path); foreach (ToolStripItem tsi in tsSpecialFolders.Items) { OPMToolStripButton btn = tsi as OPMToolStripButton; if (btn != null) { string path = string.Empty; SpecialFolderButton sfBtn = btn as SpecialFolderButton; if (sfBtn != null) { path = sfBtn.Path; } else { path = btn.Tag as string; } btn.Checked = (path == lvExplorer.Path); } } }
private void SetToolTip(OPMToolStripButton btn, string tag) { btn.ToolTipText = Translator.Translate(tag); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddonPanel)); this.tableLayoutPanel1 = new OPMedia.UI.Controls.OPMTableLayoutPanel(); this.tbContents = new OPMedia.UI.Controls.OPMTextBox(); this.opmToolStrip1 = new OPMedia.UI.Controls.OPMToolStrip(); this.btnBold = new OPMedia.UI.Controls.OPMToolStripButton(); this.btnItalic = new OPMedia.UI.Controls.OPMToolStripButton(); this.btnUnderlined = new OPMedia.UI.Controls.OPMToolStripButton(); this.btnStrikethrough = new OPMedia.UI.Controls.OPMToolStripButton(); this.btnColor = new OPMedia.UI.Controls.OPMToolStripButton(); this.btnStartNow = new OPMedia.UI.Controls.OPMButton(); this.panel1 = new System.Windows.Forms.Panel(); this.rtbContents = new System.Windows.Forms.RichTextBox(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.btnSave = new OPMedia.UI.Controls.OPMButton(); this.btnUndo = new OPMedia.UI.Controls.OPMButton(); this.label1 = new OPMedia.UI.Controls.OPMLabel(); this.label2 = new OPMedia.UI.Controls.OPMLabel(); this.label3 = new OPMedia.UI.Controls.OPMLabel(); this.tpStartTime = new OPMedia.UI.Controls.OPMTimePicker(); this.tpEndTime = new OPMedia.UI.Controls.OPMTimePicker(); this.tpDuration = new OPMedia.UI.Controls.OPMTimePicker(); this.label4 = new OPMedia.UI.Controls.OPMLabel(); this.label5 = new OPMedia.UI.Controls.OPMLabel(); this.btnEndNow = new OPMedia.UI.Controls.OPMButton(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.tableLayoutPanel1.SuspendLayout(); this.opmToolStrip1.SuspendLayout(); this.panel1.SuspendLayout(); this.flowLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // // tableLayoutPanel1 // this.tableLayoutPanel1.AutoSize = true; this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanel1.ColumnCount = 8; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Controls.Add(this.tbContents, 0, 3); this.tableLayoutPanel1.Controls.Add(this.opmToolStrip1, 0, 2); this.tableLayoutPanel1.Controls.Add(this.btnStartNow, 1, 9); this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 6); this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 0, 11); this.tableLayoutPanel1.Controls.Add(this.label1, 0, 8); this.tableLayoutPanel1.Controls.Add(this.label2, 3, 8); this.tableLayoutPanel1.Controls.Add(this.label3, 6, 8); this.tableLayoutPanel1.Controls.Add(this.tpStartTime, 0, 9); this.tableLayoutPanel1.Controls.Add(this.tpEndTime, 3, 9); this.tableLayoutPanel1.Controls.Add(this.tpDuration, 6, 9); this.tableLayoutPanel1.Controls.Add(this.label4, 0, 0); this.tableLayoutPanel1.Controls.Add(this.label5, 0, 5); this.tableLayoutPanel1.Controls.Add(this.btnEndNow, 4, 9); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(5, 5); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.OverrideBackColor = System.Drawing.Color.Empty; this.tableLayoutPanel1.RowCount = 13; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(365, 390); this.tableLayoutPanel1.TabIndex = 0; // // tbContents // this.tbContents.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this.tableLayoutPanel1.SetColumnSpan(this.tbContents, 8); this.tbContents.Dock = System.Windows.Forms.DockStyle.Fill; this.tbContents.Location = new System.Drawing.Point(3, 48); this.tbContents.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); this.tbContents.Multiline = true; this.tbContents.Name = "tbContents"; this.tbContents.OverrideForeColor = System.Drawing.Color.Empty; this.tbContents.Size = new System.Drawing.Size(359, 120); this.tbContents.TabIndex = 3; // // opmToolStrip1 // this.opmToolStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(216)))), ((int)(((byte)(235))))); this.tableLayoutPanel1.SetColumnSpan(this.opmToolStrip1, 8); this.opmToolStrip1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); this.opmToolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnBold, this.btnItalic, this.btnUnderlined, this.btnStrikethrough, this.btnColor }); this.opmToolStrip1.Location = new System.Drawing.Point(3, 23); this.opmToolStrip1.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); this.opmToolStrip1.Name = "opmToolStrip1"; this.opmToolStrip1.ShowBorder = true; this.opmToolStrip1.Size = new System.Drawing.Size(359, 25); this.opmToolStrip1.TabIndex = 2; this.opmToolStrip1.Text = "opmToolStrip1"; this.opmToolStrip1.VerticalGradient = true; // // btnBold // this.btnBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnBold.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnBold.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnBold.Name = "btnBold"; this.btnBold.Size = new System.Drawing.Size(23, 22); this.btnBold.Text = "B"; // // btnItalic // this.btnItalic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnItalic.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnItalic.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnItalic.Name = "btnItalic"; this.btnItalic.Size = new System.Drawing.Size(23, 22); this.btnItalic.Text = "I"; // // btnUnderlined // this.btnUnderlined.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnUnderlined.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Underline); this.btnUnderlined.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnUnderlined.Name = "btnUnderlined"; this.btnUnderlined.Size = new System.Drawing.Size(23, 22); this.btnUnderlined.Text = "U"; // // btnStrikethrough // this.btnStrikethrough.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnStrikethrough.Font = new System.Drawing.Font("Times New Roman", 11F, System.Drawing.FontStyle.Strikeout); this.btnStrikethrough.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnStrikethrough.Name = "btnStrikethrough"; this.btnStrikethrough.Size = new System.Drawing.Size(23, 22); this.btnStrikethrough.Text = "S"; // // btnColor // this.btnColor.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnColor.Image = ((System.Drawing.Image)(resources.GetObject("btnColor.Image"))); this.btnColor.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnColor.Name = "btnColor"; this.btnColor.Size = new System.Drawing.Size(23, 22); this.btnColor.Text = " "; // // btnStartNow // this.btnStartNow.AutoSize = true; this.btnStartNow.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.btnStartNow.Dock = System.Windows.Forms.DockStyle.Fill; this.btnStartNow.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStartNow.Location = new System.Drawing.Point(90, 321); this.btnStartNow.Margin = new System.Windows.Forms.Padding(1, 4, 0, 0); this.btnStartNow.MaximumSize = new System.Drawing.Size(21, 21); this.btnStartNow.MinimumSize = new System.Drawing.Size(21, 21); this.btnStartNow.Name = "btnStartNow"; this.btnStartNow.OverrideBackColor = System.Drawing.Color.Empty; this.btnStartNow.OverrideForeColor = System.Drawing.Color.Empty; this.btnStartNow.ShowDropDown = false; this.btnStartNow.Size = new System.Drawing.Size(21, 21); this.btnStartNow.TabIndex = 2; this.toolTip1.SetToolTip(this.btnStartNow, "Use current playback time as start time"); // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tableLayoutPanel1.SetColumnSpan(this.panel1, 8); this.panel1.Controls.Add(this.rtbContents); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(3, 191); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(359, 110); this.panel1.TabIndex = 14; // // rtbContents // this.rtbContents.BorderStyle = System.Windows.Forms.BorderStyle.None; this.rtbContents.DetectUrls = false; this.rtbContents.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbContents.Location = new System.Drawing.Point(0, 0); this.rtbContents.Name = "rtbContents"; this.rtbContents.ReadOnly = true; this.rtbContents.ShortcutsEnabled = false; this.rtbContents.Size = new System.Drawing.Size(357, 108); this.rtbContents.TabIndex = 0; this.rtbContents.Text = ""; // // flowLayoutPanel1 // this.flowLayoutPanel1.AutoSize = true; this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel1, 8); this.flowLayoutPanel1.Controls.Add(this.btnSave); this.flowLayoutPanel1.Controls.Add(this.btnUndo); this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 356); this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Size = new System.Drawing.Size(362, 24); this.flowLayoutPanel1.TabIndex = 15; // // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.Location = new System.Drawing.Point(0, 0); this.btnSave.Margin = new System.Windows.Forms.Padding(0); this.btnSave.Name = "btnSave"; this.btnSave.OverrideBackColor = System.Drawing.Color.Empty; this.btnSave.OverrideForeColor = System.Drawing.Color.Empty; this.btnSave.ShowDropDown = false; this.btnSave.Size = new System.Drawing.Size(72, 24); this.btnSave.TabIndex = 0; this.btnSave.Text = "TXT_APPLY"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnUndo // this.btnUndo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnUndo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUndo.Location = new System.Drawing.Point(84, 0); this.btnUndo.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this.btnUndo.Name = "btnUndo"; this.btnUndo.OverrideBackColor = System.Drawing.Color.Empty; this.btnUndo.OverrideForeColor = System.Drawing.Color.Empty; this.btnUndo.ShowDropDown = false; this.btnUndo.Size = new System.Drawing.Size(72, 24); this.btnUndo.TabIndex = 1; this.btnUndo.Text = "TXT_UNDO"; this.btnUndo.Click += new System.EventHandler(this.btnUndo_Click); // // label1 // this.label1.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.label1, 3); this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label1.Location = new System.Drawing.Point(3, 304); this.label1.Name = "label1"; this.label1.OverrideBackColor = System.Drawing.Color.Empty; this.label1.OverrideForeColor = System.Drawing.Color.Empty; this.label1.Size = new System.Drawing.Size(120, 13); this.label1.TabIndex = 5; this.label1.Text = "TXT_START_TIME"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label2 // this.label2.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.label2, 3); this.label2.Dock = System.Windows.Forms.DockStyle.Fill; this.label2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label2.Location = new System.Drawing.Point(129, 304); this.label2.Name = "label2"; this.label2.OverrideBackColor = System.Drawing.Color.Empty; this.label2.OverrideForeColor = System.Drawing.Color.Empty; this.label2.Size = new System.Drawing.Size(120, 13); this.label2.TabIndex = 7; this.label2.Text = "TXT_END_TIME"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label3 // this.label3.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.label3, 2); this.label3.Dock = System.Windows.Forms.DockStyle.Fill; this.label3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label3.Location = new System.Drawing.Point(255, 304); this.label3.Name = "label3"; this.label3.OverrideBackColor = System.Drawing.Color.Empty; this.label3.OverrideForeColor = System.Drawing.Color.Empty; this.label3.Size = new System.Drawing.Size(107, 13); this.label3.TabIndex = 9; this.label3.Text = "TXT_DURATION"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tpStartTime // this.tpStartTime.Dock = System.Windows.Forms.DockStyle.Fill; this.tpStartTime.Hours = 0; this.tpStartTime.Location = new System.Drawing.Point(4, 321); this.tpStartTime.Margin = new System.Windows.Forms.Padding(4, 4, 0, 4); this.tpStartTime.MaximumSize = new System.Drawing.Size(85, 21); this.tpStartTime.Milliseconds = 0; this.tpStartTime.MinimumSize = new System.Drawing.Size(85, 21); this.tpStartTime.Minutes = 0; this.tpStartTime.Name = "tpStartTime"; this.tpStartTime.Seconds = 0; this.tpStartTime.Size = new System.Drawing.Size(85, 21); this.tpStartTime.TabIndex = 6; this.tpStartTime.Value = System.TimeSpan.Parse("00:00:00"); // // tpEndTime // this.tpEndTime.Dock = System.Windows.Forms.DockStyle.Fill; this.tpEndTime.Hours = 0; this.tpEndTime.Location = new System.Drawing.Point(130, 321); this.tpEndTime.Margin = new System.Windows.Forms.Padding(4, 4, 0, 4); this.tpEndTime.MaximumSize = new System.Drawing.Size(85, 21); this.tpEndTime.Milliseconds = 0; this.tpEndTime.MinimumSize = new System.Drawing.Size(85, 21); this.tpEndTime.Minutes = 0; this.tpEndTime.Name = "tpEndTime"; this.tpEndTime.Seconds = 0; this.tpEndTime.Size = new System.Drawing.Size(85, 21); this.tpEndTime.TabIndex = 8; this.tpEndTime.Value = System.TimeSpan.Parse("00:00:00"); // // tpDuration // this.tpDuration.Dock = System.Windows.Forms.DockStyle.Fill; this.tpDuration.Hours = 0; this.tpDuration.Location = new System.Drawing.Point(256, 321); this.tpDuration.Margin = new System.Windows.Forms.Padding(4); this.tpDuration.MaximumSize = new System.Drawing.Size(85, 21); this.tpDuration.Milliseconds = 0; this.tpDuration.MinimumSize = new System.Drawing.Size(85, 21); this.tpDuration.Minutes = 0; this.tpDuration.Name = "tpDuration"; this.tpDuration.Seconds = 0; this.tpDuration.Size = new System.Drawing.Size(85, 21); this.tpDuration.TabIndex = 10; this.tpDuration.Value = System.TimeSpan.Parse("00:00:00"); // // label4 // this.label4.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.label4, 4); this.label4.Dock = System.Windows.Forms.DockStyle.Fill; this.label4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label4.Location = new System.Drawing.Point(3, 0); this.label4.Name = "label4"; this.label4.OverrideBackColor = System.Drawing.Color.Empty; this.label4.OverrideForeColor = System.Drawing.Color.Empty; this.label4.Size = new System.Drawing.Size(209, 13); this.label4.TabIndex = 1; this.label4.Text = "TXT_EDIT_CONTENTS"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label5 // this.label5.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.label5, 4); this.label5.Dock = System.Windows.Forms.DockStyle.Fill; this.label5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label5.Location = new System.Drawing.Point(3, 178); this.label5.Name = "label5"; this.label5.OverrideBackColor = System.Drawing.Color.Empty; this.label5.OverrideForeColor = System.Drawing.Color.Empty; this.label5.Size = new System.Drawing.Size(209, 10); this.label5.TabIndex = 4; this.label5.Text = "TXT_CONTENTS"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnEndNow // this.btnEndNow.AutoSize = true; this.btnEndNow.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.btnEndNow.Dock = System.Windows.Forms.DockStyle.Fill; this.btnEndNow.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnEndNow.Location = new System.Drawing.Point(216, 321); this.btnEndNow.Margin = new System.Windows.Forms.Padding(1, 4, 0, 0); this.btnEndNow.MaximumSize = new System.Drawing.Size(21, 21); this.btnEndNow.MinimumSize = new System.Drawing.Size(21, 21); this.btnEndNow.Name = "btnEndNow"; this.btnEndNow.OverrideBackColor = System.Drawing.Color.Empty; this.btnEndNow.OverrideForeColor = System.Drawing.Color.Empty; this.btnEndNow.ShowDropDown = false; this.btnEndNow.Size = new System.Drawing.Size(21, 21); this.btnEndNow.TabIndex = 16; this.toolTip1.SetToolTip(this.btnEndNow, "Use current playback time as end time"); // // AddonPanel // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.Controls.Add(this.tableLayoutPanel1); this.MinimumSize = new System.Drawing.Size(340, 400); this.Name = "AddonPanel"; this.Padding = new System.Windows.Forms.Padding(5); this.Size = new System.Drawing.Size(375, 400); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.opmToolStrip1.ResumeLayout(false); this.opmToolStrip1.PerformLayout(); this.panel1.ResumeLayout(false); this.flowLayoutPanel1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.opmTableLayoutPanel1 = new OPMedia.UI.Controls.OPMTableLayoutPanel(); this.toolStripMain = new OPMedia.UI.Controls.OPMToolStrip(); this.tsbNew = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbOpen = new OPMedia.UI.Controls.OPMToolStripSplitButton(); this.tsbSave = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbSaveAs = new OPMedia.UI.Controls.OPMToolStripButton(); this.toolStripSeparator1 = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsbBack = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbForward = new OPMedia.UI.Controls.OPMToolStripButton(); this.toolStripSeparator7 = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsbSearch = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbReload = new OPMedia.UI.Controls.OPMToolStripButton(); this.toolStripSeparator2 = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsbCopy = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbCut = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbPaste = new OPMedia.UI.Controls.OPMToolStripButton(); this.tssCopyPaste = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsbRename = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbDelete = new OPMedia.UI.Controls.OPMToolStripButton(); this.tssMergeCatalogs = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.lvSubtitles = new SubtitleEditor.extension.Navigation.SubtitleListView(); this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.tsmiBack = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiFwd = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiSep1 = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsmiSearch = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiReload = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiSep2 = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsmiCopy = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiCut = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiPaste = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiCopyPaste = new OPMedia.UI.Controls.OPMToolStripSeparator(); this.tsmiRename = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.tsmiDelete = new OPMedia.UI.Controls.OPMToolStripMenuItem(); this.opmTableLayoutPanel1.SuspendLayout(); this.toolStripMain.SuspendLayout(); this.contextMenuStrip.SuspendLayout(); this.SuspendLayout(); // // opmTableLayoutPanel1 // this.opmTableLayoutPanel1.ColumnCount = 1; this.opmTableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.opmTableLayoutPanel1.Controls.Add(this.toolStripMain, 0, 0); this.opmTableLayoutPanel1.Controls.Add(this.lvSubtitles, 0, 1); this.opmTableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.opmTableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.opmTableLayoutPanel1.Name = "opmTableLayoutPanel1"; this.opmTableLayoutPanel1.OverrideBackColor = System.Drawing.Color.Empty; this.opmTableLayoutPanel1.RowCount = 2; this.opmTableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.opmTableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.opmTableLayoutPanel1.Size = new System.Drawing.Size(1123, 613); this.opmTableLayoutPanel1.TabIndex = 1; // // toolStripMain // this.toolStripMain.AllowMerge = false; this.toolStripMain.AutoSize = false; this.toolStripMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.toolStripMain.CanOverflow = false; this.toolStripMain.Dock = System.Windows.Forms.DockStyle.Fill; this.toolStripMain.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.toolStripMain.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStripMain.ImageScalingSize = new System.Drawing.Size(25, 25); this.toolStripMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbNew, this.tsbOpen, this.tsbSave, this.tsbSaveAs, this.toolStripSeparator1, this.tsbBack, this.tsbForward, this.toolStripSeparator7, this.tsbSearch, this.tsbReload, this.toolStripSeparator2, this.tsbCopy, this.tsbCut, this.tsbPaste, this.tssCopyPaste, this.tsbRename, this.tsbDelete, this.tssMergeCatalogs }); this.toolStripMain.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; this.toolStripMain.Location = new System.Drawing.Point(0, 0); this.toolStripMain.Name = "toolStripMain"; this.toolStripMain.Padding = new System.Windows.Forms.Padding(0); this.toolStripMain.ShowBorder = true; this.toolStripMain.Size = new System.Drawing.Size(1123, 48); this.toolStripMain.TabIndex = 1; this.toolStripMain.VerticalGradient = true; // // tsbNew // this.tsbNew.Image = global::SubtitleEditor.extension.Properties.Resources.New; this.tsbNew.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbNew.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbNew.Name = "tsbNew"; this.tsbNew.Size = new System.Drawing.Size(60, 45); this.tsbNew.Tag = "ToolActionNew"; this.tsbNew.Text = "TXT_NEW"; this.tsbNew.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbNew.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbNew.ToolTipText = "Create new catalog"; this.tsbNew.Click += new System.EventHandler(this.OnToolAction); // // tsbOpen // this.tsbOpen.Image = global::SubtitleEditor.extension.Properties.Resources.Open; this.tsbOpen.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbOpen.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbOpen.Name = "tsbOpen"; this.tsbOpen.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never; this.tsbOpen.Size = new System.Drawing.Size(76, 45); this.tsbOpen.Tag = "ToolActionOpen"; this.tsbOpen.Text = "TXT_OPEN"; this.tsbOpen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbOpen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbOpen.ToolTipText = "Open catalog"; this.tsbOpen.Click += new System.EventHandler(this.OnToolAction); // // tsbSave // this.tsbSave.Enabled = false; this.tsbSave.Image = global::SubtitleEditor.extension.Properties.Resources.Save; this.tsbSave.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbSave.Name = "tsbSave"; this.tsbSave.Size = new System.Drawing.Size(61, 45); this.tsbSave.Tag = "ToolActionSave"; this.tsbSave.Text = "TXT_SAVE"; this.tsbSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbSave.Click += new System.EventHandler(this.OnToolAction); // // tsbSaveAs // this.tsbSaveAs.Enabled = false; this.tsbSaveAs.Image = global::SubtitleEditor.extension.Properties.Resources.SaveAs; this.tsbSaveAs.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbSaveAs.Name = "tsbSaveAs"; this.tsbSaveAs.Size = new System.Drawing.Size(78, 45); this.tsbSaveAs.Tag = "ToolActionSaveAs"; this.tsbSaveAs.Text = "TXT_SAVE_AS"; this.tsbSaveAs.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbSaveAs.Click += new System.EventHandler(this.OnToolAction); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 48); // // tsbBack // this.tsbBack.Enabled = false; this.tsbBack.Image = global::SubtitleEditor.extension.Properties.Resources.Back; this.tsbBack.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbBack.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbBack.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbBack.Name = "tsbBack"; this.tsbBack.Size = new System.Drawing.Size(62, 45); this.tsbBack.Tag = "ToolActionBack"; this.tsbBack.Text = "TXT_BACK"; this.tsbBack.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbBack.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbBack.ToolTipText = "Back to "; this.tsbBack.Click += new System.EventHandler(this.OnToolAction); // // tsbForward // this.tsbForward.Enabled = false; this.tsbForward.Image = global::SubtitleEditor.extension.Properties.Resources.Forward; this.tsbForward.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbForward.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbForward.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbForward.Name = "tsbForward"; this.tsbForward.Size = new System.Drawing.Size(86, 45); this.tsbForward.Tag = "ToolActionFwd"; this.tsbForward.Text = "TXT_FORWARD"; this.tsbForward.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbForward.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbForward.ToolTipText = "Forward to"; this.tsbForward.Click += new System.EventHandler(this.OnToolAction); // // toolStripSeparator7 // this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(6, 48); // // tsbSearch // this.tsbSearch.Enabled = false; this.tsbSearch.Image = global::SubtitleEditor.extension.Properties.Resources.Search; this.tsbSearch.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbSearch.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbSearch.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbSearch.Name = "tsbSearch"; this.tsbSearch.Size = new System.Drawing.Size(74, 45); this.tsbSearch.Tag = "ToolActionSearch"; this.tsbSearch.Text = "TXT_SEARCH"; this.tsbSearch.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbSearch.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbSearch.ToolTipText = "Search ..."; this.tsbSearch.Click += new System.EventHandler(this.OnToolAction); // // tsbReload // this.tsbReload.Enabled = false; this.tsbReload.Image = global::SubtitleEditor.extension.Properties.Resources.Reload; this.tsbReload.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbReload.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbReload.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbReload.Name = "tsbReload"; this.tsbReload.Size = new System.Drawing.Size(79, 45); this.tsbReload.Tag = "ToolActionReload"; this.tsbReload.Text = "TXT_REFRESH"; this.tsbReload.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbReload.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbReload.ToolTipText = "Reload"; this.tsbReload.Click += new System.EventHandler(this.OnToolAction); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 48); // // tsbCopy // this.tsbCopy.Enabled = false; this.tsbCopy.Image = global::SubtitleEditor.extension.Properties.Resources.Copy; this.tsbCopy.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbCopy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbCopy.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbCopy.Name = "tsbCopy"; this.tsbCopy.Size = new System.Drawing.Size(65, 45); this.tsbCopy.Tag = "ToolActionCopy"; this.tsbCopy.Text = "TXT_COPY"; this.tsbCopy.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbCopy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbCopy.ToolTipText = "Copy selection"; this.tsbCopy.Click += new System.EventHandler(this.OnToolAction); // // tsbCut // this.tsbCut.Enabled = false; this.tsbCut.Image = global::SubtitleEditor.extension.Properties.Resources.Cut; this.tsbCut.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbCut.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbCut.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbCut.Name = "tsbCut"; this.tsbCut.Size = new System.Drawing.Size(57, 45); this.tsbCut.Tag = "ToolActionCut"; this.tsbCut.Text = "TXT_CUT"; this.tsbCut.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbCut.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbCut.ToolTipText = "Cut selection"; this.tsbCut.Click += new System.EventHandler(this.OnToolAction); // // tsbPaste // this.tsbPaste.Enabled = false; this.tsbPaste.Image = global::SubtitleEditor.extension.Properties.Resources.Paste; this.tsbPaste.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbPaste.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbPaste.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbPaste.Name = "tsbPaste"; this.tsbPaste.Size = new System.Drawing.Size(66, 45); this.tsbPaste.Tag = "ToolActionPaste"; this.tsbPaste.Text = "TXT_PASTE"; this.tsbPaste.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbPaste.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbPaste.ToolTipText = "Paste selection"; this.tsbPaste.Click += new System.EventHandler(this.OnToolAction); // // tssCopyPaste // this.tssCopyPaste.Name = "tssCopyPaste"; this.tssCopyPaste.Size = new System.Drawing.Size(6, 48); this.tssCopyPaste.Tag = ""; // // tsbRename // this.tsbRename.Enabled = false; this.tsbRename.Image = global::SubtitleEditor.extension.Properties.Resources.Rename; this.tsbRename.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbRename.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRename.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRename.Name = "tsbRename"; this.tsbRename.Size = new System.Drawing.Size(76, 45); this.tsbRename.Tag = "ToolActionRename"; this.tsbRename.Text = "TXT_RENAME"; this.tsbRename.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbRename.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbRename.ToolTipText = "Rename Selection"; this.tsbRename.Click += new System.EventHandler(this.OnToolAction); // // tsbDelete // this.tsbDelete.Enabled = false; this.tsbDelete.Image = global::SubtitleEditor.extension.Properties.Resources.Delete; this.tsbDelete.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.tsbDelete.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbDelete.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbDelete.Name = "tsbDelete"; this.tsbDelete.Size = new System.Drawing.Size(74, 45); this.tsbDelete.Tag = "ToolActionDelete"; this.tsbDelete.Text = "TXT_DELETE"; this.tsbDelete.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbDelete.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tsbDelete.ToolTipText = "Delete "; this.tsbDelete.Click += new System.EventHandler(this.OnToolAction); // // tssMergeCatalogs // this.tssMergeCatalogs.Name = "tssMergeCatalogs"; this.tssMergeCatalogs.Size = new System.Drawing.Size(6, 48); // // lvSubtitles // this.lvSubtitles.Dock = System.Windows.Forms.DockStyle.Fill; this.lvSubtitles.Location = new System.Drawing.Point(3, 51); this.lvSubtitles.MultiSelect = false; this.lvSubtitles.Name = "lvSubtitles"; this.lvSubtitles.OverrideBackColor = System.Drawing.Color.Empty; this.lvSubtitles.Size = new System.Drawing.Size(1117, 559); this.lvSubtitles.Subtitle = null; this.lvSubtitles.TabIndex = 2; this.lvSubtitles.UseCompatibleStateImageBehavior = false; this.lvSubtitles.View = System.Windows.Forms.View.Details; this.lvSubtitles.GridLines = true; // // contextMenuStrip // this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsmiBack, this.tsmiFwd, this.tsmiSep1, this.tsmiSearch, this.tsmiReload, this.tsmiSep2, this.tsmiCopy, this.tsmiCut, this.tsmiPaste, this.tsmiCopyPaste, this.tsmiRename, this.tsmiDelete }); this.contextMenuStrip.Name = "contextMenuStrip"; this.contextMenuStrip.Size = new System.Drawing.Size(153, 242); // // tsmiBack // this.tsmiBack.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiBack.Image = global::SubtitleEditor.extension.Properties.Resources.Back16; this.tsmiBack.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiBack.Name = "tsmiBack"; this.tsmiBack.Size = new System.Drawing.Size(152, 22); this.tsmiBack.Tag = "ToolActionBack"; this.tsmiBack.Text = "TXT_BACK"; this.tsmiBack.Click += new System.EventHandler(this.OnToolAction); // // tsmiFwd // this.tsmiFwd.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiFwd.Image = global::SubtitleEditor.extension.Properties.Resources.Forward16; this.tsmiFwd.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiFwd.Name = "tsmiFwd"; this.tsmiFwd.Size = new System.Drawing.Size(152, 22); this.tsmiFwd.Tag = "ToolActionFwd"; this.tsmiFwd.Text = "TXT_FORWARD"; this.tsmiFwd.Click += new System.EventHandler(this.OnToolAction); // // tsmiSep1 // this.tsmiSep1.Name = "tsmiSep1"; this.tsmiSep1.Size = new System.Drawing.Size(149, 6); // // tsmiSearch // this.tsmiSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiSearch.Image = global::SubtitleEditor.extension.Properties.Resources.Search16; this.tsmiSearch.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiSearch.Name = "tsmiSearch"; this.tsmiSearch.Size = new System.Drawing.Size(152, 22); this.tsmiSearch.Tag = "ToolActionSearch"; this.tsmiSearch.Text = "TXT_SEARCH"; this.tsmiSearch.Click += new System.EventHandler(this.OnToolAction); // // tsmiReload // this.tsmiReload.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiReload.Image = global::SubtitleEditor.extension.Properties.Resources.Reload16; this.tsmiReload.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiReload.Name = "tsmiReload"; this.tsmiReload.Size = new System.Drawing.Size(152, 22); this.tsmiReload.Tag = "ToolActionReload"; this.tsmiReload.Text = "TXT_REFRESH"; this.tsmiReload.Click += new System.EventHandler(this.OnToolAction); // // tsmiSep2 // this.tsmiSep2.Name = "tsmiSep2"; this.tsmiSep2.Size = new System.Drawing.Size(149, 6); // // tsmiCopy // this.tsmiCopy.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiCopy.Image = global::SubtitleEditor.extension.Properties.Resources.Copy16; this.tsmiCopy.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiCopy.Name = "tsmiCopy"; this.tsmiCopy.Size = new System.Drawing.Size(152, 22); this.tsmiCopy.Tag = "ToolActionCopy"; this.tsmiCopy.Text = "TXT_COPY"; this.tsmiCopy.Click += new System.EventHandler(this.OnToolAction); // // tsmiCut // this.tsmiCut.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiCut.Image = global::SubtitleEditor.extension.Properties.Resources.Cut16; this.tsmiCut.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiCut.Name = "tsmiCut"; this.tsmiCut.Size = new System.Drawing.Size(152, 22); this.tsmiCut.Tag = "ToolActionCut"; this.tsmiCut.Text = "TXT_CUT"; this.tsmiCut.Click += new System.EventHandler(this.OnToolAction); // // tsmiPaste // this.tsmiPaste.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiPaste.Image = global::SubtitleEditor.extension.Properties.Resources.Paste16; this.tsmiPaste.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiPaste.Name = "tsmiPaste"; this.tsmiPaste.Size = new System.Drawing.Size(152, 22); this.tsmiPaste.Tag = "ToolActionPaste"; this.tsmiPaste.Text = "TXT_PASTE"; this.tsmiPaste.Click += new System.EventHandler(this.OnToolAction); // // tsmiCopyPaste // this.tsmiCopyPaste.Name = "tsmiCopyPaste"; this.tsmiCopyPaste.Size = new System.Drawing.Size(149, 6); this.tsmiCopyPaste.Tag = ""; // // tsmiRename // this.tsmiRename.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiRename.Image = global::SubtitleEditor.extension.Properties.Resources.Rename16; this.tsmiRename.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiRename.Name = "tsmiRename"; this.tsmiRename.Size = new System.Drawing.Size(152, 22); this.tsmiRename.Tag = "ToolActionRename"; this.tsmiRename.Text = "TXT_RENAME"; this.tsmiRename.Click += new System.EventHandler(this.OnToolAction); // // tsmiDelete // this.tsmiDelete.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70))))); this.tsmiDelete.Image = global::SubtitleEditor.extension.Properties.Resources.Delete16; this.tsmiDelete.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsmiDelete.Name = "tsmiDelete"; this.tsmiDelete.Size = new System.Drawing.Size(152, 22); this.tsmiDelete.Tag = "ToolActionDelete"; this.tsmiDelete.Text = "TXT_DELETE"; this.tsmiDelete.Click += new System.EventHandler(this.OnToolAction); // // AddonPanel // this.Controls.Add(this.opmTableLayoutPanel1); this.Name = "AddonPanel"; this.Size = new System.Drawing.Size(1123, 613); this.opmTableLayoutPanel1.ResumeLayout(false); this.toolStripMain.ResumeLayout(false); this.toolStripMain.PerformLayout(); this.contextMenuStrip.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.wbHelpDisplay = new System.Windows.Forms.WebBrowser(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tsMain = new OPMedia.UI.Controls.OPMToolStrip(); this.tsbPrev = new OPMedia.UI.Controls.OPMToolStripButton(); this.tsbNext = new OPMedia.UI.Controls.OPMToolStripButton(); this.pnlContent.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.tsMain.SuspendLayout(); this.SuspendLayout(); // // pnlContent // this.pnlContent.Controls.Add(this.tableLayoutPanel1); // // wbHelpDisplay // this.wbHelpDisplay.AllowWebBrowserDrop = false; this.wbHelpDisplay.CausesValidation = false; this.wbHelpDisplay.Dock = System.Windows.Forms.DockStyle.Fill; this.wbHelpDisplay.IsWebBrowserContextMenuEnabled = false; this.wbHelpDisplay.Location = new System.Drawing.Point(3, 25); this.wbHelpDisplay.Margin = new System.Windows.Forms.Padding(2, 0, 2, 2); this.wbHelpDisplay.MinimumSize = new System.Drawing.Size(20, 20); this.wbHelpDisplay.Name = "wbHelpDisplay"; this.wbHelpDisplay.ScriptErrorsSuppressed = true; this.wbHelpDisplay.Size = new System.Drawing.Size(792, 549); this.wbHelpDisplay.TabIndex = 0; this.wbHelpDisplay.TabStop = false; this.wbHelpDisplay.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.wbHelpDisplay_PreviewKeyDown); // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 3; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 1F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 1F)); this.tableLayoutPanel1.Controls.Add(this.wbHelpDisplay, 1, 1); this.tableLayoutPanel1.Controls.Add(this.tsMain, 1, 0); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 1F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(798, 577); this.tableLayoutPanel1.TabIndex = 1; // // tsMain // this.tsMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); this.tsMain.ForeColor = System.Drawing.Color.Black; this.tsMain.GripMargin = new System.Windows.Forms.Padding(0); this.tsMain.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.tsMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbPrev, this.tsbNext }); this.tsMain.Location = new System.Drawing.Point(1, 0); this.tsMain.Name = "tsMain"; this.tsMain.ShowBorder = true; this.tsMain.Size = new System.Drawing.Size(796, 25); this.tsMain.TabIndex = 1; this.tsMain.Text = "opmToolStrip1"; this.tsMain.VerticalGradient = true; // // tsbPrev // this.tsbPrev.AutoToolTip = false; this.tsbPrev.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbPrev.Image = global::OPMedia.UI.Properties.Resources.Back; this.tsbPrev.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbPrev.Name = "tsbPrev"; this.tsbPrev.Size = new System.Drawing.Size(23, 22); this.tsbPrev.Text = "toolStripButton1"; this.tsbPrev.Click += new System.EventHandler(this.tsbPrev_Click); // // tsbNext // this.tsbNext.AutoToolTip = false; this.tsbNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbNext.Image = global::OPMedia.UI.Properties.Resources.Forward; this.tsbNext.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbNext.Name = "tsbNext"; this.tsbNext.Size = new System.Drawing.Size(23, 22); this.tsbNext.Text = "toolStripButton2"; this.tsbNext.Click += new System.EventHandler(this.tsbNext_Click); // // HelpViewer // this.ClientSize = new System.Drawing.Size(800, 600); this.MinimumSize = new System.Drawing.Size(800, 600); this.Name = "HelpViewer"; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Shown += new System.EventHandler(this.HelpViewer_Shown); this.pnlContent.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.tsMain.ResumeLayout(false); this.tsMain.PerformLayout(); this.ResumeLayout(false); }