Browse Source
Made everything in DebuggerTooltipControl not Focusable - if grid cell or Visualizer picker was focused, it blocked shortcuts (like F10 for stepping). git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4652 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
17 changed files with 259 additions and 24 deletions
@ -0,0 +1,34 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Martin Koníček" email="martin.konicek@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
using Debugger.AddIn.TreeModel; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using ICSharpCode.SharpDevelop.Debugging; |
||||||
|
|
||||||
|
namespace Debugger.AddIn.Visualizers |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Visualizer command for <see cref="ExpressionNode"/>
|
||||||
|
/// </summary>
|
||||||
|
// probably we should not make visualizers available only to ExpressionNodes and descendants,
|
||||||
|
// the visualizer command should be available for any TreeNode
|
||||||
|
// and the VisualizerCommand itself should decide what to do with passed instance
|
||||||
|
public abstract class ExpressionNodeVisualizerCommand : IVisualizerCommand |
||||||
|
{ |
||||||
|
public ExpressionNode Node { get; private set; } |
||||||
|
|
||||||
|
public ExpressionNodeVisualizerCommand(ExpressionNode expressionNode) |
||||||
|
{ |
||||||
|
this.Node = expressionNode; |
||||||
|
} |
||||||
|
|
||||||
|
public abstract bool CanExecute { get; } |
||||||
|
|
||||||
|
public abstract void Execute(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,38 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Martin Koníček" email="martin.konicek@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
using Debugger.AddIn.TreeModel; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
|
||||||
|
namespace Debugger.AddIn.Visualizers |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Executes grid visualizer for a node.
|
||||||
|
/// </summary>
|
||||||
|
public class GridVisualizerCommand : ExpressionNodeVisualizerCommand |
||||||
|
{ |
||||||
|
public GridVisualizerCommand(ExpressionNode expressionNode) |
||||||
|
:base(expressionNode) |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public override bool CanExecute { |
||||||
|
get { return true; } |
||||||
|
} |
||||||
|
|
||||||
|
public override string ToString() |
||||||
|
{ |
||||||
|
return "Collection visualizer"; |
||||||
|
} |
||||||
|
|
||||||
|
public override void Execute() |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,38 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Martin Koníček" email="martin.konicek@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
using Debugger.AddIn.TreeModel; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
|
||||||
|
namespace Debugger.AddIn.Visualizers |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Executes object graph visualizer for a node.
|
||||||
|
/// </summary>
|
||||||
|
public class ObjectGraphVisualizerCommand : ExpressionNodeVisualizerCommand |
||||||
|
{ |
||||||
|
public ObjectGraphVisualizerCommand(ExpressionNode expressionNode) |
||||||
|
:base(expressionNode) |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public override bool CanExecute { |
||||||
|
get { return true; } |
||||||
|
} |
||||||
|
|
||||||
|
public override string ToString() |
||||||
|
{ |
||||||
|
return "Object graph visualizer"; |
||||||
|
} |
||||||
|
|
||||||
|
public override void Execute() |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,28 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Martin Koníček" email="martin.konicek@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
|
||||||
|
namespace ICSharpCode.SharpDevelop.Debugging |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Command called from <see cref="VisualizerPicker"/>.
|
||||||
|
/// </summary>
|
||||||
|
public interface IVisualizerCommand |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Can this command execute?
|
||||||
|
/// </summary>
|
||||||
|
bool CanExecute { get; } |
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Executes this visualizer command.
|
||||||
|
/// </summary>
|
||||||
|
void Execute(); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue