Browse Source
Removed unused EditTemplateDialog. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5072 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
8 changed files with 76 additions and 141 deletions
@ -1,67 +0,0 @@
@@ -1,67 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.Form> |
||||
<Name value="MyForm" /> |
||||
<ShowInTaskbar value="False" /> |
||||
<FormBorderStyle value="FixedDialog" /> |
||||
<StartPosition value="CenterParent" /> |
||||
<ClientSize value="{Width=338, Height=100}" /> |
||||
<MinimizeBox value="False" /> |
||||
<DockPadding value="" /> |
||||
<Text value="${res:Dialog.Options.CodeTemplate.EditTemplateDialog.DialogName}" /> |
||||
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" /> |
||||
<MaximizeBox value="False" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="okButton" /> |
||||
<Location value="{X=173,Y=71}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.OKButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="4" /> |
||||
<DialogResult value="OK" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="cancelButton" /> |
||||
<Location value="{X=253,Y=71}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.CancelButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="5" /> |
||||
<DialogResult value="Cancel" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="descriptionTextBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<Location value="{X=112,Y=38}" /> |
||||
<ClientSize value="{Width=212, Height=17}" /> |
||||
<Text value="" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="descriptionLabel" /> |
||||
<Text value="${res:Dialog.Options.CodeTemplate.EditTemplateDialog.DescriptionLabel}" /> |
||||
<TextAlign value="MiddleRight" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=100, Height=21}" /> |
||||
<Location value="{X=8,Y=38}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="templateTextBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<Location value="{X=112,Y=8}" /> |
||||
<ClientSize value="{Width=212, Height=17}" /> |
||||
<Text value="" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="templateLabel" /> |
||||
<Text value="${res:Dialog.Options.CodeTemplate.EditTemplateDialog.TemplateLabel}" /> |
||||
<TextAlign value="MiddleRight" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=100, Height=21}" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Form> |
||||
</Components> |
||||
@ -1,37 +0,0 @@
@@ -1,37 +0,0 @@
|
||||
// <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.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.SharpDevelop.Gui.XmlForms; |
||||
using ICSharpCode.SharpDevelop.Internal.Templates; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui |
||||
{ |
||||
public class EditTemplateDialog : BaseSharpDevelopForm |
||||
{ |
||||
void AcceptEvent(object sender, EventArgs e) |
||||
{ |
||||
// codeTemplate.Shortcut = ControlDictionary["templateTextBox"].Text;
|
||||
// codeTemplate.Description = ControlDictionary["descriptionTextBox"].Text;
|
||||
} |
||||
|
||||
void InitializeComponents() |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.EditTemplateDialog.xfrm")); |
||||
|
||||
// ControlDictionary["templateTextBox"].Text = codeTemplate.Shortcut;
|
||||
// ControlDictionary["descriptionTextBox"].Text = codeTemplate.Description;
|
||||
|
||||
ControlDictionary["okButton"].Click += new EventHandler(AcceptEvent); |
||||
|
||||
Icon = null; |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Daniel Grunwald"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Diagnostics; |
||||
using System.Windows; |
||||
using System.Windows.Controls; |
||||
|
||||
namespace ICSharpCode.Core.Presentation |
||||
{ |
||||
/// <summary>
|
||||
/// Cancels the desired size of the child elements. Use this control around scrolling containers (e.g. ListBox) used
|
||||
/// inside auto-scroll contexts.
|
||||
/// </summary>
|
||||
public class RestrictDesiredSize : Decorator |
||||
{ |
||||
Size lastArrangeSize = new Size(double.NaN, double.NaN); |
||||
|
||||
protected override Size MeasureOverride(Size constraint) |
||||
{ |
||||
return new Size(0, 0); |
||||
} |
||||
|
||||
protected override Size ArrangeOverride(Size arrangeSize) |
||||
{ |
||||
if (lastArrangeSize != arrangeSize) { |
||||
lastArrangeSize = arrangeSize; |
||||
base.MeasureOverride(arrangeSize); |
||||
} |
||||
return base.ArrangeOverride(arrangeSize); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue