Changeset 9363 for branches/OaaS/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/CustomTools
- Timestamp:
- 04/16/13 13:13:41 (12 years ago)
- Location:
- branches/OaaS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/CustomTools/CustomPanTool.cs
r8000 r9363 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.