Browse Source
Fixed bug in CodeCompletionListView (when entering a name that did not exist in the list, the ListView didn't remove the current selection but selected the first entry). Made MessageService.ShowError use the ExceptionBox in release builds. Made ExceptionBox link to the mailing list instead of the bugs forum. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@227 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
26 changed files with 645 additions and 216 deletions
@ -0,0 +1,139 @@
@@ -0,0 +1,139 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="CodeCompletionOptionPanel" /> |
||||
<ClientSize value="{Width=376, Height=344}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox" /> |
||||
<Location value="{X=4,Y=55}" /> |
||||
<Text value="Code completion detail settings" /> |
||||
<Size value="{Width=369, Height=286}" /> |
||||
<TabIndex value="2" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="refreshInsightOnCommaCheckBox" /> |
||||
<Location value="{X=31,Y=186}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Re-open tooltip with better overload when pressing comma" /> |
||||
<TabIndex value="10" /> |
||||
<Size value="{Width=332, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useDebugTooltipsOnlyCheckBox" /> |
||||
<Location value="{X=31,Y=85}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Only in debug mode" /> |
||||
<TabIndex value="6" /> |
||||
<Size value="{Width=332, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="clearDataUseCacheButton" /> |
||||
<Location value="{X=225,Y=40}" /> |
||||
<Text value="Clear cache" /> |
||||
<Size value="{Width=101, Height=23}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useTooltipsCheckBox" /> |
||||
<Location value="{X=12,Y=66}" /> |
||||
<Checked value="True" /> |
||||
<CheckState value="Checked" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Show tooltip when moving mouse over expression" /> |
||||
<TabIndex value="5" /> |
||||
<Size value="{Width=351, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useInsightCheckBox" /> |
||||
<Location value="{X=12,Y=167}" /> |
||||
<Checked value="True" /> |
||||
<CheckState value="Checked" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Show tooltip when writing method calls" /> |
||||
<TabIndex value="9" /> |
||||
<Size value="{Width=351, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Location value="{X=6,Y=112}" /> |
||||
<Text value="The following options are language-dependend, some options are not available in some programming languages." /> |
||||
<Size value="{Width=357, Height=31}" /> |
||||
<TabIndex value="7" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useKeywordCompletionCheckBox" /> |
||||
<Location value="{X=12,Y=146}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Trigger code completion after keywords" /> |
||||
<TabIndex value="8" /> |
||||
<Size value="{Width=351, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="dataUsageCacheLabel2" /> |
||||
<Location value="{X=154,Y=42}" /> |
||||
<Text value="items" /> |
||||
<TextAlign value="MiddleLeft" /> |
||||
<Size value="{Width=65, Height=23}" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.NumericUpDown> |
||||
<Name value="dataUsageCacheItemCountNumericUpDown" /> |
||||
<Value value="50" /> |
||||
<TabIndex value="2" /> |
||||
<Maximum value="10000" /> |
||||
<Minimum value="50" /> |
||||
<Increment value="50" /> |
||||
<TextAlign value="Right" /> |
||||
<Size value="{Width=68, Height=21}" /> |
||||
<Location value="{X=80,Y=42}" /> |
||||
</System.Windows.Forms.NumericUpDown> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="dataUsageCacheLabel1" /> |
||||
<Location value="{X=18,Y=42}" /> |
||||
<Text value="Save" /> |
||||
<TextAlign value="MiddleRight" /> |
||||
<Size value="{Width=56, Height=21}" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useDataUsageCacheCheckBox" /> |
||||
<Location value="{X=12,Y=20}" /> |
||||
<Checked value="True" /> |
||||
<CheckState value="Checked" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Pre-select recently used members" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="{Width=351, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label1" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Text value="Use the following option to turn code completion completely off:" /> |
||||
<TextAlign value="MiddleLeft" /> |
||||
<Size value="{Width=365, Height=22}" /> |
||||
<TabIndex value="0" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="codeCompletionEnabledCheckBox" /> |
||||
<Location value="{X=16,Y=25}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.CodeCompletionCheckBox}" /> |
||||
<TabIndex value="1" /> |
||||
<Size value="{Width=357, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,144 +1,144 @@
@@ -1,144 +1,144 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="CreatedObject0" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=376, Height=344}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="CreatedObject2" /> |
||||
<TabIndex value="0" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=360, Height=80}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}" /> |
||||
<Size value="{Width=360, Height=80}" /> |
||||
<TabIndex value="0" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="showQuickClassBrowserCheckBox" /> |
||||
<Location value="{X=184,Y=52}" /> |
||||
<Size value="{Width=168, Height=24}" /> |
||||
<Location value="{X=8,Y=52}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.ShowQuickClassBrowserCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="enableCodeCompletionCheckBox" /> |
||||
<Location value="{X=8,Y=20}" /> |
||||
<Size value="{Width=176, Height=24}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.CodeCompletionCheckBox}" /> |
||||
<TabIndex value="1" /> |
||||
<Size value="{Width=344, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="enableFoldingCheckBox" /> |
||||
<Location value="{X=184,Y=24}" /> |
||||
<Size value="{Width=168, Height=24}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.FoldingCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<Size value="{Width=168, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="enableDoublebufferingCheckBox" /> |
||||
<Location value="{X=8,Y=48}" /> |
||||
<Size value="{Width=168, Height=24}" /> |
||||
<Location value="{X=8,Y=24}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.DoubleBufferCheckBox}" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="{Width=168, Height=24}" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="CreatedObject7" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=8,Y=96}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=360, Height=136}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox}" /> |
||||
<Size value="{Width=360, Height=136}" /> |
||||
<TabIndex value="1" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="fontPreviewLabel" /> |
||||
<Location value="{X=8,Y=71}" /> |
||||
<Text value="AaBbCcXxYyZz" /> |
||||
<BorderStyle value="FixedSingle" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="{Width=344, Height=40}" /> |
||||
<Location value="{X=8,Y=71}" /> |
||||
<TabIndex value="4" /> |
||||
<BackColor value="Color [ControlLightLight]" /> |
||||
<BorderStyle value="FixedSingle" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="fontSizeLabel" /> |
||||
<Location value="{X=248,Y=21}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.FontSizeLabel}" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="{Width=100, Height=20}" /> |
||||
<Location value="{X=248,Y=21}" /> |
||||
<TabIndex value="2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="fontSizeComboBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<Location value="{X=248,Y=41}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=104, Height=21}" /> |
||||
<FormattingEnabled value="True" /> |
||||
<Location value="{X=248,Y=41}" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="fontListComboBox" /> |
||||
<DrawMode value="OwnerDrawFixed" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=8,Y=40}" /> |
||||
<Size value="{Width=224, Height=22}" /> |
||||
<FormattingEnabled value="True" /> |
||||
<DropDownStyle value="DropDownList" /> |
||||
<Location value="{X=8,Y=40}" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="mouseWheelZoomCheckBox" /> |
||||
<Location value="{X=192,Y=109}" /> |
||||
<Size value="{Width=160, Height=24}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.MouseWheelZoomCheckBoxCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="6" /> |
||||
<Size value="{Width=160, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="CreatedObject9" /> |
||||
<Location value="{X=8,Y=20}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.TextfontLabel}" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="{Width=208, Height=20}" /> |
||||
<Location value="{X=8,Y=20}" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="enableAAFontRenderingCheckBox" /> |
||||
<Location value="{X=8,Y=108}" /> |
||||
<Size value="{Width=184, Height=24}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.AntialiasedFontCheckBox}" /> |
||||
<TabIndex value="5" /> |
||||
<Size value="{Width=184, Height=24}" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="CreatedObject8" /> |
||||
<TabIndex value="2" /> |
||||
<Name value="CreatedObject8b" /> |
||||
<Location value="{X=8,Y=240}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=360, Height=72}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox.FileEncodingGroupBox}" /> |
||||
<Size value="{Width=360, Height=72}" /> |
||||
<TabIndex value="2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="CreatedObject9" /> |
||||
<Name value="CreatedObject9b" /> |
||||
<Location value="{X=8,Y=24}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox.FileEncodingLabel}" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Size value="{Width=336, Height=16}" /> |
||||
<Location value="{X=8,Y=24}" /> |
||||
<TabIndex value="0" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="textEncodingComboBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=8,Y=40}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=344, Height=21}" /> |
||||
<FormattingEnabled value="True" /> |
||||
<DropDownStyle value="DropDownList" /> |
||||
<Location value="{X=8,Y=40}" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
||||
</Components> |
||||
|
@ -1,60 +1,71 @@
@@ -1,60 +1,71 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="CreatedObject0" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=368, Height=272}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="showToolBarCheckBox" /> |
||||
<Location value="{X=8,Y=144}" /> |
||||
<Size value="{Width=352, Height=24}" /> |
||||
<Location value="{X=8,Y=165}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.SelectStyle.ShowToolBarCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<Size value="{Width=352, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="showStatusBarCheckBox" /> |
||||
<Location value="{X=8,Y=120}" /> |
||||
<Size value="{Width=352, Height=24}" /> |
||||
<Location value="{X=8,Y=141}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.SelectStyle.ShowStatusBarCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="{Width=352, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox1" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=352, Height=104}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.SelectStyle.VisualStyleGroupBox}" /> |
||||
<Size value="{Width=352, Height=127}" /> |
||||
<TabIndex value="1" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="preferProjectAmbienceCheckBox" /> |
||||
<Location value="{X=8,Y=97}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="Prefer project's ambience if possible" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="{Width=336, Height=24}" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="showExtensionsCheckBox" /> |
||||
<Location value="{X=8,Y=19}" /> |
||||
<Size value="{Width=336, Height=24}" /> |
||||
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.SelectStyle.ShowExtensionsCheckBox}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<Size value="{Width=336, Height=24}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="selectAmbienceComboBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<Location value="{X=8,Y=75}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="{Width=336, Height=21}" /> |
||||
<FormattingEnabled value="True" /> |
||||
<DropDownStyle value="DropDownList" /> |
||||
<Location value="{X=8,Y=75}" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Location value="{X=8,Y=51}" /> |
||||
<Text value="${res:Dialog.Options.IDEOptions.SelectStyle.SelectAmbienceLabel}" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="{Width=336, Height=23}" /> |
||||
<Location value="{X=8,Y=51}" /> |
||||
<TabIndex value="2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
||||
</Components> |
||||
|
@ -0,0 +1,98 @@
@@ -0,0 +1,98 @@
|
||||
/* |
||||
* Created by SharpDevelop. |
||||
* User: Daniel Grunwald |
||||
* Date: 21.07.2005 |
||||
* Time: 21:46 |
||||
*/ |
||||
|
||||
using System; |
||||
using ICSharpCode.Core; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom |
||||
{ |
||||
/// <summary>
|
||||
/// Class containing static properties for the code completion options.
|
||||
/// </summary>
|
||||
public static class CodeCompletionOptions |
||||
{ |
||||
static Properties properties = PropertyService.Get("CodeCompletionOptions", new Properties()); |
||||
|
||||
public static Properties Properties { |
||||
get { |
||||
return properties; |
||||
} |
||||
} |
||||
|
||||
public static bool EnableCodeCompletion { |
||||
get { |
||||
return properties.Get("EnableCC", true); |
||||
} |
||||
set { |
||||
properties.Set("EnableCC", value); |
||||
} |
||||
} |
||||
|
||||
public static bool DataUsageCacheEnabled { |
||||
get { |
||||
return properties.Get("DataUsageCacheEnabled", true); |
||||
} |
||||
set { |
||||
properties.Set("DataUsageCacheEnabled", value); |
||||
} |
||||
} |
||||
|
||||
public static int DataUsageCacheItemCount { |
||||
get { |
||||
return properties.Get("DataUsageCacheItemCount", 200); |
||||
} |
||||
set { |
||||
properties.Set("DataUsageCacheItemCount", value); |
||||
} |
||||
} |
||||
|
||||
public static bool TooltipsEnabled { |
||||
get { |
||||
return properties.Get("TooltipsEnabled", true); |
||||
} |
||||
set { |
||||
properties.Set("TooltipsEnabled", value); |
||||
} |
||||
} |
||||
|
||||
public static bool TooltipsOnlyWhenDebugging { |
||||
get { |
||||
return properties.Get("TooltipsOnlyWhenDebugging", false); |
||||
} |
||||
set { |
||||
properties.Set("TooltipsOnlyWhenDebugging", value); |
||||
} |
||||
} |
||||
|
||||
public static bool KeywordCompletionEnabled { |
||||
get { |
||||
return properties.Get("KeywordCompletionEnabled", true); |
||||
} |
||||
set { |
||||
properties.Set("KeywordCompletionEnabled", value); |
||||
} |
||||
} |
||||
|
||||
public static bool InsightEnabled { |
||||
get { |
||||
return properties.Get("InsightEnabled", true); |
||||
} |
||||
set { |
||||
properties.Set("InsightEnabled", value); |
||||
} |
||||
} |
||||
|
||||
public static bool InsightRefreshOnComma { |
||||
get { |
||||
return properties.Get("InsightRefreshOnComma", true); |
||||
} |
||||
set { |
||||
properties.Set("InsightRefreshOnComma", value); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,72 @@
@@ -0,0 +1,72 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
|
||||
// <version value="$version"/>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Dom; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.OptionPanels |
||||
{ |
||||
public class CodeCompletionPanel : AbstractOptionPanel |
||||
{ |
||||
public override void LoadPanelContents() |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.CodeCompletionOptionPanel.xfrm")); |
||||
|
||||
Get<CheckBox>("codeCompletionEnabled").CheckedChanged += delegate(object sender, EventArgs e) { |
||||
ControlDictionary["groupBox"].Enabled = Get<CheckBox>("codeCompletionEnabled").Checked; |
||||
}; |
||||
Get<CheckBox>("codeCompletionEnabled").Checked = CodeCompletionOptions.EnableCodeCompletion; |
||||
|
||||
Get<CheckBox>("useDataUsageCache").CheckedChanged += delegate(object sender, EventArgs e) { |
||||
ControlDictionary["dataUsageCacheLabel1"].Enabled = Get<CheckBox>("useDataUsageCache").Checked; |
||||
ControlDictionary["dataUsageCacheLabel2"].Enabled = Get<CheckBox>("useDataUsageCache").Checked; |
||||
ControlDictionary["dataUsageCacheItemCountNumericUpDown"].Enabled = Get<CheckBox>("useDataUsageCache").Checked; |
||||
}; |
||||
Get<CheckBox>("useDataUsageCache").Checked = CodeCompletionOptions.DataUsageCacheEnabled; |
||||
|
||||
Get<NumericUpDown>("dataUsageCacheItemCount").Value = CodeCompletionOptions.DataUsageCacheItemCount; |
||||
|
||||
ControlDictionary["clearDataUseCacheButton"].Click += delegate(object sender, EventArgs e) { |
||||
ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.CodeCompletionDataUsageCache.ResetCache(); |
||||
}; |
||||
|
||||
Get<CheckBox>("useTooltips").CheckedChanged += delegate(object sender, EventArgs e) { |
||||
ControlDictionary["useDebugTooltipsOnlyCheckBox"].Enabled = Get<CheckBox>("useTooltips").Checked; |
||||
}; |
||||
Get<CheckBox>("useTooltips").Checked = CodeCompletionOptions.EnableCodeCompletion; |
||||
|
||||
Get<CheckBox>("useDebugTooltipsOnly").Checked = CodeCompletionOptions.TooltipsOnlyWhenDebugging; |
||||
|
||||
Get<CheckBox>("useKeywordCompletion").Checked = CodeCompletionOptions.KeywordCompletionEnabled; |
||||
|
||||
Get<CheckBox>("useInsight").CheckedChanged += delegate(object sender, EventArgs e) { |
||||
ControlDictionary["refreshInsightOnCommaCheckBox"].Enabled = Get<CheckBox>("useInsight").Checked; |
||||
}; |
||||
Get<CheckBox>("useInsight").Checked = CodeCompletionOptions.InsightEnabled; |
||||
|
||||
Get<CheckBox>("refreshInsightOnComma").Checked = CodeCompletionOptions.InsightRefreshOnComma; |
||||
} |
||||
|
||||
public override bool StorePanelContents() |
||||
{ |
||||
CodeCompletionOptions.EnableCodeCompletion = Get<CheckBox>("codeCompletionEnabled").Checked; |
||||
CodeCompletionOptions.DataUsageCacheEnabled = Get<CheckBox>("useDataUsageCache").Checked; |
||||
CodeCompletionOptions.DataUsageCacheItemCount = (int)Get<NumericUpDown>("dataUsageCacheItemCount").Value; |
||||
CodeCompletionOptions.TooltipsEnabled = Get<CheckBox>("useTooltips").Checked; |
||||
CodeCompletionOptions.TooltipsOnlyWhenDebugging = Get<CheckBox>("useDebugTooltipsOnly").Checked; |
||||
CodeCompletionOptions.KeywordCompletionEnabled = Get<CheckBox>("useKeywordCompletion").Checked; |
||||
CodeCompletionOptions.InsightEnabled = Get<CheckBox>("useInsight").Checked; |
||||
CodeCompletionOptions.InsightRefreshOnComma = Get<CheckBox>("refreshInsightOnComma").Checked; |
||||
return base.StorePanelContents(); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue