Browse Source

BuildOptionsXaml.xaml DebugType

pull/30/head
PeterForstmeier 13 years ago
parent
commit
8dcbae7eba
  1. 34
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptionsXaml.xaml
  2. 37
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptionsXaml.xaml.cs

34
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptionsXaml.xaml

@ -137,10 +137,11 @@
Content="..." Content="..."
Command="{Binding ChangeOutputPath}"></Button> Command="{Binding ChangeOutputPath}"></Button>
<!-- Documentfile missing and only partial implemented --> <!-- Documentfile missing and only partial implemented -->
<optionpanels:StorageLocationPicker <!-- ??????? -->
Grid.Row="2"
Location="{Binding DocumentationFile.Location}" <optionpanels:StorageLocationPicker Grid.Row="2" DockPanel.Dock="Left"
DockPanel.Dock="Left" /> Location="{Binding DocumentationFile.Location}"/>
<CheckBox <CheckBox
x:Name="xmlDocumentationCheckBox" x:Name="xmlDocumentationCheckBox"
Grid.Row="2" Grid.Row="2"
@ -164,42 +165,35 @@
Grid.Column="1" Grid.Column="1"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Content="{core:Localize Dialog.ProjectOptions.Build.DebugInfo}"></Label> Content="{core:Localize Dialog.ProjectOptions.Build.DebugInfo}"></Label>
<!--Combo Save etc missing -->
<ComboBox <ComboBox
Grid.Row="3" Grid.Row="3"
Grid.Column="2" Grid.Column="2"
Width="150" Width="150"
HorizontalAlignment="Left" HorizontalAlignment="Left"
SelectedIndex="1" SelectedIndex="1"
SelectedValue="{Binding Path=DebugType.Value}"
gui:EnumBinding.EnumType="{x:Type project:DebugSymbolType}"></ComboBox> gui:EnumBinding.EnumType="{x:Type project:DebugSymbolType}"></ComboBox>
<Label <Label
Grid.Row="4" Grid.Row="4"
Grid.Column="1" Grid.Column="1"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Content="{core:Localize Dialog.ProjectOptions.Build.TargetFramework}"></Label> Content="{core:Localize Dialog.ProjectOptions.Build.TargetFramework}"></Label>
<StackPanel <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="2">
Orientation="Horizontal"
Grid.Row="4"
Grid.Column="2">
<ComboBox <ComboBox
x:Name="targetFrameworkComboBox" x:Name="targetFrameworkComboBox"
Width="200" Width="200"
Margin="0,0,3,0" Margin="0,0,3,0"
IsEnabled="False"></ComboBox> IsEnabled="False"></ComboBox>
<!-- Save etc missing -->
<Button <Button
Width="100" Width="100"
Content="Change" Content="Change"
Command="{Binding UpdateProjectCommand}" Command="{Binding UpdateProjectCommand}"
Margin="3,0,3,0"></Button> Margin="3,0,3,0"></Button>
</StackPanel> </StackPanel>
<GroupBox <GroupBox Grid.Row="5" Grid.ColumnSpan="3" Margin="5,10,0,0"
Grid.Row="5"
Grid.ColumnSpan="3"
Margin="5,10,0,0"
Header="{core:Localize Dialog.ProjectOptions.Build.Advanced}"> Header="{core:Localize Dialog.ProjectOptions.Build.Advanced}">
<Grid <Grid>
ShowGridLines="True">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition <RowDefinition
Height="25"></RowDefinition> Height="25"></RowDefinition>
@ -241,11 +235,13 @@
Grid.Column="1" Grid.Column="1"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Content="{core:Localize Dialog.ProjectOptions.Build.GenerateSerializationAssembly}"></Label> Content="{core:Localize Dialog.ProjectOptions.Build.GenerateSerializationAssembly}"></Label>
<ComboBox <ComboBox
x:Name="generateSerializationAssemblyComboBox" x:Name="generateSerializationAssemblyComboBox"
Grid.Row="1" Grid.Row="1"
Grid.Column="2" Grid.Column="2"
ItemsSource="{Binding Path=DataContext.SerializationInfo}" ItemsSource="{Binding Path=DataContext.SerializationInfo}"
SelectedValue="{Binding Path=GenerateSerializationAssemblies.Value}"
DisplayMemberPath="DisplayValue" DisplayMemberPath="DisplayValue"
SelectedValuePath="Key" SelectedValuePath="Key"
SelectedIndex="2"></ComboBox> SelectedIndex="2"></ComboBox>
@ -258,11 +254,14 @@
Grid.Column="1" Grid.Column="1"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Content="{core:Localize Dialog.ProjectOptions.Build.TargetCPU}"></Label> Content="{core:Localize Dialog.ProjectOptions.Build.TargetCPU}"></Label>
<ComboBox <ComboBox
x:Name="targetCpuComboBox" x:Name="targetCpuComboBox"
Grid.Row="2" Grid.Row="2"
Grid.Column="2" Grid.Column="2"
ItemsSource="{Binding Path=DataContext.TargetCPU}" ItemsSource="{Binding Path=DataContext.TargetCPU}"
SelectedValue="{Binding Path=PlatformTarget.Value}"
DisplayMemberPath="DisplayValue" DisplayMemberPath="DisplayValue"
SelectedValuePath="Key" SelectedValuePath="Key"
SelectedIndex="1"></ComboBox> SelectedIndex="1"></ComboBox>
@ -271,14 +270,13 @@
Grid.Column="1" Grid.Column="1"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Content="{core:Localize Dialog.ProjectOptions.Build.FileAlignment}"></Label> Content="{core:Localize Dialog.ProjectOptions.Build.FileAlignment}"></Label>
<!-- ????? -->
<ComboBox <ComboBox
x:Name="fileAlignmentComboBox" x:Name="fileAlignmentComboBox"
Grid.Row="3" Grid.Row="3"
Grid.Column="2" Grid.Column="2"
ItemsSource="{Binding Path=DataContext.FileAlign}" ItemsSource="{Binding Path=DataContext.FileAlign}"
SelectedValue="{Binding Path=SelectedFileAlign}" SelectedValue="{Binding Path=FileAlignment.Value}"
DisplayMemberPath="DisplayValue" DisplayMemberPath="DisplayValue"
SelectedValuePath="Key" SelectedValuePath="Key"
SelectedIndex="3"></ComboBox> SelectedIndex="3"></ComboBox>

37
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptionsXaml.xaml.cs

@ -48,10 +48,6 @@ namespace CSharpBinding.OptionPanels
public BuildOptionsXaml() public BuildOptionsXaml()
{ {
InitializeComponent(); InitializeComponent();
}
private void Initialize()
{
this.serializationInfo = new List<KeyItemPair>(); this.serializationInfo = new List<KeyItemPair>();
this.serializationInfo.Add (new KeyItemPair("Off",StringParser.Parse("${res:Dialog.ProjectOptions.Build.Off}"))); this.serializationInfo.Add (new KeyItemPair("Off",StringParser.Parse("${res:Dialog.ProjectOptions.Build.Off}")));
@ -64,7 +60,6 @@ namespace CSharpBinding.OptionPanels
this.targetCPU.Add(new KeyItemPair( "x86",StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.x86}"))); this.targetCPU.Add(new KeyItemPair( "x86",StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.x86}")));
this.targetCPU.Add(new KeyItemPair( "x64",StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.x64}"))); this.targetCPU.Add(new KeyItemPair( "x64",StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.x64}")));
this.targetCPU.Add(new KeyItemPair( "Itanium",StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.Itanium}"))); this.targetCPU.Add(new KeyItemPair( "Itanium",StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.Itanium}")));
this.TargetCPU = targetCPU; this.TargetCPU = targetCPU;
@ -74,17 +69,8 @@ namespace CSharpBinding.OptionPanels
fileAlignment.Add(new KeyItemPair("2048", "2048")); fileAlignment.Add(new KeyItemPair("2048", "2048"));
fileAlignment.Add(new KeyItemPair("4096", "4096")); fileAlignment.Add(new KeyItemPair("4096", "4096"));
fileAlignment.Add(new KeyItemPair("8192", "8192")); fileAlignment.Add(new KeyItemPair("8192", "8192"));
FileAlign = fileAlignment; FileAlign = fileAlignment;
this.UpdateProjectCommand = new RelayCommand(UpdateProjectExecute);
this.ChangeOutputPath = new RelayCommand(ChangeOutputPathExecute);
UpdateTargetFrameworkCombo();
XmlDocHelper();
this.BaseIntermediateOutputPathCommand = new RelayCommand(BaseIntermediateOutputPathExecute);
this.IntermediateOutputPathCommand = new RelayCommand(IntermediateOutputPathExecute);
this.warnLevel = new List<KeyItemPair>(); this.warnLevel = new List<KeyItemPair>();
this.warnLevel.Add(new KeyItemPair("0","0")); this.warnLevel.Add(new KeyItemPair("0","0"));
this.warnLevel.Add(new KeyItemPair("1","1")); this.warnLevel.Add(new KeyItemPair("1","1"));
@ -92,6 +78,16 @@ namespace CSharpBinding.OptionPanels
this.warnLevel.Add(new KeyItemPair("3","3")); this.warnLevel.Add(new KeyItemPair("3","3"));
this.warnLevel.Add(new KeyItemPair("4","4")); this.warnLevel.Add(new KeyItemPair("4","4"));
this.WarnLevel = warnLevel; this.WarnLevel = warnLevel;
}
private void Initialize()
{
this.UpdateProjectCommand = new RelayCommand(UpdateProjectExecute);
this.ChangeOutputPath = new RelayCommand(ChangeOutputPathExecute);
UpdateTargetFrameworkCombo();
XmlDocHelper();
this.BaseIntermediateOutputPathCommand = new RelayCommand(BaseIntermediateOutputPathExecute);
this.IntermediateOutputPathCommand = new RelayCommand(IntermediateOutputPathExecute);
SetTreatWarningAsErrorRadioButtons(); SetTreatWarningAsErrorRadioButtons();
base.RaisePropertyChanged(string.Empty); base.RaisePropertyChanged(string.Empty);
} }
@ -140,6 +136,16 @@ namespace CSharpBinding.OptionPanels
get {return GetProperty("RegisterForComInterop","",TextBoxEditMode.EditRawProperty ); } get {return GetProperty("RegisterForComInterop","",TextBoxEditMode.EditRawProperty ); }
} }
public ProjectProperty<string> GenerateSerializationAssemblies {
get {return GetProperty("GenerateSerializationAssemblies","",TextBoxEditMode.EditRawProperty ); }
}
public ProjectProperty<string> PlatformTarget {
get {return GetProperty("PlatformTarget","",TextBoxEditMode.EditRawProperty ); }
}
public ProjectProperty<string> FileAlignment { public ProjectProperty<string> FileAlignment {
get {return GetProperty("FileAlignment","",TextBoxEditMode.EditRawProperty ); } get {return GetProperty("FileAlignment","",TextBoxEditMode.EditRawProperty ); }
} }
@ -282,7 +288,7 @@ namespace CSharpBinding.OptionPanels
} }
#endregion #endregion
#region TargetCPU #region TargetCPU
@ -294,7 +300,6 @@ namespace CSharpBinding.OptionPanels
} }
#endregion #endregion
#region FileAlignment #region FileAlignment
public List<KeyItemPair> FileAlign { public List<KeyItemPair> FileAlign {

Loading…
Cancel
Save