mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
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:
parent
c3a1e18faa
commit
4e13e13f47
5 changed files with 129 additions and 18 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue