Fixing settings form and added a hide expert tab setting.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1904 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-30 09:57:43 +00:00
parent b5b6bf6e20
commit aa9f6a0cd3
3 changed files with 6 additions and 3 deletions

View file

@ -1180,10 +1180,10 @@ namespace Greenshot {
this.columnHeader1}); this.columnHeader1});
this.listview_clipboardformats.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this.listview_clipboardformats.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
this.listview_clipboardformats.LabelWrap = false; this.listview_clipboardformats.LabelWrap = false;
this.listview_clipboardformats.Location = new System.Drawing.Point(109, 38); this.listview_clipboardformats.Location = new System.Drawing.Point(170, 38);
this.listview_clipboardformats.Name = "listview_clipboardformats"; this.listview_clipboardformats.Name = "listview_clipboardformats";
this.listview_clipboardformats.ShowGroups = false; this.listview_clipboardformats.ShowGroups = false;
this.listview_clipboardformats.Size = new System.Drawing.Size(291, 72); this.listview_clipboardformats.Size = new System.Drawing.Size(230, 72);
this.listview_clipboardformats.Sorting = System.Windows.Forms.SortOrder.Ascending; this.listview_clipboardformats.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.listview_clipboardformats.TabIndex = 0; this.listview_clipboardformats.TabIndex = 0;
this.listview_clipboardformats.UseCompatibleStateImageBehavior = false; this.listview_clipboardformats.UseCompatibleStateImageBehavior = false;
@ -1192,7 +1192,7 @@ namespace Greenshot {
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Destination"; this.columnHeader1.Text = "Destination";
this.columnHeader1.Width = 280; this.columnHeader1.Width = 225;
// //
// checkbox_minimizememoryfootprint // checkbox_minimizememoryfootprint
// //

View file

@ -163,6 +163,7 @@ namespace Greenshot {
/// Update the UI to reflect the language and other text settings /// Update the UI to reflect the language and other text settings
/// </summary> /// </summary>
private void UpdateUI() { private void UpdateUI() {
tab_expert.Visible = !coreConfiguration.HideExpertSettings;
toolTip.SetToolTip(label_language, Language.GetString(LangKey.settings_tooltip_language)); toolTip.SetToolTip(label_language, Language.GetString(LangKey.settings_tooltip_language));
toolTip.SetToolTip(label_storagelocation, Language.GetString(LangKey.settings_tooltip_storagelocation)); toolTip.SetToolTip(label_storagelocation, Language.GetString(LangKey.settings_tooltip_storagelocation));
toolTip.SetToolTip(label_screenshotname, Language.GetString(LangKey.settings_tooltip_filenamepattern)); toolTip.SetToolTip(label_screenshotname, Language.GetString(LangKey.settings_tooltip_filenamepattern));

View file

@ -160,6 +160,8 @@ namespace GreenshotPlugin.Core {
public bool DisableSettings; public bool DisableSettings;
[IniProperty("DisableTrayicon", Description = "Disable the trayicon, can only be changed manually in this .ini", DefaultValue = "False")] [IniProperty("DisableTrayicon", Description = "Disable the trayicon, can only be changed manually in this .ini", DefaultValue = "False")]
public bool HideTrayicon; public bool HideTrayicon;
[IniProperty("HideExpertSettings", Description = "Hide expert tab in the settings, can only be changed manually in this .ini", DefaultValue = "False")]
public bool HideExpertSettings;
[IniProperty("ThumnailPreview", Description="Enable/disable thumbnail previews", DefaultValue="True")] [IniProperty("ThumnailPreview", Description="Enable/disable thumbnail previews", DefaultValue="True")]
public bool ThumnailPreview; public bool ThumnailPreview;