|
|
|
@ -34,6 +34,7 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor |
|
|
|
readonly static string advancedHighlighterPath = "/AddIns/DefaultTextEditor/AdvancedHighlighter"; |
|
|
|
readonly static string advancedHighlighterPath = "/AddIns/DefaultTextEditor/AdvancedHighlighter"; |
|
|
|
|
|
|
|
|
|
|
|
QuickClassBrowserPanel quickClassBrowserPanel = null; |
|
|
|
QuickClassBrowserPanel quickClassBrowserPanel = null; |
|
|
|
|
|
|
|
Control customQuickClassBrowserPanel = null; |
|
|
|
ErrorDrawer errorDrawer; |
|
|
|
ErrorDrawer errorDrawer; |
|
|
|
IAdvancedHighlighter advancedHighlighter; |
|
|
|
IAdvancedHighlighter advancedHighlighter; |
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +43,19 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor |
|
|
|
return quickClassBrowserPanel; |
|
|
|
return quickClassBrowserPanel; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public Control CustomQuickClassBrowserPanel { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return customQuickClassBrowserPanel; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
set { |
|
|
|
|
|
|
|
if (customQuickClassBrowserPanel != null) { |
|
|
|
|
|
|
|
RemoveQuickClassBrowserPanel(); |
|
|
|
|
|
|
|
customQuickClassBrowserPanel.Dispose(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
customQuickClassBrowserPanel = value; |
|
|
|
|
|
|
|
ActivateQuickClassBrowserOnDemand(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public SharpDevelopTextAreaControl() |
|
|
|
public SharpDevelopTextAreaControl() |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -101,6 +115,10 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor |
|
|
|
quickClassBrowserPanel.Dispose(); |
|
|
|
quickClassBrowserPanel.Dispose(); |
|
|
|
quickClassBrowserPanel = null; |
|
|
|
quickClassBrowserPanel = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (customQuickClassBrowserPanel != null) { |
|
|
|
|
|
|
|
customQuickClassBrowserPanel.Dispose(); |
|
|
|
|
|
|
|
customQuickClassBrowserPanel = null; |
|
|
|
|
|
|
|
} |
|
|
|
if (advancedHighlighter != null) { |
|
|
|
if (advancedHighlighter != null) { |
|
|
|
advancedHighlighter.Dispose(); |
|
|
|
advancedHighlighter.Dispose(); |
|
|
|
advancedHighlighter = null; |
|
|
|
advancedHighlighter = null; |
|
|
|
@ -189,6 +207,13 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor |
|
|
|
quickClassBrowserPanel = null; |
|
|
|
quickClassBrowserPanel = null; |
|
|
|
textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; |
|
|
|
textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (customQuickClassBrowserPanel != null) { |
|
|
|
|
|
|
|
if (Controls.Contains(customQuickClassBrowserPanel)) { |
|
|
|
|
|
|
|
Controls.Remove(customQuickClassBrowserPanel); |
|
|
|
|
|
|
|
customQuickClassBrowserPanel.Enabled = false; |
|
|
|
|
|
|
|
textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
void ShowQuickClassBrowserPanel() |
|
|
|
void ShowQuickClassBrowserPanel() |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -197,6 +222,16 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor |
|
|
|
Controls.Add(quickClassBrowserPanel); |
|
|
|
Controls.Add(quickClassBrowserPanel); |
|
|
|
textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
|
|
textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (customQuickClassBrowserPanel != null) { |
|
|
|
|
|
|
|
if (quickClassBrowserPanel != null) |
|
|
|
|
|
|
|
RemoveQuickClassBrowserPanel(); |
|
|
|
|
|
|
|
if (!Controls.Contains(customQuickClassBrowserPanel)) { |
|
|
|
|
|
|
|
Controls.Add(customQuickClassBrowserPanel); |
|
|
|
|
|
|
|
customQuickClassBrowserPanel.Enabled = true; |
|
|
|
|
|
|
|
textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
public void ActivateQuickClassBrowserOnDemand() |
|
|
|
public void ActivateQuickClassBrowserOnDemand() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|