mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
This changes enables the settings (most of them) which are supplied in the greenshot-fixed.ini to be unchangeable in the settings.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1969 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
459c2e16f9
commit
48159a99b0
7 changed files with 122 additions and 55 deletions
|
@ -255,6 +255,10 @@ namespace Greenshot {
|
|||
/// Build the view with all the destinations
|
||||
/// </summary>
|
||||
private void DisplayDestinations() {
|
||||
bool destinationsEnabled = true;
|
||||
if (coreConfiguration.Values.ContainsKey("Destinations")) {
|
||||
destinationsEnabled = !coreConfiguration.Values["Destinations"].Attributes.FixedValue;
|
||||
}
|
||||
checkbox_picker.Checked = false;
|
||||
|
||||
listview_destinations.Items.Clear();
|
||||
|
@ -289,6 +293,8 @@ namespace Greenshot {
|
|||
item.Checked = false;
|
||||
}
|
||||
}
|
||||
checkbox_picker.Enabled = destinationsEnabled;
|
||||
listview_destinations.Enabled = destinationsEnabled;
|
||||
}
|
||||
|
||||
private void DisplaySettings() {
|
||||
|
@ -304,9 +310,16 @@ namespace Greenshot {
|
|||
if (Language.CurrentLanguage != null) {
|
||||
combobox_language.SelectedValue = Language.CurrentLanguage;
|
||||
}
|
||||
// Disable editing when the value is fixed
|
||||
combobox_language.Enabled = !coreConfiguration.Values["Language"].Attributes.FixedValue;
|
||||
|
||||
textbox_storagelocation.Text = FilenameHelper.FillVariables(coreConfiguration.OutputFilePath, false);
|
||||
|
||||
// Disable editing when the value is fixed
|
||||
textbox_storagelocation.Enabled = !coreConfiguration.Values["OutputFilePath"].Attributes.FixedValue;
|
||||
|
||||
SetWindowCaptureMode(coreConfiguration.WindowCaptureMode);
|
||||
// Disable editing when the value is fixed
|
||||
combobox_window_capture_mode.Enabled = !coreConfiguration.Values["WindowCaptureMode"].Attributes.FixedValue;
|
||||
|
||||
trackBarJpegQuality.Value = coreConfiguration.OutputFileJpegQuality;
|
||||
textBoxJpegQuality.Text = coreConfiguration.OutputFileJpegQuality+"%";
|
||||
|
@ -477,7 +490,11 @@ namespace Greenshot {
|
|||
void CheckDestinationSettings() {
|
||||
bool clipboardDestinationChecked = false;
|
||||
bool pickerSelected = checkbox_picker.Checked;
|
||||
listview_destinations.Enabled = true;
|
||||
bool destinationsEnabled = true;
|
||||
if (coreConfiguration.Values.ContainsKey("Destinations")) {
|
||||
destinationsEnabled = !coreConfiguration.Values["Destinations"].Attributes.FixedValue;
|
||||
}
|
||||
listview_destinations.Enabled = destinationsEnabled;
|
||||
|
||||
foreach(int index in listview_destinations.CheckedIndices) {
|
||||
ListViewItem item = listview_destinations.Items[index];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue