Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
DebugOptions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterForstmeier committed Nov 30, 2011
1 parent fc47f09 commit 2ea859e
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
Expand Up @@ -243,6 +243,10 @@
<DependentUpon>SelectCulturePanel.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\DebugOptions.xaml.cs">
<DependentUpon>DebugOptions.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\ProjectOptionPanel.cs" />
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\StorageLocationPicker.cs" />
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions\WebProjectOptions.cs" />
Expand Down Expand Up @@ -691,7 +695,7 @@
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\Publish.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\DebugOptions.cs">
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\aaDebugOptions.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\BuildEvents.cs">
Expand Down Expand Up @@ -838,6 +842,7 @@
<ItemGroup>
<Page Include="Src\Bookmarks\Pad\Controls\ListViewPad.xaml" />
<Page Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\BuildEvents.xaml" />
<Page Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\DebugOptions.xaml" />
<Page Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\ProjectOptionPanel.xaml">
<DependentUpon>ProjectOptionPanel.cs</DependentUpon>
</Page>
Expand Down
Expand Up @@ -16,6 +16,7 @@ public BuildEvents()

public ProjectProperty<string> PreBuildEvent {
get { return GetProperty("PreBuildEvent", "", TextBoxEditMode.EditRawProperty); }

}

public ProjectProperty<string> PostBuildEvent {
Expand Down
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<optionpanels:ProjectOptionPanel
x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.DebugOptions"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:optionpanels="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels"
xmlns:local="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels">

<optionpanels:ProjectOptionPanel.Resources>
<local:StorageLocationConverter x:Key="converter"/>
</optionpanels:ProjectOptionPanel.Resources>

<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="130"></RowDefinition>
<RowDefinition Height="130"></RowDefinition>

</Grid.RowDefinitions>

<GroupBox Height="120"
Margin="0,15,0,0"
Header="Start Action"
VerticalAlignment="Top"
Grid.Column="0"
Grid.Row="0"
Grid.ColumnSpan="3"
HorizontalAlignment="Stretch">
<Grid ShowGridLines="True" Background="AliceBlue">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>

<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="150"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="40"></ColumnDefinition>
</Grid.ColumnDefinitions>


<optionpanels:StorageLocationPicker Grid.Row="1"
VerticalAlignment="Center">
<optionpanels:StorageLocationPicker.Location>
<MultiBinding Converter="{StaticResource converter}">
<Binding Path="StartProgram.Location"/>
<Binding Path="StartURL.Location"/>
</MultiBinding>
</optionpanels:StorageLocationPicker.Location>
</optionpanels:StorageLocationPicker>

<RadioButton Grid.Column="1" VerticalAlignment="Center" Margin="4,0,0,0" Content="Start Project"></RadioButton>

<RadioButton
Grid.Row="1" VerticalAlignment="Center" Grid.Column="1" Margin="4,0,0,0"
Content="Start external program:">
</RadioButton>

<RadioButton
Grid.Row="2" VerticalAlignment="Center" Grid.Column="1" Margin="4,0,0,0"
Content="Start browser in URL:">
</RadioButton>

<TextBox Grid.Row="1" Grid.Column="2" Margin="5"
IsEnabled="{Binding ElementName=startexternal, Path=IsChecked}"
Text="{Binding StartProgram.Value, UpdateSourceTrigger=PropertyChanged}">
</TextBox>

<Button Grid.Row="1" Grid.Column="3" Margin="5" Content="..."
IsEnabled="{Binding ElementName=startexternal, Path=IsChecked}"
Click="ExternalProgramButton_Click">
</Button>

<TextBox Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="5"
IsEnabled="{Binding ElementName=startUrl, Path=IsChecked}"
Text="{Binding StartURL.Value, UpdateSourceTrigger=PropertyChanged}" >
</TextBox>

</Grid>
</GroupBox>

<GroupBox Height="80"
Header="Start Options"
VerticalAlignment="Top"
Grid.Column="0"
Grid.Row="1"
Grid.ColumnSpan="3"
Margin="0,15,0,0"
HorizontalAlignment="Stretch">
<Grid ShowGridLines="True" Background="AliceBlue">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="150"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="40"></ColumnDefinition>
</Grid.ColumnDefinitions>


<optionpanels:StorageLocationPicker
Grid.Row="1" Grid.RowSpan="2" VerticalAlignment="Center">
<optionpanels:StorageLocationPicker.Location>
<MultiBinding Converter="{StaticResource converter}">
<Binding Path="StartArguments.Location"/>
<Binding Path="StartWorkingDirectory.Location"/>
</MultiBinding>
</optionpanels:StorageLocationPicker.Location>
</optionpanels:StorageLocationPicker>


<Label Content="Command line" Grid.Column="1" VerticalAlignment="Center" Margin="4,0,0,0" ></Label>
<Label Content="Working directory:" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="4,0,0,0"></Label>

<TextBox Grid.Column="2" Grid.ColumnSpan="2" Margin="5"
Text="{Binding StartArguments.Value, UpdateSourceTrigger=PropertyChanged}">
</TextBox>

<TextBox Grid.Row="1" Grid.Column="2" Margin="5"
Text="{Binding StartWorkingDirectory.Value, UpdateSourceTrigger=PropertyChanged}">
</TextBox>

<Button Grid.Row="1" Grid.Column="3" Margin="5" Content="..."></Button>

</Grid>
</GroupBox>
</Grid>
</optionpanels:ProjectOptionPanel>
Expand Up @@ -13,9 +13,9 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
{
public partial class WebProjectOptionsPanel : UserControl
{
private readonly DebugOptions parentPanel;
private readonly aaDebugOptions parentPanel;

public WebProjectOptionsPanel(DebugOptions parentPanel)
public WebProjectOptionsPanel(aaDebugOptions parentPanel)
{
InitializeComponent();

Expand Down
Expand Up @@ -13,7 +13,7 @@

namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
{
public class DebugOptions : AbstractXmlFormsProjectOptionPanel
public class aaDebugOptions : AbstractXmlFormsProjectOptionPanel
{
public override void LoadPanelContents()
{
Expand Down
4 changes: 4 additions & 0 deletions src/Main/Core/Project/ICSharpCode.Core.csproj
Expand Up @@ -48,6 +48,10 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<FileAlignment>4096</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<StartAction>Program</StartAction>
<StartProgram>cghkjfkhjh</StartProgram>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down

0 comments on commit 2ea859e

Please sign in to comment.