6 changed files with 81 additions and 113 deletions
@ -1,50 +0,0 @@ |
|||||||
<Components version="1.0"> |
|
||||||
<System.Windows.Forms.UserControl> |
|
||||||
<Name value="XmlUserControl1" /> |
|
||||||
<ClientSize value="{Width=296, Height=240}" /> |
|
||||||
<Controls> |
|
||||||
<System.Windows.Forms.CheckBox> |
|
||||||
<Name value="useHistoryDisplayBindingCheckBox" /> |
|
||||||
<Location value="8, 135" /> |
|
||||||
<Text value="${res:AddIns.Subversion.Options.UseHistoryDisplayBinding}" /> |
|
||||||
<TabIndex value="6" /> |
|
||||||
<Size value="280, 24" /> |
|
||||||
<UseVisualStyleBackColor value="True" /> |
|
||||||
<Anchor value="Top, Left, Right" /> |
|
||||||
</System.Windows.Forms.CheckBox> |
|
||||||
<System.Windows.Forms.CheckBox> |
|
||||||
<Name value="autoRenameFilesCheckBox" /> |
|
||||||
<Location value="8, 63" /> |
|
||||||
<Text value="${res:AddIns.Subversion.Options.RenameInsideSubversion}" /> |
|
||||||
<TabIndex value="5" /> |
|
||||||
<Size value="280, 24" /> |
|
||||||
<Anchor value="Top, Left, Right" /> |
|
||||||
<UseVisualStyleBackColor value="True" /> |
|
||||||
</System.Windows.Forms.CheckBox> |
|
||||||
<System.Windows.Forms.CheckBox> |
|
||||||
<Name value="autoDeleteFilesCheckBox" /> |
|
||||||
<Location value="8, 33" /> |
|
||||||
<Text value="${res:AddIns.Subversion.Options.AutoDelete}" /> |
|
||||||
<TabIndex value="3" /> |
|
||||||
<Size value="280, 24" /> |
|
||||||
<Anchor value="Top, Left, Right" /> |
|
||||||
</System.Windows.Forms.CheckBox> |
|
||||||
<System.Windows.Forms.CheckBox> |
|
||||||
<Name value="autoReloadProjectCheckBox" /> |
|
||||||
<Location value="8, 105" /> |
|
||||||
<Text value="${res:AddIns.Subversion.Options.ReloadProjectAfterChanges}" /> |
|
||||||
<TabIndex value="4" /> |
|
||||||
<Size value="280, 24" /> |
|
||||||
<Anchor value="Top, Left, Right" /> |
|
||||||
</System.Windows.Forms.CheckBox> |
|
||||||
<System.Windows.Forms.CheckBox> |
|
||||||
<Name value="autoAddFilesCheckBox" /> |
|
||||||
<Location value="8, 3" /> |
|
||||||
<Text value="${res:AddIns.Subversion.Options.AutoAdd}" /> |
|
||||||
<TabIndex value="2" /> |
|
||||||
<Size value="280, 24" /> |
|
||||||
<Anchor value="Top, Left, Right" /> |
|
||||||
</System.Windows.Forms.CheckBox> |
|
||||||
</Controls> |
|
||||||
</System.Windows.Forms.UserControl> |
|
||||||
</Components> |
|
@ -1,58 +0,0 @@ |
|||||||
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
|
|
||||||
//
|
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
||||||
// software and associated documentation files (the "Software"), to deal in the Software
|
|
||||||
// without restriction, including without limitation the rights to use, copy, modify, merge,
|
|
||||||
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
|
|
||||||
// to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included in all copies or
|
|
||||||
// substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
||||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
||||||
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
||||||
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
||||||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
// DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
using ICSharpCode.SharpDevelop.Gui.OptionPanels; |
|
||||||
using System; |
|
||||||
using System.Windows.Forms; |
|
||||||
using ICSharpCode.SharpDevelop.Gui; |
|
||||||
|
|
||||||
namespace ICSharpCode.Svn.Gui |
|
||||||
{ |
|
||||||
// TODO: rewrite without XMLForms
|
|
||||||
#pragma warning disable 618
|
|
||||||
/// <summary>
|
|
||||||
/// The Output Window options panel.
|
|
||||||
/// </summary>
|
|
||||||
public class SubversionOptionsPanel : XmlFormsOptionPanel |
|
||||||
{ |
|
||||||
public SubversionOptionsPanel() |
|
||||||
{ |
|
||||||
} |
|
||||||
|
|
||||||
public override void LoadPanelContents() |
|
||||||
{ |
|
||||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("ICSharpCode.Svn.Resources.SubversionOptionsPanel.xfrm")); |
|
||||||
((CheckBox)ControlDictionary["autoAddFilesCheckBox"]).Checked = AddInOptions.AutomaticallyAddFiles; |
|
||||||
((CheckBox)ControlDictionary["autoDeleteFilesCheckBox"]).Checked = AddInOptions.AutomaticallyDeleteFiles; |
|
||||||
((CheckBox)ControlDictionary["autoRenameFilesCheckBox"]).Checked = AddInOptions.AutomaticallyRenameFiles; |
|
||||||
((CheckBox)ControlDictionary["autoReloadProjectCheckBox"]).Checked = AddInOptions.AutomaticallyReloadProject; |
|
||||||
((CheckBox)ControlDictionary["useHistoryDisplayBindingCheckBox"]).Checked = AddInOptions.UseHistoryDisplayBinding; |
|
||||||
} |
|
||||||
|
|
||||||
public override bool StorePanelContents() |
|
||||||
{ |
|
||||||
AddInOptions.AutomaticallyAddFiles = ((CheckBox)ControlDictionary["autoAddFilesCheckBox"]).Checked; |
|
||||||
AddInOptions.AutomaticallyDeleteFiles = ((CheckBox)ControlDictionary["autoDeleteFilesCheckBox"]).Checked; |
|
||||||
AddInOptions.AutomaticallyRenameFiles = ((CheckBox)ControlDictionary["autoRenameFilesCheckBox"]).Checked; |
|
||||||
AddInOptions.AutomaticallyReloadProject = ((CheckBox)ControlDictionary["autoReloadProjectCheckBox"]).Checked; |
|
||||||
AddInOptions.UseHistoryDisplayBinding = ((CheckBox)ControlDictionary["useHistoryDisplayBindingCheckBox"]).Checked; |
|
||||||
|
|
||||||
return true; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,25 @@ |
|||||||
|
<gui:OptionPanel x:Class="ICSharpCode.Svn.Gui.SubversionOptionsPanel" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:core="http://icsharpcode.net/sharpdevelop/core" |
||||||
|
xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" |
||||||
|
xmlns:local="clr-namespace:ICSharpCode.Svn" |
||||||
|
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||||
|
<widgets:StackPanelWithSpacing SpaceBetweenItems="10"> |
||||||
|
<CheckBox |
||||||
|
Content="{core:Localize AddIns.Subversion.Options.UseHistoryDisplayBinding}" |
||||||
|
IsChecked="{core:OptionBinding local:AddInOptions.UseHistoryDisplayBinding}" /> |
||||||
|
<CheckBox |
||||||
|
Content="{core:Localize AddIns.Subversion.Options.RenameInsideSubversion}" |
||||||
|
IsChecked="{core:OptionBinding local:AddInOptions.AutomaticallyRenameFiles}" /> |
||||||
|
<CheckBox |
||||||
|
Content="{core:Localize AddIns.Subversion.Options.AutoDelete}" |
||||||
|
IsChecked="{core:OptionBinding local:AddInOptions.AutomaticallyDeleteFiles}" /> |
||||||
|
<CheckBox |
||||||
|
Content="{core:Localize AddIns.Subversion.Options.ReloadProjectAfterChanges}" |
||||||
|
IsChecked="{core:OptionBinding local:AddInOptions.AutomaticallyReloadProject}" /> |
||||||
|
<CheckBox |
||||||
|
Content="{core:Localize AddIns.Subversion.Options.AutoAdd}" |
||||||
|
IsChecked="{core:OptionBinding local:AddInOptions.AutomaticallyAddFiles}" /> |
||||||
|
</widgets:StackPanelWithSpacing> |
||||||
|
</gui:OptionPanel> |
@ -0,0 +1,34 @@ |
|||||||
|
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
// software and associated documentation files (the "Software"), to deal in the Software
|
||||||
|
// without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||||
|
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
|
||||||
|
// to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included in all copies or
|
||||||
|
// substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||||
|
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.SharpDevelop.Gui; |
||||||
|
|
||||||
|
namespace ICSharpCode.Svn.Gui |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for SubversionOptionsPanel.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class SubversionOptionsPanel : OptionPanel |
||||||
|
{ |
||||||
|
public SubversionOptionsPanel() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue