Changeset 9363 for branches/OaaS/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs
- Timestamp:
- 04/16/13 13:13:41 (11 years ago)
- Location:
- branches/OaaS
- Files:
-
- 3 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.Operators.Views.GraphVisualization.Views/3.3
- Property svn:ignore
-
old new 4 4 HeuristicLab.Operators.Views.GraphVisualization.Views-3.3.csproj.user 5 5 *.vs10x 6 *.user
-
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs
r8000 r9363 154 154 155 155 void ParentControl_MouseDown(object sender, MouseEventArgs e) { 156 lastActiveTool = this.graphVisualizationInfoView.Controller.ActiveTool;157 156 if (e.Button == MouseButtons.Middle) { 158 if (!(lastActiveTool is CustomPanTool)) this.graphVisualizationInfoView.Controller.ActivateTool(CustomPanTool.ToolName); 157 lastActiveTool = graphVisualizationInfoView.Controller.ActiveTool; 158 graphVisualizationInfoView.Controller.ActivateTool(CustomPanTool.ToolName); 159 159 } 160 160 } … … 162 162 void ParentControl_MouseUp(object sender, MouseEventArgs e) { 163 163 if (e.Button == MouseButtons.Middle) { 164 if (lastActiveTool != null) this.graphVisualizationInfoView.Controller.ActivateTool(lastActiveTool.Name); 165 else this.graphVisualizationInfoView.Controller.DeactivateAllTools(); 164 var activeTool = graphVisualizationInfoView.Controller.ActiveTool; 165 graphVisualizationInfoView.Controller.DeactivateTool(activeTool); 166 if (lastActiveTool != null && !(lastActiveTool is ZoomToolBase)) 167 graphVisualizationInfoView.Controller.ActivateTool(lastActiveTool.Name); 166 168 } 167 169 }
Note: See TracChangeset
for help on using the changeset viewer.