Browse Source

Adjust WebProjectOptionsPanel in Project-Debug Options

pull/23/head
PeterForstmeier 14 years ago
parent
commit
bb4be154ad
  1. 20
      src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/DebugOptions.cs
  2. 18
      src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/WebProjectOptions/WebProjectOptionsPanel.xaml

20
src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/DebugOptions.cs

@ -7,6 +7,7 @@ using System.Windows.Forms;
using System.Windows.Forms.Integration; using System.Windows.Forms.Integration;
using System.Windows.Media; using System.Windows.Media;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Project; using ICSharpCode.SharpDevelop.Project;
using RadioBinding = System.Collections.Generic.KeyValuePair<ICSharpCode.SharpDevelop.Project.StartAction, System.Windows.Forms.RadioButton>; using RadioBinding = System.Collections.Generic.KeyValuePair<ICSharpCode.SharpDevelop.Project.StartAction, System.Windows.Forms.RadioButton>;
@ -59,14 +60,21 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
if (ProjectService.CurrentProject is CompilableProject) { if (ProjectService.CurrentProject is CompilableProject) {
bool isWebProject = ((CompilableProject)ProjectService.CurrentProject).IsWebProject; bool isWebProject = ((CompilableProject)ProjectService.CurrentProject).IsWebProject;
if (isWebProject) { if (isWebProject) {
GroupBox winFormsGroupBox = new GroupBox();
winFormsGroupBox.Text = ResourceService.GetString("ICSharpCode.WepProjectOptionsPanel.Server");
winFormsGroupBox.Location = new System.Drawing.Point(8,240);
winFormsGroupBox.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
winFormsGroupBox.Size = new System.Drawing.Size(460,200);
Controls.Add(winFormsGroupBox);
ElementHost host = new ElementHost(); ElementHost host = new ElementHost();
host.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; host.Top = 30;
host.Height = 175; host.Left = 10;
host.Width = 550; host.AutoSize = true;
host.Top = 240;
host.Left = 8;
host.Child = new WebProjectOptionsPanel(this); host.Child = new WebProjectOptionsPanel(this);
Controls.Add(host); winFormsGroupBox.Controls.Add(host);
} }
} }
} }

18
src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/WebProjectOptions/WebProjectOptionsPanel.xaml

@ -1,9 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<UserControl <UserControl
x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.WebProjectOptionsPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.WebProjectOptionsPanel"
> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
<GroupBox Margin="0, 0, 85, 0" xmlns:core="http://icsharpcode.net/sharpdevelop/core"
Header="{core:Localize ICSharpCode.WepProjectOptionsPanel.Server}"> xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets"
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="Auto" Height="Auto">
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> <widgets:StackPanelWithSpacing SpaceBetweenItems="3">
<!--IIS Express--> <!--IIS Express-->
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> <widgets:StackPanelWithSpacing SpaceBetweenItems="3">
@ -21,7 +24,7 @@
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.Port}"/> <TextBlock Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.Port}" Margin="0,0,5,0"/>
<TextBox Grid.Column="1" x:Name="PortTextBox" <TextBox Grid.Column="1" x:Name="PortTextBox"
PreviewTextInput="PortTextBox_PreviewTextInput" Text="8080" PreviewTextInput="PortTextBox_PreviewTextInput" Text="8080"
KeyUp="PortTextBox_KeyUp" /> KeyUp="PortTextBox_KeyUp" />
@ -44,7 +47,7 @@
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock <TextBlock
VerticalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0"
Grid.Row="1" Grid.Row="1"
TextWrapping="Wrap" TextWrapping="Wrap"
Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.ProjectUrl}" /> Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.ProjectUrl}" />
@ -66,16 +69,17 @@
<widgets:UniformGridWithSpacing Columns="2" SpaceBetweenColumns="10"> <widgets:UniformGridWithSpacing Columns="2" SpaceBetweenColumns="10">
<Button <Button
IsEnabled="False" IsEnabled="False"
Margin="0,2,0,2"
Style="{x:Static core:GlobalStyles.ButtonStyle}" Style="{x:Static core:GlobalStyles.ButtonStyle}"
Name="CreateVirtualDirectoryButton" Name="CreateVirtualDirectoryButton"
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.CreateVirtualDir}" Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.CreateVirtualDir}"
Click="CreateVirtualDirectory_Click" /> Click="CreateVirtualDirectory_Click" />
<Button <Button
Margin="0,2,2,2"
Style="{x:Static core:GlobalStyles.ButtonStyle}" Style="{x:Static core:GlobalStyles.ButtonStyle}"
Name="ClearWebServerButton" Name="ClearWebServerButton"
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.DisableWebServerButton}" Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.DisableWebServerButton}"
Click="ClearWebServerButton_Click" /> Click="ClearWebServerButton_Click" />
</widgets:UniformGridWithSpacing> </widgets:UniformGridWithSpacing>
</widgets:StackPanelWithSpacing> </widgets:StackPanelWithSpacing>
</GroupBox>
</UserControl> </UserControl>
Loading…
Cancel
Save