VobSubOcr windows - fixed size of some textboxes

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@237 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-01-09 18:37:55 +00:00
parent 5a6f46c644
commit 4ed965ee44
2 changed files with 13 additions and 11 deletions

View File

@ -37,6 +37,7 @@ namespace Nikse.SubtitleEdit.Forms
this.italicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.saveImageAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveAllImagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.labelSubtitleText = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.labelStatus = new System.Windows.Forms.Label();
@ -93,7 +94,6 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxShowOnlyForced = new System.Windows.Forms.CheckBox();
this.checkBoxUseTimeCodesFromIdx = new System.Windows.Forms.CheckBox();
this.subtitleListView1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.saveAllImagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxSubtitleImage)).BeginInit();
this.contextMenuStripListview.SuspendLayout();
@ -164,6 +164,13 @@ namespace Nikse.SubtitleEdit.Forms
this.saveImageAsToolStripMenuItem.Text = "Save image as...";
this.saveImageAsToolStripMenuItem.Click += new System.EventHandler(this.SaveImageAsToolStripMenuItemClick);
//
// saveAllImagesToolStripMenuItem
//
this.saveAllImagesToolStripMenuItem.Name = "saveAllImagesToolStripMenuItem";
this.saveAllImagesToolStripMenuItem.Size = new System.Drawing.Size(163, 22);
this.saveAllImagesToolStripMenuItem.Text = "Save all images...";
this.saveAllImagesToolStripMenuItem.Click += new System.EventHandler(this.saveAllImagesToolStripMenuItem_Click);
//
// labelSubtitleText
//
this.labelSubtitleText.AutoSize = true;
@ -557,7 +564,7 @@ namespace Nikse.SubtitleEdit.Forms
this.listBoxLog.FormattingEnabled = true;
this.listBoxLog.Location = new System.Drawing.Point(5, 6);
this.listBoxLog.Name = "listBoxLog";
this.listBoxLog.Size = new System.Drawing.Size(270, 95);
this.listBoxLog.Size = new System.Drawing.Size(270, 147);
this.listBoxLog.TabIndex = 39;
this.listBoxLog.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged);
//
@ -581,7 +588,7 @@ namespace Nikse.SubtitleEdit.Forms
this.listBoxLogSuggestions.FormattingEnabled = true;
this.listBoxLogSuggestions.Location = new System.Drawing.Point(5, 6);
this.listBoxLogSuggestions.Name = "listBoxLogSuggestions";
this.listBoxLogSuggestions.Size = new System.Drawing.Size(244, 82);
this.listBoxLogSuggestions.Size = new System.Drawing.Size(270, 147);
this.listBoxLogSuggestions.TabIndex = 40;
this.listBoxLogSuggestions.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged);
//
@ -604,7 +611,7 @@ namespace Nikse.SubtitleEdit.Forms
this.listBoxUnknownWords.FormattingEnabled = true;
this.listBoxUnknownWords.Location = new System.Drawing.Point(5, 6);
this.listBoxUnknownWords.Name = "listBoxUnknownWords";
this.listBoxUnknownWords.Size = new System.Drawing.Size(244, 82);
this.listBoxUnknownWords.Size = new System.Drawing.Size(273, 147);
this.listBoxUnknownWords.TabIndex = 40;
this.listBoxUnknownWords.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged);
//
@ -808,13 +815,6 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged);
//
// saveAllImagesToolStripMenuItem
//
this.saveAllImagesToolStripMenuItem.Name = "saveAllImagesToolStripMenuItem";
this.saveAllImagesToolStripMenuItem.Size = new System.Drawing.Size(163, 22);
this.saveAllImagesToolStripMenuItem.Text = "Save all images...";
this.saveAllImagesToolStripMenuItem.Click += new System.EventHandler(this.saveAllImagesToolStripMenuItem_Click);
//
// VobSubOcr
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@ -1768,7 +1768,9 @@ namespace Nikse.SubtitleEdit.Forms
string fileName = Path.Combine(folderBrowserDialog1.SelectedPath, i.ToString() + ".png");
bmp.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
imagesSavedCount++;
bmp.Dispose();
}
}
MessageBox.Show(string.Format("{0} images saved in {1}", imagesSavedCount, folderBrowserDialog1.SelectedPath));
}