Lines Matching refs:BaseTool
34 public class ToolManager : IEnumerable<BaseTool>
39 private List<BaseTool> Tools;
40 private Dictionary<Gdk.Key, List<BaseTool>> groupedTools;
49 Tools = new List<BaseTool> (); in ToolManager()
50 groupedTools = new Dictionary<Gdk.Key, List<BaseTool>>(); in ToolManager()
54 public void AddTool (BaseTool tool) in AddTool()
68 groupedTools.Add(tool.ShortcutKey, new List<BaseTool>()); in AddTool()
75 foreach (BaseTool tool in Tools) { in RemoveInstanceOfTool()
101 BaseTool t = FindTool (tb.Label); in HandlePbToolItemClicked()
113 private BaseTool FindTool (string name) in FindTool()
117 foreach (BaseTool tool in Tools) { in FindTool()
126 public BaseTool CurrentTool {
137 public BaseTool PreviousTool {
147 public void SetCurrentTool(BaseTool tool) in SetCurrentTool()
174 BaseTool t = FindTool (tool); in SetCurrentTool()
186 BaseTool tool = FindNextTool (shortcut); in SetCurrentTool()
192 private BaseTool FindNextTool (Gdk.Key shortcut) in FindNextTool()
219 private void OnToolAdded (BaseTool tool) in OnToolAdded()
225 private void OnToolRemoved (BaseTool tool) in OnToolRemoved()
231 #region IEnumerable<BaseTool> implementation
232 public IEnumerator<BaseTool> GetEnumerator () in GetEnumerator()
245 class ToolSorter : Comparer<BaseTool>
247 public override int Compare (BaseTool x, BaseTool y) in Compare()
256 public class DummyTool : BaseTool