Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/09/11 11:01:08 (13 years ago)
Author:
mkommend
Message:

#1479: Updated grammar editor branch.

Location:
branches/GP.Grammar.Editor/HeuristicLab.Optimization.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs

    r6618 r6647  
    576576    private void treeView_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) {
    577577      if (rightClickOccured) return;
    578       if (e.X < e.Node.Bounds.Left || e.X > e.Node.Bounds.Right) return;
     578      if (e.X < e.Node.Bounds.Left - treeView.ImageList.Images[e.Node.ImageIndex].Width || e.X > e.Node.Bounds.Right) return;
    579579      e.Node.Toggle();
    580580      IContent optimizer = (IContent)e.Node.Tag;
     
    582582    }
    583583    private void treeview_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) {
    584       if (e.X < e.Node.Bounds.Left || e.X > e.Node.Bounds.Right) return;
     584      if (e.X < e.Node.Bounds.Left - treeView.ImageList.Images[e.Node.ImageIndex].Width || e.X > e.Node.Bounds.Right) return;
    585585      treeView.SelectedNode = e.Node;
    586586      detailsViewHost.Content = (IContent)e.Node.Tag;
     
    593593      Point coordinates = new Point(e.X, e.Y);
    594594      TreeNode node = treeView.GetNodeAt(coordinates);
    595       if (node == null || coordinates.X < node.Bounds.Left || coordinates.X > node.Bounds.Right) {
     595      if (node == null || coordinates.X < node.Bounds.Left - treeView.ImageList.Images[node.ImageIndex].Width || coordinates.X > node.Bounds.Right) {
    596596        treeView.SelectedNode = null;
    597597        detailsViewHost.Content = null;
     
    723723            algorithm.Problem = problem;
    724724          }
    725         }
    726         catch (Exception ex) {
     725        } catch (Exception ex) {
    727726          ErrorHandling.ShowErrorDialog(this, ex);
    728727        }
  • branches/GP.Grammar.Editor/HeuristicLab.Optimization.Views/3.3/RunCollectionBoxPlotView.cs

    r5445 r6647  
    5353      chart.ChartAreas.Add(BoxPlotChartAreaName);
    5454      chart.CustomizeAllChartAreas();
     55      chart.ChartAreas[BoxPlotChartAreaName].Axes.ToList().ForEach(x => { x.ScaleView.Zoomable = true; x.ScaleView.MinSize = 0; });
     56      chart.ChartAreas[BoxPlotChartAreaName].CursorX.Interval = 0.5;
     57      chart.ChartAreas[BoxPlotChartAreaName].CursorY.Interval = 1e-5;
    5558    }
    5659
Note: See TracChangeset for help on using the changeset viewer.