Added GreenshotComboBox, this binds to a ini configuration (enum) and fills the values depending on the type of the enum, including translations!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1769 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-11 09:17:06 +00:00
commit 4e13e13f47
5 changed files with 129 additions and 18 deletions

View file

@ -66,7 +66,6 @@ namespace Greenshot {
}
DisplayPluginTab();
this.combobox_primaryimageformat.Items.AddRange(new object[] { OutputFormat.bmp, OutputFormat.gif, OutputFormat.jpg, OutputFormat.png, OutputFormat.tiff });
UpdateUI();
DisplaySettings();
CheckSettings();
@ -260,7 +259,6 @@ namespace Greenshot {
combobox_language.SelectedValue = language.CurrentLanguage;
}
textbox_storagelocation.Text = FilenameHelper.FillVariables(coreConfiguration.OutputFilePath, false);
combobox_primaryimageformat.SelectedItem = coreConfiguration.OutputFileFormat;
SetWindowCaptureMode(coreConfiguration.WindowCaptureMode);
@ -297,12 +295,6 @@ namespace Greenshot {
if (!FilenameHelper.FillVariables(coreConfiguration.OutputFilePath, false).Equals(textbox_storagelocation.Text)) {
coreConfiguration.OutputFilePath = textbox_storagelocation.Text;
}
if (combobox_primaryimageformat.SelectedItem != null) {
coreConfiguration.OutputFileFormat = (OutputFormat)combobox_primaryimageformat.SelectedItem;
} else {
coreConfiguration.OutputFileFormat = OutputFormat.png;
}
coreConfiguration.OutputFileJpegQuality = trackBarJpegQuality.Value;
List<string> destinations = new List<string>();