Browse Source

add column auto-width property to debugger pads

pull/59/merge
Siegfried Pammer 12 years ago
parent
commit
704811c7cd
  1. 1
      src/AddIns/Debugger/Debugger.AddIn/Pads/BreakPointsPad.cs
  2. 2
      src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.cs
  3. 10
      src/AddIns/Debugger/Debugger.AddIn/Pads/CommonResources.xaml
  4. 2
      src/AddIns/Debugger/Debugger.AddIn/Pads/LoadedModulesPad.cs
  5. 11
      src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs
  6. 4
      src/AddIns/Debugger/Debugger.AddIn/Pads/ThreadsPad.cs

1
src/AddIns/Debugger/Debugger.AddIn/Pads/BreakPointsPad.cs

@ -22,6 +22,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -22,6 +22,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
grid.Children.Add(toolbar);
this.control.listView.View = (GridView)res["breakpointsGridView"];
this.control.listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "35;50%;50%");
}
protected override bool ShowBookmarkInThisPad(SDBookmark mark)

2
src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.cs

@ -11,6 +11,7 @@ using System.Windows.Input; @@ -11,6 +11,7 @@ using System.Windows.Input;
using System.Windows.Media;
using Debugger;
using ICSharpCode.Core.Presentation;
using Debugger.AddIn.TreeModel;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Services;
@ -34,6 +35,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -34,6 +35,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
listView = new ListView();
listView.View = (GridView)res["callstackGridView"];
listView.MouseDoubleClick += listView_MouseDoubleClick;
listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "100%");
listView.ContextMenu = CreateMenu();

10
src/AddIns/Debugger/Debugger.AddIn/Pads/CommonResources.xaml

@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
</Style>
<!-- Local Variables Pad and Watch Pad -->
<tv:SharpGridView x:Key="variableGridView">
<tv:SharpGridView x:Key="variableGridView" AllowsColumnReorder="False">
<GridView.Columns>
<GridViewColumn Header="{core:Localize MainWindow.Windows.Debug.LocalVariables.NameColumn}" Width="200">
<GridViewColumn.CellTemplate>
@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
</tv:SharpGridView>
<!-- Callstack -->
<GridView x:Key="callstackGridView">
<GridView x:Key="callstackGridView" AllowsColumnReorder="False">
<GridViewColumn Header="{core:Localize Global.Name}" Width="400">
<GridViewColumn.CellTemplate>
<DataTemplate>
@ -77,7 +77,7 @@ @@ -77,7 +77,7 @@
</GridView>
<!-- Breakpoints Pad -->
<GridView x:Key="breakpointsGridView">
<GridView x:Key="breakpointsGridView" AllowsColumnReorder="False">
<GridViewColumn Header="" Width="Auto">
<GridViewColumn.CellTemplate>
<DataTemplate>
@ -105,7 +105,7 @@ @@ -105,7 +105,7 @@
</GridView>
<!-- Loaded Modules -->
<GridView x:Key="loadedModulesGridView">
<GridView x:Key="loadedModulesGridView" AllowsColumnReorder="False">
<GridViewColumn Header="{core:Localize Global.Name}" Width="250" DisplayMemberBinding="{Binding Name}"/>
<GridViewColumn Header="{core:Localize MainWindow.Windows.Debug.Modules.AddressColumn}" Width="100" DisplayMemberBinding="{Binding Address}"/>
<GridViewColumn Header="{core:Localize Global.Path}" Width="250" DisplayMemberBinding="{Binding Path}"/>
@ -114,7 +114,7 @@ @@ -114,7 +114,7 @@
</GridView>
<!-- Threads -->
<GridView x:Key="theadsGridView">
<GridView x:Key="threadsGridView" AllowsColumnReorder="False">
<GridViewColumn Header="{core:Localize Global.ID}" Width="100" DisplayMemberBinding="{Binding ID}"/>
<GridViewColumn Header="{core:Localize Global.Name}" Width="300" DisplayMemberBinding="{Binding Name}"/>
<GridViewColumn Header="{core:Localize MainWindow.Windows.Debug.Threads.Priority}" Width="120" DisplayMemberBinding="{Binding Priority}"/>

2
src/AddIns/Debugger/Debugger.AddIn/Pads/LoadedModulesPad.cs

@ -10,6 +10,7 @@ using System.Windows.Controls; @@ -10,6 +10,7 @@ using System.Windows.Controls;
using System.Windows.Data;
using Debugger;
using ICSharpCode.Core.Presentation;
using Debugger.AddIn.Pads.Controls;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Services;
@ -32,6 +33,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -32,6 +33,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
listView = new ListView();
listView.View = (GridView)res["loadedModulesGridView"];
listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;70;50%;35;120");
WindowsDebugger.RefreshingPads += RefreshPad;
RefreshPad();

11
src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs

@ -32,11 +32,12 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -32,11 +32,12 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
var res = new CommonResources();
res.InitializeComponent();
this.tree = new SharpTreeView();
this.tree.Root = new SharpTreeNode();
this.tree.ShowRoot = false;
this.tree.View = (GridView)res["variableGridView"];
this.tree.ItemContainerStyle = (Style)res["itemContainerStyle"];
tree = new SharpTreeView();
tree.Root = new SharpTreeNode();
tree.ShowRoot = false;
tree.View = (GridView)res["variableGridView"];
tree.ItemContainerStyle = (Style)res["itemContainerStyle"];
tree.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;25%;25%");
WindowsDebugger.RefreshingPads += RefreshPad;
RefreshPad();

4
src/AddIns/Debugger/Debugger.AddIn/Pads/ThreadsPad.cs

@ -10,6 +10,7 @@ using System.Windows.Input; @@ -10,6 +10,7 @@ using System.Windows.Input;
using Debugger;
using ICSharpCode.Core;
using ICSharpCode.Core.Presentation;
using ICSharpCode.SharpDevelop.Services;
using ICSharpCode.SharpDevelop.Workbench;
using Thread = Debugger.Thread;
@ -33,9 +34,10 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -33,9 +34,10 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
contextMenu.Opened += FillContextMenuStrip;
listView = new ListView();
listView.View = (GridView)res["theadsGridView"];
listView.View = (GridView)res["threadsGridView"];
listView.ContextMenu = contextMenu;
listView.MouseDoubleClick += listView_MouseDoubleClick;
listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "70;100%;75;75");
WindowsDebugger.RefreshingPads += RefreshPad;
RefreshPad();

Loading…
Cancel
Save