Changeset 8353
- Timestamp:
- 07/29/12 21:51:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/CustomTools/CustomPanTool.cs
r8000 r8353 32 32 33 33 public CustomPanTool() : base(ToolName) { } 34 35 34 public CustomPanTool(string toolName) : base(toolName) { } 36 35 … … 52 51 IDiagramControl control = Controller.ParentControl; 53 52 Point origin = Controller.View.Origin; 54 55 53 Point offset = new Point(previousMouseLocation.X - currentLocation.X, previousMouseLocation.Y - currentLocation.Y); 56 57 54 origin.Offset(offset); 58 55 59 56 if (origin.X < 0) origin.X = 0; 60 61 62 57 if (origin.Y < 0) origin.Y = 0; 63 58 … … 68 63 } 69 64 70 public void MouseUp(MouseEventArgs e) { 71 //if (IsActive && !IsSuspended) this.previousMouseLocation = Point.Empty; 72 } 65 public void MouseUp(MouseEventArgs e) { } 73 66 #endregion 74 67 … … 77 70 if (e.KeyCode == Keys.Escape) 78 71 DeactivateTool(); 79 else if (e.KeyCode == Keys.Space)80 ActivateTool();81 72 } 82 73 83 public void KeyUp(KeyEventArgs e) { 84 if (e.KeyCode == Keys.Space) 85 DeactivateTool(); 86 } 74 public void KeyUp(KeyEventArgs e) { } 87 75 88 76 public void KeyPress(KeyPressEventArgs e) { }
Note: See TracChangeset
for help on using the changeset viewer.