16 changed files with 10 additions and 1236 deletions
@ -1,37 +0,0 @@
@@ -1,37 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-14 |
||||
* Godzina: 14:34 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using System; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
/* |
||||
/// <summary>
|
||||
/// Description of BuildEventOptions.
|
||||
/// </summary>
|
||||
public class BuildEventOptions : ICSharpCode.SharpDevelop.Gui.OptionPanels.BuildEvents |
||||
{ |
||||
public override void LoadPanelContents() |
||||
{ |
||||
base.LoadPanelContents(); |
||||
|
||||
TextBox preBuildEventTextBox = Get<TextBox>("preBuildEvent"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(preBuildEventTextBox, "PreBuildEvent", "Command")); |
||||
|
||||
TextBox postBuildEventTextBox = Get<TextBox>("postBuildEvent"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(postBuildEventTextBox, "PostBuildEvent", "Command")); |
||||
|
||||
ComboBox runPostBuildEventComboBox = Get<ComboBox>("runPostBuildEvent"); |
||||
runPostBuildEventComboBox.Enabled = false; |
||||
} |
||||
}*/ |
||||
} |
@ -1,102 +0,0 @@
@@ -1,102 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-09 |
||||
* Godzina: 11:15 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using System; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
|
||||
/// <summary>
|
||||
/// Configuration gui binding that connects a given control and a specified metadata value in Item Definition Group element.
|
||||
///</summary>
|
||||
public class ItemDefinitionGroupBinding<ControlType> : ConfigurationGuiBinding |
||||
where ControlType : Control |
||||
{ |
||||
public delegate string GetValueDelegate(ControlType c); |
||||
public delegate void SetValueDelegate(ControlType c, string val); |
||||
|
||||
public ItemDefinitionGroupBinding(ControlType c, string elementName, string metadataName) : |
||||
this(c, elementName, metadataName, null, null) |
||||
{ |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Creates the binding.
|
||||
/// </summary>
|
||||
/// <param name="c">control which is being bind</param>
|
||||
/// <param name="elementName">element name in the item definition group</param>
|
||||
/// <param name="metadataName">name of the element metadata which value is bind to control</param>
|
||||
/// <param name="getValue">function used to get string value of configuration attribute from control</param>
|
||||
/// <param name="setValue">function used to set controls' state from string</param>
|
||||
public ItemDefinitionGroupBinding(ControlType c, string elementName, string metadataName, |
||||
GetValueDelegate getValue, SetValueDelegate setValue) { |
||||
if (getValue == null) |
||||
getValue = DefaultGetValue; |
||||
if (setValue == null) |
||||
setValue = DefaultSetValue; |
||||
this.control = c; |
||||
this.elementName = elementName; |
||||
this.metadataName = metadataName; |
||||
this.getControlValue = getValue; |
||||
this.setControlValue = setValue; |
||||
c.TextChanged += SetHelperDirty; |
||||
} |
||||
|
||||
public override void Load() |
||||
{ |
||||
MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(Project, |
||||
Helper.Configuration, Helper.Platform); |
||||
setControlValue(control, group.GetElementMetadata(elementName, metadataName)); |
||||
} |
||||
|
||||
public override bool Save() |
||||
{ |
||||
MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(Project, |
||||
Helper.Configuration, Helper.Platform); |
||||
string controlValue = getControlValue(control); |
||||
group.SetElementMetadata(elementName, metadataName, controlValue); |
||||
return true; |
||||
} |
||||
|
||||
protected void SetHelperDirty(object o, EventArgs e) |
||||
{ |
||||
Helper.IsDirty = true; |
||||
} |
||||
|
||||
ControlType control; |
||||
string elementName; |
||||
string metadataName; |
||||
GetValueDelegate getControlValue; |
||||
SetValueDelegate setControlValue; |
||||
|
||||
private string DefaultGetValue(ControlType c) { return c.Text; } |
||||
private void DefaultSetValue(ControlType c, string val) { c.Text = val; } |
||||
} |
||||
|
||||
public class CheckBoxItemDefinitionGroupBinding : ItemDefinitionGroupBinding<CheckBox> { |
||||
public CheckBoxItemDefinitionGroupBinding(CheckBox c, string elementName, string metadataName) : |
||||
base(c, elementName, metadataName, |
||||
delegate (CheckBox checkBox) { |
||||
return checkBox.Checked ? "true" : "false"; |
||||
}, |
||||
delegate (CheckBox checkBox, string val) { |
||||
bool check; |
||||
if (bool.TryParse(val, out check)) |
||||
checkBox.Checked = check; |
||||
}) |
||||
{ |
||||
c.TextChanged -= SetHelperDirty; |
||||
c.CheckedChanged += SetHelperDirty; |
||||
} |
||||
} |
||||
} |
@ -1,69 +0,0 @@
@@ -1,69 +0,0 @@
|
||||
<optionpanels:ProjectOptionPanel x:Class="ICSharpCode.CppBinding.Project.LinkerOptionsXaml" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" |
||||
xmlns:optionpanels="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels;assembly=ICSharpCode.SharpDevelop" |
||||
xmlns:project="clr-namespace:ICSharpCode.SharpDevelop.Project;assembly=ICSharpCode.SharpDevelop" |
||||
xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" |
||||
xmlns:core="http://icsharpcode.net/sharpdevelop/core"> |
||||
|
||||
<GroupBox Header="{core:Localize ICSharpCode.CppBinding.ProjectOptions.Linker}"> |
||||
<Grid> |
||||
<Grid.RowDefinitions> |
||||
<RowDefinition Height="50"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="40"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
<RowDefinition Height="30"></RowDefinition> |
||||
</Grid.RowDefinitions> |
||||
<Grid.ColumnDefinitions> |
||||
<ColumnDefinition></ColumnDefinition> |
||||
<ColumnDefinition Width="50"></ColumnDefinition> |
||||
</Grid.ColumnDefinitions> |
||||
<CheckBox x:Name="debugInfoCheckBox" Margin="5,15,0,0" |
||||
IsChecked="{Binding CheckBoxChecked}" |
||||
Content="{core:Localize ICSharpCode.CppBinding.ProjectOptions.Linker.GenerateDebugInfo}"> |
||||
</CheckBox> |
||||
|
||||
<Label Grid.Row="1" Margin="5,5,0,0" Content="{core:Localize ICSharpCode.CppBinding.ProjectOptions.Linker.Library}"></Label> |
||||
<TextBox x:Name="libraryPathTextBox" |
||||
TextChanged="TextBox_TextChanged" Grid.Row="2" |
||||
Text="{Binding LibraryPath.Value, UpdateSourceTrigger=PropertyChanged}"> |
||||
</TextBox> |
||||
|
||||
<Button x:Name="libraryPathButton" Click="LibraryPathButton_Click" |
||||
Margin="5" Grid.Row="2" |
||||
Height="20" |
||||
Grid.Column="1" Content="...."></Button> |
||||
|
||||
<Label Grid.Row="3" Margin="5,5,0,0" Content="{core:Localize ICSharpCode.CppBinding.ProjectOptions.Linker.AdditionalLibs}"></Label> |
||||
<TextBox x:Name="additionalLibsTextBox" |
||||
TextChanged="TextBox_TextChanged" Grid.Row="4"> |
||||
</TextBox> |
||||
<Button x:Name="additionalLibsButton" Click="AdditionalLibsButton_Click" Grid.Row="4" Grid.Column="1" Margin="5" Content="...." ></Button> |
||||
|
||||
<Label Grid.Row="5" Margin="5,5,0,0" Content="{core:Localize ICSharpCode.CppBinding.ProjectOptions.Linker.AddModule}"></Label> |
||||
<TextBox x:Name="addModuleTextBox" |
||||
TextChanged="TextBox_TextChanged" Grid.Row="6"> |
||||
</TextBox> |
||||
<Button x:Name="addModuleButton" Click="AddModuleButton_Click" Grid.Row="6" Grid.Column="1" Margin="5" Content="...."></Button> |
||||
|
||||
<Label Grid.Row="7" Margin="5,5,0,0" Content="{core:Localize ICSharpCode.CppBinding.ProjectOptions.Linker.ManagedResourceFile}" ></Label> |
||||
<TextBox x:Name="resourceFileTextBox" |
||||
TextChanged="TextBox_TextChanged" Grid.Row="8"></TextBox> |
||||
<Button x:Name="resourceFileButton" Click="ResourceFileButton_Click" Grid.Row="8" Grid.Column="1" Margin="5" Content="...."></Button> |
||||
|
||||
<Label Grid.Row="9" Margin="5,5,0,0" Content="{core:Localize ICSharpCode.CppBinding.ProjectOptions.AdditionalOptions}"></Label> |
||||
<TextBox x:Name="additionalOptionsTextBox" |
||||
TextChanged="TextBox_TextChanged" Grid.Row="10" Grid.ColumnSpan="2"> |
||||
</TextBox> |
||||
|
||||
</Grid> |
||||
</GroupBox> |
||||
</optionpanels:ProjectOptionPanel> |
@ -1,197 +0,0 @@
@@ -1,197 +0,0 @@
|
||||
/* |
||||
* Created by SharpDevelop. |
||||
* User: Peter Forstmeier |
||||
* Date: 21.04.2012 |
||||
* Time: 20:14 |
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Text; |
||||
using System.Windows; |
||||
using System.Windows.Controls; |
||||
using System.Windows.Data; |
||||
using System.Windows.Documents; |
||||
using System.Windows.Input; |
||||
using System.Windows.Media; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui.OptionPanels; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
/// <summary>
|
||||
/// Interaction logic for LinkerOptionsXaml.xaml
|
||||
/// </summary>
|
||||
public partial class LinkerOptionsXaml : ProjectOptionPanel,INotifyPropertyChanged |
||||
{ |
||||
private const string metaElement ="Link"; |
||||
private MSBuildBasedProject project; |
||||
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; |
||||
|
||||
public LinkerOptionsXaml() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
|
||||
|
||||
private void Initialize() |
||||
{ |
||||
var msDefGroup = new MSBuildItemDefinitionGroup(project, project.ActiveConfiguration, project.ActivePlatform); |
||||
|
||||
|
||||
this.additionalLibsTextBox.Text = GetElementMetaData(msDefGroup,"AdditionalDependencies"); |
||||
|
||||
this.addModuleTextBox.Text = GetElementMetaData(msDefGroup,"AddModuleNamesToAssembly"); |
||||
|
||||
this.resourceFileTextBox.Text = GetElementMetaData(msDefGroup,"EmbedManagedResourceFile"); |
||||
|
||||
this.additionalOptionsTextBox.Text = GetElementMetaData(msDefGroup,"AdditionalOptions"); |
||||
|
||||
var def = GetElementMetaData(msDefGroup,"GenerateDebugInformation"); |
||||
|
||||
bool check; |
||||
if (bool.TryParse(def, out check)) |
||||
{ |
||||
this.CheckBoxChecked = check; |
||||
this.debugInfoCheckBox.IsChecked = check; |
||||
} |
||||
|
||||
IsDirty = false; |
||||
} |
||||
|
||||
#region Properties
|
||||
|
||||
public ProjectProperty<string> LibraryPath { |
||||
get { return GetProperty("LibraryPath", "", TextBoxEditMode.EditRawProperty); } |
||||
} |
||||
|
||||
|
||||
private bool checkBoxChecked; |
||||
|
||||
public bool CheckBoxChecked { |
||||
get {return checkBoxChecked;} |
||||
set |
||||
{ |
||||
checkBoxChecked = value; |
||||
if (PropertyChanged != null) |
||||
PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs("UnCheck")); |
||||
IsDirty = true; |
||||
} |
||||
} |
||||
|
||||
#endregion
|
||||
|
||||
#region Save/Load
|
||||
|
||||
public override void OnApplyTemplate() |
||||
{ |
||||
base.OnApplyTemplate(); |
||||
HideHeader(); |
||||
} |
||||
|
||||
protected override void Load(MSBuildBasedProject project, string configuration, string platform) |
||||
{ |
||||
base.Load(project, configuration, platform); |
||||
this.project = project; |
||||
Initialize(); |
||||
} |
||||
|
||||
protected override bool Save(MSBuildBasedProject project, string configuration, string platform) |
||||
{ |
||||
MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(project, |
||||
project.ActiveConfiguration, project.ActivePlatform); |
||||
|
||||
SetElementMetaData(group,"AdditionalDependencies",this.additionalLibsTextBox.Text); |
||||
SetElementMetaData(group,"AddModuleNamesToAssembly",this.addModuleTextBox.Text); |
||||
SetElementMetaData(group,"EmbedManagedResourceFile",this.resourceFileTextBox.Text); |
||||
SetElementMetaData(group,"AdditionalOptions",this.additionalOptionsTextBox.Text); |
||||
|
||||
string check = "false"; |
||||
if ((bool)this.debugInfoCheckBox.IsChecked) { |
||||
check = "true"; |
||||
} |
||||
|
||||
SetElementMetaData(group,"GenerateDebugInformation",check); |
||||
|
||||
return base.Save(project, configuration, platform); |
||||
} |
||||
|
||||
#endregion
|
||||
|
||||
#region MSBuildItemDefinitionGroup Set-Get
|
||||
|
||||
private static string GetElementMetaData (MSBuildItemDefinitionGroup group,string name) |
||||
{ |
||||
return group.GetElementMetadata(metaElement,name); |
||||
} |
||||
|
||||
|
||||
private static void SetElementMetaData (MSBuildItemDefinitionGroup group,string name,string value) |
||||
{ |
||||
group.SetElementMetadata(metaElement,name,value); |
||||
} |
||||
|
||||
#endregion
|
||||
|
||||
private void LibraryPathButton_Click(object sender, RoutedEventArgs e) |
||||
{ |
||||
PopulateStringListEditor(StringParser.Parse("${res:Global.Folder}:"), |
||||
StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.Linker.Library}:"), |
||||
this.libraryPathTextBox, |
||||
true); |
||||
} |
||||
|
||||
|
||||
private void AdditionalLibsButton_Click(object sender, RoutedEventArgs e) |
||||
{ |
||||
PopulateStringListEditor(StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.SymbolLabel}:"), |
||||
StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.Linker.AdditionalLibs}:"), |
||||
this.additionalLibsTextBox, |
||||
false); |
||||
} |
||||
|
||||
|
||||
private void AddModuleButton_Click(object sender, RoutedEventArgs e) |
||||
{ |
||||
PopulateStringListEditor(StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.SymbolLabel}:"), |
||||
StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.Linker.AddModule}"), |
||||
this.addModuleTextBox, |
||||
false); |
||||
} |
||||
|
||||
|
||||
private void ResourceFileButton_Click(object sender, RoutedEventArgs e) |
||||
{ |
||||
PopulateStringListEditor(StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.SymbolLabel}:"), |
||||
StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.Linker.ManagedResourceFile}"), |
||||
this.resourceFileTextBox, |
||||
false); |
||||
} |
||||
|
||||
|
||||
public static void PopulateStringListEditor(string title, string listCaption,TextBox textBox,bool browseForDirectoty) |
||||
{ |
||||
var stringListDialog = new StringListEditorDialogXaml(); |
||||
stringListDialog.TitleText = title; |
||||
stringListDialog.ListCaption = listCaption; |
||||
stringListDialog.BrowseForDirectory = browseForDirectoty; |
||||
string[] strings = textBox.Text.Split(';'); |
||||
stringListDialog.LoadList (strings); |
||||
stringListDialog.ShowDialog(); |
||||
if (stringListDialog.DialogResult.HasValue && stringListDialog.DialogResult.Value) |
||||
{ |
||||
textBox.Text = String.Join(";",stringListDialog.GetList()); |
||||
} |
||||
} |
||||
|
||||
|
||||
private void TextBox_TextChanged(object sender, TextChangedEventArgs e) |
||||
{ |
||||
IsDirty = true; |
||||
} |
||||
|
||||
} |
||||
} |
@ -1,48 +0,0 @@
@@ -1,48 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
public class ObservedBinding<Output, ControlType> : ConfigurationGuiBinding |
||||
where ControlType : Control |
||||
{ |
||||
public delegate Output ObserverDelegate(ControlType c); |
||||
public delegate void LoaderDelegate(ControlType c); |
||||
|
||||
public ObservedBinding(ControlType control, ObserverDelegate saveDelegate) : this(control, saveDelegate, null) |
||||
{ |
||||
} |
||||
|
||||
public ObservedBinding(ControlType control, ObserverDelegate saveDelegate, LoaderDelegate loadDelegate) { |
||||
this.control = control; |
||||
this.onLoad = loadDelegate; |
||||
this.onSave = saveDelegate; |
||||
} |
||||
|
||||
public override void Load() { |
||||
if (onLoad != null) |
||||
onLoad(control); |
||||
} |
||||
|
||||
public override bool Save() |
||||
{ |
||||
if (onSave != null) |
||||
if (Property != null) |
||||
base.Set<Output>(onSave(control)); |
||||
else |
||||
onSave(control); |
||||
return true; |
||||
} |
||||
|
||||
private ControlType control; |
||||
private LoaderDelegate onLoad; |
||||
private ObserverDelegate onSave; |
||||
} |
||||
} |
@ -1,64 +0,0 @@
@@ -1,64 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-09 |
||||
* Godzina: 10:46 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using ICSharpCode.Core; |
||||
using System; |
||||
using System.Windows.Forms; |
||||
using ICSharpCode.SharpDevelop.Gui.XmlForms; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
sealed class OpenStringListEditorEvent<ControlType> where ControlType : Control { |
||||
public OpenStringListEditorEvent(XmlUserControl parent, string controlId) { |
||||
this.sourceControl = parent.Get<ControlType>(controlId); |
||||
this.listCaption = parent.Get<Label>(controlId).Text; |
||||
this.ShowBrowseButton = false; |
||||
} |
||||
|
||||
public bool ShowBrowseButton { get; set; } |
||||
public string TitleText { get; set; } |
||||
|
||||
public void Event(object source, EventArgs evt) { |
||||
using (StringListEditorDialog editor = new StringListEditorDialog()) { |
||||
string[] strings = sourceControl.Text.Split(';'); |
||||
editor.BrowseForDirectory = ShowBrowseButton; |
||||
editor.ListCaption = listCaption; |
||||
if (TitleText != null) |
||||
editor.TitleText = TitleText; |
||||
editor.LoadList(strings); |
||||
|
||||
if (editor.ShowDialog() == DialogResult.OK) { |
||||
strings = editor.GetList(); |
||||
sourceControl.Text = string.Join(";", strings); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public static OpenStringListEditorEvent<ControlType> DirectoriesEditor(XmlUserControl parent, string controlId) |
||||
{ |
||||
OpenStringListEditorEvent<ControlType> editor = new OpenStringListEditorEvent<ControlType>(parent, controlId); |
||||
editor.ShowBrowseButton = true; |
||||
editor.TitleText = StringParser.Parse("${res:Global.Folder}:"); |
||||
return editor; |
||||
} |
||||
|
||||
public static OpenStringListEditorEvent<ControlType> SymbolsEditor(XmlUserControl parent, string controlId) |
||||
{ |
||||
OpenStringListEditorEvent<ControlType> editor = new OpenStringListEditorEvent<ControlType>(parent, controlId); |
||||
editor.ShowBrowseButton = false; |
||||
editor.TitleText = StringParser.Parse("${res:ICSharpCode.CppBinding.ProjectOptions.SymbolLabel}:"); |
||||
return editor; |
||||
} |
||||
|
||||
string listCaption; |
||||
ControlType sourceControl; |
||||
} |
||||
} |
@ -1,93 +0,0 @@
@@ -1,93 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-08 |
||||
* Godzina: 20:34 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
partial class StringListEditorDialog |
||||
{ |
||||
/// <summary>
|
||||
/// Designer variable used to keep track of non-visual components.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Disposes resources used by the form.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing) { |
||||
if (components != null) { |
||||
components.Dispose(); |
||||
} |
||||
} |
||||
base.Dispose(disposing); |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// This method is required for Windows Forms designer support.
|
||||
/// Do not change the method contents inside the source code editor. The Forms designer might
|
||||
/// not be able to load this method if it was changed manually.
|
||||
/// </summary>
|
||||
private void InitializeComponent() |
||||
{ |
||||
this.btnOk = new System.Windows.Forms.Button(); |
||||
this.btnCancel = new System.Windows.Forms.Button(); |
||||
stringListEditor = new ICSharpCode.SharpDevelop.Gui.StringListEditor(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
||||
this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK; |
||||
this.btnOk.Location = new System.Drawing.Point(124, 231); |
||||
this.btnOk.Name = "btnOk"; |
||||
this.btnOk.Size = new System.Drawing.Size(75, 23); |
||||
this.btnOk.TabIndex = 0; |
||||
this.btnOk.Text = "OK"; |
||||
this.btnOk.UseVisualStyleBackColor = true; |
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
||||
this.btnCancel.Location = new System.Drawing.Point(205, 231); |
||||
this.btnCancel.Name = "btnCancel"; |
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23); |
||||
this.btnCancel.TabIndex = 1; |
||||
this.btnCancel.Text = "Cancel"; |
||||
this.btnCancel.UseVisualStyleBackColor = true; |
||||
//
|
||||
// stringListEditor
|
||||
//
|
||||
this.stringListEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left))); |
||||
this.stringListEditor.Location = new System.Drawing.Point(8, 8); |
||||
this.stringListEditor.Name = "stringListEditor"; |
||||
this.stringListEditor.Size = new System.Drawing.Size(284, 215); |
||||
//
|
||||
// StringListDialog
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; |
||||
this.ClientSize = new System.Drawing.Size(292, 266); |
||||
this.Controls.Add(this.btnCancel); |
||||
this.Controls.Add(this.btnOk); |
||||
this.Controls.Add(this.stringListEditor); |
||||
this.Name = "StringListDialog"; |
||||
this.ShowInTaskbar = false; |
||||
this.ResumeLayout(false); |
||||
} |
||||
private System.Windows.Forms.Button btnOk; |
||||
private System.Windows.Forms.Button btnCancel; |
||||
private ICSharpCode.SharpDevelop.Gui.StringListEditor stringListEditor; |
||||
} |
||||
} |
@ -1,55 +0,0 @@
@@ -1,55 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-08 |
||||
* Godzina: 20:34 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
/// <summary>
|
||||
/// Description of StringsListDialog.
|
||||
/// </summary>
|
||||
public partial class StringListEditorDialog : Form |
||||
{ |
||||
public StringListEditorDialog() |
||||
{ |
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent(); |
||||
} |
||||
|
||||
public bool BrowseForDirectory { |
||||
get {return stringListEditor.BrowseForDirectory;} |
||||
set {stringListEditor.BrowseForDirectory = value;} |
||||
} |
||||
|
||||
public string ListCaption { |
||||
get {return stringListEditor.ListCaption; } |
||||
set {stringListEditor.ListCaption = value;} |
||||
} |
||||
|
||||
public string TitleText { |
||||
get {return stringListEditor.TitleText;} |
||||
set {stringListEditor.TitleText = value;} |
||||
} |
||||
|
||||
public string[] GetList() { |
||||
return stringListEditor.GetList(); |
||||
} |
||||
|
||||
public void LoadList(IEnumerable<string> list) { |
||||
stringListEditor.LoadList(list); |
||||
} |
||||
} |
||||
} |
@ -1,183 +0,0 @@
@@ -1,183 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-06 |
||||
* Godzina: 22:31 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.IO; |
||||
using System.Linq; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
/// <summary>
|
||||
/// Application settings panel for c++ project.
|
||||
/// </summary>
|
||||
public class old_ApplicationOptions : ICSharpCode.SharpDevelop.Gui.OptionPanels.old_ApplicationSettings |
||||
{ |
||||
public override void LoadPanelContents() |
||||
{ |
||||
base.LoadPanelContents(); |
||||
ComboBox cbOutputType = Get<ComboBox>("outputType"); |
||||
helper.AddBinding("ConfigurationType", new ObservedBinding<string, ComboBox>(cbOutputType, ConvertOutputType)); |
||||
|
||||
MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(project, helper.Configuration, helper.Platform); |
||||
string subsystem = group.GetElementMetadata("Link", "SubSystem"); |
||||
string configurationType = project.GetEvaluatedProperty("ConfigurationType"); |
||||
OutputType validOutputType = ConfigurationTypeToOutputType(configurationType, subsystem); |
||||
cbOutputType.SelectedIndex = Array.IndexOf((OutputType[])Enum.GetValues(typeof(OutputType)), validOutputType); |
||||
|
||||
TextBox tbApplicationIcon = Get<TextBox>("applicationIcon"); |
||||
helper.AddBinding(null, new ObservedBinding<object, TextBox>(tbApplicationIcon, SetApplicationIcon)); |
||||
tbApplicationIcon.Text = GetApplicationIconPathFromResourceScripts(); |
||||
|
||||
DisableWin32ResourceOptions(); |
||||
|
||||
IsDirty = false; |
||||
} |
||||
|
||||
#region OutputType <-> ConfigurationType property mapping
|
||||
|
||||
/// <summary>
|
||||
/// Applies the OutputType property value from combo box control to the vcxproj project.
|
||||
/// <para>The OutputType property is translated to ConfigurationType and Subsystem properties</para>
|
||||
/// </summary>
|
||||
/// <returns>the ConfigurationType associated to OutputType</returns>
|
||||
string ConvertOutputType(ComboBox cbOutputType) |
||||
{ |
||||
OutputType[] values = (OutputType[])Enum.GetValues(typeof(OutputType)); |
||||
OutputType outputType = values[cbOutputType.SelectedIndex]; |
||||
|
||||
string subsystem = OutputTypeToSubsystem(outputType); |
||||
MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(project, |
||||
helper.Configuration, helper.Platform); |
||||
group.SetElementMetadata("Link", "SubSystem", subsystem); |
||||
|
||||
return OutputTypeToConfigurationType(outputType); |
||||
} |
||||
|
||||
static string OutputTypeToConfigurationType(OutputType outputType) |
||||
{ |
||||
switch (outputType) |
||||
{ |
||||
case OutputType.Exe: |
||||
return "Application"; |
||||
case OutputType.Library: |
||||
return "DynamicLibrary"; |
||||
case OutputType.Module: |
||||
//TODO: get an apropriate way to handle netmodule creation
|
||||
//see: http://msdn.microsoft.com/en-us/library/k669k83h(VS.80).aspx
|
||||
LoggingService.Info(".netmodule output not supported, will produce a class library"); |
||||
return "DynamicLibrary"; |
||||
case OutputType.WinExe: |
||||
return "Application"; |
||||
} |
||||
throw new ArgumentException("Unknown OutputType value " + outputType); |
||||
} |
||||
|
||||
static string OutputTypeToSubsystem(OutputType outputType) |
||||
{ |
||||
if (OutputType.WinExe == outputType) |
||||
return "Windows"; |
||||
return "Console"; |
||||
} |
||||
|
||||
static OutputType ConfigurationTypeToOutputType(string configurationType, string subsystem) |
||||
{ |
||||
if ("Application" == configurationType && "Windows" != subsystem) |
||||
return OutputType.Exe; |
||||
else if ("Application" == configurationType && "Windows" == subsystem) |
||||
return OutputType.WinExe; |
||||
else if ("DynamicLibrary" == configurationType) |
||||
return OutputType.Library; |
||||
LoggingService.Info("ConfigurationType " +configurationType + " is not supported, will use Library output type"); |
||||
return OutputType.Library; |
||||
} |
||||
#endregion
|
||||
|
||||
#region Application icon property mapping
|
||||
const string DEFAULT_ICON_ID = "ICON0"; |
||||
const string DEFAULT_RC_NAME = "app.rc"; |
||||
ResourceEntry foundIconEntry; |
||||
string iconResourceScriptPath; //path to the resource script where application icon is defined
|
||||
|
||||
static string AddResourceScriptToProject(IProject project, string rcFileName) { |
||||
string fileName = Path.Combine(project.Directory, rcFileName); |
||||
FileProjectItem rcFileItem = new FileProjectItem(project, project.GetDefaultItemType(fileName)); |
||||
rcFileItem.Include = FileUtility.GetRelativePath(project.Directory, fileName); |
||||
((IProjectItemListProvider)project).AddProjectItem(rcFileItem); |
||||
return fileName; |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Gets the icon file location from the rc files added to project.
|
||||
/// Searches all project items of type "ResourceCompile" and returns the resource of type ICON with the lowest ID.
|
||||
/// </summary>
|
||||
/// <returns>path to the icon file or null if the icon wasn't specified</returns>
|
||||
string GetApplicationIconPathFromResourceScripts() { |
||||
foundIconEntry = null; |
||||
iconResourceScriptPath = null; |
||||
IEnumerable <ProjectItem> resourceScripts = project.Items.Where( |
||||
item => item is FileProjectItem && ((FileProjectItem)item).BuildAction == "ResourceCompile"); |
||||
|
||||
// search in all resource scripts, but due to limitation in resource compiler, only one of them can contain icons
|
||||
foreach (ProjectItem item in resourceScripts) { |
||||
ResourceScript rc = new ResourceScript(item.FileName); |
||||
if (rc.Icons.Count == 0) continue; |
||||
if (foundIconEntry == null || rc.Icons.First().ResourceID.CompareTo(foundIconEntry.ResourceID)<0) { |
||||
foundIconEntry = rc.Icons.First(); |
||||
iconResourceScriptPath = item.FileName; |
||||
} |
||||
} |
||||
|
||||
//when no icon was found, then select the resource script where icon definition may be created
|
||||
if (iconResourceScriptPath == null && resourceScripts.Any()) |
||||
iconResourceScriptPath = resourceScripts.First().FileName; |
||||
|
||||
return foundIconEntry != null ? foundIconEntry.Data : null; |
||||
} |
||||
|
||||
object SetApplicationIcon(TextBox tb) { |
||||
string iconPath = tb.Text; |
||||
string newIconId; |
||||
ResourceScript rc; |
||||
if (iconPath.Trim() == "") return null; |
||||
if (iconResourceScriptPath != null) |
||||
{ |
||||
rc = new ResourceScript(iconResourceScriptPath); |
||||
newIconId = foundIconEntry != null ? foundIconEntry.ResourceID : DEFAULT_ICON_ID; |
||||
rc.Save(iconResourceScriptPath); |
||||
} |
||||
else |
||||
{ |
||||
iconResourceScriptPath = AddResourceScriptToProject(project, DEFAULT_RC_NAME); |
||||
rc = new ResourceScript(); |
||||
newIconId = DEFAULT_ICON_ID; |
||||
} |
||||
|
||||
rc.SetIcon(newIconId, iconPath); |
||||
rc.Save(iconResourceScriptPath); |
||||
return null; |
||||
} |
||||
#endregion
|
||||
|
||||
#region Resource file property mapping
|
||||
void DisableWin32ResourceOptions() { |
||||
Button win32ResourceFileBrowseButton = Get<Button>("win32ResourceFileBrowse"); |
||||
win32ResourceFileBrowseButton.Enabled = false; |
||||
TextBox win32ResourceFileTextBox = Get<TextBox>("win32ResourceFile"); |
||||
win32ResourceFileTextBox.Enabled = false; |
||||
} |
||||
#endregion
|
||||
} |
||||
} |
@ -1,57 +0,0 @@
@@ -1,57 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-08 |
||||
* Godzina: 12:07 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using ICSharpCode.Core; |
||||
using System; |
||||
using System.Windows.Forms; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.SharpDevelop.Gui.OptionPanels; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
using ListEditor = ICSharpCode.CppBinding.Project.OpenStringListEditorEvent<TextBox>; |
||||
|
||||
/// <summary>
|
||||
/// Directory settings for c++ application.
|
||||
/// </summary>
|
||||
public class old_LinkerOptions : AbstractXmlFormsProjectOptionPanel |
||||
{ |
||||
public override void LoadPanelContents() |
||||
{ |
||||
SetupFromXmlStream(GetType().Assembly.GetManifestResourceStream( |
||||
"ICSharpCode.CppBinding.Resources.LinkerOptions.xfrm")); |
||||
|
||||
InitializeHelper(); |
||||
|
||||
helper.BindString("libraryPathTextBox", "LibraryPath", TextBoxEditMode.EditRawProperty); |
||||
Get<Button>("libraryPath").Click += ListEditor.DirectoriesEditor(this, "libraryPath").Event; |
||||
|
||||
TextBox additionalLibsTextBox = Get<TextBox>("additionalLibs"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(additionalLibsTextBox, "Link", "AdditionalDependencies")); |
||||
Get<Button>("additionalLibs").Click += ListEditor.SymbolsEditor(this, "additionalLibs").Event; |
||||
|
||||
TextBox addModuleTextBox = Get<TextBox>("addModule"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(addModuleTextBox, "Link", "AddModuleNamesToAssembly")); |
||||
Get<Button>("addModule").Click += ListEditor.SymbolsEditor(this, "addModule").Event; |
||||
|
||||
CheckBox debugInfoCheckBox = Get<CheckBox>("debugInfo"); |
||||
helper.AddBinding(null, new CheckBoxItemDefinitionGroupBinding(debugInfoCheckBox, "Link", "GenerateDebugInformation")); |
||||
|
||||
TextBox resourceFileTextBox = Get<TextBox>("resourceFile"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(resourceFileTextBox, "Link", "EmbedManagedResourceFile")); |
||||
Get<Button>("resourceFile").Click += ListEditor.SymbolsEditor(this, "resourceFile").Event; |
||||
|
||||
TextBox additionalOptionsTextBox = Get<TextBox>("additionalOptions"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(additionalOptionsTextBox, "Link", "AdditionalOptions")); |
||||
} |
||||
} |
||||
} |
@ -1,51 +0,0 @@
@@ -1,51 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
/* |
||||
* Utworzone przez SharpDevelop. |
||||
* Użytkownik: trecio |
||||
* Data: 2009-07-08 |
||||
* Godzina: 12:07 |
||||
* |
||||
* Do zmiany tego szablonu użyj Narzędzia | Opcje | Kodowanie | Edycja Nagłówków Standardowych. |
||||
*/ |
||||
using ICSharpCode.Core; |
||||
using System; |
||||
using System.Windows.Forms; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.SharpDevelop.Gui.OptionPanels; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
|
||||
namespace ICSharpCode.CppBinding.Project |
||||
{ |
||||
using ListEditor = ICSharpCode.CppBinding.Project.OpenStringListEditorEvent<TextBox>; |
||||
|
||||
/// <summary>
|
||||
/// Directory settings for c++ application.
|
||||
/// </summary>
|
||||
public class old_PreprocessorOptions : AbstractXmlFormsProjectOptionPanel |
||||
{ |
||||
public override void LoadPanelContents() |
||||
{ |
||||
SetupFromXmlStream(GetType().Assembly.GetManifestResourceStream( |
||||
"ICSharpCode.CppBinding.Resources.PreprocessorOptions.xfrm")); |
||||
|
||||
InitializeHelper(); |
||||
|
||||
TextBox defineTextBox = Get<TextBox>("define"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(defineTextBox, "ClCompile", "PreprocessorDefinitions")); |
||||
Get<Button>("define").Click += ListEditor.SymbolsEditor(this, "define").Event; |
||||
|
||||
helper.BindString("includePathTextBox", "IncludePath", TextBoxEditMode.EditRawProperty); |
||||
Get<Button>("includePath").Click += ListEditor.DirectoriesEditor(this, "includePath").Event; |
||||
|
||||
TextBox undefineTextBox = Get<TextBox>("undefine"); |
||||
helper.AddBinding(null, new ItemDefinitionGroupBinding<TextBox>(undefineTextBox, "ClCompile", "UndefinePreprocessorDefinitions")); |
||||
Get<Button>("undefine").Click += ListEditor.SymbolsEditor(this, "undefine").Event; |
||||
|
||||
CheckBox undefineAllCheckBox = Get<CheckBox>("undefineAll"); |
||||
helper.AddBinding(null, new CheckBoxItemDefinitionGroupBinding(undefineAllCheckBox, "ClCompile", "UndefineAllPreprocessorDefinitions")); |
||||
} |
||||
|
||||
} |
||||
} |
@ -1,135 +0,0 @@
@@ -1,135 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="XmlUserControl1" /> |
||||
<ClientSize value="{Width=509, Height=425}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox1" /> |
||||
<Location value="8, 8" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Linker}" /> |
||||
<Size value="486, 403" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="additionalOptionsLabel" /> |
||||
<Location value="10, 300" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.AdditionalOptions}" /> |
||||
<Size value="315, 13" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="additionalOptionsTextBox" /> |
||||
<TabIndex value="10" /> |
||||
<Location value="10, 316" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="466, 44" /> |
||||
<Multiline value="True" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="resourceFileTextBox" /> |
||||
<TabIndex value="8" /> |
||||
<Location value="10, 277" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 20" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="resourceFileLabel" /> |
||||
<Location value="10, 251" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Linker.ManagedResourceFile}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="resourceFileButton" /> |
||||
<Location value="440, 278" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 21" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="9" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="debugInfoCheckBox" /> |
||||
<AutoSize value="True" /> |
||||
<Location value="10, 35" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Linker.GenerateDebugInfo}" /> |
||||
<TabIndex value="1" /> |
||||
<Size value="378, 17" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="addModuleTextBox" /> |
||||
<TabIndex value="6" /> |
||||
<Location value="10, 220" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 20" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="addModuleLabel" /> |
||||
<Location value="10, 194" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Linker.AddModule}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addModuleButton" /> |
||||
<Location value="440, 221" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 21" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="additionalLibsTextBox" /> |
||||
<TabIndex value="4" /> |
||||
<Location value="10, 159" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 20" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="additionalLibsLabel" /> |
||||
<Location value="10, 133" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Linker.AdditionalLibs}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="additionalLibsButton" /> |
||||
<Location value="440, 161" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 23" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="5" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="libraryPathTextBox" /> |
||||
<TabIndex value="2" /> |
||||
<Location value="10, 81" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 44" /> |
||||
<Multiline value="True" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="libraryPathLabel" /> |
||||
<Location value="10, 55" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Linker.Library}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="libraryPathButton" /> |
||||
<Location value="440, 82" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 21" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,100 +0,0 @@
@@ -1,100 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="XmlUserControl1" /> |
||||
<ClientSize value="{Width=509, Height=425}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="groupBox1" /> |
||||
<Location value="8, 8" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Preprocessor}" /> |
||||
<Size value="486, 338" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<AutoSize value="true" /> |
||||
<Name value="undefineAllCheckBox" /> |
||||
<Location value="8, 207" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Preprocessor.UndefineAll}" /> |
||||
<TabIndex value="10" /> |
||||
<Size value="426, 23" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="undefineTextBox" /> |
||||
<TabIndex value="8" /> |
||||
<Location value="8, 181" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 20" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="undefineLabel" /> |
||||
<Location value="8, 155" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Preprocessor.Undefinitions}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="undefineButton" /> |
||||
<Location value="438, 182" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 21" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="9" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="defineTextBox" /> |
||||
<TabIndex value="5" /> |
||||
<Location value="8, 124" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 20" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="defineLabel" /> |
||||
<Location value="8, 98" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Preprocessor.Definitions}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="defineButton" /> |
||||
<Location value="438, 126" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 23" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="6" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="includePathTextBox" /> |
||||
<TabIndex value="2" /> |
||||
<Location value="8, 49" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="426, 44" /> |
||||
<Multiline value="True" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="includePathLabel" /> |
||||
<Location value="8, 23" /> |
||||
<Text value="${res:ICSharpCode.CppBinding.ProjectOptions.Preprocessor.Includes}" /> |
||||
<Size value="466, 23" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="includePathButton" /> |
||||
<Location value="438, 50" /> |
||||
<Text value="..." /> |
||||
<Size value="40, 21" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
Loading…
Reference in new issue