18 changed files with 165 additions and 185 deletions
@ -1,84 +0,0 @@
@@ -1,84 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="WindowsFormsGeneralOptions" /> |
||||
<ClientSize value="{Width=391, Height=300}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="propertyPadOptionsGroupBox" /> |
||||
<Location value="8, 206" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridGroupBox}" /> |
||||
<Size value="373, 56" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="sortAlphabeticalCheckBox" /> |
||||
<Location value="6, 24" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridSortCheckBox}" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="366, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="generalOptionsGroupBox" /> |
||||
<Location value="8, 8" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}" /> |
||||
<Size value="373, 192" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="generateVSStyleHandlersCheckBox" /> |
||||
<Location value="6, 162" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GenerateVisualStudioStyleEventHandlers}" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="367, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="insertTodoCommentCheckBox" /> |
||||
<Location value="6, 136" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.InsertTodoCommentInEventHandlers}" /> |
||||
<TabIndex value="3" /> |
||||
<Size value="367, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="optimizedCodeGenerationCheckBox" /> |
||||
<Location value="6, 110" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.OptimizedCodeGenerationCheckBox}" /> |
||||
<TabIndex value="3" /> |
||||
<Size value="367, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="smartTagAutoShowCheckBox" /> |
||||
<Location value="6, 80" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SmartTagAutoShowCheckBox}" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="367, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="inPlaceEditCheckBox" /> |
||||
<Location value="6, 50" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.InPlaceEditCheckBox}" /> |
||||
<TabIndex value="1" /> |
||||
<Size value="367, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useSmartTagsCheckBox" /> |
||||
<Location value="6, 20" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SmartTagsCheckBox}" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="367, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,76 +0,0 @@
@@ -1,76 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using ICSharpCode.SharpDevelop.Gui.OptionPanels; |
||||
using System; |
||||
using System.Windows.Forms; |
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.FormsDesigner.Gui.OptionPanels |
||||
{ |
||||
public class GeneralOptionsPanel : XmlFormsOptionPanel |
||||
{ |
||||
public override void LoadPanelContents() |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("ICSharpCode.FormsDesigner.Resources.WindowsFormsGeneralOptions.xfrm")); |
||||
|
||||
((CheckBox)ControlDictionary["sortAlphabeticalCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", false); |
||||
((CheckBox)ControlDictionary["optimizedCodeGenerationCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.UseOptimizedCodeGeneration", true); |
||||
((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked = SmartTagAutoShow; |
||||
((CheckBox)ControlDictionary["inPlaceEditCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.EnableInSituEditing", true); |
||||
((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked = UseSmartTags; |
||||
((CheckBox)ControlDictionary["insertTodoCommentCheckBox"]).Checked = InsertTodoComment; |
||||
((CheckBox)ControlDictionary["generateVSStyleHandlersCheckBox"]).Checked = GenerateVisualStudioStyleEventHandlers; |
||||
} |
||||
|
||||
public static bool UseSmartTags { |
||||
get { |
||||
return PropertyService.Get("FormsDesigner.DesignerOptions.UseSmartTags", true); |
||||
} |
||||
set { |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.UseSmartTags", value); |
||||
} |
||||
} |
||||
|
||||
public static bool SmartTagAutoShow { |
||||
get { |
||||
return PropertyService.Get("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", true); |
||||
} |
||||
set { |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", value); |
||||
} |
||||
} |
||||
|
||||
public static bool InsertTodoComment { |
||||
get { |
||||
return PropertyService.Get("FormsDesigner.DesignerOptions.InsertTodoComment", false); |
||||
} |
||||
set { |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.InsertTodoComment", value); |
||||
} |
||||
} |
||||
|
||||
public static bool GenerateVisualStudioStyleEventHandlers { |
||||
get { |
||||
return PropertyService.Get("FormsDesigner.DesignerOptions.GenerateVisualStudioStyleEventHandlers", false); |
||||
} |
||||
set { |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.GenerateVisualStudioStyleEventHandlers", value); |
||||
} |
||||
} |
||||
|
||||
public override bool StorePanelContents() |
||||
{ |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", ((CheckBox)ControlDictionary["sortAlphabeticalCheckBox"]).Checked); |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.UseOptimizedCodeGeneration", ((CheckBox)ControlDictionary["optimizedCodeGenerationCheckBox"]).Checked); |
||||
SmartTagAutoShow = ((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked; |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.EnableInSituEditing", ((CheckBox)ControlDictionary["inPlaceEditCheckBox"]).Checked); |
||||
UseSmartTags = ((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked; |
||||
InsertTodoComment = ((CheckBox)ControlDictionary["insertTodoCommentCheckBox"]).Checked; |
||||
GenerateVisualStudioStyleEventHandlers = ((CheckBox)ControlDictionary["generateVSStyleHandlersCheckBox"]).Checked; |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
<gui:OptionPanel x:Class="ICSharpCode.FormsDesigner.Gui.OptionPanels.GeneralOptionsPanelXaml" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:core="http://icsharpcode.net/sharpdevelop/core" |
||||
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets"> |
||||
<StackPanel> |
||||
<GroupBox Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}"> |
||||
<StackPanel> |
||||
|
||||
<CheckBox x:Name="useSmartTagsCheckBox" Margin="2,8,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SmartTagsCheckBox}" ></CheckBox> |
||||
|
||||
<CheckBox x:Name="inPlaceEditCheckBox" Margin="2,8,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.InPlaceEditCheckBox}"></CheckBox> |
||||
|
||||
<CheckBox x:Name="smartTagAutoShowCheckBox" Margin="2,8,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SmartTagAutoShowCheckBox}"></CheckBox> |
||||
|
||||
<CheckBox x:Name="optimizedCodeGenerationCheckBox" Margin="2,8,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.OptimizedCodeGenerationCheckBox}"></CheckBox> |
||||
|
||||
<CheckBox x:Name="insertTodoCommentCheckBox" Margin="2,8,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.InsertTodoCommentInEventHandlers}"></CheckBox> |
||||
|
||||
<CheckBox x:Name="generateVSStyleHandlersCheckBox" Margin="2,8,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GenerateVisualStudioStyleEventHandlers}"></CheckBox> |
||||
</StackPanel> |
||||
|
||||
</GroupBox> |
||||
|
||||
<GroupBox Header="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridGroupBox}"> |
||||
<CheckBox x:Name="sortAlphabeticalCheckBox" Margin="2,3,2,3" |
||||
Content="{core:Localize ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridSortCheckBox}"></CheckBox> |
||||
</GroupBox> |
||||
</StackPanel> |
||||
</gui:OptionPanel> |
@ -0,0 +1,82 @@
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<optionpanels:ProjectOptionPanel |
||||
x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.SigningXaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:optionpanels="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels" xmlns:local="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels" xmlns:projects="clr-namespace:ICSharpCode.SharpDevelop.Project" xmlns:core="http://icsharpcode.net/sharpdevelop/core"> |
||||
<StackPanel |
||||
Orientation="Vertical"> |
||||
<GroupBox |
||||
Header="{core:Localize Dialog.ProjectOptions.Signing.StrongName}"> |
||||
<Grid |
||||
ShowGridLines="True"> |
||||
<Grid.RowDefinitions> |
||||
<RowDefinition |
||||
Height="30"></RowDefinition> |
||||
<RowDefinition |
||||
Height="30"></RowDefinition> |
||||
<RowDefinition |
||||
Height="30"></RowDefinition> |
||||
<RowDefinition |
||||
Height="30"></RowDefinition> |
||||
<RowDefinition |
||||
Height="30"></RowDefinition> |
||||
</Grid.RowDefinitions> |
||||
<Grid.ColumnDefinitions> |
||||
<ColumnDefinition |
||||
Width="30"></ColumnDefinition> |
||||
<ColumnDefinition |
||||
Width="2*"></ColumnDefinition> |
||||
<ColumnDefinition |
||||
Width="*"></ColumnDefinition> |
||||
</Grid.ColumnDefinitions> |
||||
<!-- |
||||
Command="{Binding DataContext.Cmd, RelativeSource={RelativeSource FindAncestor, |
||||
AncestorType={x:Type UserControl}}}" |
||||
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=IsChecked}" |
||||
--> |
||||
<CheckBox |
||||
x:Name="signAssemblyCheckBox" |
||||
Grid.Column="1" |
||||
VerticalAlignment="Center" |
||||
Command="{Binding DataContext.Cmd, RelativeSource={RelativeSource FindAncestor, |
||||
AncestorType={x:Type UserControl}}}" |
||||
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=IsChecked}" |
||||
Content="{core:Localize Dialog.ProjectOptions.Signing.SignAssembly}"> |
||||
</CheckBox> |
||||
<Label |
||||
Grid.Row="1" |
||||
Grid.Column="1" |
||||
Content="{core:Localize Dialog.ProjectOptions.Signing.ChooseKeyFile}"></Label> |
||||
<optionpanels:StorageLocationPicker |
||||
Grid.Row="2"></optionpanels:StorageLocationPicker> |
||||
<ComboBox |
||||
x:Name="keyFileComboBox" |
||||
Grid.Row="2" |
||||
Grid.Column="1" |
||||
Margin="0,0,0,0"></ComboBox> |
||||
<Button |
||||
x:Name="changePasswordButton" |
||||
Grid.Row="2" |
||||
Grid.Column="3" |
||||
Content="{core:Localize Dialog.ProjectOptions.Signing.ChangePassword}" |
||||
Margin="10,0,10,0"></Button> |
||||
<CheckBox |
||||
x:Name="delaySignOnlyCheckBox" |
||||
Grid.Row="3" |
||||
Grid.Column="1" |
||||
VerticalAlignment="Center" |
||||
Content="{core:Localize Dialog.ProjectOptions.Signing.DelaySignOnly}"></CheckBox> |
||||
<Label |
||||
Grid.Row="4" |
||||
Grid.Column="1" |
||||
Content="{core:Localize Dialog.ProjectOptions.Signing.DelaySignWarning}"></Label> |
||||
</Grid> |
||||
</GroupBox> |
||||
<GroupBox |
||||
Header="{core:Localize Dialog.ProjectOptions.Signing.ClickOnce}" |
||||
Margin="0,20,0,0"> |
||||
<Label |
||||
Content="{core:Localize Dialog.ProjectOptions.Signing.ClickOnceNotSupported}"></Label> |
||||
</GroupBox> |
||||
</StackPanel> |
||||
</optionpanels:ProjectOptionPanel> |
Loading…
Reference in new issue