Browse Source

Add compiler options panel for Boo.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1227 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
4a3ac892f8
  1. 18
      src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.addin
  2. 3
      src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.csproj
  3. 184
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Resources/BuildOptions.xfrm
  4. 57
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/BuildOptions.cs
  5. 1
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptions.cs
  6. 1
      src/AddIns/BackendBindings/VBNetBinding/Project/Src/OptionPanels/BuildOptions.cs
  7. 7
      src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/AbstractBuildOptions.cs

18
src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.addin

@ -97,25 +97,25 @@ @@ -97,25 +97,25 @@
<Path path = "/SharpDevelop/BackendBindings/ProjectOptions/Boo">
<DialogPanel id = "Application"
label = "Application"
label = "${res:Dialog.ProjectOptions.ApplicationSettings}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.ApplicationSettings"/>
<!--<DialogPanel id = "ReferencePaths"
label = "Reference Paths"
label = "${res:Dialog.ProjectOptions.ReferencePaths}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.ReferencePaths"/>-->
<DialogPanel id = "Signing"
label = "Signing"
label = "${res:Dialog.ProjectOptions.Signing}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.Signing"/>
<DialogPanel id = "BuildEvents"
label = "Build Events"
label = "${res:Dialog.ProjectOptions.BuildEvents}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.BuildEvents"/>
<!--<DialogPanel id = "BuildOptions"
label = "Build"
class = "ICSharpCode.ILAsmBinding.BuildOptions"/>-->
<DialogPanel id = "BuildOptions"
label = "${res:Dialog.ProjectOptions.BuildOptions}"
class = "Grunwald.BooBinding.BuildOptions"/>
<DialogPanel id = "DebugOptions"
label = "Debug"
label = "${res:Dialog.ProjectOptions.DebugOptions}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.DebugOptions"/>
<!--<DialogPanel id = "Publish"
label = "Publish"
label = "${res:Dialog.ProjectOptions.Publish}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.Publish"/>-->
</Path>

3
src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.csproj

@ -81,6 +81,8 @@ @@ -81,6 +81,8 @@
<Compile Include="Src\CodeCompletion\ElementReturnType.cs" />
<Compile Include="Src\FormattingStrategy.cs" />
<Compile Include="Src\ConvertProject.cs" />
<EmbeddedResource Include="Resources\BuildOptions.xfrm" />
<Compile Include="Src\BuildOptions.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="BooBinding.addin">
@ -137,6 +139,7 @@ @@ -137,6 +139,7 @@
<Name>FormsDesigner</Name>
<Private>False</Private>
</ProjectReference>
<Folder Include="Resources" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
<Import Project="PostBuildEvent.proj" />

184
src/AddIns/BackendBindings/Boo/BooBinding/Project/Resources/BuildOptions.xfrm

@ -0,0 +1,184 @@ @@ -0,0 +1,184 @@
<Components version="1.0">
<System.Windows.Forms.UserControl>
<Name value="booBuildOptionsPanel" />
<ClientSize value="{Width=510, Height=396}" />
<AutoScroll value="True" />
<Controls>
<System.Windows.Forms.GroupBox>
<Name value="generalGroupBox" />
<Location value="{X=3,Y=3}" />
<Text value="${res:Dialog.ProjectOptions.BuildOptions.General}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=504, Height=146}" />
<TabIndex value="0" />
<Controls>
<System.Windows.Forms.TextBox>
<Name value="pipelineTextBox" />
<TabIndex value="7" />
<Size value="{Width=386, Height=21}" />
<Location value="{X=112,Y=87}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="pipelineLabel" />
<Location value="{X=6,Y=87}" />
<Text value="Pipeline:" />
<TextAlign value="MiddleRight" />
<Size value="{Width=100, Height=23}" />
<TabIndex value="6" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="conditionalSymbolsLabel" />
<Location value="{X=6,Y=16}" />
<Text value="${res:Dialog.ProjectOptions.BuildOptions.ConditionalSymbols}" />
<Anchor value="Top, Left, Right" />
<Visible value="False" />
<TextAlign value="BottomLeft" />
<Size value="{Width=492, Height=16}" />
<TabIndex value="0" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="conditionalSymbolsTextBox" />
<TabIndex value="1" />
<Size value="{Width=492, Height=21}" />
<Visible value="False" />
<Location value="{X=6,Y=36}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.CheckBox>
<Name value="noCorlibCheckBox" />
<Location value="{X=6,Y=63}" />
<Text value="${res:Dialog.ProjectOptions.BuildOptions.NoCorlib}" />
<TabIndex value="5" />
<Size value="{Width=480, Height=21}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.CheckBox>
</Controls>
</System.Windows.Forms.GroupBox>
<System.Windows.Forms.GroupBox>
<Name value="outputGroupBox" />
<Location value="{X=3,Y=152}" />
<Text value="${res:Dialog.ProjectOptions.Build.Output}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=504, Height=226}" />
<TabIndex value="1" />
<Controls>
<System.Windows.Forms.Label>
<Name value="outputPathLabel" />
<Location value="{X=12,Y=17}" />
<Text value="${res:Dialog.ProjectOptions.Build.OutputPath}" />
<Anchor value="Top, Left, Right" />
<TextAlign value="BottomLeft" />
<Size value="{Width=486, Height=16}" />
<TabIndex value="3" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="outputPathTextBox" />
<TabIndex value="4" />
<Size value="{Width=448, Height=21}" />
<Location value="{X=12,Y=37}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Button>
<Name value="outputPathBrowseButton" />
<Location value="{X=463,Y=37}" />
<UseCompatibleTextRendering value="True" />
<Text value="..." />
<Anchor value="Top, Right" />
<Size value="{Width=40, Height=21}" />
<TabIndex value="5" />
</System.Windows.Forms.Button>
<System.Windows.Forms.CheckBox>
<Name value="xmlDocumentationCheckBox" />
<Visible value="False" />
<Location value="{X=12,Y=61}" />
<Text value="${res:Dialog.ProjectOptions.Build.XmlDocumentationFile}" />
<TabIndex value="6" />
<Size value="{Width=154, Height=21}" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.TextBox>
<Name value="xmlDocumentationTextBox" />
<TabIndex value="7" />
<Size value="{Width=333, Height=21}" />
<Visible value="False" />
<Location value="{X=170,Y=61}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="debugInfoLabel" />
<Location value="{X=12,Y=85}" />
<Text value="${res:Dialog.ProjectOptions.Build.DebugInfo}" />
<TextAlign value="MiddleRight" />
<Size value="{Width=154, Height=16}" />
<TabIndex value="8" />
</System.Windows.Forms.Label>
<System.Windows.Forms.ComboBox>
<Name value="debugInfoComboBox" />
<Size value="{Width=140, Height=21}" />
<TabIndex value="9" />
<DropDownStyle value="DropDownList" />
<Location value="{X=170,Y=85}" />
</System.Windows.Forms.ComboBox>
<System.Windows.Forms.GroupBox>
<Name value="advancedOutputGroupBox" />
<Location value="{X=6,Y=112}" />
<Text value="${res:Dialog.ProjectOptions.Build.Advanced}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=492, Height=105}" />
<TabIndex value="9" />
<Controls>
<System.Windows.Forms.Label>
<Name value="baseIntermediateOutputPathLabel" />
<Location value="{X=6,Y=17}" />
<Text value="${res:Dialog.ProjectOptions.Build.BaseIntermediateOutputPath}" />
<Anchor value="Top, Left, Right" />
<TextAlign value="BottomLeft" />
<Size value="{Width=480, Height=16}" />
<TabIndex value="0" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="baseIntermediateOutputPathTextBox" />
<TabIndex value="1" />
<Size value="{Width=429, Height=21}" />
<Location value="{X=6,Y=36}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Button>
<Name value="baseIntermediateOutputPathBrowseButton" />
<Location value="{X=446,Y=36}" />
<Text value="..." />
<Anchor value="Top, Right" />
<Size value="{Width=40, Height=21}" />
<TabIndex value="2" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Label>
<Name value="intermediateOutputPathLabel" />
<Location value="{X=6,Y=60}" />
<Text value="${res:Dialog.ProjectOptions.Build.IntermediateOutputPath}" />
<Anchor value="Top, Left, Right" />
<TextAlign value="BottomLeft" />
<Size value="{Width=480, Height=16}" />
<TabIndex value="0" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="intermediateOutputPathTextBox" />
<TabIndex value="1" />
<Size value="{Width=429, Height=21}" />
<Location value="{X=6,Y=76}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Button>
<Name value="intermediateOutputPathBrowseButton" />
<Location value="{X=446,Y=75}" />
<Text value="..." />
<Anchor value="Top, Right" />
<Size value="{Width=40, Height=21}" />
<TabIndex value="2" />
</System.Windows.Forms.Button>
</Controls>
</System.Windows.Forms.GroupBox>
</Controls>
</System.Windows.Forms.GroupBox>
</Controls>
</System.Windows.Forms.UserControl>
</Components>

57
src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/BuildOptions.cs

@ -0,0 +1,57 @@ @@ -0,0 +1,57 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
using ICSharpCode.SharpDevelop.Gui.OptionPanels;
using StringPair = System.Collections.Generic.KeyValuePair<string, string>;
namespace Grunwald.BooBinding
{
public sealed class BuildOptions : AbstractBuildOptions
{
public override void LoadPanelContents()
{
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream(GetType().Namespace + ".Resources.BuildOptions.xfrm"));
InitializeHelper();
InitOutputPath();
//InitXmlDoc();
InitDebugInfo();
ConfigurationGuiBinding b;
//b = helper.BindString("conditionalSymbolsTextBox", "DefineConstants");
//b.DefaultLocation = PropertyStorageLocations.ConfigurationSpecific;
//b.CreateLocationButton("conditionalSymbolsTextBox");
b = helper.BindBoolean("noCorlibCheckBox", "NoStdLib", false);
b.CreateLocationButton("noCorlibCheckBox");
helper.BindString("pipelineTextBox", "Pipeline").CreateLocationButton("pipelineLabel");
//InitWarnings();
//
helper.BindString("baseIntermediateOutputPathTextBox", "BaseIntermediateOutputPath").CreateLocationButton("baseIntermediateOutputPathTextBox");
ConnectBrowseFolder("baseIntermediateOutputPathBrowseButton", "baseIntermediateOutputPathTextBox", "${res:Dialog.Options.PrjOptions.Configuration.FolderBrowserDescription}");
helper.BindString("intermediateOutputPathTextBox", "IntermediateOutputPath").CreateLocationButton("intermediateOutputPathTextBox");
ConnectBrowseFolder("intermediateOutputPathBrowseButton", "intermediateOutputPathTextBox", "${res:Dialog.Options.PrjOptions.Configuration.FolderBrowserDescription}");
//
helper.AddConfigurationSelector(this);
}
}
}

1
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptions.cs

@ -52,6 +52,7 @@ namespace CSharpBinding.OptionPanels @@ -52,6 +52,7 @@ namespace CSharpBinding.OptionPanels
b = helper.BindBoolean("noCorlibCheckBox", "NoStdLib", false);
b.CreateLocationButton("noCorlibCheckBox");
InitDebugInfo();
InitAdvanced();
b = helper.BindStringEnum("fileAlignmentComboBox", "FileAlignment",
"4096",

1
src/AddIns/BackendBindings/VBNetBinding/Project/Src/OptionPanels/BuildOptions.cs

@ -56,6 +56,7 @@ namespace VBNetBinding.OptionPanels @@ -56,6 +56,7 @@ namespace VBNetBinding.OptionPanels
InitOutputPath();
InitXmlDoc();
InitDebugInfo();
InitAdvanced();
InitWarnings();

7
src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/AbstractBuildOptions.cs

@ -137,14 +137,17 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels @@ -137,14 +137,17 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
ConfigurationGuiBinding debugInfoBinding;
protected ChooseStorageLocationButton advancedLocationButton;
protected void InitAdvanced()
protected void InitDebugInfo()
{
debugInfoBinding = helper.BindEnum<DebugSymbolType>("debugInfoComboBox", "DebugType");
debugInfoBinding.CreateLocationButton("debugInfoLabel");
DebugSymbolsLoaded(null, null);
helper.Loaded += DebugSymbolsLoaded;
helper.Saved += DebugSymbolsSave;
}
protected void InitAdvanced()
{
ConfigurationGuiBinding b;
b = helper.BindBoolean("registerCOMInteropCheckBox", "RegisterForComInterop", false);
b.DefaultLocation = PropertyStorageLocations.PlatformSpecific;

Loading…
Cancel
Save