Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1231 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
17 changed files with 295 additions and 101 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,68 @@
@@ -0,0 +1,68 @@
|
||||
<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="{X=9,Y=168}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridGroupBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=372, Height=56}" /> |
||||
<TabIndex value="1" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="sortAlphabeticalCheckBox" /> |
||||
<Location value="{X=6,Y=24}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridSortCheckBox}" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="{Width=366, Height=24}" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="generalOptionsGroupBox" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=373, Height=145}" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="optimizedCodeGenerationCheckBox" /> |
||||
<Location value="{X=6,Y=110}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.OptimizedCodeGenerationCheckBox}" /> |
||||
<TabIndex value="3" /> |
||||
<Size value="{Width=367, Height=24}" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="smartTagAutoShowCheckBox" /> |
||||
<Location value="{X=6,Y=80}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SmartTagAutoShowCheckBox}" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="{Width=367, Height=24}" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="inPlaceEditCheckBox" /> |
||||
<Location value="{X=6,Y=50}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.InPlaceEditCheckBox}" /> |
||||
<TabIndex value="1" /> |
||||
<Size value="{Width=367, Height=24}" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useSmartTagsCheckBox" /> |
||||
<Location value="{X=6,Y=20}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SmartTagsCheckBox}" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="{Width=367, Height=24}" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,83 +1,84 @@
@@ -1,83 +1,84 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="CreatedUserControl" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=224, Height=224}" /> |
||||
<ClientSize value="{Width=375, Height=357}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox2" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=8,Y=144}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<ClientSize value="{Width=208, Height=64}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridGroupBox}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="sortAlphabeticalCheckBox" /> |
||||
<Location value="{X=8,Y=24}" /> |
||||
<ClientSize value="{Width=192, Height=24}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PropertyGridSortCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox" /> |
||||
<TabIndex value="0" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<ClientSize value="{Width=208, Height=128}" /> |
||||
<Location value="{X=8,Y=111}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.GridPropertiesGroupBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=367, Height=144}" /> |
||||
<TabIndex value="1" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="snapToGridCheckBox" /> |
||||
<Location value="{X=8,Y=96}" /> |
||||
<ClientSize value="{Width=192, Height=24}" /> |
||||
<Location value="{X=8,Y=111}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SnapToGridComboBox}" /> |
||||
<Anchor value="Bottom, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<Size value="{Width=343, Height=24}" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="showGridCheckBox" /> |
||||
<Location value="{X=8,Y=72}" /> |
||||
<ClientSize value="{Width=192, Height=24}" /> |
||||
<Location value="{X=8,Y=84}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.ShowGridComboBox}" /> |
||||
<Anchor value="Bottom, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="{Width=343, Height=24}" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="heightTextBox" /> |
||||
<TabIndex value="3" /> |
||||
<Location value="{X=104,Y=40}" /> |
||||
<ClientSize value="{Width=68, Height=17}" /> |
||||
<Text value="" /> |
||||
<Size value="{Width=53, Height=21}" /> |
||||
<Location value="{X=133,Y=51}" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Name value="gridHeightLabel" /> |
||||
<Location value="{X=8,Y=51}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.HeightLabel}" /> |
||||
<TextAlign value="MiddleRight" /> |
||||
<Size value="{Width=121, Height=23}" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=88, Height=23}" /> |
||||
<Location value="{X=8,Y=40}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="widthTextBox" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=104,Y=16}" /> |
||||
<ClientSize value="{Width=68, Height=17}" /> |
||||
<Text value="" /> |
||||
<Size value="{Width=53, Height=21}" /> |
||||
<Location value="{X=133,Y=20}" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Name value="gridWidthLabel" /> |
||||
<Location value="{X=6,Y=20}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.WidthLabel}" /> |
||||
<TextAlign value="MiddleRight" /> |
||||
<Size value="{Width=121, Height=23}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=88, Height=23}" /> |
||||
<Location value="{X=8,Y=16}" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox1" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SnapModeGroupBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=367, Height=87}" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="snapToGridRadioButton" /> |
||||
<Location value="{X=8,Y=20}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SnapToGridRadioButton}" /> |
||||
<Size value="{Width=353, Height=24}" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="snapLinesRadioButton" /> |
||||
<Location value="{X=8,Y=50}" /> |
||||
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.SnapLinesRadioButton}" /> |
||||
<Size value="{Width=353, Height=24}" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
||||
</Components> |
||||
|
@ -0,0 +1,46 @@
@@ -0,0 +1,46 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.IO; |
||||
using System.Collections; |
||||
using System.ComponentModel; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.FormsDesigner.Gui.OptionPanels |
||||
{ |
||||
public class GeneralOptionsPanel : AbstractOptionPanel |
||||
{ |
||||
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 = PropertyService.Get("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", true); |
||||
((CheckBox)ControlDictionary["inPlaceEditCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.EnableInSituEditing", true); |
||||
((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.UseSmartTags", true); |
||||
} |
||||
|
||||
public override bool StorePanelContents() |
||||
{ |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", ((CheckBox)ControlDictionary["sortAlphabeticalCheckBox"]).Checked); |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.UseOptimizedCodeGeneration", ((CheckBox)ControlDictionary["optimizedCodeGenerationCheckBox"]).Checked); |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", ((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked); |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.EnableInSituEditing", ((CheckBox)ControlDictionary["inPlaceEditCheckBox"]).Checked); |
||||
PropertyService.Set("FormsDesigner.DesignerOptions.UseSmartTags", ((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked); |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
||||
|
Binary file not shown.
Loading…
Reference in new issue