diff --git a/Greenshot/Configuration/LanguageKeys.cs b/Greenshot/Configuration/LanguageKeys.cs index 5c6450f8c..cfca492df 100644 --- a/Greenshot/Configuration/LanguageKeys.cs +++ b/Greenshot/Configuration/LanguageKeys.cs @@ -168,6 +168,7 @@ namespace Greenshot.Configuration { printoptions_allowrotate, printoptions_allowshrink, printoptions_dontaskagain, + printoptions_printmonochrome, printoptions_timestamp, printoptions_inverted, printoptions_title, diff --git a/Greenshot/Destinations/PrinterDestination.cs b/Greenshot/Destinations/PrinterDestination.cs index 663273015..88840f077 100644 --- a/Greenshot/Destinations/PrinterDestination.cs +++ b/Greenshot/Destinations/PrinterDestination.cs @@ -106,42 +106,18 @@ namespace Greenshot.Destinations { /// /// ExportInformation public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) { - ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description); - PrinterSettings printerSettings = null; - - // Create the output settins - SurfaceOutputSettings printOutputSettings = new SurfaceOutputSettings(OutputFormat.png, 100, false); - - // TODO: - // add effects here, e.g. Monochrome - // printOutputSettings.Effects.Add(new MonochromeEffect()); - // Set the color reducing if needed, this should change the 24/32-> 8 (or later even 1) bpp - // printOutputSettings.ReduceColors = true; - - // Moved this from the PrintHelper, the invert effect should probably be the last! - if (conf.OutputPrintInverted) { - printOutputSettings.Effects.Add(new InvertEffect()); + ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description); + PrinterSettings printerSettings = null; + if (!string.IsNullOrEmpty(printerName)) { + printerSettings = new PrintHelper(surface, captureDetails).PrintTo(printerName); + } else if (!manuallyInitiated) { + PrinterSettings settings = new PrinterSettings(); + printerSettings = new PrintHelper(surface, captureDetails).PrintTo(settings.PrinterName); + } else { + printerSettings = new PrintHelper(surface, captureDetails).PrintWithDialog(); } - - Image imageToPrint; - Boolean disposeImage = ImageOutput.CreateImageFromSurface(surface, printOutputSettings, out imageToPrint); - try { - if (!string.IsNullOrEmpty(printerName)) { - printerSettings = new PrintHelper(imageToPrint, captureDetails).PrintTo(printerName); - } else if (!manuallyInitiated) { - PrinterSettings settings = new PrinterSettings(); - printerSettings = new PrintHelper(imageToPrint, captureDetails).PrintTo(settings.PrinterName); - } else { - printerSettings = new PrintHelper(imageToPrint, captureDetails).PrintWithDialog(); - } - if (printerSettings != null) { - exportInformation.ExportMade = true; - } - } finally { - if (disposeImage && imageToPrint != null) { - imageToPrint.Dispose(); - imageToPrint = null; - } + if (printerSettings != null) { + exportInformation.ExportMade = true; } ProcessExport(exportInformation, surface); diff --git a/Greenshot/Forms/PrintOptionsDialog.Designer.cs b/Greenshot/Forms/PrintOptionsDialog.Designer.cs index 78317612e..497faea58 100644 --- a/Greenshot/Forms/PrintOptionsDialog.Designer.cs +++ b/Greenshot/Forms/PrintOptionsDialog.Designer.cs @@ -48,185 +48,203 @@ namespace Greenshot.Forms /// private void InitializeComponent() { - this.checkbox_dontaskagain = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowShrink = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowEnlarge = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowCenter = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowRotate = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.button_ok = new GreenshotPlugin.Controls.GreenshotButton(); - this.checkboxDateTime = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.button_cancel = new GreenshotPlugin.Controls.GreenshotButton(); - this.checkboxPrintInverted = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_grayscale = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.SuspendLayout(); - // - // checkbox_dontaskagain - // - this.checkbox_dontaskagain.AutoSize = true; - this.checkbox_dontaskagain.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkbox_dontaskagain.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkbox_dontaskagain.LanguageKey = "printoptions_dontaskagain"; - this.checkbox_dontaskagain.Location = new System.Drawing.Point(12, 191); - this.checkbox_dontaskagain.Name = "checkbox_dontaskagain"; - this.checkbox_dontaskagain.Size = new System.Drawing.Size(240, 17); - this.checkbox_dontaskagain.TabIndex = 19; - this.checkbox_dontaskagain.Text = "Save options as default and do not ask again"; - this.checkbox_dontaskagain.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkbox_dontaskagain.UseVisualStyleBackColor = true; - // - // checkboxAllowShrink - // - this.checkboxAllowShrink.AutoSize = true; - this.checkboxAllowShrink.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowShrink.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowShrink.LanguageKey = "printoptions_allowshrink"; - this.checkboxAllowShrink.Location = new System.Drawing.Point(12, 20); - this.checkboxAllowShrink.Name = "checkboxAllowShrink"; - this.checkboxAllowShrink.PropertyName = "OutputPrintAllowShrink"; - this.checkboxAllowShrink.Size = new System.Drawing.Size(168, 17); - this.checkboxAllowShrink.TabIndex = 21; - this.checkboxAllowShrink.Text = "Shrink printout to fit paper size"; - this.checkboxAllowShrink.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowShrink.UseVisualStyleBackColor = true; - // - // checkboxAllowEnlarge - // - this.checkboxAllowEnlarge.AutoSize = true; - this.checkboxAllowEnlarge.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowEnlarge.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowEnlarge.LanguageKey = "printoptions_allowenlarge"; - this.checkboxAllowEnlarge.Location = new System.Drawing.Point(12, 43); - this.checkboxAllowEnlarge.Name = "checkboxAllowEnlarge"; - this.checkboxAllowEnlarge.PropertyName = "OutputPrintAllowEnlarge"; - this.checkboxAllowEnlarge.Size = new System.Drawing.Size(174, 17); - this.checkboxAllowEnlarge.TabIndex = 22; - this.checkboxAllowEnlarge.Text = "Enlarge printout to fit paper size"; - this.checkboxAllowEnlarge.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowEnlarge.UseVisualStyleBackColor = true; - // - // checkboxAllowCenter - // - this.checkboxAllowCenter.AutoSize = true; - this.checkboxAllowCenter.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowCenter.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowCenter.LanguageKey = "printoptions_allowcenter"; - this.checkboxAllowCenter.Location = new System.Drawing.Point(12, 89); - this.checkboxAllowCenter.Name = "checkboxAllowCenter"; - this.checkboxAllowCenter.PropertyName = "OutputPrintCenter"; - this.checkboxAllowCenter.Size = new System.Drawing.Size(137, 17); - this.checkboxAllowCenter.TabIndex = 24; - this.checkboxAllowCenter.Text = "Center printout on page"; - this.checkboxAllowCenter.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowCenter.UseVisualStyleBackColor = true; - // - // checkboxAllowRotate - // - this.checkboxAllowRotate.AutoSize = true; - this.checkboxAllowRotate.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowRotate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowRotate.LanguageKey = "printoptions_allowrotate"; - this.checkboxAllowRotate.Location = new System.Drawing.Point(12, 66); - this.checkboxAllowRotate.Name = "checkboxAllowRotate"; - this.checkboxAllowRotate.PropertyName = "OutputPrintAllowRotate"; - this.checkboxAllowRotate.Size = new System.Drawing.Size(187, 17); - this.checkboxAllowRotate.TabIndex = 23; - this.checkboxAllowRotate.Text = "Rotate printout to page orientation"; - this.checkboxAllowRotate.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowRotate.UseVisualStyleBackColor = true; - // - // button_ok - // - this.button_ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.button_ok.DialogResult = System.Windows.Forms.DialogResult.OK; - this.button_ok.LanguageKey = "OK"; - this.button_ok.Location = new System.Drawing.Point(187, 224); - this.button_ok.Name = "button_ok"; - this.button_ok.Size = new System.Drawing.Size(75, 23); - this.button_ok.TabIndex = 25; - this.button_ok.Text = "OK"; - this.button_ok.UseVisualStyleBackColor = true; - this.button_ok.Click += new System.EventHandler(this.Button_okClick); - // - // checkboxDateTime - // - this.checkboxDateTime.AutoSize = true; - this.checkboxDateTime.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxDateTime.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxDateTime.LanguageKey = "printoptions_timestamp"; - this.checkboxDateTime.Location = new System.Drawing.Point(12, 112); - this.checkboxDateTime.Name = "checkboxDateTime"; - this.checkboxDateTime.PropertyName = "OutputPrintFooter"; - this.checkboxDateTime.Size = new System.Drawing.Size(187, 17); - this.checkboxDateTime.TabIndex = 26; - this.checkboxDateTime.Text = "Print date / time at bottom of page"; - this.checkboxDateTime.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxDateTime.UseVisualStyleBackColor = true; - // - // button_cancel - // - this.button_cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.button_cancel.LanguageKey = "CANCEL"; - this.button_cancel.Location = new System.Drawing.Point(268, 224); - this.button_cancel.Name = "button_cancel"; - this.button_cancel.Size = new System.Drawing.Size(75, 23); - this.button_cancel.TabIndex = 27; - this.button_cancel.Text = "Cancel"; - this.button_cancel.UseVisualStyleBackColor = true; - // - // checkboxPrintInverted - // - this.checkboxPrintInverted.AutoSize = true; - this.checkboxPrintInverted.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxPrintInverted.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxPrintInverted.LanguageKey = "printoptions_inverted"; - this.checkboxPrintInverted.Location = new System.Drawing.Point(12, 135); - this.checkboxPrintInverted.Name = "checkboxPrintInverted"; - this.checkboxPrintInverted.PropertyName = "OutputPrintInverted"; - this.checkboxPrintInverted.Size = new System.Drawing.Size(141, 17); - this.checkboxPrintInverted.TabIndex = 28; - this.checkboxPrintInverted.Text = "Print with inverted colors"; - this.checkboxPrintInverted.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxPrintInverted.UseVisualStyleBackColor = true; - // - // checkbox_grayscale - // - this.checkbox_grayscale.AutoSize = true; - this.checkbox_grayscale.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkbox_grayscale.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkbox_grayscale.LanguageKey = "printoptions_printgrayscale"; - this.checkbox_grayscale.Location = new System.Drawing.Point(12, 158); - this.checkbox_grayscale.Name = "checkbox_grayscale"; - this.checkbox_grayscale.PropertyName = "OutputPrintGrayscale"; - this.checkbox_grayscale.Size = new System.Drawing.Size(138, 17); - this.checkbox_grayscale.TabIndex = 29; - this.checkbox_grayscale.Text = "Force grayscale printing"; - this.checkbox_grayscale.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkbox_grayscale.UseVisualStyleBackColor = true; - // - // PrintOptionsDialog - // - this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.ClientSize = new System.Drawing.Size(355, 259); - this.Controls.Add(this.checkbox_grayscale); - this.Controls.Add(this.checkboxPrintInverted); - this.Controls.Add(this.button_cancel); - this.Controls.Add(this.checkboxDateTime); - this.Controls.Add(this.button_ok); - this.Controls.Add(this.checkbox_dontaskagain); - this.Controls.Add(this.checkboxAllowCenter); - this.Controls.Add(this.checkboxAllowRotate); - this.Controls.Add(this.checkboxAllowEnlarge); - this.Controls.Add(this.checkboxAllowShrink); - this.LanguageKey = "printoptions_title"; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "PrintOptionsDialog"; - this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.Text = "Greenshot print options"; - this.ResumeLayout(false); - this.PerformLayout(); + this.checkbox_dontaskagain = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowShrink = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowEnlarge = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowCenter = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowRotate = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.button_ok = new GreenshotPlugin.Controls.GreenshotButton(); + this.checkboxDateTime = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.button_cancel = new GreenshotPlugin.Controls.GreenshotButton(); + this.checkboxPrintInverted = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_grayscale = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_monochrome = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.SuspendLayout(); + // + // checkbox_dontaskagain + // + this.checkbox_dontaskagain.AutoSize = true; + this.checkbox_dontaskagain.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_dontaskagain.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_dontaskagain.LanguageKey = "printoptions_dontaskagain"; + this.checkbox_dontaskagain.Location = new System.Drawing.Point(12, 214); + this.checkbox_dontaskagain.Name = "checkbox_dontaskagain"; + this.checkbox_dontaskagain.Size = new System.Drawing.Size(240, 17); + this.checkbox_dontaskagain.TabIndex = 19; + this.checkbox_dontaskagain.Text = "Save options as default and do not ask again"; + this.checkbox_dontaskagain.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_dontaskagain.UseVisualStyleBackColor = true; + // + // checkboxAllowShrink + // + this.checkboxAllowShrink.AutoSize = true; + this.checkboxAllowShrink.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowShrink.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowShrink.LanguageKey = "printoptions_allowshrink"; + this.checkboxAllowShrink.Location = new System.Drawing.Point(12, 20); + this.checkboxAllowShrink.Name = "checkboxAllowShrink"; + this.checkboxAllowShrink.PropertyName = "OutputPrintAllowShrink"; + this.checkboxAllowShrink.Size = new System.Drawing.Size(168, 17); + this.checkboxAllowShrink.TabIndex = 21; + this.checkboxAllowShrink.Text = "Shrink printout to fit paper size"; + this.checkboxAllowShrink.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowShrink.UseVisualStyleBackColor = true; + // + // checkboxAllowEnlarge + // + this.checkboxAllowEnlarge.AutoSize = true; + this.checkboxAllowEnlarge.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowEnlarge.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowEnlarge.LanguageKey = "printoptions_allowenlarge"; + this.checkboxAllowEnlarge.Location = new System.Drawing.Point(12, 43); + this.checkboxAllowEnlarge.Name = "checkboxAllowEnlarge"; + this.checkboxAllowEnlarge.PropertyName = "OutputPrintAllowEnlarge"; + this.checkboxAllowEnlarge.Size = new System.Drawing.Size(174, 17); + this.checkboxAllowEnlarge.TabIndex = 22; + this.checkboxAllowEnlarge.Text = "Enlarge printout to fit paper size"; + this.checkboxAllowEnlarge.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowEnlarge.UseVisualStyleBackColor = true; + // + // checkboxAllowCenter + // + this.checkboxAllowCenter.AutoSize = true; + this.checkboxAllowCenter.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowCenter.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowCenter.LanguageKey = "printoptions_allowcenter"; + this.checkboxAllowCenter.Location = new System.Drawing.Point(12, 89); + this.checkboxAllowCenter.Name = "checkboxAllowCenter"; + this.checkboxAllowCenter.PropertyName = "OutputPrintCenter"; + this.checkboxAllowCenter.Size = new System.Drawing.Size(137, 17); + this.checkboxAllowCenter.TabIndex = 24; + this.checkboxAllowCenter.Text = "Center printout on page"; + this.checkboxAllowCenter.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowCenter.UseVisualStyleBackColor = true; + // + // checkboxAllowRotate + // + this.checkboxAllowRotate.AutoSize = true; + this.checkboxAllowRotate.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowRotate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowRotate.LanguageKey = "printoptions_allowrotate"; + this.checkboxAllowRotate.Location = new System.Drawing.Point(12, 66); + this.checkboxAllowRotate.Name = "checkboxAllowRotate"; + this.checkboxAllowRotate.PropertyName = "OutputPrintAllowRotate"; + this.checkboxAllowRotate.Size = new System.Drawing.Size(187, 17); + this.checkboxAllowRotate.TabIndex = 23; + this.checkboxAllowRotate.Text = "Rotate printout to page orientation"; + this.checkboxAllowRotate.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowRotate.UseVisualStyleBackColor = true; + // + // button_ok + // + this.button_ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button_ok.DialogResult = System.Windows.Forms.DialogResult.OK; + this.button_ok.LanguageKey = "OK"; + this.button_ok.Location = new System.Drawing.Point(187, 267); + this.button_ok.Name = "button_ok"; + this.button_ok.Size = new System.Drawing.Size(75, 23); + this.button_ok.TabIndex = 25; + this.button_ok.Text = "Ok"; + this.button_ok.UseVisualStyleBackColor = true; + this.button_ok.Click += new System.EventHandler(this.Button_okClick); + // + // checkboxDateTime + // + this.checkboxDateTime.AutoSize = true; + this.checkboxDateTime.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxDateTime.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxDateTime.LanguageKey = "printoptions_timestamp"; + this.checkboxDateTime.Location = new System.Drawing.Point(12, 112); + this.checkboxDateTime.Name = "checkboxDateTime"; + this.checkboxDateTime.PropertyName = "OutputPrintFooter"; + this.checkboxDateTime.Size = new System.Drawing.Size(187, 17); + this.checkboxDateTime.TabIndex = 26; + this.checkboxDateTime.Text = "Print date / time at bottom of page"; + this.checkboxDateTime.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxDateTime.UseVisualStyleBackColor = true; + // + // button_cancel + // + this.button_cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.button_cancel.LanguageKey = "CANCEL"; + this.button_cancel.Location = new System.Drawing.Point(268, 267); + this.button_cancel.Name = "button_cancel"; + this.button_cancel.Size = new System.Drawing.Size(75, 23); + this.button_cancel.TabIndex = 27; + this.button_cancel.Text = "Cancel"; + this.button_cancel.UseVisualStyleBackColor = true; + // + // checkboxPrintInverted + // + this.checkboxPrintInverted.AutoSize = true; + this.checkboxPrintInverted.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxPrintInverted.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxPrintInverted.LanguageKey = "printoptions_inverted"; + this.checkboxPrintInverted.Location = new System.Drawing.Point(12, 135); + this.checkboxPrintInverted.Name = "checkboxPrintInverted"; + this.checkboxPrintInverted.PropertyName = "OutputPrintInverted"; + this.checkboxPrintInverted.Size = new System.Drawing.Size(141, 17); + this.checkboxPrintInverted.TabIndex = 28; + this.checkboxPrintInverted.Text = "Print with inverted colors"; + this.checkboxPrintInverted.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxPrintInverted.UseVisualStyleBackColor = true; + // + // checkbox_grayscale + // + this.checkbox_grayscale.AutoSize = true; + this.checkbox_grayscale.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_grayscale.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_grayscale.LanguageKey = "printoptions_printgrayscale"; + this.checkbox_grayscale.Location = new System.Drawing.Point(12, 158); + this.checkbox_grayscale.Name = "checkbox_grayscale"; + this.checkbox_grayscale.PropertyName = "OutputPrintGrayscale"; + this.checkbox_grayscale.Size = new System.Drawing.Size(138, 17); + this.checkbox_grayscale.TabIndex = 29; + this.checkbox_grayscale.Text = "Force grayscale printing"; + this.checkbox_grayscale.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_grayscale.UseVisualStyleBackColor = true; + // + // checkbox_monochrome + // + this.checkbox_monochrome.AutoSize = true; + this.checkbox_monochrome.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_monochrome.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_monochrome.LanguageKey = "printoptions_printmonochrome"; + this.checkbox_monochrome.Location = new System.Drawing.Point(12, 181); + this.checkbox_monochrome.Name = "checkbox_monochrome"; + this.checkbox_monochrome.PropertyName = "OutputPrintMonochrome"; + this.checkbox_monochrome.Size = new System.Drawing.Size(149, 17); + this.checkbox_monochrome.TabIndex = 30; + this.checkbox_monochrome.Text = "Force black/white printing"; + this.checkbox_monochrome.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_monochrome.UseVisualStyleBackColor = true; + // + // PrintOptionsDialog + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.ClientSize = new System.Drawing.Size(355, 302); + this.Controls.Add(this.checkbox_monochrome); + this.Controls.Add(this.checkbox_grayscale); + this.Controls.Add(this.checkboxPrintInverted); + this.Controls.Add(this.button_cancel); + this.Controls.Add(this.checkboxDateTime); + this.Controls.Add(this.button_ok); + this.Controls.Add(this.checkbox_dontaskagain); + this.Controls.Add(this.checkboxAllowCenter); + this.Controls.Add(this.checkboxAllowRotate); + this.Controls.Add(this.checkboxAllowEnlarge); + this.Controls.Add(this.checkboxAllowShrink); + this.LanguageKey = "printoptions_title"; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "PrintOptionsDialog"; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.Text = "Greenshot print options"; + this.ResumeLayout(false); + this.PerformLayout(); + } private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_grayscale; private GreenshotPlugin.Controls.GreenshotCheckBox checkboxPrintInverted; @@ -238,5 +256,6 @@ namespace Greenshot.Forms private GreenshotPlugin.Controls.GreenshotCheckBox checkboxAllowEnlarge; private GreenshotPlugin.Controls.GreenshotCheckBox checkboxAllowShrink; private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_dontaskagain; + private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_monochrome; } } diff --git a/Greenshot/Forms/SettingsForm.Designer.cs b/Greenshot/Forms/SettingsForm.Designer.cs index 2901881f8..10d8e3f25 100644 --- a/Greenshot/Forms/SettingsForm.Designer.cs +++ b/Greenshot/Forms/SettingsForm.Designer.cs @@ -46,1168 +46,1253 @@ namespace Greenshot { /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm)); - this.textbox_storagelocation = new GreenshotPlugin.Controls.GreenshotTextBox(); - this.label_storagelocation = new GreenshotPlugin.Controls.GreenshotLabel(); - this.settings_cancel = new GreenshotPlugin.Controls.GreenshotButton(); - this.settings_confirm = new GreenshotPlugin.Controls.GreenshotButton(); - this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); - this.browse = new System.Windows.Forms.Button(); - this.label_screenshotname = new GreenshotPlugin.Controls.GreenshotLabel(); - this.textbox_screenshotname = new GreenshotPlugin.Controls.GreenshotTextBox(); - this.label_language = new GreenshotPlugin.Controls.GreenshotLabel(); - this.combobox_language = new System.Windows.Forms.ComboBox(); - this.combobox_primaryimageformat = new GreenshotPlugin.Controls.GreenshotComboBox(); - this.label_primaryimageformat = new GreenshotPlugin.Controls.GreenshotLabel(); - this.groupbox_preferredfilesettings = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.btnPatternHelp = new System.Windows.Forms.Button(); - this.checkbox_copypathtoclipboard = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.groupbox_applicationsettings = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_autostartshortcut = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.groupbox_qualitysettings = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_reducecolors = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_alwaysshowqualitydialog = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.label_jpegquality = new GreenshotPlugin.Controls.GreenshotLabel(); - this.textBoxJpegQuality = new System.Windows.Forms.TextBox(); - this.trackBarJpegQuality = new System.Windows.Forms.TrackBar(); - this.groupbox_destination = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_picker = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.listview_destinations = new System.Windows.Forms.ListView(); - this.destination = new System.Windows.Forms.ColumnHeader(); - this.tabcontrol = new System.Windows.Forms.TabControl(); - this.tab_general = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.groupbox_network = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.numericUpDown_daysbetweencheck = new System.Windows.Forms.NumericUpDown(); - this.label_checkperiod = new GreenshotPlugin.Controls.GreenshotLabel(); - this.checkbox_usedefaultproxy = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.groupbox_hotkeys = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.label_lastregion_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); - this.lastregion_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); - this.label_ie_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); - this.ie_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); - this.label_region_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); - this.label_window_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); - this.label_fullscreen_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); - this.region_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); - this.window_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); - this.fullscreen_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); - this.tab_capture = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.groupbox_editor = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_editor_match_capture_size = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.groupbox_iecapture = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_ie_capture = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.groupbox_windowscapture = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.colorButton_window_background = new Greenshot.Controls.ColorButton(); - this.label_window_capture_mode = new GreenshotPlugin.Controls.GreenshotLabel(); - this.checkbox_capture_windows_interactive = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.combobox_window_capture_mode = new System.Windows.Forms.ComboBox(); - this.groupbox_capture = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_notifications = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_playsound = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_capture_mousepointer = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.numericUpDownWaitTime = new System.Windows.Forms.NumericUpDown(); - this.label_waittime = new GreenshotPlugin.Controls.GreenshotLabel(); - this.tab_output = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.tab_destinations = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.tab_printer = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.groupbox_printoptions = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_printgrayscale = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxPrintInverted = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_alwaysshowprintoptionsdialog = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxTimestamp = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowCenter = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowRotate = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowEnlarge = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkboxAllowShrink = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.tab_plugins = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.groupbox_plugins = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.listview_plugins = new System.Windows.Forms.ListView(); - this.button_pluginconfigure = new GreenshotPlugin.Controls.GreenshotButton(); - this.tab_expert = new GreenshotPlugin.Controls.GreenshotTabPage(); - this.groupbox_expert = new GreenshotPlugin.Controls.GreenshotGroupBox(); - this.checkbox_reuseeditor = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_minimizememoryfootprint = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_checkunstableupdates = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_suppresssavedialogatclose = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.label_counter = new GreenshotPlugin.Controls.GreenshotLabel(); - this.textbox_counter = new GreenshotPlugin.Controls.GreenshotTextBox(); - this.label_footerpattern = new GreenshotPlugin.Controls.GreenshotLabel(); - this.textbox_footerpattern = new GreenshotPlugin.Controls.GreenshotTextBox(); - this.checkbox_thumbnailpreview = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_optimizeforrdp = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.checkbox_autoreducecolors = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.label_clipboardformats = new GreenshotPlugin.Controls.GreenshotLabel(); - this.checkbox_enableexpert = new GreenshotPlugin.Controls.GreenshotCheckBox(); - this.listview_clipboardformats = new System.Windows.Forms.ListView(); - this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); - this.groupbox_preferredfilesettings.SuspendLayout(); - this.groupbox_applicationsettings.SuspendLayout(); - this.groupbox_qualitysettings.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarJpegQuality)).BeginInit(); - this.groupbox_destination.SuspendLayout(); - this.tabcontrol.SuspendLayout(); - this.tab_general.SuspendLayout(); - this.groupbox_network.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_daysbetweencheck)).BeginInit(); - this.groupbox_hotkeys.SuspendLayout(); - this.tab_capture.SuspendLayout(); - this.groupbox_editor.SuspendLayout(); - this.groupbox_iecapture.SuspendLayout(); - this.groupbox_windowscapture.SuspendLayout(); - this.groupbox_capture.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWaitTime)).BeginInit(); - this.tab_output.SuspendLayout(); - this.tab_destinations.SuspendLayout(); - this.tab_printer.SuspendLayout(); - this.groupbox_printoptions.SuspendLayout(); - this.tab_plugins.SuspendLayout(); - this.groupbox_plugins.SuspendLayout(); - this.tab_expert.SuspendLayout(); - this.groupbox_expert.SuspendLayout(); - this.SuspendLayout(); - // - // textbox_storagelocation - // - this.textbox_storagelocation.Location = new System.Drawing.Point(138, 18); - this.textbox_storagelocation.Name = "textbox_storagelocation"; - this.textbox_storagelocation.Size = new System.Drawing.Size(233, 20); - this.textbox_storagelocation.TabIndex = 12; - this.textbox_storagelocation.TextChanged += new System.EventHandler(this.StorageLocationChanged); - // - // label_storagelocation - // - this.label_storagelocation.LanguageKey = "settings_storagelocation"; - this.label_storagelocation.Location = new System.Drawing.Point(6, 21); - this.label_storagelocation.Name = "label_storagelocation"; - this.label_storagelocation.Size = new System.Drawing.Size(126, 23); - this.label_storagelocation.TabIndex = 11; - // - // settings_cancel - // - this.settings_cancel.LanguageKey = "CANCEL"; - this.settings_cancel.Location = new System.Drawing.Point(367, 366); - this.settings_cancel.Name = "settings_cancel"; - this.settings_cancel.Size = new System.Drawing.Size(75, 23); - this.settings_cancel.TabIndex = 7; - this.settings_cancel.UseVisualStyleBackColor = true; - this.settings_cancel.Click += new System.EventHandler(this.Settings_cancelClick); - // - // settings_confirm - // - this.settings_confirm.LanguageKey = "OK"; - this.settings_confirm.Location = new System.Drawing.Point(286, 366); - this.settings_confirm.Name = "settings_confirm"; - this.settings_confirm.Size = new System.Drawing.Size(75, 23); - this.settings_confirm.TabIndex = 6; - this.settings_confirm.UseVisualStyleBackColor = true; - this.settings_confirm.Click += new System.EventHandler(this.Settings_okayClick); - // - // browse - // - this.browse.Location = new System.Drawing.Point(371, 17); - this.browse.Name = "browse"; - this.browse.Size = new System.Drawing.Size(35, 23); - this.browse.TabIndex = 1; - this.browse.Text = "..."; - this.browse.UseVisualStyleBackColor = true; - this.browse.Click += new System.EventHandler(this.BrowseClick); - // - // label_screenshotname - // - this.label_screenshotname.LanguageKey = "settings_filenamepattern"; - this.label_screenshotname.Location = new System.Drawing.Point(6, 44); - this.label_screenshotname.Name = "label_screenshotname"; - this.label_screenshotname.Size = new System.Drawing.Size(126, 23); - this.label_screenshotname.TabIndex = 9; - // - // textbox_screenshotname - // - this.textbox_screenshotname.Location = new System.Drawing.Point(138, 41); - this.textbox_screenshotname.Name = "textbox_screenshotname"; - this.textbox_screenshotname.PropertyName = "OutputFileFilenamePattern"; - this.textbox_screenshotname.Size = new System.Drawing.Size(233, 20); - this.textbox_screenshotname.TabIndex = 2; - // - // label_language - // - this.label_language.LanguageKey = "settings_language"; - this.label_language.Location = new System.Drawing.Point(6, 20); - this.label_language.Name = "label_language"; - this.label_language.Size = new System.Drawing.Size(181, 23); - this.label_language.TabIndex = 10; - // - // combobox_language - // - this.combobox_language.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.combobox_language.FormattingEnabled = true; - this.combobox_language.Location = new System.Drawing.Point(193, 17); - this.combobox_language.MaxDropDownItems = 15; - this.combobox_language.Name = "combobox_language"; - this.combobox_language.Size = new System.Drawing.Size(213, 21); - this.combobox_language.TabIndex = 0; - // - // combobox_primaryimageformat - // - this.combobox_primaryimageformat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.combobox_primaryimageformat.FormattingEnabled = true; - this.combobox_primaryimageformat.Location = new System.Drawing.Point(138, 64); - this.combobox_primaryimageformat.Name = "combobox_primaryimageformat"; - this.combobox_primaryimageformat.PropertyName = "OutputFileFormat"; - this.combobox_primaryimageformat.Size = new System.Drawing.Size(268, 21); - this.combobox_primaryimageformat.TabIndex = 4; - // - // label_primaryimageformat - // - this.label_primaryimageformat.LanguageKey = "settings_primaryimageformat"; - this.label_primaryimageformat.Location = new System.Drawing.Point(6, 67); - this.label_primaryimageformat.Name = "label_primaryimageformat"; - this.label_primaryimageformat.Size = new System.Drawing.Size(126, 19); - this.label_primaryimageformat.TabIndex = 8; - // - // groupbox_preferredfilesettings - // - this.groupbox_preferredfilesettings.Controls.Add(this.btnPatternHelp); - this.groupbox_preferredfilesettings.Controls.Add(this.checkbox_copypathtoclipboard); - this.groupbox_preferredfilesettings.Controls.Add(this.combobox_primaryimageformat); - this.groupbox_preferredfilesettings.Controls.Add(this.label_primaryimageformat); - this.groupbox_preferredfilesettings.Controls.Add(this.label_storagelocation); - this.groupbox_preferredfilesettings.Controls.Add(this.browse); - this.groupbox_preferredfilesettings.Controls.Add(this.textbox_storagelocation); - this.groupbox_preferredfilesettings.Controls.Add(this.textbox_screenshotname); - this.groupbox_preferredfilesettings.Controls.Add(this.label_screenshotname); - this.groupbox_preferredfilesettings.LanguageKey = "settings_preferredfilesettings"; - this.groupbox_preferredfilesettings.Location = new System.Drawing.Point(2, 6); - this.groupbox_preferredfilesettings.Name = "groupbox_preferredfilesettings"; - this.groupbox_preferredfilesettings.Size = new System.Drawing.Size(412, 122); - this.groupbox_preferredfilesettings.TabIndex = 13; - this.groupbox_preferredfilesettings.TabStop = false; - // - // btnPatternHelp - // - this.btnPatternHelp.Location = new System.Drawing.Point(371, 39); - this.btnPatternHelp.Name = "btnPatternHelp"; - this.btnPatternHelp.Size = new System.Drawing.Size(35, 23); - this.btnPatternHelp.TabIndex = 19; - this.btnPatternHelp.Text = "?"; - this.btnPatternHelp.UseVisualStyleBackColor = true; - this.btnPatternHelp.Click += new System.EventHandler(this.BtnPatternHelpClick); - // - // checkbox_copypathtoclipboard - // - this.checkbox_copypathtoclipboard.LanguageKey = "settings_copypathtoclipboard"; - this.checkbox_copypathtoclipboard.Location = new System.Drawing.Point(12, 89); - this.checkbox_copypathtoclipboard.Name = "checkbox_copypathtoclipboard"; - this.checkbox_copypathtoclipboard.PropertyName = "OutputFileCopyPathToClipboard"; - this.checkbox_copypathtoclipboard.Size = new System.Drawing.Size(394, 24); - this.checkbox_copypathtoclipboard.TabIndex = 18; - this.checkbox_copypathtoclipboard.UseVisualStyleBackColor = true; - // - // groupbox_applicationsettings - // - this.groupbox_applicationsettings.Controls.Add(this.checkbox_autostartshortcut); - this.groupbox_applicationsettings.Controls.Add(this.label_language); - this.groupbox_applicationsettings.Controls.Add(this.combobox_language); - this.groupbox_applicationsettings.LanguageKey = "settings_applicationsettings"; - this.groupbox_applicationsettings.Location = new System.Drawing.Point(2, 6); - this.groupbox_applicationsettings.Name = "groupbox_applicationsettings"; - this.groupbox_applicationsettings.Size = new System.Drawing.Size(412, 68); - this.groupbox_applicationsettings.TabIndex = 14; - this.groupbox_applicationsettings.TabStop = false; - // - // checkbox_autostartshortcut - // - this.checkbox_autostartshortcut.LanguageKey = "settings_autostartshortcut"; - this.checkbox_autostartshortcut.Location = new System.Drawing.Point(8, 39); - this.checkbox_autostartshortcut.Name = "checkbox_autostartshortcut"; - this.checkbox_autostartshortcut.Size = new System.Drawing.Size(397, 25); - this.checkbox_autostartshortcut.TabIndex = 15; - this.checkbox_autostartshortcut.UseVisualStyleBackColor = true; - // - // groupbox_qualitysettings - // - this.groupbox_qualitysettings.Controls.Add(this.checkbox_reducecolors); - this.groupbox_qualitysettings.Controls.Add(this.checkbox_alwaysshowqualitydialog); - this.groupbox_qualitysettings.Controls.Add(this.label_jpegquality); - this.groupbox_qualitysettings.Controls.Add(this.textBoxJpegQuality); - this.groupbox_qualitysettings.Controls.Add(this.trackBarJpegQuality); - this.groupbox_qualitysettings.LanguageKey = "settings_qualitysettings"; - this.groupbox_qualitysettings.Location = new System.Drawing.Point(2, 156); - this.groupbox_qualitysettings.Name = "groupbox_qualitysettings"; - this.groupbox_qualitysettings.Size = new System.Drawing.Size(412, 106); - this.groupbox_qualitysettings.TabIndex = 14; - this.groupbox_qualitysettings.TabStop = false; - // - // checkbox_reducecolors - // - this.checkbox_reducecolors.LanguageKey = "settings_reducecolors"; - this.checkbox_reducecolors.Location = new System.Drawing.Point(12, 72); - this.checkbox_reducecolors.Name = "checkbox_reducecolors"; - this.checkbox_reducecolors.PropertyName = "OutputFileReduceColors"; - this.checkbox_reducecolors.Size = new System.Drawing.Size(394, 25); - this.checkbox_reducecolors.TabIndex = 17; - this.checkbox_reducecolors.UseVisualStyleBackColor = true; - // - // checkbox_alwaysshowqualitydialog - // - this.checkbox_alwaysshowqualitydialog.LanguageKey = "settings_alwaysshowqualitydialog"; - this.checkbox_alwaysshowqualitydialog.Location = new System.Drawing.Point(12, 50); - this.checkbox_alwaysshowqualitydialog.Name = "checkbox_alwaysshowqualitydialog"; - this.checkbox_alwaysshowqualitydialog.PropertyName = "OutputFilePromptQuality"; - this.checkbox_alwaysshowqualitydialog.Size = new System.Drawing.Size(394, 25); - this.checkbox_alwaysshowqualitydialog.TabIndex = 16; - this.checkbox_alwaysshowqualitydialog.UseVisualStyleBackColor = true; - // - // label_jpegquality - // - this.label_jpegquality.LanguageKey = "settings_jpegquality"; - this.label_jpegquality.Location = new System.Drawing.Point(6, 24); - this.label_jpegquality.Name = "label_jpegquality"; - this.label_jpegquality.Size = new System.Drawing.Size(116, 23); - this.label_jpegquality.TabIndex = 13; - // - // textBoxJpegQuality - // - this.textBoxJpegQuality.Location = new System.Drawing.Point(371, 21); - this.textBoxJpegQuality.Name = "textBoxJpegQuality"; - this.textBoxJpegQuality.ReadOnly = true; - this.textBoxJpegQuality.Size = new System.Drawing.Size(35, 20); - this.textBoxJpegQuality.TabIndex = 13; - this.textBoxJpegQuality.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // trackBarJpegQuality - // - this.trackBarJpegQuality.LargeChange = 10; - this.trackBarJpegQuality.Location = new System.Drawing.Point(138, 21); - this.trackBarJpegQuality.Maximum = 100; - this.trackBarJpegQuality.Name = "trackBarJpegQuality"; - this.trackBarJpegQuality.Size = new System.Drawing.Size(233, 45); - this.trackBarJpegQuality.TabIndex = 0; - this.trackBarJpegQuality.TickFrequency = 10; - this.trackBarJpegQuality.Scroll += new System.EventHandler(this.TrackBarJpegQualityScroll); - // - // groupbox_destination - // - this.groupbox_destination.Controls.Add(this.checkbox_picker); - this.groupbox_destination.Controls.Add(this.listview_destinations); - this.groupbox_destination.LanguageKey = "settings_destination"; - this.groupbox_destination.Location = new System.Drawing.Point(2, 6); - this.groupbox_destination.Name = "groupbox_destination"; - this.groupbox_destination.Size = new System.Drawing.Size(412, 311); - this.groupbox_destination.TabIndex = 16; - this.groupbox_destination.TabStop = false; - // - // checkbox_picker - // - this.checkbox_picker.LanguageKey = "settings_destination_picker"; - this.checkbox_picker.Location = new System.Drawing.Point(6, 14); - this.checkbox_picker.Name = "checkbox_picker"; - this.checkbox_picker.Size = new System.Drawing.Size(394, 24); - this.checkbox_picker.TabIndex = 19; - this.checkbox_picker.UseVisualStyleBackColor = true; - this.checkbox_picker.CheckStateChanged += new System.EventHandler(this.DestinationsCheckStateChanged); - // - // listview_destinations - // - this.listview_destinations.Alignment = System.Windows.Forms.ListViewAlignment.Left; - this.listview_destinations.AutoArrange = false; - this.listview_destinations.CheckBoxes = true; - this.listview_destinations.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.destination}); - this.listview_destinations.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; - this.listview_destinations.LabelWrap = false; - this.listview_destinations.Location = new System.Drawing.Point(6, 38); - this.listview_destinations.Name = "listview_destinations"; - this.listview_destinations.ShowGroups = false; - this.listview_destinations.Size = new System.Drawing.Size(401, 267); - this.listview_destinations.Sorting = System.Windows.Forms.SortOrder.Ascending; - this.listview_destinations.TabIndex = 0; - this.listview_destinations.UseCompatibleStateImageBehavior = false; - this.listview_destinations.View = System.Windows.Forms.View.Details; - // - // destination - // - this.destination.Text = "Destination"; - this.destination.Width = 380; - // - // tabcontrol - // - this.tabcontrol.Controls.Add(this.tab_general); - this.tabcontrol.Controls.Add(this.tab_capture); - this.tabcontrol.Controls.Add(this.tab_output); - this.tabcontrol.Controls.Add(this.tab_destinations); - this.tabcontrol.Controls.Add(this.tab_printer); - this.tabcontrol.Controls.Add(this.tab_plugins); - this.tabcontrol.Controls.Add(this.tab_expert); - this.tabcontrol.Location = new System.Drawing.Point(12, 13); - this.tabcontrol.Name = "tabcontrol"; - this.tabcontrol.SelectedIndex = 0; - this.tabcontrol.Size = new System.Drawing.Size(431, 346); - this.tabcontrol.TabIndex = 17; - // - // tab_general - // - this.tab_general.BackColor = System.Drawing.Color.Transparent; - this.tab_general.Controls.Add(this.groupbox_network); - this.tab_general.Controls.Add(this.groupbox_hotkeys); - this.tab_general.Controls.Add(this.groupbox_applicationsettings); - this.tab_general.LanguageKey = "settings_general"; - this.tab_general.Location = new System.Drawing.Point(4, 22); - this.tab_general.Name = "tab_general"; - this.tab_general.Padding = new System.Windows.Forms.Padding(3); - this.tab_general.Size = new System.Drawing.Size(423, 320); - this.tab_general.TabIndex = 0; - this.tab_general.UseVisualStyleBackColor = true; - // - // groupbox_network - // - this.groupbox_network.Controls.Add(this.numericUpDown_daysbetweencheck); - this.groupbox_network.Controls.Add(this.label_checkperiod); - this.groupbox_network.Controls.Add(this.checkbox_usedefaultproxy); - this.groupbox_network.LanguageKey = "settings_network"; - this.groupbox_network.Location = new System.Drawing.Point(3, 232); - this.groupbox_network.Name = "groupbox_network"; - this.groupbox_network.Size = new System.Drawing.Size(412, 72); - this.groupbox_network.TabIndex = 54; - this.groupbox_network.TabStop = false; - // - // numericUpDown_daysbetweencheck - // - this.numericUpDown_daysbetweencheck.Location = new System.Drawing.Point(345, 37); - this.numericUpDown_daysbetweencheck.Name = "numericUpDown_daysbetweencheck"; - this.numericUpDown_daysbetweencheck.Size = new System.Drawing.Size(57, 20); - this.numericUpDown_daysbetweencheck.TabIndex = 25; - this.numericUpDown_daysbetweencheck.ThousandsSeparator = true; - // - // label_checkperiod - // - this.label_checkperiod.LanguageKey = "settings_checkperiod"; - this.label_checkperiod.Location = new System.Drawing.Point(5, 39); - this.label_checkperiod.Name = "label_checkperiod"; - this.label_checkperiod.Size = new System.Drawing.Size(334, 23); - this.label_checkperiod.TabIndex = 19; - // - // checkbox_usedefaultproxy - // - this.checkbox_usedefaultproxy.LanguageKey = "settings_usedefaultproxy"; - this.checkbox_usedefaultproxy.Location = new System.Drawing.Point(7, 11); - this.checkbox_usedefaultproxy.Name = "checkbox_usedefaultproxy"; - this.checkbox_usedefaultproxy.PropertyName = "UseProxy"; - this.checkbox_usedefaultproxy.Size = new System.Drawing.Size(397, 25); - this.checkbox_usedefaultproxy.TabIndex = 17; - this.checkbox_usedefaultproxy.UseVisualStyleBackColor = true; - // - // groupbox_hotkeys - // - this.groupbox_hotkeys.Controls.Add(this.label_lastregion_hotkey); - this.groupbox_hotkeys.Controls.Add(this.lastregion_hotkeyControl); - this.groupbox_hotkeys.Controls.Add(this.label_ie_hotkey); - this.groupbox_hotkeys.Controls.Add(this.ie_hotkeyControl); - this.groupbox_hotkeys.Controls.Add(this.label_region_hotkey); - this.groupbox_hotkeys.Controls.Add(this.label_window_hotkey); - this.groupbox_hotkeys.Controls.Add(this.label_fullscreen_hotkey); - this.groupbox_hotkeys.Controls.Add(this.region_hotkeyControl); - this.groupbox_hotkeys.Controls.Add(this.window_hotkeyControl); - this.groupbox_hotkeys.Controls.Add(this.fullscreen_hotkeyControl); - this.groupbox_hotkeys.LanguageKey = "hotkeys"; - this.groupbox_hotkeys.Location = new System.Drawing.Point(2, 76); - this.groupbox_hotkeys.Name = "groupbox_hotkeys"; - this.groupbox_hotkeys.Size = new System.Drawing.Size(412, 152); - this.groupbox_hotkeys.TabIndex = 15; - this.groupbox_hotkeys.TabStop = false; - // - // label_lastregion_hotkey - // - this.label_lastregion_hotkey.LanguageKey = "contextmenu_capturelastregion"; - this.label_lastregion_hotkey.Location = new System.Drawing.Point(6, 94); - this.label_lastregion_hotkey.Name = "label_lastregion_hotkey"; - this.label_lastregion_hotkey.Size = new System.Drawing.Size(212, 20); - this.label_lastregion_hotkey.TabIndex = 53; - // - // lastregion_hotkeyControl - // - this.lastregion_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; - this.lastregion_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; - this.lastregion_hotkeyControl.Location = new System.Drawing.Point(224, 94); - this.lastregion_hotkeyControl.Name = "lastregion_hotkeyControl"; - this.lastregion_hotkeyControl.PropertyName = "LastregionHotkey"; - this.lastregion_hotkeyControl.Size = new System.Drawing.Size(179, 20); - this.lastregion_hotkeyControl.TabIndex = 52; - // - // label_ie_hotkey - // - this.label_ie_hotkey.LanguageKey = "contextmenu_captureie"; - this.label_ie_hotkey.Location = new System.Drawing.Point(6, 120); - this.label_ie_hotkey.Name = "label_ie_hotkey"; - this.label_ie_hotkey.Size = new System.Drawing.Size(212, 20); - this.label_ie_hotkey.TabIndex = 51; - // - // ie_hotkeyControl - // - this.ie_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; - this.ie_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; - this.ie_hotkeyControl.Location = new System.Drawing.Point(224, 120); - this.ie_hotkeyControl.Name = "ie_hotkeyControl"; - this.ie_hotkeyControl.PropertyName = "IEHotkey"; - this.ie_hotkeyControl.Size = new System.Drawing.Size(179, 20); - this.ie_hotkeyControl.TabIndex = 50; - // - // label_region_hotkey - // - this.label_region_hotkey.LanguageKey = "contextmenu_capturearea"; - this.label_region_hotkey.Location = new System.Drawing.Point(6, 68); - this.label_region_hotkey.Name = "label_region_hotkey"; - this.label_region_hotkey.Size = new System.Drawing.Size(212, 20); - this.label_region_hotkey.TabIndex = 49; - // - // label_window_hotkey - // - this.label_window_hotkey.LanguageKey = "contextmenu_capturewindow"; - this.label_window_hotkey.Location = new System.Drawing.Point(6, 42); - this.label_window_hotkey.Name = "label_window_hotkey"; - this.label_window_hotkey.Size = new System.Drawing.Size(212, 23); - this.label_window_hotkey.TabIndex = 48; - // - // label_fullscreen_hotkey - // - this.label_fullscreen_hotkey.LanguageKey = "contextmenu_capturefullscreen"; - this.label_fullscreen_hotkey.Location = new System.Drawing.Point(6, 16); - this.label_fullscreen_hotkey.Name = "label_fullscreen_hotkey"; - this.label_fullscreen_hotkey.Size = new System.Drawing.Size(212, 23); - this.label_fullscreen_hotkey.TabIndex = 47; - // - // region_hotkeyControl - // - this.region_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; - this.region_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; - this.region_hotkeyControl.Location = new System.Drawing.Point(224, 68); - this.region_hotkeyControl.Name = "region_hotkeyControl"; - this.region_hotkeyControl.PropertyName = "RegionHotkey"; - this.region_hotkeyControl.Size = new System.Drawing.Size(179, 20); - this.region_hotkeyControl.TabIndex = 46; - // - // window_hotkeyControl - // - this.window_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; - this.window_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; - this.window_hotkeyControl.Location = new System.Drawing.Point(224, 42); - this.window_hotkeyControl.Name = "window_hotkeyControl"; - this.window_hotkeyControl.PropertyName = "WindowHotkey"; - this.window_hotkeyControl.Size = new System.Drawing.Size(179, 20); - this.window_hotkeyControl.TabIndex = 45; - // - // fullscreen_hotkeyControl - // - this.fullscreen_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; - this.fullscreen_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; - this.fullscreen_hotkeyControl.Location = new System.Drawing.Point(224, 16); - this.fullscreen_hotkeyControl.Name = "fullscreen_hotkeyControl"; - this.fullscreen_hotkeyControl.PropertyName = "FullscreenHotkey"; - this.fullscreen_hotkeyControl.Size = new System.Drawing.Size(179, 20); - this.fullscreen_hotkeyControl.TabIndex = 44; - // - // tab_capture - // - this.tab_capture.Controls.Add(this.groupbox_editor); - this.tab_capture.Controls.Add(this.groupbox_iecapture); - this.tab_capture.Controls.Add(this.groupbox_windowscapture); - this.tab_capture.Controls.Add(this.groupbox_capture); - this.tab_capture.LanguageKey = "settings_capture"; - this.tab_capture.Location = new System.Drawing.Point(4, 22); - this.tab_capture.Name = "tab_capture"; - this.tab_capture.Size = new System.Drawing.Size(423, 320); - this.tab_capture.TabIndex = 3; - this.tab_capture.UseVisualStyleBackColor = true; - // - // groupbox_editor - // - this.groupbox_editor.Controls.Add(this.checkbox_editor_match_capture_size); - this.groupbox_editor.LanguageKey = "settings_editor"; - this.groupbox_editor.Location = new System.Drawing.Point(4, 267); - this.groupbox_editor.Name = "groupbox_editor"; - this.groupbox_editor.Size = new System.Drawing.Size(416, 50); - this.groupbox_editor.TabIndex = 27; - this.groupbox_editor.TabStop = false; - // - // checkbox_editor_match_capture_size - // - this.checkbox_editor_match_capture_size.LanguageKey = "editor_match_capture_size"; - this.checkbox_editor_match_capture_size.Location = new System.Drawing.Point(6, 19); - this.checkbox_editor_match_capture_size.Name = "checkbox_editor_match_capture_size"; - this.checkbox_editor_match_capture_size.PropertyName = "MatchSizeToCapture"; - this.checkbox_editor_match_capture_size.SectionName = "Editor"; - this.checkbox_editor_match_capture_size.Size = new System.Drawing.Size(397, 24); - this.checkbox_editor_match_capture_size.TabIndex = 26; - this.checkbox_editor_match_capture_size.UseVisualStyleBackColor = true; - // - // groupbox_iecapture - // - this.groupbox_iecapture.Controls.Add(this.checkbox_ie_capture); - this.groupbox_iecapture.LanguageKey = "settings_iecapture"; - this.groupbox_iecapture.Location = new System.Drawing.Point(4, 211); - this.groupbox_iecapture.Name = "groupbox_iecapture"; - this.groupbox_iecapture.Size = new System.Drawing.Size(416, 50); - this.groupbox_iecapture.TabIndex = 2; - this.groupbox_iecapture.TabStop = false; - // - // checkbox_ie_capture - // - this.checkbox_ie_capture.LanguageKey = "settings_iecapture"; - this.checkbox_ie_capture.Location = new System.Drawing.Point(6, 19); - this.checkbox_ie_capture.Name = "checkbox_ie_capture"; - this.checkbox_ie_capture.PropertyName = "IECapture"; - this.checkbox_ie_capture.Size = new System.Drawing.Size(404, 24); - this.checkbox_ie_capture.TabIndex = 26; - this.checkbox_ie_capture.UseVisualStyleBackColor = true; - // - // groupbox_windowscapture - // - this.groupbox_windowscapture.Controls.Add(this.colorButton_window_background); - this.groupbox_windowscapture.Controls.Add(this.label_window_capture_mode); - this.groupbox_windowscapture.Controls.Add(this.checkbox_capture_windows_interactive); - this.groupbox_windowscapture.Controls.Add(this.combobox_window_capture_mode); - this.groupbox_windowscapture.LanguageKey = "settings_windowscapture"; - this.groupbox_windowscapture.Location = new System.Drawing.Point(4, 125); - this.groupbox_windowscapture.Name = "groupbox_windowscapture"; - this.groupbox_windowscapture.Size = new System.Drawing.Size(416, 80); - this.groupbox_windowscapture.TabIndex = 1; - this.groupbox_windowscapture.TabStop = false; - // - // colorButton_window_background - // - this.colorButton_window_background.AutoSize = true; - this.colorButton_window_background.Image = ((System.Drawing.Image)(resources.GetObject("colorButton_window_background.Image"))); - this.colorButton_window_background.Location = new System.Drawing.Point(374, 37); - this.colorButton_window_background.Name = "colorButton_window_background"; - this.colorButton_window_background.SelectedColor = System.Drawing.Color.White; - this.colorButton_window_background.Size = new System.Drawing.Size(29, 30); - this.colorButton_window_background.TabIndex = 45; - this.colorButton_window_background.UseVisualStyleBackColor = true; - // - // label_window_capture_mode - // - this.label_window_capture_mode.LanguageKey = "settings_window_capture_mode"; - this.label_window_capture_mode.Location = new System.Drawing.Point(6, 46); - this.label_window_capture_mode.Name = "label_window_capture_mode"; - this.label_window_capture_mode.Size = new System.Drawing.Size(205, 23); - this.label_window_capture_mode.TabIndex = 26; - // - // checkbox_capture_windows_interactive - // - this.checkbox_capture_windows_interactive.LanguageKey = "settings_capture_windows_interactive"; - this.checkbox_capture_windows_interactive.Location = new System.Drawing.Point(9, 19); - this.checkbox_capture_windows_interactive.Name = "checkbox_capture_windows_interactive"; - this.checkbox_capture_windows_interactive.PropertyName = "CaptureWindowsInteractive"; - this.checkbox_capture_windows_interactive.Size = new System.Drawing.Size(394, 18); - this.checkbox_capture_windows_interactive.TabIndex = 19; - this.checkbox_capture_windows_interactive.UseVisualStyleBackColor = true; - // - // combobox_window_capture_mode - // - this.combobox_window_capture_mode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.combobox_window_capture_mode.FormattingEnabled = true; - this.combobox_window_capture_mode.Location = new System.Drawing.Point(217, 43); - this.combobox_window_capture_mode.MaxDropDownItems = 15; - this.combobox_window_capture_mode.Name = "combobox_window_capture_mode"; - this.combobox_window_capture_mode.Size = new System.Drawing.Size(151, 21); - this.combobox_window_capture_mode.TabIndex = 27; - this.combobox_window_capture_mode.SelectedIndexChanged += new System.EventHandler(this.Combobox_window_capture_modeSelectedIndexChanged); - // - // groupbox_capture - // - this.groupbox_capture.Controls.Add(this.checkbox_notifications); - this.groupbox_capture.Controls.Add(this.checkbox_playsound); - this.groupbox_capture.Controls.Add(this.checkbox_capture_mousepointer); - this.groupbox_capture.Controls.Add(this.numericUpDownWaitTime); - this.groupbox_capture.Controls.Add(this.label_waittime); - this.groupbox_capture.LanguageKey = "settings_capture"; - this.groupbox_capture.Location = new System.Drawing.Point(4, 4); - this.groupbox_capture.Name = "groupbox_capture"; - this.groupbox_capture.Size = new System.Drawing.Size(416, 115); - this.groupbox_capture.TabIndex = 0; - this.groupbox_capture.TabStop = false; - // - // checkbox_notifications - // - this.checkbox_notifications.LanguageKey = "settings_shownotify"; - this.checkbox_notifications.Location = new System.Drawing.Point(11, 59); - this.checkbox_notifications.Name = "checkbox_notifications"; - this.checkbox_notifications.PropertyName = "ShowTrayNotification"; - this.checkbox_notifications.Size = new System.Drawing.Size(399, 24); - this.checkbox_notifications.TabIndex = 26; - this.checkbox_notifications.UseVisualStyleBackColor = true; - // - // checkbox_playsound - // - this.checkbox_playsound.LanguageKey = "settings_playsound"; - this.checkbox_playsound.Location = new System.Drawing.Point(11, 39); - this.checkbox_playsound.Name = "checkbox_playsound"; - this.checkbox_playsound.PropertyName = "PlayCameraSound"; - this.checkbox_playsound.Size = new System.Drawing.Size(399, 24); - this.checkbox_playsound.TabIndex = 18; - this.checkbox_playsound.UseVisualStyleBackColor = true; - // - // checkbox_capture_mousepointer - // - this.checkbox_capture_mousepointer.LanguageKey = "settings_capture_mousepointer"; - this.checkbox_capture_mousepointer.Location = new System.Drawing.Point(11, 19); - this.checkbox_capture_mousepointer.Name = "checkbox_capture_mousepointer"; - this.checkbox_capture_mousepointer.PropertyName = "CaptureMousepointer"; - this.checkbox_capture_mousepointer.Size = new System.Drawing.Size(394, 24); - this.checkbox_capture_mousepointer.TabIndex = 17; - this.checkbox_capture_mousepointer.UseVisualStyleBackColor = true; - // - // numericUpDownWaitTime - // - this.numericUpDownWaitTime.Increment = new decimal(new int[] { - 100, - 0, - 0, - 0}); - this.numericUpDownWaitTime.Location = new System.Drawing.Point(9, 84); - this.numericUpDownWaitTime.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.numericUpDownWaitTime.Name = "numericUpDownWaitTime"; - this.numericUpDownWaitTime.Size = new System.Drawing.Size(57, 20); - this.numericUpDownWaitTime.TabIndex = 24; - this.numericUpDownWaitTime.ThousandsSeparator = true; - // - // label_waittime - // - this.label_waittime.LanguageKey = "settings_waittime"; - this.label_waittime.Location = new System.Drawing.Point(72, 86); - this.label_waittime.Name = "label_waittime"; - this.label_waittime.Size = new System.Drawing.Size(331, 16); - this.label_waittime.TabIndex = 25; - // - // tab_output - // - this.tab_output.BackColor = System.Drawing.Color.Transparent; - this.tab_output.Controls.Add(this.groupbox_preferredfilesettings); - this.tab_output.Controls.Add(this.groupbox_qualitysettings); - this.tab_output.LanguageKey = "settings_output"; - this.tab_output.Location = new System.Drawing.Point(4, 22); - this.tab_output.Name = "tab_output"; - this.tab_output.Padding = new System.Windows.Forms.Padding(3); - this.tab_output.Size = new System.Drawing.Size(423, 320); - this.tab_output.TabIndex = 1; - this.tab_output.UseVisualStyleBackColor = true; - // - // tab_destinations - // - this.tab_destinations.Controls.Add(this.groupbox_destination); - this.tab_destinations.LanguageKey = "settings_destination"; - this.tab_destinations.Location = new System.Drawing.Point(4, 22); - this.tab_destinations.Name = "tab_destinations"; - this.tab_destinations.Size = new System.Drawing.Size(423, 320); - this.tab_destinations.TabIndex = 4; - this.tab_destinations.UseVisualStyleBackColor = true; - // - // tab_printer - // - this.tab_printer.Controls.Add(this.groupbox_printoptions); - this.tab_printer.LanguageKey = "settings_printer"; - this.tab_printer.Location = new System.Drawing.Point(4, 22); - this.tab_printer.Name = "tab_printer"; - this.tab_printer.Padding = new System.Windows.Forms.Padding(3); - this.tab_printer.Size = new System.Drawing.Size(423, 320); - this.tab_printer.TabIndex = 2; - this.tab_printer.UseVisualStyleBackColor = true; - // - // groupbox_printoptions - // - this.groupbox_printoptions.Controls.Add(this.checkbox_printgrayscale); - this.groupbox_printoptions.Controls.Add(this.checkboxPrintInverted); - this.groupbox_printoptions.Controls.Add(this.checkbox_alwaysshowprintoptionsdialog); - this.groupbox_printoptions.Controls.Add(this.checkboxTimestamp); - this.groupbox_printoptions.Controls.Add(this.checkboxAllowCenter); - this.groupbox_printoptions.Controls.Add(this.checkboxAllowRotate); - this.groupbox_printoptions.Controls.Add(this.checkboxAllowEnlarge); - this.groupbox_printoptions.Controls.Add(this.checkboxAllowShrink); - this.groupbox_printoptions.LanguageKey = "settings_printoptions"; - this.groupbox_printoptions.Location = new System.Drawing.Point(2, 6); - this.groupbox_printoptions.Name = "groupbox_printoptions"; - this.groupbox_printoptions.Size = new System.Drawing.Size(412, 227); - this.groupbox_printoptions.TabIndex = 18; - this.groupbox_printoptions.TabStop = false; - // - // checkbox_printgrayscale - // - this.checkbox_printgrayscale.LanguageKey = "printoptions_printgrayscale"; - this.checkbox_printgrayscale.Location = new System.Drawing.Point(12, 167); - this.checkbox_printgrayscale.Name = "checkbox_printgrayscale"; - this.checkbox_printgrayscale.PropertyName = "OutputPrintGrayscale"; - this.checkbox_printgrayscale.Size = new System.Drawing.Size(394, 20); - this.checkbox_printgrayscale.TabIndex = 32; - this.checkbox_printgrayscale.UseVisualStyleBackColor = true; - // - // checkboxPrintInverted - // - this.checkboxPrintInverted.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxPrintInverted.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxPrintInverted.LanguageKey = "printoptions_inverted"; - this.checkboxPrintInverted.Location = new System.Drawing.Point(12, 144); - this.checkboxPrintInverted.Name = "checkboxPrintInverted"; - this.checkboxPrintInverted.PropertyName = "OutputPrintInverted"; - this.checkboxPrintInverted.Size = new System.Drawing.Size(394, 20); - this.checkboxPrintInverted.TabIndex = 31; - this.checkboxPrintInverted.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxPrintInverted.UseVisualStyleBackColor = true; - // - // checkbox_alwaysshowprintoptionsdialog - // - this.checkbox_alwaysshowprintoptionsdialog.LanguageKey = "settings_alwaysshowprintoptionsdialog"; - this.checkbox_alwaysshowprintoptionsdialog.Location = new System.Drawing.Point(12, 200); - this.checkbox_alwaysshowprintoptionsdialog.Name = "checkbox_alwaysshowprintoptionsdialog"; - this.checkbox_alwaysshowprintoptionsdialog.PropertyName = "OutputPrintPromptOptions"; - this.checkbox_alwaysshowprintoptionsdialog.Size = new System.Drawing.Size(394, 20); - this.checkbox_alwaysshowprintoptionsdialog.TabIndex = 17; - this.checkbox_alwaysshowprintoptionsdialog.UseVisualStyleBackColor = true; - // - // checkboxTimestamp - // - this.checkboxTimestamp.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxTimestamp.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxTimestamp.LanguageKey = "printoptions_timestamp"; - this.checkboxTimestamp.Location = new System.Drawing.Point(12, 121); - this.checkboxTimestamp.Name = "checkboxTimestamp"; - this.checkboxTimestamp.PropertyName = "OutputPrintFooter"; - this.checkboxTimestamp.Size = new System.Drawing.Size(394, 20); - this.checkboxTimestamp.TabIndex = 30; - this.checkboxTimestamp.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxTimestamp.UseVisualStyleBackColor = true; - // - // checkboxAllowCenter - // - this.checkboxAllowCenter.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowCenter.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowCenter.LanguageKey = "printoptions_allowcenter"; - this.checkboxAllowCenter.Location = new System.Drawing.Point(12, 96); - this.checkboxAllowCenter.Name = "checkboxAllowCenter"; - this.checkboxAllowCenter.PropertyName = "OutputPrintCenter"; - this.checkboxAllowCenter.Size = new System.Drawing.Size(394, 20); - this.checkboxAllowCenter.TabIndex = 29; - this.checkboxAllowCenter.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowCenter.UseVisualStyleBackColor = true; - // - // checkboxAllowRotate - // - this.checkboxAllowRotate.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowRotate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowRotate.LanguageKey = "printoptions_allowrotate"; - this.checkboxAllowRotate.Location = new System.Drawing.Point(12, 72); - this.checkboxAllowRotate.Name = "checkboxAllowRotate"; - this.checkboxAllowRotate.PropertyName = "OutputPrintAllowRotate"; - this.checkboxAllowRotate.Size = new System.Drawing.Size(394, 20); - this.checkboxAllowRotate.TabIndex = 28; - this.checkboxAllowRotate.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowRotate.UseVisualStyleBackColor = true; - // - // checkboxAllowEnlarge - // - this.checkboxAllowEnlarge.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowEnlarge.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowEnlarge.LanguageKey = "printoptions_allowenlarge"; - this.checkboxAllowEnlarge.Location = new System.Drawing.Point(12, 47); - this.checkboxAllowEnlarge.Name = "checkboxAllowEnlarge"; - this.checkboxAllowEnlarge.PropertyName = "OutputPrintAllowEnlarge"; - this.checkboxAllowEnlarge.Size = new System.Drawing.Size(394, 20); - this.checkboxAllowEnlarge.TabIndex = 27; - this.checkboxAllowEnlarge.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowEnlarge.UseVisualStyleBackColor = true; - // - // checkboxAllowShrink - // - this.checkboxAllowShrink.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowShrink.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowShrink.LanguageKey = "printoptions_allowshrink"; - this.checkboxAllowShrink.Location = new System.Drawing.Point(12, 22); - this.checkboxAllowShrink.Name = "checkboxAllowShrink"; - this.checkboxAllowShrink.PropertyName = "OutputPrintAllowShrink"; - this.checkboxAllowShrink.Size = new System.Drawing.Size(394, 20); - this.checkboxAllowShrink.TabIndex = 26; - this.checkboxAllowShrink.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.checkboxAllowShrink.UseVisualStyleBackColor = true; - // - // tab_plugins - // - this.tab_plugins.Controls.Add(this.groupbox_plugins); - this.tab_plugins.LanguageKey = "settings_plugins"; - this.tab_plugins.Location = new System.Drawing.Point(4, 22); - this.tab_plugins.Name = "tab_plugins"; - this.tab_plugins.Size = new System.Drawing.Size(423, 320); - this.tab_plugins.TabIndex = 2; - this.tab_plugins.UseVisualStyleBackColor = true; - // - // groupbox_plugins - // - this.groupbox_plugins.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.groupbox_plugins.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.groupbox_plugins.Controls.Add(this.listview_plugins); - this.groupbox_plugins.Controls.Add(this.button_pluginconfigure); - this.groupbox_plugins.LanguageKey = "settings_plugins"; - this.groupbox_plugins.Location = new System.Drawing.Point(0, 0); - this.groupbox_plugins.Name = "groupbox_plugins"; - this.groupbox_plugins.Size = new System.Drawing.Size(423, 314); - this.groupbox_plugins.TabIndex = 0; - this.groupbox_plugins.TabStop = false; - // - // listview_plugins - // - this.listview_plugins.Dock = System.Windows.Forms.DockStyle.Top; - this.listview_plugins.FullRowSelect = true; - this.listview_plugins.Location = new System.Drawing.Point(3, 16); - this.listview_plugins.Name = "listview_plugins"; - this.listview_plugins.Size = new System.Drawing.Size(417, 263); - this.listview_plugins.TabIndex = 2; - this.listview_plugins.UseCompatibleStateImageBehavior = false; - this.listview_plugins.View = System.Windows.Forms.View.Details; - this.listview_plugins.SelectedIndexChanged += new System.EventHandler(this.Listview_pluginsSelectedIndexChanged); - this.listview_plugins.Click += new System.EventHandler(this.Listview_pluginsSelectedIndexChanged); - // - // button_pluginconfigure - // - this.button_pluginconfigure.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.button_pluginconfigure.AutoSize = true; - this.button_pluginconfigure.Enabled = false; - this.button_pluginconfigure.LanguageKey = "settings_configureplugin"; - this.button_pluginconfigure.Location = new System.Drawing.Point(6, 285); - this.button_pluginconfigure.Name = "button_pluginconfigure"; - this.button_pluginconfigure.Size = new System.Drawing.Size(75, 23); - this.button_pluginconfigure.TabIndex = 1; - this.button_pluginconfigure.UseVisualStyleBackColor = true; - this.button_pluginconfigure.Click += new System.EventHandler(this.Button_pluginconfigureClick); - // - // tab_expert - // - this.tab_expert.Controls.Add(this.groupbox_expert); - this.tab_expert.LanguageKey = "expertsettings"; - this.tab_expert.Location = new System.Drawing.Point(4, 22); - this.tab_expert.Name = "tab_expert"; - this.tab_expert.Size = new System.Drawing.Size(423, 320); - this.tab_expert.TabIndex = 5; - this.tab_expert.UseVisualStyleBackColor = true; - // - // groupbox_expert - // - this.groupbox_expert.Controls.Add(this.checkbox_reuseeditor); - this.groupbox_expert.Controls.Add(this.checkbox_minimizememoryfootprint); - this.groupbox_expert.Controls.Add(this.checkbox_checkunstableupdates); - this.groupbox_expert.Controls.Add(this.checkbox_suppresssavedialogatclose); - this.groupbox_expert.Controls.Add(this.label_counter); - this.groupbox_expert.Controls.Add(this.textbox_counter); - this.groupbox_expert.Controls.Add(this.label_footerpattern); - this.groupbox_expert.Controls.Add(this.textbox_footerpattern); - this.groupbox_expert.Controls.Add(this.checkbox_thumbnailpreview); - this.groupbox_expert.Controls.Add(this.checkbox_optimizeforrdp); - this.groupbox_expert.Controls.Add(this.checkbox_autoreducecolors); - this.groupbox_expert.Controls.Add(this.label_clipboardformats); - this.groupbox_expert.Controls.Add(this.checkbox_enableexpert); - this.groupbox_expert.Controls.Add(this.listview_clipboardformats); - this.groupbox_expert.LanguageKey = "expertsettings"; - this.groupbox_expert.Location = new System.Drawing.Point(5, 5); - this.groupbox_expert.Name = "groupbox_expert"; - this.groupbox_expert.Size = new System.Drawing.Size(412, 311); - this.groupbox_expert.TabIndex = 17; - this.groupbox_expert.TabStop = false; - this.groupbox_expert.Text = "Expert"; - // - // checkbox_reuseeditor - // - this.checkbox_reuseeditor.LanguageKey = "expertsettings_reuseeditorifpossible"; - this.checkbox_reuseeditor.Location = new System.Drawing.Point(10, 225); - this.checkbox_reuseeditor.Name = "checkbox_reuseeditor"; - this.checkbox_reuseeditor.PropertyName = "ReuseEditor"; - this.checkbox_reuseeditor.SectionName = "Editor"; - this.checkbox_reuseeditor.Size = new System.Drawing.Size(394, 24); - this.checkbox_reuseeditor.TabIndex = 31; - this.checkbox_reuseeditor.UseVisualStyleBackColor = true; - // - // checkbox_minimizememoryfootprint - // - this.checkbox_minimizememoryfootprint.LanguageKey = "expertsettings_minimizememoryfootprint"; - this.checkbox_minimizememoryfootprint.Location = new System.Drawing.Point(10, 206); - this.checkbox_minimizememoryfootprint.Name = "checkbox_minimizememoryfootprint"; - this.checkbox_minimizememoryfootprint.PropertyName = "MinimizeWorkingSetSize"; - this.checkbox_minimizememoryfootprint.Size = new System.Drawing.Size(394, 24); - this.checkbox_minimizememoryfootprint.TabIndex = 30; - this.checkbox_minimizememoryfootprint.UseVisualStyleBackColor = true; - // - // checkbox_checkunstableupdates - // - this.checkbox_checkunstableupdates.LanguageKey = "expertsettings_checkunstableupdates"; - this.checkbox_checkunstableupdates.Location = new System.Drawing.Point(10, 187); - this.checkbox_checkunstableupdates.Name = "checkbox_checkunstableupdates"; - this.checkbox_checkunstableupdates.PropertyName = "CheckForUnstable"; - this.checkbox_checkunstableupdates.Size = new System.Drawing.Size(394, 24); - this.checkbox_checkunstableupdates.TabIndex = 29; - this.checkbox_checkunstableupdates.UseVisualStyleBackColor = true; - // - // checkbox_suppresssavedialogatclose - // - this.checkbox_suppresssavedialogatclose.LanguageKey = "expertsettings_suppresssavedialogatclose"; - this.checkbox_suppresssavedialogatclose.Location = new System.Drawing.Point(10, 168); - this.checkbox_suppresssavedialogatclose.Name = "checkbox_suppresssavedialogatclose"; - this.checkbox_suppresssavedialogatclose.PropertyName = "SuppressSaveDialogAtClose"; - this.checkbox_suppresssavedialogatclose.SectionName = "Editor"; - this.checkbox_suppresssavedialogatclose.Size = new System.Drawing.Size(394, 24); - this.checkbox_suppresssavedialogatclose.TabIndex = 28; - this.checkbox_suppresssavedialogatclose.UseVisualStyleBackColor = true; - // - // label_counter - // - this.label_counter.AutoSize = true; - this.label_counter.LanguageKey = "expertsettings_counter"; - this.label_counter.Location = new System.Drawing.Point(7, 285); - this.label_counter.Name = "label_counter"; - this.label_counter.Size = new System.Drawing.Size(246, 13); - this.label_counter.TabIndex = 27; - // - // textbox_counter - // - this.textbox_counter.Location = new System.Drawing.Point(259, 282); - this.textbox_counter.Name = "textbox_counter"; - this.textbox_counter.PropertyName = "OutputFileIncrementingNumber"; - this.textbox_counter.Size = new System.Drawing.Size(141, 20); - this.textbox_counter.TabIndex = 26; - // - // label_footerpattern - // - this.label_footerpattern.AutoSize = true; - this.label_footerpattern.LanguageKey = "expertsettings_footerpattern"; - this.label_footerpattern.Location = new System.Drawing.Point(7, 259); - this.label_footerpattern.Name = "label_footerpattern"; - this.label_footerpattern.Size = new System.Drawing.Size(103, 13); - this.label_footerpattern.TabIndex = 25; - // - // textbox_footerpattern - // - this.textbox_footerpattern.Location = new System.Drawing.Point(138, 256); - this.textbox_footerpattern.Name = "textbox_footerpattern"; - this.textbox_footerpattern.PropertyName = "OutputPrintFooterPattern"; - this.textbox_footerpattern.Size = new System.Drawing.Size(262, 20); - this.textbox_footerpattern.TabIndex = 24; - // - // checkbox_thumbnailpreview - // - this.checkbox_thumbnailpreview.LanguageKey = "expertsettings_thumbnailpreview"; - this.checkbox_thumbnailpreview.Location = new System.Drawing.Point(10, 149); - this.checkbox_thumbnailpreview.Name = "checkbox_thumbnailpreview"; - this.checkbox_thumbnailpreview.PropertyName = "ThumnailPreview"; - this.checkbox_thumbnailpreview.Size = new System.Drawing.Size(394, 24); - this.checkbox_thumbnailpreview.TabIndex = 23; - this.checkbox_thumbnailpreview.UseVisualStyleBackColor = true; - // - // checkbox_optimizeforrdp - // - this.checkbox_optimizeforrdp.LanguageKey = "expertsettings_optimizeforrdp"; - this.checkbox_optimizeforrdp.Location = new System.Drawing.Point(10, 130); - this.checkbox_optimizeforrdp.Name = "checkbox_optimizeforrdp"; - this.checkbox_optimizeforrdp.PropertyName = "OptimizeForRDP"; - this.checkbox_optimizeforrdp.Size = new System.Drawing.Size(394, 24); - this.checkbox_optimizeforrdp.TabIndex = 22; - this.checkbox_optimizeforrdp.UseVisualStyleBackColor = true; - // - // checkbox_autoreducecolors - // - this.checkbox_autoreducecolors.LanguageKey = "expertsettings_autoreducecolors"; - this.checkbox_autoreducecolors.Location = new System.Drawing.Point(10, 111); - this.checkbox_autoreducecolors.Name = "checkbox_autoreducecolors"; - this.checkbox_autoreducecolors.PropertyName = "OutputFileAutoReduceColors"; - this.checkbox_autoreducecolors.Size = new System.Drawing.Size(408, 24); - this.checkbox_autoreducecolors.TabIndex = 21; - this.checkbox_autoreducecolors.UseVisualStyleBackColor = true; - // - // label_clipboardformats - // - this.label_clipboardformats.AutoSize = true; - this.label_clipboardformats.LanguageKey = "expertsettings_clipboardformats"; - this.label_clipboardformats.Location = new System.Drawing.Point(7, 39); - this.label_clipboardformats.Name = "label_clipboardformats"; - this.label_clipboardformats.Size = new System.Drawing.Size(88, 13); - this.label_clipboardformats.TabIndex = 20; - // - // checkbox_enableexpert - // - this.checkbox_enableexpert.LanguageKey = "expertsettings_enableexpert"; - this.checkbox_enableexpert.Location = new System.Drawing.Point(6, 14); - this.checkbox_enableexpert.Name = "checkbox_enableexpert"; - this.checkbox_enableexpert.Size = new System.Drawing.Size(394, 24); - this.checkbox_enableexpert.TabIndex = 19; - this.checkbox_enableexpert.UseVisualStyleBackColor = true; - this.checkbox_enableexpert.CheckedChanged += new System.EventHandler(this.checkbox_enableexpert_CheckedChanged); - // - // listview_clipboardformats - // - this.listview_clipboardformats.Alignment = System.Windows.Forms.ListViewAlignment.Left; - this.listview_clipboardformats.AutoArrange = false; - this.listview_clipboardformats.CheckBoxes = true; - this.listview_clipboardformats.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader1}); - this.listview_clipboardformats.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; - this.listview_clipboardformats.LabelWrap = false; - this.listview_clipboardformats.Location = new System.Drawing.Point(170, 38); - this.listview_clipboardformats.Name = "listview_clipboardformats"; - this.listview_clipboardformats.ShowGroups = false; - this.listview_clipboardformats.Size = new System.Drawing.Size(230, 72); - this.listview_clipboardformats.Sorting = System.Windows.Forms.SortOrder.Ascending; - this.listview_clipboardformats.TabIndex = 0; - this.listview_clipboardformats.UseCompatibleStateImageBehavior = false; - this.listview_clipboardformats.View = System.Windows.Forms.View.Details; - // - // columnHeader1 - // - this.columnHeader1.Text = "Destination"; - this.columnHeader1.Width = 225; - // - // SettingsForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.ClientSize = new System.Drawing.Size(451, 396); - this.Controls.Add(this.tabcontrol); - this.Controls.Add(this.settings_confirm); - this.Controls.Add(this.settings_cancel); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.LanguageKey = "settings_title"; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "SettingsForm"; - this.groupbox_preferredfilesettings.ResumeLayout(false); - this.groupbox_preferredfilesettings.PerformLayout(); - this.groupbox_applicationsettings.ResumeLayout(false); - this.groupbox_qualitysettings.ResumeLayout(false); - this.groupbox_qualitysettings.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarJpegQuality)).EndInit(); - this.groupbox_destination.ResumeLayout(false); - this.tabcontrol.ResumeLayout(false); - this.tab_general.ResumeLayout(false); - this.groupbox_network.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_daysbetweencheck)).EndInit(); - this.groupbox_hotkeys.ResumeLayout(false); - this.groupbox_hotkeys.PerformLayout(); - this.tab_capture.ResumeLayout(false); - this.groupbox_editor.ResumeLayout(false); - this.groupbox_iecapture.ResumeLayout(false); - this.groupbox_windowscapture.ResumeLayout(false); - this.groupbox_windowscapture.PerformLayout(); - this.groupbox_capture.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWaitTime)).EndInit(); - this.tab_output.ResumeLayout(false); - this.tab_destinations.ResumeLayout(false); - this.tab_printer.ResumeLayout(false); - this.groupbox_printoptions.ResumeLayout(false); - this.tab_plugins.ResumeLayout(false); - this.groupbox_plugins.ResumeLayout(false); - this.groupbox_plugins.PerformLayout(); - this.tab_expert.ResumeLayout(false); - this.groupbox_expert.ResumeLayout(false); - this.groupbox_expert.PerformLayout(); - this.ResumeLayout(false); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm)); + this.textbox_storagelocation = new GreenshotPlugin.Controls.GreenshotTextBox(); + this.label_storagelocation = new GreenshotPlugin.Controls.GreenshotLabel(); + this.settings_cancel = new GreenshotPlugin.Controls.GreenshotButton(); + this.settings_confirm = new GreenshotPlugin.Controls.GreenshotButton(); + this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); + this.browse = new System.Windows.Forms.Button(); + this.label_screenshotname = new GreenshotPlugin.Controls.GreenshotLabel(); + this.textbox_screenshotname = new GreenshotPlugin.Controls.GreenshotTextBox(); + this.label_language = new GreenshotPlugin.Controls.GreenshotLabel(); + this.combobox_language = new System.Windows.Forms.ComboBox(); + this.combobox_primaryimageformat = new GreenshotPlugin.Controls.GreenshotComboBox(); + this.label_primaryimageformat = new GreenshotPlugin.Controls.GreenshotLabel(); + this.groupbox_preferredfilesettings = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.btnPatternHelp = new System.Windows.Forms.Button(); + this.checkbox_copypathtoclipboard = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.groupbox_applicationsettings = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_autostartshortcut = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.groupbox_qualitysettings = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_reducecolors = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_alwaysshowqualitydialog = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.label_jpegquality = new GreenshotPlugin.Controls.GreenshotLabel(); + this.textBoxJpegQuality = new System.Windows.Forms.TextBox(); + this.trackBarJpegQuality = new System.Windows.Forms.TrackBar(); + this.groupbox_destination = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_picker = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.listview_destinations = new System.Windows.Forms.ListView(); + this.destination = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.tabcontrol = new System.Windows.Forms.TabControl(); + this.tab_general = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.groupbox_network = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.numericUpDown_daysbetweencheck = new System.Windows.Forms.NumericUpDown(); + this.label_checkperiod = new GreenshotPlugin.Controls.GreenshotLabel(); + this.checkbox_usedefaultproxy = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.groupbox_hotkeys = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.label_lastregion_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); + this.lastregion_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); + this.label_ie_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); + this.ie_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); + this.label_region_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); + this.label_window_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); + this.label_fullscreen_hotkey = new GreenshotPlugin.Controls.GreenshotLabel(); + this.region_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); + this.window_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); + this.fullscreen_hotkeyControl = new GreenshotPlugin.Controls.HotkeyControl(); + this.tab_capture = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.groupbox_editor = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_editor_match_capture_size = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.groupbox_iecapture = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_ie_capture = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.groupbox_windowscapture = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.colorButton_window_background = new Greenshot.Controls.ColorButton(); + this.label_window_capture_mode = new GreenshotPlugin.Controls.GreenshotLabel(); + this.checkbox_capture_windows_interactive = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.combobox_window_capture_mode = new System.Windows.Forms.ComboBox(); + this.groupbox_capture = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_notifications = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_playsound = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_capture_mousepointer = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.numericUpDownWaitTime = new System.Windows.Forms.NumericUpDown(); + this.label_waittime = new GreenshotPlugin.Controls.GreenshotLabel(); + this.tab_output = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.tab_destinations = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.tab_printer = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.groupbox_printoptions = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_monochrome = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_printgrayscale = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxPrintInverted = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_alwaysshowprintoptionsdialog = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxTimestamp = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowCenter = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowRotate = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowEnlarge = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkboxAllowShrink = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.tab_plugins = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.groupbox_plugins = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.listview_plugins = new System.Windows.Forms.ListView(); + this.button_pluginconfigure = new GreenshotPlugin.Controls.GreenshotButton(); + this.tab_expert = new GreenshotPlugin.Controls.GreenshotTabPage(); + this.groupbox_expert = new GreenshotPlugin.Controls.GreenshotGroupBox(); + this.checkbox_reuseeditor = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_minimizememoryfootprint = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_checkunstableupdates = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_suppresssavedialogatclose = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.label_counter = new GreenshotPlugin.Controls.GreenshotLabel(); + this.textbox_counter = new GreenshotPlugin.Controls.GreenshotTextBox(); + this.label_footerpattern = new GreenshotPlugin.Controls.GreenshotLabel(); + this.textbox_footerpattern = new GreenshotPlugin.Controls.GreenshotTextBox(); + this.checkbox_thumbnailpreview = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_optimizeforrdp = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.checkbox_autoreducecolors = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.label_clipboardformats = new GreenshotPlugin.Controls.GreenshotLabel(); + this.checkbox_enableexpert = new GreenshotPlugin.Controls.GreenshotCheckBox(); + this.listview_clipboardformats = new System.Windows.Forms.ListView(); + this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.groupbox_preferredfilesettings.SuspendLayout(); + this.groupbox_applicationsettings.SuspendLayout(); + this.groupbox_qualitysettings.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarJpegQuality)).BeginInit(); + this.groupbox_destination.SuspendLayout(); + this.tabcontrol.SuspendLayout(); + this.tab_general.SuspendLayout(); + this.groupbox_network.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_daysbetweencheck)).BeginInit(); + this.groupbox_hotkeys.SuspendLayout(); + this.tab_capture.SuspendLayout(); + this.groupbox_editor.SuspendLayout(); + this.groupbox_iecapture.SuspendLayout(); + this.groupbox_windowscapture.SuspendLayout(); + this.groupbox_capture.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWaitTime)).BeginInit(); + this.tab_output.SuspendLayout(); + this.tab_destinations.SuspendLayout(); + this.tab_printer.SuspendLayout(); + this.groupbox_printoptions.SuspendLayout(); + this.tab_plugins.SuspendLayout(); + this.groupbox_plugins.SuspendLayout(); + this.tab_expert.SuspendLayout(); + this.groupbox_expert.SuspendLayout(); + this.SuspendLayout(); + // + // textbox_storagelocation + // + this.textbox_storagelocation.Location = new System.Drawing.Point(138, 18); + this.textbox_storagelocation.Name = "textbox_storagelocation"; + this.textbox_storagelocation.Size = new System.Drawing.Size(233, 20); + this.textbox_storagelocation.TabIndex = 12; + this.textbox_storagelocation.TextChanged += new System.EventHandler(this.StorageLocationChanged); + // + // label_storagelocation + // + this.label_storagelocation.LanguageKey = "settings_storagelocation"; + this.label_storagelocation.Location = new System.Drawing.Point(6, 21); + this.label_storagelocation.Name = "label_storagelocation"; + this.label_storagelocation.Size = new System.Drawing.Size(126, 23); + this.label_storagelocation.TabIndex = 11; + this.label_storagelocation.Text = "Storage location"; + // + // settings_cancel + // + this.settings_cancel.LanguageKey = "CANCEL"; + this.settings_cancel.Location = new System.Drawing.Point(367, 366); + this.settings_cancel.Name = "settings_cancel"; + this.settings_cancel.Size = new System.Drawing.Size(75, 23); + this.settings_cancel.TabIndex = 7; + this.settings_cancel.Text = "Cancel"; + this.settings_cancel.UseVisualStyleBackColor = true; + this.settings_cancel.Click += new System.EventHandler(this.Settings_cancelClick); + // + // settings_confirm + // + this.settings_confirm.LanguageKey = "OK"; + this.settings_confirm.Location = new System.Drawing.Point(286, 366); + this.settings_confirm.Name = "settings_confirm"; + this.settings_confirm.Size = new System.Drawing.Size(75, 23); + this.settings_confirm.TabIndex = 6; + this.settings_confirm.Text = "Ok"; + this.settings_confirm.UseVisualStyleBackColor = true; + this.settings_confirm.Click += new System.EventHandler(this.Settings_okayClick); + // + // browse + // + this.browse.Location = new System.Drawing.Point(371, 17); + this.browse.Name = "browse"; + this.browse.Size = new System.Drawing.Size(35, 23); + this.browse.TabIndex = 1; + this.browse.Text = "..."; + this.browse.UseVisualStyleBackColor = true; + this.browse.Click += new System.EventHandler(this.BrowseClick); + // + // label_screenshotname + // + this.label_screenshotname.LanguageKey = "settings_filenamepattern"; + this.label_screenshotname.Location = new System.Drawing.Point(6, 44); + this.label_screenshotname.Name = "label_screenshotname"; + this.label_screenshotname.Size = new System.Drawing.Size(126, 23); + this.label_screenshotname.TabIndex = 9; + this.label_screenshotname.Text = "Filename pattern"; + // + // textbox_screenshotname + // + this.textbox_screenshotname.Location = new System.Drawing.Point(138, 41); + this.textbox_screenshotname.Name = "textbox_screenshotname"; + this.textbox_screenshotname.PropertyName = "OutputFileFilenamePattern"; + this.textbox_screenshotname.Size = new System.Drawing.Size(233, 20); + this.textbox_screenshotname.TabIndex = 2; + // + // label_language + // + this.label_language.LanguageKey = "settings_language"; + this.label_language.Location = new System.Drawing.Point(6, 20); + this.label_language.Name = "label_language"; + this.label_language.Size = new System.Drawing.Size(181, 23); + this.label_language.TabIndex = 10; + this.label_language.Text = "Language"; + // + // combobox_language + // + this.combobox_language.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.combobox_language.FormattingEnabled = true; + this.combobox_language.Location = new System.Drawing.Point(193, 17); + this.combobox_language.MaxDropDownItems = 15; + this.combobox_language.Name = "combobox_language"; + this.combobox_language.Size = new System.Drawing.Size(213, 21); + this.combobox_language.TabIndex = 0; + // + // combobox_primaryimageformat + // + this.combobox_primaryimageformat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.combobox_primaryimageformat.FormattingEnabled = true; + this.combobox_primaryimageformat.Location = new System.Drawing.Point(138, 64); + this.combobox_primaryimageformat.Name = "combobox_primaryimageformat"; + this.combobox_primaryimageformat.PropertyName = "OutputFileFormat"; + this.combobox_primaryimageformat.Size = new System.Drawing.Size(268, 21); + this.combobox_primaryimageformat.TabIndex = 4; + // + // label_primaryimageformat + // + this.label_primaryimageformat.LanguageKey = "settings_primaryimageformat"; + this.label_primaryimageformat.Location = new System.Drawing.Point(6, 67); + this.label_primaryimageformat.Name = "label_primaryimageformat"; + this.label_primaryimageformat.Size = new System.Drawing.Size(126, 19); + this.label_primaryimageformat.TabIndex = 8; + this.label_primaryimageformat.Text = "Image format"; + // + // groupbox_preferredfilesettings + // + this.groupbox_preferredfilesettings.Controls.Add(this.btnPatternHelp); + this.groupbox_preferredfilesettings.Controls.Add(this.checkbox_copypathtoclipboard); + this.groupbox_preferredfilesettings.Controls.Add(this.combobox_primaryimageformat); + this.groupbox_preferredfilesettings.Controls.Add(this.label_primaryimageformat); + this.groupbox_preferredfilesettings.Controls.Add(this.label_storagelocation); + this.groupbox_preferredfilesettings.Controls.Add(this.browse); + this.groupbox_preferredfilesettings.Controls.Add(this.textbox_storagelocation); + this.groupbox_preferredfilesettings.Controls.Add(this.textbox_screenshotname); + this.groupbox_preferredfilesettings.Controls.Add(this.label_screenshotname); + this.groupbox_preferredfilesettings.LanguageKey = "settings_preferredfilesettings"; + this.groupbox_preferredfilesettings.Location = new System.Drawing.Point(2, 6); + this.groupbox_preferredfilesettings.Name = "groupbox_preferredfilesettings"; + this.groupbox_preferredfilesettings.Size = new System.Drawing.Size(412, 122); + this.groupbox_preferredfilesettings.TabIndex = 13; + this.groupbox_preferredfilesettings.TabStop = false; + this.groupbox_preferredfilesettings.Text = "Preferred Output File Settings"; + // + // btnPatternHelp + // + this.btnPatternHelp.Location = new System.Drawing.Point(371, 39); + this.btnPatternHelp.Name = "btnPatternHelp"; + this.btnPatternHelp.Size = new System.Drawing.Size(35, 23); + this.btnPatternHelp.TabIndex = 19; + this.btnPatternHelp.Text = "?"; + this.btnPatternHelp.UseVisualStyleBackColor = true; + this.btnPatternHelp.Click += new System.EventHandler(this.BtnPatternHelpClick); + // + // checkbox_copypathtoclipboard + // + this.checkbox_copypathtoclipboard.LanguageKey = "settings_copypathtoclipboard"; + this.checkbox_copypathtoclipboard.Location = new System.Drawing.Point(12, 89); + this.checkbox_copypathtoclipboard.Name = "checkbox_copypathtoclipboard"; + this.checkbox_copypathtoclipboard.PropertyName = "OutputFileCopyPathToClipboard"; + this.checkbox_copypathtoclipboard.Size = new System.Drawing.Size(394, 24); + this.checkbox_copypathtoclipboard.TabIndex = 18; + this.checkbox_copypathtoclipboard.Text = "Copy file path to clipboard every time an image is saved"; + this.checkbox_copypathtoclipboard.UseVisualStyleBackColor = true; + // + // groupbox_applicationsettings + // + this.groupbox_applicationsettings.Controls.Add(this.checkbox_autostartshortcut); + this.groupbox_applicationsettings.Controls.Add(this.label_language); + this.groupbox_applicationsettings.Controls.Add(this.combobox_language); + this.groupbox_applicationsettings.LanguageKey = "settings_applicationsettings"; + this.groupbox_applicationsettings.Location = new System.Drawing.Point(2, 6); + this.groupbox_applicationsettings.Name = "groupbox_applicationsettings"; + this.groupbox_applicationsettings.Size = new System.Drawing.Size(412, 68); + this.groupbox_applicationsettings.TabIndex = 14; + this.groupbox_applicationsettings.TabStop = false; + this.groupbox_applicationsettings.Text = "Application Settings"; + // + // checkbox_autostartshortcut + // + this.checkbox_autostartshortcut.LanguageKey = "settings_autostartshortcut"; + this.checkbox_autostartshortcut.Location = new System.Drawing.Point(8, 39); + this.checkbox_autostartshortcut.Name = "checkbox_autostartshortcut"; + this.checkbox_autostartshortcut.Size = new System.Drawing.Size(397, 25); + this.checkbox_autostartshortcut.TabIndex = 15; + this.checkbox_autostartshortcut.Text = "Launch Greenshot on startup"; + this.checkbox_autostartshortcut.UseVisualStyleBackColor = true; + // + // groupbox_qualitysettings + // + this.groupbox_qualitysettings.Controls.Add(this.checkbox_reducecolors); + this.groupbox_qualitysettings.Controls.Add(this.checkbox_alwaysshowqualitydialog); + this.groupbox_qualitysettings.Controls.Add(this.label_jpegquality); + this.groupbox_qualitysettings.Controls.Add(this.textBoxJpegQuality); + this.groupbox_qualitysettings.Controls.Add(this.trackBarJpegQuality); + this.groupbox_qualitysettings.LanguageKey = "settings_qualitysettings"; + this.groupbox_qualitysettings.Location = new System.Drawing.Point(2, 156); + this.groupbox_qualitysettings.Name = "groupbox_qualitysettings"; + this.groupbox_qualitysettings.Size = new System.Drawing.Size(412, 106); + this.groupbox_qualitysettings.TabIndex = 14; + this.groupbox_qualitysettings.TabStop = false; + this.groupbox_qualitysettings.Text = "Quality settings"; + // + // checkbox_reducecolors + // + this.checkbox_reducecolors.LanguageKey = "settings_reducecolors"; + this.checkbox_reducecolors.Location = new System.Drawing.Point(12, 72); + this.checkbox_reducecolors.Name = "checkbox_reducecolors"; + this.checkbox_reducecolors.PropertyName = "OutputFileReduceColors"; + this.checkbox_reducecolors.Size = new System.Drawing.Size(394, 25); + this.checkbox_reducecolors.TabIndex = 17; + this.checkbox_reducecolors.Text = "Reduce the amount of colors to a maximum of 256"; + this.checkbox_reducecolors.UseVisualStyleBackColor = true; + // + // checkbox_alwaysshowqualitydialog + // + this.checkbox_alwaysshowqualitydialog.LanguageKey = "settings_alwaysshowqualitydialog"; + this.checkbox_alwaysshowqualitydialog.Location = new System.Drawing.Point(12, 50); + this.checkbox_alwaysshowqualitydialog.Name = "checkbox_alwaysshowqualitydialog"; + this.checkbox_alwaysshowqualitydialog.PropertyName = "OutputFilePromptQuality"; + this.checkbox_alwaysshowqualitydialog.Size = new System.Drawing.Size(394, 25); + this.checkbox_alwaysshowqualitydialog.TabIndex = 16; + this.checkbox_alwaysshowqualitydialog.Text = "Show quality dialog every time an image is saved"; + this.checkbox_alwaysshowqualitydialog.UseVisualStyleBackColor = true; + // + // label_jpegquality + // + this.label_jpegquality.LanguageKey = "settings_jpegquality"; + this.label_jpegquality.Location = new System.Drawing.Point(6, 24); + this.label_jpegquality.Name = "label_jpegquality"; + this.label_jpegquality.Size = new System.Drawing.Size(116, 23); + this.label_jpegquality.TabIndex = 13; + this.label_jpegquality.Text = "JPEG quality"; + // + // textBoxJpegQuality + // + this.textBoxJpegQuality.Location = new System.Drawing.Point(371, 21); + this.textBoxJpegQuality.Name = "textBoxJpegQuality"; + this.textBoxJpegQuality.ReadOnly = true; + this.textBoxJpegQuality.Size = new System.Drawing.Size(35, 20); + this.textBoxJpegQuality.TabIndex = 13; + this.textBoxJpegQuality.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // trackBarJpegQuality + // + this.trackBarJpegQuality.LargeChange = 10; + this.trackBarJpegQuality.Location = new System.Drawing.Point(138, 21); + this.trackBarJpegQuality.Maximum = 100; + this.trackBarJpegQuality.Name = "trackBarJpegQuality"; + this.trackBarJpegQuality.Size = new System.Drawing.Size(233, 45); + this.trackBarJpegQuality.TabIndex = 0; + this.trackBarJpegQuality.TickFrequency = 10; + this.trackBarJpegQuality.Scroll += new System.EventHandler(this.TrackBarJpegQualityScroll); + // + // groupbox_destination + // + this.groupbox_destination.Controls.Add(this.checkbox_picker); + this.groupbox_destination.Controls.Add(this.listview_destinations); + this.groupbox_destination.LanguageKey = "settings_destination"; + this.groupbox_destination.Location = new System.Drawing.Point(2, 6); + this.groupbox_destination.Name = "groupbox_destination"; + this.groupbox_destination.Size = new System.Drawing.Size(412, 311); + this.groupbox_destination.TabIndex = 16; + this.groupbox_destination.TabStop = false; + this.groupbox_destination.Text = "Destination"; + // + // checkbox_picker + // + this.checkbox_picker.LanguageKey = "settings_destination_picker"; + this.checkbox_picker.Location = new System.Drawing.Point(6, 14); + this.checkbox_picker.Name = "checkbox_picker"; + this.checkbox_picker.Size = new System.Drawing.Size(394, 24); + this.checkbox_picker.TabIndex = 19; + this.checkbox_picker.Text = "Select destination dynamically"; + this.checkbox_picker.UseVisualStyleBackColor = true; + this.checkbox_picker.CheckStateChanged += new System.EventHandler(this.DestinationsCheckStateChanged); + // + // listview_destinations + // + this.listview_destinations.Alignment = System.Windows.Forms.ListViewAlignment.Left; + this.listview_destinations.AutoArrange = false; + this.listview_destinations.CheckBoxes = true; + this.listview_destinations.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.destination}); + this.listview_destinations.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.listview_destinations.LabelWrap = false; + this.listview_destinations.Location = new System.Drawing.Point(6, 38); + this.listview_destinations.Name = "listview_destinations"; + this.listview_destinations.ShowGroups = false; + this.listview_destinations.Size = new System.Drawing.Size(401, 267); + this.listview_destinations.Sorting = System.Windows.Forms.SortOrder.Ascending; + this.listview_destinations.TabIndex = 0; + this.listview_destinations.UseCompatibleStateImageBehavior = false; + this.listview_destinations.View = System.Windows.Forms.View.Details; + // + // destination + // + this.destination.Text = "Destination"; + this.destination.Width = 380; + // + // tabcontrol + // + this.tabcontrol.Controls.Add(this.tab_general); + this.tabcontrol.Controls.Add(this.tab_capture); + this.tabcontrol.Controls.Add(this.tab_output); + this.tabcontrol.Controls.Add(this.tab_destinations); + this.tabcontrol.Controls.Add(this.tab_printer); + this.tabcontrol.Controls.Add(this.tab_plugins); + this.tabcontrol.Controls.Add(this.tab_expert); + this.tabcontrol.Location = new System.Drawing.Point(12, 13); + this.tabcontrol.Name = "tabcontrol"; + this.tabcontrol.SelectedIndex = 0; + this.tabcontrol.Size = new System.Drawing.Size(431, 346); + this.tabcontrol.TabIndex = 17; + // + // tab_general + // + this.tab_general.BackColor = System.Drawing.Color.Transparent; + this.tab_general.Controls.Add(this.groupbox_network); + this.tab_general.Controls.Add(this.groupbox_hotkeys); + this.tab_general.Controls.Add(this.groupbox_applicationsettings); + this.tab_general.LanguageKey = "settings_general"; + this.tab_general.Location = new System.Drawing.Point(4, 22); + this.tab_general.Name = "tab_general"; + this.tab_general.Padding = new System.Windows.Forms.Padding(3); + this.tab_general.Size = new System.Drawing.Size(423, 320); + this.tab_general.TabIndex = 0; + this.tab_general.Text = "General"; + this.tab_general.UseVisualStyleBackColor = true; + // + // groupbox_network + // + this.groupbox_network.Controls.Add(this.numericUpDown_daysbetweencheck); + this.groupbox_network.Controls.Add(this.label_checkperiod); + this.groupbox_network.Controls.Add(this.checkbox_usedefaultproxy); + this.groupbox_network.LanguageKey = "settings_network"; + this.groupbox_network.Location = new System.Drawing.Point(3, 232); + this.groupbox_network.Name = "groupbox_network"; + this.groupbox_network.Size = new System.Drawing.Size(412, 72); + this.groupbox_network.TabIndex = 54; + this.groupbox_network.TabStop = false; + this.groupbox_network.Text = "Network and updates"; + // + // numericUpDown_daysbetweencheck + // + this.numericUpDown_daysbetweencheck.Location = new System.Drawing.Point(345, 37); + this.numericUpDown_daysbetweencheck.Name = "numericUpDown_daysbetweencheck"; + this.numericUpDown_daysbetweencheck.Size = new System.Drawing.Size(57, 20); + this.numericUpDown_daysbetweencheck.TabIndex = 25; + this.numericUpDown_daysbetweencheck.ThousandsSeparator = true; + // + // label_checkperiod + // + this.label_checkperiod.LanguageKey = "settings_checkperiod"; + this.label_checkperiod.Location = new System.Drawing.Point(5, 39); + this.label_checkperiod.Name = "label_checkperiod"; + this.label_checkperiod.Size = new System.Drawing.Size(334, 23); + this.label_checkperiod.TabIndex = 19; + this.label_checkperiod.Text = "Update check interval in days (0=no check)"; + // + // checkbox_usedefaultproxy + // + this.checkbox_usedefaultproxy.LanguageKey = "settings_usedefaultproxy"; + this.checkbox_usedefaultproxy.Location = new System.Drawing.Point(7, 11); + this.checkbox_usedefaultproxy.Name = "checkbox_usedefaultproxy"; + this.checkbox_usedefaultproxy.PropertyName = "UseProxy"; + this.checkbox_usedefaultproxy.Size = new System.Drawing.Size(397, 25); + this.checkbox_usedefaultproxy.TabIndex = 17; + this.checkbox_usedefaultproxy.Text = "Use default system proxy"; + this.checkbox_usedefaultproxy.UseVisualStyleBackColor = true; + // + // groupbox_hotkeys + // + this.groupbox_hotkeys.Controls.Add(this.label_lastregion_hotkey); + this.groupbox_hotkeys.Controls.Add(this.lastregion_hotkeyControl); + this.groupbox_hotkeys.Controls.Add(this.label_ie_hotkey); + this.groupbox_hotkeys.Controls.Add(this.ie_hotkeyControl); + this.groupbox_hotkeys.Controls.Add(this.label_region_hotkey); + this.groupbox_hotkeys.Controls.Add(this.label_window_hotkey); + this.groupbox_hotkeys.Controls.Add(this.label_fullscreen_hotkey); + this.groupbox_hotkeys.Controls.Add(this.region_hotkeyControl); + this.groupbox_hotkeys.Controls.Add(this.window_hotkeyControl); + this.groupbox_hotkeys.Controls.Add(this.fullscreen_hotkeyControl); + this.groupbox_hotkeys.LanguageKey = "hotkeys"; + this.groupbox_hotkeys.Location = new System.Drawing.Point(2, 76); + this.groupbox_hotkeys.Name = "groupbox_hotkeys"; + this.groupbox_hotkeys.Size = new System.Drawing.Size(412, 152); + this.groupbox_hotkeys.TabIndex = 15; + this.groupbox_hotkeys.TabStop = false; + this.groupbox_hotkeys.Text = "Hotkeys"; + // + // label_lastregion_hotkey + // + this.label_lastregion_hotkey.LanguageKey = "contextmenu_capturelastregion"; + this.label_lastregion_hotkey.Location = new System.Drawing.Point(6, 94); + this.label_lastregion_hotkey.Name = "label_lastregion_hotkey"; + this.label_lastregion_hotkey.Size = new System.Drawing.Size(212, 20); + this.label_lastregion_hotkey.TabIndex = 53; + this.label_lastregion_hotkey.Text = "Capture last region"; + // + // lastregion_hotkeyControl + // + this.lastregion_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; + this.lastregion_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; + this.lastregion_hotkeyControl.Location = new System.Drawing.Point(224, 94); + this.lastregion_hotkeyControl.Name = "lastregion_hotkeyControl"; + this.lastregion_hotkeyControl.PropertyName = "LastregionHotkey"; + this.lastregion_hotkeyControl.Size = new System.Drawing.Size(179, 20); + this.lastregion_hotkeyControl.TabIndex = 52; + // + // label_ie_hotkey + // + this.label_ie_hotkey.LanguageKey = "contextmenu_captureie"; + this.label_ie_hotkey.Location = new System.Drawing.Point(6, 120); + this.label_ie_hotkey.Name = "label_ie_hotkey"; + this.label_ie_hotkey.Size = new System.Drawing.Size(212, 20); + this.label_ie_hotkey.TabIndex = 51; + this.label_ie_hotkey.Text = "Capture Internet Explorer"; + // + // ie_hotkeyControl + // + this.ie_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; + this.ie_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; + this.ie_hotkeyControl.Location = new System.Drawing.Point(224, 120); + this.ie_hotkeyControl.Name = "ie_hotkeyControl"; + this.ie_hotkeyControl.PropertyName = "IEHotkey"; + this.ie_hotkeyControl.Size = new System.Drawing.Size(179, 20); + this.ie_hotkeyControl.TabIndex = 50; + // + // label_region_hotkey + // + this.label_region_hotkey.LanguageKey = "contextmenu_capturearea"; + this.label_region_hotkey.Location = new System.Drawing.Point(6, 68); + this.label_region_hotkey.Name = "label_region_hotkey"; + this.label_region_hotkey.Size = new System.Drawing.Size(212, 20); + this.label_region_hotkey.TabIndex = 49; + this.label_region_hotkey.Text = "Capture region"; + // + // label_window_hotkey + // + this.label_window_hotkey.LanguageKey = "contextmenu_capturewindow"; + this.label_window_hotkey.Location = new System.Drawing.Point(6, 42); + this.label_window_hotkey.Name = "label_window_hotkey"; + this.label_window_hotkey.Size = new System.Drawing.Size(212, 23); + this.label_window_hotkey.TabIndex = 48; + this.label_window_hotkey.Text = "Capture window"; + // + // label_fullscreen_hotkey + // + this.label_fullscreen_hotkey.LanguageKey = "contextmenu_capturefullscreen"; + this.label_fullscreen_hotkey.Location = new System.Drawing.Point(6, 16); + this.label_fullscreen_hotkey.Name = "label_fullscreen_hotkey"; + this.label_fullscreen_hotkey.Size = new System.Drawing.Size(212, 23); + this.label_fullscreen_hotkey.TabIndex = 47; + this.label_fullscreen_hotkey.Text = "Capture full screen"; + // + // region_hotkeyControl + // + this.region_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; + this.region_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; + this.region_hotkeyControl.Location = new System.Drawing.Point(224, 68); + this.region_hotkeyControl.Name = "region_hotkeyControl"; + this.region_hotkeyControl.PropertyName = "RegionHotkey"; + this.region_hotkeyControl.Size = new System.Drawing.Size(179, 20); + this.region_hotkeyControl.TabIndex = 46; + // + // window_hotkeyControl + // + this.window_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; + this.window_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; + this.window_hotkeyControl.Location = new System.Drawing.Point(224, 42); + this.window_hotkeyControl.Name = "window_hotkeyControl"; + this.window_hotkeyControl.PropertyName = "WindowHotkey"; + this.window_hotkeyControl.Size = new System.Drawing.Size(179, 20); + this.window_hotkeyControl.TabIndex = 45; + // + // fullscreen_hotkeyControl + // + this.fullscreen_hotkeyControl.Hotkey = System.Windows.Forms.Keys.None; + this.fullscreen_hotkeyControl.HotkeyModifiers = System.Windows.Forms.Keys.None; + this.fullscreen_hotkeyControl.Location = new System.Drawing.Point(224, 16); + this.fullscreen_hotkeyControl.Name = "fullscreen_hotkeyControl"; + this.fullscreen_hotkeyControl.PropertyName = "FullscreenHotkey"; + this.fullscreen_hotkeyControl.Size = new System.Drawing.Size(179, 20); + this.fullscreen_hotkeyControl.TabIndex = 44; + // + // tab_capture + // + this.tab_capture.Controls.Add(this.groupbox_editor); + this.tab_capture.Controls.Add(this.groupbox_iecapture); + this.tab_capture.Controls.Add(this.groupbox_windowscapture); + this.tab_capture.Controls.Add(this.groupbox_capture); + this.tab_capture.LanguageKey = "settings_capture"; + this.tab_capture.Location = new System.Drawing.Point(4, 22); + this.tab_capture.Name = "tab_capture"; + this.tab_capture.Size = new System.Drawing.Size(423, 320); + this.tab_capture.TabIndex = 3; + this.tab_capture.Text = "Capture"; + this.tab_capture.UseVisualStyleBackColor = true; + // + // groupbox_editor + // + this.groupbox_editor.Controls.Add(this.checkbox_editor_match_capture_size); + this.groupbox_editor.LanguageKey = "settings_editor"; + this.groupbox_editor.Location = new System.Drawing.Point(4, 267); + this.groupbox_editor.Name = "groupbox_editor"; + this.groupbox_editor.Size = new System.Drawing.Size(416, 50); + this.groupbox_editor.TabIndex = 27; + this.groupbox_editor.TabStop = false; + this.groupbox_editor.Text = "Editor"; + // + // checkbox_editor_match_capture_size + // + this.checkbox_editor_match_capture_size.LanguageKey = "editor_match_capture_size"; + this.checkbox_editor_match_capture_size.Location = new System.Drawing.Point(6, 19); + this.checkbox_editor_match_capture_size.Name = "checkbox_editor_match_capture_size"; + this.checkbox_editor_match_capture_size.PropertyName = "MatchSizeToCapture"; + this.checkbox_editor_match_capture_size.SectionName = "Editor"; + this.checkbox_editor_match_capture_size.Size = new System.Drawing.Size(397, 24); + this.checkbox_editor_match_capture_size.TabIndex = 26; + this.checkbox_editor_match_capture_size.Text = "Match capture size"; + this.checkbox_editor_match_capture_size.UseVisualStyleBackColor = true; + // + // groupbox_iecapture + // + this.groupbox_iecapture.Controls.Add(this.checkbox_ie_capture); + this.groupbox_iecapture.LanguageKey = "settings_iecapture"; + this.groupbox_iecapture.Location = new System.Drawing.Point(4, 211); + this.groupbox_iecapture.Name = "groupbox_iecapture"; + this.groupbox_iecapture.Size = new System.Drawing.Size(416, 50); + this.groupbox_iecapture.TabIndex = 2; + this.groupbox_iecapture.TabStop = false; + this.groupbox_iecapture.Text = "Internet Explorer capture"; + // + // checkbox_ie_capture + // + this.checkbox_ie_capture.LanguageKey = "settings_iecapture"; + this.checkbox_ie_capture.Location = new System.Drawing.Point(6, 19); + this.checkbox_ie_capture.Name = "checkbox_ie_capture"; + this.checkbox_ie_capture.PropertyName = "IECapture"; + this.checkbox_ie_capture.Size = new System.Drawing.Size(404, 24); + this.checkbox_ie_capture.TabIndex = 26; + this.checkbox_ie_capture.Text = "Internet Explorer capture"; + this.checkbox_ie_capture.UseVisualStyleBackColor = true; + // + // groupbox_windowscapture + // + this.groupbox_windowscapture.Controls.Add(this.colorButton_window_background); + this.groupbox_windowscapture.Controls.Add(this.label_window_capture_mode); + this.groupbox_windowscapture.Controls.Add(this.checkbox_capture_windows_interactive); + this.groupbox_windowscapture.Controls.Add(this.combobox_window_capture_mode); + this.groupbox_windowscapture.LanguageKey = "settings_windowscapture"; + this.groupbox_windowscapture.Location = new System.Drawing.Point(4, 125); + this.groupbox_windowscapture.Name = "groupbox_windowscapture"; + this.groupbox_windowscapture.Size = new System.Drawing.Size(416, 80); + this.groupbox_windowscapture.TabIndex = 1; + this.groupbox_windowscapture.TabStop = false; + this.groupbox_windowscapture.Text = "Window capture"; + // + // colorButton_window_background + // + this.colorButton_window_background.AutoSize = true; + this.colorButton_window_background.Image = ((System.Drawing.Image)(resources.GetObject("colorButton_window_background.Image"))); + this.colorButton_window_background.Location = new System.Drawing.Point(374, 37); + this.colorButton_window_background.Name = "colorButton_window_background"; + this.colorButton_window_background.SelectedColor = System.Drawing.Color.White; + this.colorButton_window_background.Size = new System.Drawing.Size(29, 30); + this.colorButton_window_background.TabIndex = 45; + this.colorButton_window_background.UseVisualStyleBackColor = true; + // + // label_window_capture_mode + // + this.label_window_capture_mode.LanguageKey = "settings_window_capture_mode"; + this.label_window_capture_mode.Location = new System.Drawing.Point(6, 46); + this.label_window_capture_mode.Name = "label_window_capture_mode"; + this.label_window_capture_mode.Size = new System.Drawing.Size(205, 23); + this.label_window_capture_mode.TabIndex = 26; + this.label_window_capture_mode.Text = "Window capture mode"; + // + // checkbox_capture_windows_interactive + // + this.checkbox_capture_windows_interactive.LanguageKey = "settings_capture_windows_interactive"; + this.checkbox_capture_windows_interactive.Location = new System.Drawing.Point(9, 19); + this.checkbox_capture_windows_interactive.Name = "checkbox_capture_windows_interactive"; + this.checkbox_capture_windows_interactive.PropertyName = "CaptureWindowsInteractive"; + this.checkbox_capture_windows_interactive.Size = new System.Drawing.Size(394, 18); + this.checkbox_capture_windows_interactive.TabIndex = 19; + this.checkbox_capture_windows_interactive.Text = "Use interactive window capture mode"; + this.checkbox_capture_windows_interactive.UseVisualStyleBackColor = true; + // + // combobox_window_capture_mode + // + this.combobox_window_capture_mode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.combobox_window_capture_mode.FormattingEnabled = true; + this.combobox_window_capture_mode.Location = new System.Drawing.Point(217, 43); + this.combobox_window_capture_mode.MaxDropDownItems = 15; + this.combobox_window_capture_mode.Name = "combobox_window_capture_mode"; + this.combobox_window_capture_mode.Size = new System.Drawing.Size(151, 21); + this.combobox_window_capture_mode.TabIndex = 27; + this.combobox_window_capture_mode.SelectedIndexChanged += new System.EventHandler(this.Combobox_window_capture_modeSelectedIndexChanged); + // + // groupbox_capture + // + this.groupbox_capture.Controls.Add(this.checkbox_notifications); + this.groupbox_capture.Controls.Add(this.checkbox_playsound); + this.groupbox_capture.Controls.Add(this.checkbox_capture_mousepointer); + this.groupbox_capture.Controls.Add(this.numericUpDownWaitTime); + this.groupbox_capture.Controls.Add(this.label_waittime); + this.groupbox_capture.LanguageKey = "settings_capture"; + this.groupbox_capture.Location = new System.Drawing.Point(4, 4); + this.groupbox_capture.Name = "groupbox_capture"; + this.groupbox_capture.Size = new System.Drawing.Size(416, 115); + this.groupbox_capture.TabIndex = 0; + this.groupbox_capture.TabStop = false; + this.groupbox_capture.Text = "Capture"; + // + // checkbox_notifications + // + this.checkbox_notifications.LanguageKey = "settings_shownotify"; + this.checkbox_notifications.Location = new System.Drawing.Point(11, 59); + this.checkbox_notifications.Name = "checkbox_notifications"; + this.checkbox_notifications.PropertyName = "ShowTrayNotification"; + this.checkbox_notifications.Size = new System.Drawing.Size(399, 24); + this.checkbox_notifications.TabIndex = 26; + this.checkbox_notifications.Text = "Show notifications"; + this.checkbox_notifications.UseVisualStyleBackColor = true; + // + // checkbox_playsound + // + this.checkbox_playsound.LanguageKey = "settings_playsound"; + this.checkbox_playsound.Location = new System.Drawing.Point(11, 39); + this.checkbox_playsound.Name = "checkbox_playsound"; + this.checkbox_playsound.PropertyName = "PlayCameraSound"; + this.checkbox_playsound.Size = new System.Drawing.Size(399, 24); + this.checkbox_playsound.TabIndex = 18; + this.checkbox_playsound.Text = "Play camera sound"; + this.checkbox_playsound.UseVisualStyleBackColor = true; + // + // checkbox_capture_mousepointer + // + this.checkbox_capture_mousepointer.LanguageKey = "settings_capture_mousepointer"; + this.checkbox_capture_mousepointer.Location = new System.Drawing.Point(11, 19); + this.checkbox_capture_mousepointer.Name = "checkbox_capture_mousepointer"; + this.checkbox_capture_mousepointer.PropertyName = "CaptureMousepointer"; + this.checkbox_capture_mousepointer.Size = new System.Drawing.Size(394, 24); + this.checkbox_capture_mousepointer.TabIndex = 17; + this.checkbox_capture_mousepointer.Text = "Capture mousepointer"; + this.checkbox_capture_mousepointer.UseVisualStyleBackColor = true; + // + // numericUpDownWaitTime + // + this.numericUpDownWaitTime.Increment = new decimal(new int[] { + 100, + 0, + 0, + 0}); + this.numericUpDownWaitTime.Location = new System.Drawing.Point(9, 84); + this.numericUpDownWaitTime.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDownWaitTime.Name = "numericUpDownWaitTime"; + this.numericUpDownWaitTime.Size = new System.Drawing.Size(57, 20); + this.numericUpDownWaitTime.TabIndex = 24; + this.numericUpDownWaitTime.ThousandsSeparator = true; + // + // label_waittime + // + this.label_waittime.LanguageKey = "settings_waittime"; + this.label_waittime.Location = new System.Drawing.Point(72, 86); + this.label_waittime.Name = "label_waittime"; + this.label_waittime.Size = new System.Drawing.Size(331, 16); + this.label_waittime.TabIndex = 25; + this.label_waittime.Text = "Milliseconds to wait before capture"; + // + // tab_output + // + this.tab_output.BackColor = System.Drawing.Color.Transparent; + this.tab_output.Controls.Add(this.groupbox_preferredfilesettings); + this.tab_output.Controls.Add(this.groupbox_qualitysettings); + this.tab_output.LanguageKey = "settings_output"; + this.tab_output.Location = new System.Drawing.Point(4, 22); + this.tab_output.Name = "tab_output"; + this.tab_output.Padding = new System.Windows.Forms.Padding(3); + this.tab_output.Size = new System.Drawing.Size(423, 320); + this.tab_output.TabIndex = 1; + this.tab_output.Text = "Output"; + this.tab_output.UseVisualStyleBackColor = true; + // + // tab_destinations + // + this.tab_destinations.Controls.Add(this.groupbox_destination); + this.tab_destinations.LanguageKey = "settings_destination"; + this.tab_destinations.Location = new System.Drawing.Point(4, 22); + this.tab_destinations.Name = "tab_destinations"; + this.tab_destinations.Size = new System.Drawing.Size(423, 320); + this.tab_destinations.TabIndex = 4; + this.tab_destinations.Text = "Destination"; + this.tab_destinations.UseVisualStyleBackColor = true; + // + // tab_printer + // + this.tab_printer.Controls.Add(this.groupbox_printoptions); + this.tab_printer.LanguageKey = "settings_printer"; + this.tab_printer.Location = new System.Drawing.Point(4, 22); + this.tab_printer.Name = "tab_printer"; + this.tab_printer.Padding = new System.Windows.Forms.Padding(3); + this.tab_printer.Size = new System.Drawing.Size(423, 320); + this.tab_printer.TabIndex = 2; + this.tab_printer.Text = "Printer"; + this.tab_printer.UseVisualStyleBackColor = true; + // + // groupbox_printoptions + // + this.groupbox_printoptions.Controls.Add(this.checkbox_monochrome); + this.groupbox_printoptions.Controls.Add(this.checkbox_printgrayscale); + this.groupbox_printoptions.Controls.Add(this.checkboxPrintInverted); + this.groupbox_printoptions.Controls.Add(this.checkbox_alwaysshowprintoptionsdialog); + this.groupbox_printoptions.Controls.Add(this.checkboxTimestamp); + this.groupbox_printoptions.Controls.Add(this.checkboxAllowCenter); + this.groupbox_printoptions.Controls.Add(this.checkboxAllowRotate); + this.groupbox_printoptions.Controls.Add(this.checkboxAllowEnlarge); + this.groupbox_printoptions.Controls.Add(this.checkboxAllowShrink); + this.groupbox_printoptions.LanguageKey = "settings_printoptions"; + this.groupbox_printoptions.Location = new System.Drawing.Point(2, 6); + this.groupbox_printoptions.Name = "groupbox_printoptions"; + this.groupbox_printoptions.Size = new System.Drawing.Size(412, 308); + this.groupbox_printoptions.TabIndex = 18; + this.groupbox_printoptions.TabStop = false; + this.groupbox_printoptions.Text = "Print options"; + // + // checkbox_monochrome + // + this.checkbox_monochrome.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_monochrome.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_monochrome.LanguageKey = "printoptions_printmonochrome"; + this.checkbox_monochrome.Location = new System.Drawing.Point(12, 183); + this.checkbox_monochrome.Name = "checkbox_monochrome"; + this.checkbox_monochrome.PropertyName = "OutputPrintMonochrome"; + this.checkbox_monochrome.Size = new System.Drawing.Size(394, 20); + this.checkbox_monochrome.TabIndex = 33; + this.checkbox_monochrome.Text = "Force black/white printing"; + this.checkbox_monochrome.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkbox_monochrome.UseVisualStyleBackColor = true; + // + // checkbox_printgrayscale + // + this.checkbox_printgrayscale.LanguageKey = "printoptions_printgrayscale"; + this.checkbox_printgrayscale.Location = new System.Drawing.Point(12, 160); + this.checkbox_printgrayscale.Name = "checkbox_printgrayscale"; + this.checkbox_printgrayscale.PropertyName = "OutputPrintGrayscale"; + this.checkbox_printgrayscale.Size = new System.Drawing.Size(394, 20); + this.checkbox_printgrayscale.TabIndex = 32; + this.checkbox_printgrayscale.Text = "Force grayscale printing"; + this.checkbox_printgrayscale.UseVisualStyleBackColor = true; + // + // checkboxPrintInverted + // + this.checkboxPrintInverted.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxPrintInverted.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxPrintInverted.LanguageKey = "printoptions_inverted"; + this.checkboxPrintInverted.Location = new System.Drawing.Point(12, 137); + this.checkboxPrintInverted.Name = "checkboxPrintInverted"; + this.checkboxPrintInverted.PropertyName = "OutputPrintInverted"; + this.checkboxPrintInverted.Size = new System.Drawing.Size(394, 20); + this.checkboxPrintInverted.TabIndex = 31; + this.checkboxPrintInverted.Text = "Print with inverted colors"; + this.checkboxPrintInverted.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxPrintInverted.UseVisualStyleBackColor = true; + // + // checkbox_alwaysshowprintoptionsdialog + // + this.checkbox_alwaysshowprintoptionsdialog.LanguageKey = "settings_alwaysshowprintoptionsdialog"; + this.checkbox_alwaysshowprintoptionsdialog.Location = new System.Drawing.Point(12, 219); + this.checkbox_alwaysshowprintoptionsdialog.Name = "checkbox_alwaysshowprintoptionsdialog"; + this.checkbox_alwaysshowprintoptionsdialog.PropertyName = "OutputPrintPromptOptions"; + this.checkbox_alwaysshowprintoptionsdialog.Size = new System.Drawing.Size(394, 20); + this.checkbox_alwaysshowprintoptionsdialog.TabIndex = 17; + this.checkbox_alwaysshowprintoptionsdialog.Text = "Show print options dialog every time an image is printed"; + this.checkbox_alwaysshowprintoptionsdialog.UseVisualStyleBackColor = true; + // + // checkboxTimestamp + // + this.checkboxTimestamp.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxTimestamp.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxTimestamp.LanguageKey = "printoptions_timestamp"; + this.checkboxTimestamp.Location = new System.Drawing.Point(12, 114); + this.checkboxTimestamp.Name = "checkboxTimestamp"; + this.checkboxTimestamp.PropertyName = "OutputPrintFooter"; + this.checkboxTimestamp.Size = new System.Drawing.Size(394, 20); + this.checkboxTimestamp.TabIndex = 30; + this.checkboxTimestamp.Text = "Print date / time at bottom of page"; + this.checkboxTimestamp.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxTimestamp.UseVisualStyleBackColor = true; + // + // checkboxAllowCenter + // + this.checkboxAllowCenter.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowCenter.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowCenter.LanguageKey = "printoptions_allowcenter"; + this.checkboxAllowCenter.Location = new System.Drawing.Point(12, 91); + this.checkboxAllowCenter.Name = "checkboxAllowCenter"; + this.checkboxAllowCenter.PropertyName = "OutputPrintCenter"; + this.checkboxAllowCenter.Size = new System.Drawing.Size(394, 20); + this.checkboxAllowCenter.TabIndex = 29; + this.checkboxAllowCenter.Text = "Center printout on page"; + this.checkboxAllowCenter.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowCenter.UseVisualStyleBackColor = true; + // + // checkboxAllowRotate + // + this.checkboxAllowRotate.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowRotate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowRotate.LanguageKey = "printoptions_allowrotate"; + this.checkboxAllowRotate.Location = new System.Drawing.Point(12, 68); + this.checkboxAllowRotate.Name = "checkboxAllowRotate"; + this.checkboxAllowRotate.PropertyName = "OutputPrintAllowRotate"; + this.checkboxAllowRotate.Size = new System.Drawing.Size(394, 20); + this.checkboxAllowRotate.TabIndex = 28; + this.checkboxAllowRotate.Text = "Rotate printout to page orientation"; + this.checkboxAllowRotate.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowRotate.UseVisualStyleBackColor = true; + // + // checkboxAllowEnlarge + // + this.checkboxAllowEnlarge.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowEnlarge.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowEnlarge.LanguageKey = "printoptions_allowenlarge"; + this.checkboxAllowEnlarge.Location = new System.Drawing.Point(12, 45); + this.checkboxAllowEnlarge.Name = "checkboxAllowEnlarge"; + this.checkboxAllowEnlarge.PropertyName = "OutputPrintAllowEnlarge"; + this.checkboxAllowEnlarge.Size = new System.Drawing.Size(394, 20); + this.checkboxAllowEnlarge.TabIndex = 27; + this.checkboxAllowEnlarge.Text = "Enlarge printout to fit paper size"; + this.checkboxAllowEnlarge.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowEnlarge.UseVisualStyleBackColor = true; + // + // checkboxAllowShrink + // + this.checkboxAllowShrink.CheckAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowShrink.ImageAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowShrink.LanguageKey = "printoptions_allowshrink"; + this.checkboxAllowShrink.Location = new System.Drawing.Point(12, 22); + this.checkboxAllowShrink.Name = "checkboxAllowShrink"; + this.checkboxAllowShrink.PropertyName = "OutputPrintAllowShrink"; + this.checkboxAllowShrink.Size = new System.Drawing.Size(394, 20); + this.checkboxAllowShrink.TabIndex = 26; + this.checkboxAllowShrink.Text = "Shrink printout to fit paper size"; + this.checkboxAllowShrink.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.checkboxAllowShrink.UseVisualStyleBackColor = true; + // + // tab_plugins + // + this.tab_plugins.Controls.Add(this.groupbox_plugins); + this.tab_plugins.LanguageKey = "settings_plugins"; + this.tab_plugins.Location = new System.Drawing.Point(4, 22); + this.tab_plugins.Name = "tab_plugins"; + this.tab_plugins.Size = new System.Drawing.Size(423, 320); + this.tab_plugins.TabIndex = 2; + this.tab_plugins.Text = "Plugins"; + this.tab_plugins.UseVisualStyleBackColor = true; + // + // groupbox_plugins + // + this.groupbox_plugins.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.groupbox_plugins.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.groupbox_plugins.Controls.Add(this.listview_plugins); + this.groupbox_plugins.Controls.Add(this.button_pluginconfigure); + this.groupbox_plugins.LanguageKey = "settings_plugins"; + this.groupbox_plugins.Location = new System.Drawing.Point(0, 0); + this.groupbox_plugins.Name = "groupbox_plugins"; + this.groupbox_plugins.Size = new System.Drawing.Size(423, 314); + this.groupbox_plugins.TabIndex = 0; + this.groupbox_plugins.TabStop = false; + this.groupbox_plugins.Text = "Plugins"; + // + // listview_plugins + // + this.listview_plugins.Dock = System.Windows.Forms.DockStyle.Top; + this.listview_plugins.FullRowSelect = true; + this.listview_plugins.Location = new System.Drawing.Point(3, 16); + this.listview_plugins.Name = "listview_plugins"; + this.listview_plugins.Size = new System.Drawing.Size(417, 263); + this.listview_plugins.TabIndex = 2; + this.listview_plugins.UseCompatibleStateImageBehavior = false; + this.listview_plugins.View = System.Windows.Forms.View.Details; + this.listview_plugins.SelectedIndexChanged += new System.EventHandler(this.Listview_pluginsSelectedIndexChanged); + this.listview_plugins.Click += new System.EventHandler(this.Listview_pluginsSelectedIndexChanged); + // + // button_pluginconfigure + // + this.button_pluginconfigure.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button_pluginconfigure.AutoSize = true; + this.button_pluginconfigure.Enabled = false; + this.button_pluginconfigure.LanguageKey = "settings_configureplugin"; + this.button_pluginconfigure.Location = new System.Drawing.Point(6, 285); + this.button_pluginconfigure.Name = "button_pluginconfigure"; + this.button_pluginconfigure.Size = new System.Drawing.Size(75, 23); + this.button_pluginconfigure.TabIndex = 1; + this.button_pluginconfigure.Text = "Configure"; + this.button_pluginconfigure.UseVisualStyleBackColor = true; + this.button_pluginconfigure.Click += new System.EventHandler(this.Button_pluginconfigureClick); + // + // tab_expert + // + this.tab_expert.Controls.Add(this.groupbox_expert); + this.tab_expert.LanguageKey = "expertsettings"; + this.tab_expert.Location = new System.Drawing.Point(4, 22); + this.tab_expert.Name = "tab_expert"; + this.tab_expert.Size = new System.Drawing.Size(423, 320); + this.tab_expert.TabIndex = 5; + this.tab_expert.Text = "Expert"; + this.tab_expert.UseVisualStyleBackColor = true; + // + // groupbox_expert + // + this.groupbox_expert.Controls.Add(this.checkbox_reuseeditor); + this.groupbox_expert.Controls.Add(this.checkbox_minimizememoryfootprint); + this.groupbox_expert.Controls.Add(this.checkbox_checkunstableupdates); + this.groupbox_expert.Controls.Add(this.checkbox_suppresssavedialogatclose); + this.groupbox_expert.Controls.Add(this.label_counter); + this.groupbox_expert.Controls.Add(this.textbox_counter); + this.groupbox_expert.Controls.Add(this.label_footerpattern); + this.groupbox_expert.Controls.Add(this.textbox_footerpattern); + this.groupbox_expert.Controls.Add(this.checkbox_thumbnailpreview); + this.groupbox_expert.Controls.Add(this.checkbox_optimizeforrdp); + this.groupbox_expert.Controls.Add(this.checkbox_autoreducecolors); + this.groupbox_expert.Controls.Add(this.label_clipboardformats); + this.groupbox_expert.Controls.Add(this.checkbox_enableexpert); + this.groupbox_expert.Controls.Add(this.listview_clipboardformats); + this.groupbox_expert.LanguageKey = "expertsettings"; + this.groupbox_expert.Location = new System.Drawing.Point(5, 5); + this.groupbox_expert.Name = "groupbox_expert"; + this.groupbox_expert.Size = new System.Drawing.Size(412, 311); + this.groupbox_expert.TabIndex = 17; + this.groupbox_expert.TabStop = false; + this.groupbox_expert.Text = "Expert"; + // + // checkbox_reuseeditor + // + this.checkbox_reuseeditor.LanguageKey = "expertsettings_reuseeditorifpossible"; + this.checkbox_reuseeditor.Location = new System.Drawing.Point(10, 225); + this.checkbox_reuseeditor.Name = "checkbox_reuseeditor"; + this.checkbox_reuseeditor.PropertyName = "ReuseEditor"; + this.checkbox_reuseeditor.SectionName = "Editor"; + this.checkbox_reuseeditor.Size = new System.Drawing.Size(394, 24); + this.checkbox_reuseeditor.TabIndex = 31; + this.checkbox_reuseeditor.Text = "Reuse editor if possible"; + this.checkbox_reuseeditor.UseVisualStyleBackColor = true; + // + // checkbox_minimizememoryfootprint + // + this.checkbox_minimizememoryfootprint.LanguageKey = "expertsettings_minimizememoryfootprint"; + this.checkbox_minimizememoryfootprint.Location = new System.Drawing.Point(10, 206); + this.checkbox_minimizememoryfootprint.Name = "checkbox_minimizememoryfootprint"; + this.checkbox_minimizememoryfootprint.PropertyName = "MinimizeWorkingSetSize"; + this.checkbox_minimizememoryfootprint.Size = new System.Drawing.Size(394, 24); + this.checkbox_minimizememoryfootprint.TabIndex = 30; + this.checkbox_minimizememoryfootprint.Text = "Minimize memory footprint, but with a performance penalty (not adviced)."; + this.checkbox_minimizememoryfootprint.UseVisualStyleBackColor = true; + // + // checkbox_checkunstableupdates + // + this.checkbox_checkunstableupdates.LanguageKey = "expertsettings_checkunstableupdates"; + this.checkbox_checkunstableupdates.Location = new System.Drawing.Point(10, 187); + this.checkbox_checkunstableupdates.Name = "checkbox_checkunstableupdates"; + this.checkbox_checkunstableupdates.PropertyName = "CheckForUnstable"; + this.checkbox_checkunstableupdates.Size = new System.Drawing.Size(394, 24); + this.checkbox_checkunstableupdates.TabIndex = 29; + this.checkbox_checkunstableupdates.Text = "Check for unstable updates"; + this.checkbox_checkunstableupdates.UseVisualStyleBackColor = true; + // + // checkbox_suppresssavedialogatclose + // + this.checkbox_suppresssavedialogatclose.LanguageKey = "expertsettings_suppresssavedialogatclose"; + this.checkbox_suppresssavedialogatclose.Location = new System.Drawing.Point(10, 168); + this.checkbox_suppresssavedialogatclose.Name = "checkbox_suppresssavedialogatclose"; + this.checkbox_suppresssavedialogatclose.PropertyName = "SuppressSaveDialogAtClose"; + this.checkbox_suppresssavedialogatclose.SectionName = "Editor"; + this.checkbox_suppresssavedialogatclose.Size = new System.Drawing.Size(394, 24); + this.checkbox_suppresssavedialogatclose.TabIndex = 28; + this.checkbox_suppresssavedialogatclose.Text = "Suppress the save dialog when closing the editor"; + this.checkbox_suppresssavedialogatclose.UseVisualStyleBackColor = true; + // + // label_counter + // + this.label_counter.AutoSize = true; + this.label_counter.LanguageKey = "expertsettings_counter"; + this.label_counter.Location = new System.Drawing.Point(7, 285); + this.label_counter.Name = "label_counter"; + this.label_counter.Size = new System.Drawing.Size(246, 13); + this.label_counter.TabIndex = 27; + this.label_counter.Text = "The number for the ${NUM} in the filename pattern"; + // + // textbox_counter + // + this.textbox_counter.Location = new System.Drawing.Point(259, 282); + this.textbox_counter.Name = "textbox_counter"; + this.textbox_counter.PropertyName = "OutputFileIncrementingNumber"; + this.textbox_counter.Size = new System.Drawing.Size(141, 20); + this.textbox_counter.TabIndex = 26; + // + // label_footerpattern + // + this.label_footerpattern.AutoSize = true; + this.label_footerpattern.LanguageKey = "expertsettings_footerpattern"; + this.label_footerpattern.Location = new System.Drawing.Point(7, 259); + this.label_footerpattern.Name = "label_footerpattern"; + this.label_footerpattern.Size = new System.Drawing.Size(103, 13); + this.label_footerpattern.TabIndex = 25; + this.label_footerpattern.Text = "Printer footer pattern"; + // + // textbox_footerpattern + // + this.textbox_footerpattern.Location = new System.Drawing.Point(138, 256); + this.textbox_footerpattern.Name = "textbox_footerpattern"; + this.textbox_footerpattern.PropertyName = "OutputPrintFooterPattern"; + this.textbox_footerpattern.Size = new System.Drawing.Size(262, 20); + this.textbox_footerpattern.TabIndex = 24; + // + // checkbox_thumbnailpreview + // + this.checkbox_thumbnailpreview.LanguageKey = "expertsettings_thumbnailpreview"; + this.checkbox_thumbnailpreview.Location = new System.Drawing.Point(10, 149); + this.checkbox_thumbnailpreview.Name = "checkbox_thumbnailpreview"; + this.checkbox_thumbnailpreview.PropertyName = "ThumnailPreview"; + this.checkbox_thumbnailpreview.Size = new System.Drawing.Size(394, 24); + this.checkbox_thumbnailpreview.TabIndex = 23; + this.checkbox_thumbnailpreview.Text = "Show window thumbnails in context menu (for Vista and windows 7)"; + this.checkbox_thumbnailpreview.UseVisualStyleBackColor = true; + // + // checkbox_optimizeforrdp + // + this.checkbox_optimizeforrdp.LanguageKey = "expertsettings_optimizeforrdp"; + this.checkbox_optimizeforrdp.Location = new System.Drawing.Point(10, 130); + this.checkbox_optimizeforrdp.Name = "checkbox_optimizeforrdp"; + this.checkbox_optimizeforrdp.PropertyName = "OptimizeForRDP"; + this.checkbox_optimizeforrdp.Size = new System.Drawing.Size(394, 24); + this.checkbox_optimizeforrdp.TabIndex = 22; + this.checkbox_optimizeforrdp.Text = "Make some optimizations for usage with remote desktop"; + this.checkbox_optimizeforrdp.UseVisualStyleBackColor = true; + // + // checkbox_autoreducecolors + // + this.checkbox_autoreducecolors.LanguageKey = "expertsettings_autoreducecolors"; + this.checkbox_autoreducecolors.Location = new System.Drawing.Point(10, 111); + this.checkbox_autoreducecolors.Name = "checkbox_autoreducecolors"; + this.checkbox_autoreducecolors.PropertyName = "OutputFileAutoReduceColors"; + this.checkbox_autoreducecolors.Size = new System.Drawing.Size(408, 24); + this.checkbox_autoreducecolors.TabIndex = 21; + this.checkbox_autoreducecolors.Text = "Create an 8-bit image if the colors are less than 256 while having a > 8 bits ima" + + "ge"; + this.checkbox_autoreducecolors.UseVisualStyleBackColor = true; + // + // label_clipboardformats + // + this.label_clipboardformats.AutoSize = true; + this.label_clipboardformats.LanguageKey = "expertsettings_clipboardformats"; + this.label_clipboardformats.Location = new System.Drawing.Point(7, 39); + this.label_clipboardformats.Name = "label_clipboardformats"; + this.label_clipboardformats.Size = new System.Drawing.Size(88, 13); + this.label_clipboardformats.TabIndex = 20; + this.label_clipboardformats.Text = "Clipboard formats"; + // + // checkbox_enableexpert + // + this.checkbox_enableexpert.LanguageKey = "expertsettings_enableexpert"; + this.checkbox_enableexpert.Location = new System.Drawing.Point(6, 14); + this.checkbox_enableexpert.Name = "checkbox_enableexpert"; + this.checkbox_enableexpert.Size = new System.Drawing.Size(394, 24); + this.checkbox_enableexpert.TabIndex = 19; + this.checkbox_enableexpert.Text = "I know what I am doing!"; + this.checkbox_enableexpert.UseVisualStyleBackColor = true; + this.checkbox_enableexpert.CheckedChanged += new System.EventHandler(this.checkbox_enableexpert_CheckedChanged); + // + // listview_clipboardformats + // + this.listview_clipboardformats.Alignment = System.Windows.Forms.ListViewAlignment.Left; + this.listview_clipboardformats.AutoArrange = false; + this.listview_clipboardformats.CheckBoxes = true; + this.listview_clipboardformats.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeader1}); + this.listview_clipboardformats.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.listview_clipboardformats.LabelWrap = false; + this.listview_clipboardformats.Location = new System.Drawing.Point(170, 38); + this.listview_clipboardformats.Name = "listview_clipboardformats"; + this.listview_clipboardformats.ShowGroups = false; + this.listview_clipboardformats.Size = new System.Drawing.Size(230, 72); + this.listview_clipboardformats.Sorting = System.Windows.Forms.SortOrder.Ascending; + this.listview_clipboardformats.TabIndex = 0; + this.listview_clipboardformats.UseCompatibleStateImageBehavior = false; + this.listview_clipboardformats.View = System.Windows.Forms.View.Details; + // + // columnHeader1 + // + this.columnHeader1.Text = "Destination"; + this.columnHeader1.Width = 225; + // + // SettingsForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.ClientSize = new System.Drawing.Size(451, 396); + this.Controls.Add(this.tabcontrol); + this.Controls.Add(this.settings_confirm); + this.Controls.Add(this.settings_cancel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.LanguageKey = "settings_title"; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SettingsForm"; + this.Text = "Settings"; + this.groupbox_preferredfilesettings.ResumeLayout(false); + this.groupbox_preferredfilesettings.PerformLayout(); + this.groupbox_applicationsettings.ResumeLayout(false); + this.groupbox_qualitysettings.ResumeLayout(false); + this.groupbox_qualitysettings.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarJpegQuality)).EndInit(); + this.groupbox_destination.ResumeLayout(false); + this.tabcontrol.ResumeLayout(false); + this.tab_general.ResumeLayout(false); + this.groupbox_network.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_daysbetweencheck)).EndInit(); + this.groupbox_hotkeys.ResumeLayout(false); + this.groupbox_hotkeys.PerformLayout(); + this.tab_capture.ResumeLayout(false); + this.groupbox_editor.ResumeLayout(false); + this.groupbox_iecapture.ResumeLayout(false); + this.groupbox_windowscapture.ResumeLayout(false); + this.groupbox_windowscapture.PerformLayout(); + this.groupbox_capture.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWaitTime)).EndInit(); + this.tab_output.ResumeLayout(false); + this.tab_destinations.ResumeLayout(false); + this.tab_printer.ResumeLayout(false); + this.groupbox_printoptions.ResumeLayout(false); + this.tab_plugins.ResumeLayout(false); + this.groupbox_plugins.ResumeLayout(false); + this.groupbox_plugins.PerformLayout(); + this.tab_expert.ResumeLayout(false); + this.groupbox_expert.ResumeLayout(false); + this.groupbox_expert.PerformLayout(); + this.ResumeLayout(false); + } private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_notifications; private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_minimizememoryfootprint; @@ -1302,5 +1387,6 @@ namespace Greenshot { private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_suppresssavedialogatclose; private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_checkunstableupdates; private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_reuseeditor; + private GreenshotPlugin.Controls.GreenshotCheckBox checkbox_monochrome; } } diff --git a/Greenshot/Forms/SettingsForm.resx b/Greenshot/Forms/SettingsForm.resx index d6671649c..c1d301171 100644 --- a/Greenshot/Forms/SettingsForm.resx +++ b/Greenshot/Forms/SettingsForm.resx @@ -112,15 +112,15 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 116, 17 - + iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6 diff --git a/Greenshot/Helpers/PrintHelper.cs b/Greenshot/Helpers/PrintHelper.cs index 2ea58a5ea..63941bb9a 100644 --- a/Greenshot/Helpers/PrintHelper.cs +++ b/Greenshot/Helpers/PrintHelper.cs @@ -29,6 +29,7 @@ using Greenshot.Forms; using Greenshot.Plugin; using GreenshotPlugin.Core; using Greenshot.IniFile; +using Greenshot.Core; namespace Greenshot.Helpers { /// @@ -38,13 +39,13 @@ namespace Greenshot.Helpers { private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(PrintHelper)); private static CoreConfiguration conf = IniConfig.GetIniSection(); - private Image image; + private ISurface surface; private ICaptureDetails captureDetails; private PrintDocument printDocument = new PrintDocument(); private PrintDialog printDialog = new PrintDialog(); - public PrintHelper(Image image, ICaptureDetails captureDetails) { - this.image = image; + public PrintHelper(ISurface surface, ICaptureDetails captureDetails) { + this.surface = surface; this.captureDetails = captureDetails; printDialog.UseEXDialog = true; printDocument.DocumentName = FilenameHelper.GetFilenameWithoutExtensionFromPattern(conf.OutputFileFilenamePattern, captureDetails); @@ -74,8 +75,8 @@ namespace Greenshot.Helpers { */ protected virtual void Dispose(bool disposing) { if (disposing) { - if (image != null) { - image.Dispose(); + if (surface != null) { + surface.Dispose(); } if (printDocument != null) { printDocument.Dispose(); @@ -84,7 +85,7 @@ namespace Greenshot.Helpers { printDialog.Dispose(); } } - image = null; + surface = null; printDocument = null; printDialog = null; } @@ -100,7 +101,7 @@ namespace Greenshot.Helpers { try { if (printOptionsResult == null || printOptionsResult == DialogResult.OK) { printDocument.PrinterSettings.PrinterName = printerName; - if (conf.OutputPrintGrayscale) { + if (!IsColorPrint()) { printDocument.DefaultPageSettings.Color = false; } printDocument.Print(); @@ -110,8 +111,8 @@ namespace Greenshot.Helpers { LOG.Error("An error ocurred while trying to print", e); MessageBox.Show(Language.GetString(LangKey.print_error), Language.GetString(LangKey.error)); } - image.Dispose(); - image = null; + surface.Dispose(); + surface = null; return returnPrinterSettings; } @@ -126,7 +127,7 @@ namespace Greenshot.Helpers { DialogResult? printOptionsResult = ShowPrintOptionsDialog(); try { if (printOptionsResult == null || printOptionsResult == DialogResult.OK) { - if (conf.OutputPrintGrayscale) { + if (IsColorPrint()) { printDocument.DefaultPageSettings.Color = false; } printDocument.Print(); @@ -138,11 +139,15 @@ namespace Greenshot.Helpers { } } - image.Dispose(); - image = null; + surface.Dispose(); + surface = null; return returnPrinterSettings; } + private bool IsColorPrint() { + return !conf.OutputPrintGrayscale && !conf.OutputPrintMonochrome; + } + /// /// display print options dialog (if the user has not configured Greenshot not to) /// @@ -158,62 +163,95 @@ namespace Greenshot.Helpers { } void DrawImageForPrint(object sender, PrintPageEventArgs e) { - ContentAlignment alignment = conf.OutputPrintCenter ? ContentAlignment.MiddleCenter : ContentAlignment.TopLeft; + - // prepare timestamp - float footerStringWidth = 0; - float footerStringHeight = 0; - string footerString = null; //DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString(); - if (conf.OutputPrintFooter) { - footerString = FilenameHelper.FillPattern(conf.OutputPrintFooterPattern, captureDetails, false); - using (Font f = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular)) { - footerStringWidth = e.Graphics.MeasureString(footerString, f).Width; - footerStringHeight = e.Graphics.MeasureString(footerString, f).Height; + // Create the output settins + SurfaceOutputSettings printOutputSettings = new SurfaceOutputSettings(OutputFormat.png, 100, false); + + ApplyEffects(printOutputSettings); + + Image image; + Boolean disposeImage = ImageOutput.CreateImageFromSurface(surface, printOutputSettings, out image); + try { + ContentAlignment alignment = conf.OutputPrintCenter ? ContentAlignment.MiddleCenter : ContentAlignment.TopLeft; + + // prepare timestamp + float footerStringWidth = 0; + float footerStringHeight = 0; + string footerString = null; //DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString(); + if (conf.OutputPrintFooter) { + footerString = FilenameHelper.FillPattern(conf.OutputPrintFooterPattern, captureDetails, false); + using (Font f = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular)) { + footerStringWidth = e.Graphics.MeasureString(footerString, f).Width; + footerStringHeight = e.Graphics.MeasureString(footerString, f).Height; + } + } + + // Get a rectangle representing the printable Area + RectangleF pageRect = e.PageSettings.PrintableArea; + if(e.PageSettings.Landscape) { + float origWidth = pageRect.Width; + pageRect.Width = pageRect.Height; + pageRect.Height = origWidth; + } + + // Subtract the dateString height from the available area, this way the area stays free + pageRect.Height -= footerStringHeight; + + GraphicsUnit gu = GraphicsUnit.Pixel; + RectangleF imageRect = image.GetBounds(ref gu); + // rotate the image if it fits the page better + if (conf.OutputPrintAllowRotate) { + if ((pageRect.Width > pageRect.Height && imageRect.Width < imageRect.Height) || (pageRect.Width < pageRect.Height && imageRect.Width > imageRect.Height)) { + image.RotateFlip(RotateFlipType.Rotate90FlipNone); + imageRect = image.GetBounds(ref gu); + if (alignment.Equals(ContentAlignment.TopLeft)) { + alignment = ContentAlignment.TopRight; + } + } + } + + RectangleF printRect = new RectangleF(0, 0, imageRect.Width, imageRect.Height); + // scale the image to fit the page better + if (conf.OutputPrintAllowEnlarge || conf.OutputPrintAllowShrink) { + SizeF resizedRect = ScaleHelper.GetScaledSize(imageRect.Size, pageRect.Size, false); + if ((conf.OutputPrintAllowShrink && resizedRect.Width < printRect.Width) || conf.OutputPrintAllowEnlarge && resizedRect.Width > printRect.Width) { + printRect.Size = resizedRect; + } + } + + // align the image + printRect = ScaleHelper.GetAlignedRectangle(printRect, new RectangleF(0, 0, pageRect.Width, pageRect.Height), alignment); + if (conf.OutputPrintFooter) { + //printRect = new RectangleF(0, 0, printRect.Width, printRect.Height - (dateStringHeight * 2)); + using (Font f = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular)) { + e.Graphics.DrawString(footerString, f, Brushes.Black, pageRect.Width / 2 - (footerStringWidth / 2), pageRect.Height); + } + } + e.Graphics.DrawImage(image, printRect, imageRect, GraphicsUnit.Pixel); + + } finally { + if (disposeImage && image != null) { + image.Dispose(); + image = null; } } - - // Get a rectangle representing the printable Area - RectangleF pageRect = e.PageSettings.PrintableArea; - if(e.PageSettings.Landscape) { - float origWidth = pageRect.Width; - pageRect.Width = pageRect.Height; - pageRect.Height = origWidth; - } - - // Subtract the dateString height from the available area, this way the area stays free - pageRect.Height -= footerStringHeight; - - GraphicsUnit gu = GraphicsUnit.Pixel; - RectangleF imageRect = image.GetBounds(ref gu); - // rotate the image if it fits the page better - if (conf.OutputPrintAllowRotate) { - if ((pageRect.Width > pageRect.Height && imageRect.Width < imageRect.Height) || (pageRect.Width < pageRect.Height && imageRect.Width > imageRect.Height)) { - image.RotateFlip(RotateFlipType.Rotate90FlipNone); - imageRect = image.GetBounds(ref gu); - if (alignment.Equals(ContentAlignment.TopLeft)) { - alignment = ContentAlignment.TopRight; - } - } - } - - RectangleF printRect = new RectangleF(0, 0, imageRect.Width, imageRect.Height); - // scale the image to fit the page better - if (conf.OutputPrintAllowEnlarge || conf.OutputPrintAllowShrink) { - SizeF resizedRect = ScaleHelper.GetScaledSize(imageRect.Size, pageRect.Size, false); - if ((conf.OutputPrintAllowShrink && resizedRect.Width < printRect.Width) || conf.OutputPrintAllowEnlarge && resizedRect.Width > printRect.Width) { - printRect.Size = resizedRect; - } - } - - // align the image - printRect = ScaleHelper.GetAlignedRectangle(printRect, new RectangleF(0, 0, pageRect.Width, pageRect.Height), alignment); - if (conf.OutputPrintFooter) { - //printRect = new RectangleF(0, 0, printRect.Width, printRect.Height - (dateStringHeight * 2)); - using (Font f = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular)) { - e.Graphics.DrawString(footerString, f, Brushes.Black, pageRect.Width / 2 - (footerStringWidth / 2), pageRect.Height); - } - } - e.Graphics.DrawImage(image, printRect, imageRect, GraphicsUnit.Pixel); } + + private void ApplyEffects(SurfaceOutputSettings printOutputSettings) + { + // TODO: + // add effects here + if (conf.OutputPrintMonochrome) { + byte threshold = conf.OutputPrintMonochromeThreshold; + printOutputSettings.Effects.Add(new MonochromeEffect(threshold)); + printOutputSettings.ReduceColors = true; + } + + // the invert effect should probably be the last + if (conf.OutputPrintInverted) { + printOutputSettings.Effects.Add(new InvertEffect()); + } + } } } diff --git a/Greenshot/Languages/language-en-US.xml b/Greenshot/Languages/language-en-US.xml index a20101f78..1aca46e23 100644 --- a/Greenshot/Languages/language-en-US.xml +++ b/Greenshot/Languages/language-en-US.xml @@ -5,18 +5,18 @@ If you like Greenshot, you are welcome to support us: Greenshot is hosted by sourceforge.net at Icons from Yusuke Kamiyamane's Fugue icon set (Creative Commons Attribution 3.0 license) - Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom -Greenshot comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. + Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom +Greenshot comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Details about the GNU General Public License: About Greenshot Greenshot - the revolutionary screenshot utility Close - Sorry, an unexpected error occured. - -The good news is: you can help us getting rid of it by filing a bug report. -Please visit the URL below, create a new bug report and paste the contents from the text area into the description. - -Please add a meaningful summary and enclose any information you consider to be helpful for reproducing the issue. + Sorry, an unexpected error occured. + +The good news is: you can help us getting rid of it by filing a bug report. +Please visit the URL below, create a new bug report and paste the contents from the text area into the description. + +Please add a meaningful summary and enclose any information you consider to be helpful for reproducing the issue. Also, we would highly appreciate if you checked whether a tracker item already exists for this bug. (You can use the search to find those quickly.) Thank you :) Error Cancel @@ -167,7 +167,7 @@ Also, we would highly appreciate if you checked whether a tracker item already e Outlook with text Error An instance of Greenshot is already running. - Cannot save file to {0}. + Cannot save file to {0}. Please check write accessibility of the selected storage location. The file "{0}" could not be opened. Could not open link '{0}'. @@ -198,7 +198,8 @@ Please check write accessibility of the selected storage location. Save options as default and do not ask again Print with inverted colors Force grayscale printing - Print date / time at bottom of page + Force black/white printing + Print date / time at bottom of page Greenshot print options Save as default quality and do not ask again Greenshot quality @@ -227,22 +228,22 @@ Please check write accessibility of the selected storage location. Internet Explorer capture JPEG quality Language - The following placeholders will be replaced automatically in the pattern defined: -${YYYY} year, 4 digits -${MM} month, 2 digits -${DD} day, 2 digits -${hh} hour, 2 digits -${mm} minute, 2 digits -${ss} second, 2 digits -${NUM} incrementing number, 6 digits -${title} Window title -${user} Windows user -${domain} Windows domain -${hostname} PC name - -You can also have Greenshot create directories dynamically, simply use the backslash symbol (\) to separate folders and filename. -Example: the pattern ${YYYY}-${MM}-${DD}\${hh}-${mm}-${ss} -will generate a folder for the current day in your default storage location, e.g. 2008-06-29, the contained screenshot file's name will be based on the current + The following placeholders will be replaced automatically in the pattern defined: +${YYYY} year, 4 digits +${MM} month, 2 digits +${DD} day, 2 digits +${hh} hour, 2 digits +${mm} minute, 2 digits +${ss} second, 2 digits +${NUM} incrementing number, 6 digits +${title} Window title +${user} Windows user +${domain} Windows domain +${hostname} PC name + +You can also have Greenshot create directories dynamically, simply use the backslash symbol (\) to separate folders and filename. +Example: the pattern ${YYYY}-${MM}-${DD}\${hh}-${mm}-${ss} +will generate a folder for the current day in your default storage location, e.g. 2008-06-29, the contained screenshot file's name will be based on the current time, e.g. 11_58_32 (plus extension defined in the settings) Network and updates Output @@ -277,8 +278,8 @@ time, e.g. 11_58_32 (plus extension defined in the settings) A newer version of Greenshot is available! Do you want to download Greenshot {0}? Please wait while the page in Internet Explorer is captured... Warning - The hotkey(s) "{0}" could not be registered. This problem is probably caused by another tool claiming usage of the same hotkey(s)! You could either change your hotkey settings or deactivate/change the software making use of the hotkey(s). - + The hotkey(s) "{0}" could not be registered. This problem is probably caused by another tool claiming usage of the same hotkey(s)! You could either change your hotkey settings or deactivate/change the software making use of the hotkey(s). + All Greenshot features still work directly from the tray icon context menu without hotkeys. Use custom color Preserve transparency diff --git a/Greenshot/releases/additional_files/readme.template.txt b/Greenshot/releases/additional_files/readme.template.txt index 667969d1b..8fa9ede29 100644 --- a/Greenshot/releases/additional_files/readme.template.txt +++ b/Greenshot/releases/additional_files/readme.template.txt @@ -11,6 +11,7 @@ Features: * General: Added Special-Folder support for the OutputPath/Filenames, now one can use the following values: MyPictures, MyMusic, MyDocuments, Personal, Desktop, ApplicationData, LocalApplicationData. Meaning one can now set the output path to e.g. ${MyPictures} * Editor: The capture is now displayed in the center of the editor, the code for this was supplied by Viktar Karpach. * Editor: Added horizontal and vertical alignment for text boxes. +* Printing: Added option to force monochrome (black/white) print * Plug-in: Added Photobucket plugin * Plug-in: Removed unneeded code from the Confluence Plug-in, this makes the Greenshot installer / .zip a bit smaller. diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 03e6153b7..be89e320f 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -137,9 +137,13 @@ namespace GreenshotPlugin.Core { public bool OutputPrintCenter; [IniProperty("OutputPrintInverted", LanguageKey="printoptions_inverted", Description="Print image inverted (use e.g. for console captures)", DefaultValue="false")] public bool OutputPrintInverted; - [IniProperty("OutputPrintGrayscale", LanguageKey = "printoptions_printgrayscale", Description = "Force grayscale printing", DefaultValue = "false")] - public bool OutputPrintGrayscale; - [IniProperty("OutputPrintFooter", LanguageKey = "printoptions_timestamp", Description = "Print footer on print?", DefaultValue = "true")] + [IniProperty("OutputPrintGrayscale", LanguageKey = "printoptions_printgrayscale", Description = "Force grayscale printing", DefaultValue = "false")] + public bool OutputPrintGrayscale; + [IniProperty("OutputPrintMonochrome", LanguageKey = "printoptions_printmonochrome", Description = "Force monorchrome printing", DefaultValue = "false")] + public bool OutputPrintMonochrome; + [IniProperty("OutputPrintMonochromeThreshold", Description = "Threshold for monochrome filter (0 - 255), lower value means less black", DefaultValue = "127")] + public byte OutputPrintMonochromeThreshold; + [IniProperty("OutputPrintFooter", LanguageKey = "printoptions_timestamp", Description = "Print footer on print?", DefaultValue = "true")] public bool OutputPrintFooter; [IniProperty("OutputPrintFooterPattern", Description = "Footer pattern", DefaultValue = "${capturetime:d\"D\"} ${capturetime:d\"T\"} - ${title}")] public string OutputPrintFooterPattern; diff --git a/GreenshotPlugin/Core/Effects.cs b/GreenshotPlugin/Core/Effects.cs index fea2be5a3..63f42c574 100644 --- a/GreenshotPlugin/Core/Effects.cs +++ b/GreenshotPlugin/Core/Effects.cs @@ -105,9 +105,14 @@ namespace Greenshot.Core { /// MonochromeEffect /// public class MonochromeEffect : IEffect { + private byte threshold; + /// Threshold for monochrome filter (0 - 255), lower value means less black + public MonochromeEffect(byte threshold) { + this.threshold = threshold; + } public Image Apply(Image sourceImage, out Point offsetChange) { offsetChange = Point.Empty; - return ImageHelper.CreateMonochrome(sourceImage); + return ImageHelper.CreateMonochrome(sourceImage, threshold); } } diff --git a/GreenshotPlugin/Core/ImageHelper.cs b/GreenshotPlugin/Core/ImageHelper.cs index b45c35996..83cb460c4 100644 --- a/GreenshotPlugin/Core/ImageHelper.cs +++ b/GreenshotPlugin/Core/ImageHelper.cs @@ -883,15 +883,16 @@ namespace GreenshotPlugin.Core { /// /// Returns a b/w of Bitmap /// - /// Bitmap to create a b/w off + /// Bitmap to create a b/w of + /// Threshold for monochrome filter (0 - 255), lower value means less black /// b/w bitmap - public static Bitmap CreateMonochrome(Image sourceImage) { + public static Bitmap CreateMonochrome(Image sourceImage, byte threshold) { using (IFastBitmap fastBitmap = FastBitmap.CreateCloneOf(sourceImage, sourceImage.PixelFormat)) { fastBitmap.Lock(); for (int y = 0; y < fastBitmap.Height; y++) { for (int x = 0; x < fastBitmap.Width; x++) { Color color = fastBitmap.GetColorAt(x, y); - int colorBrightness = (color.R + color.G + color.B > 382) ? 255 : 0; + int colorBrightness = ((color.R + color.G + color.B) / 3 > threshold) ? 255 : 0; Color monoColor = Color.FromArgb(color.A, colorBrightness, colorBrightness, colorBrightness); fastBitmap.SetColorAt(x, y, monoColor); }