Changeset 8942
- Timestamp:
- 11/26/12 13:19:00 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views
-
Property
svn:mergeinfo
set to
/branches/HeuristicLab.TreeSimplifier/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/Properties
- Property svn:ignore
--- +++
- Property svn:ignore
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.Designer.cs
r7967 r8942 21 21 22 22 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 23 p artial class SymbolicExpressionTreeChart {23 public partial class SymbolicExpressionTreeChart { 24 24 /// <summary> 25 25 /// Required designer variable. … … 70 70 // 71 71 this.saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|EMF (*.emf)|*.emf"; 72 this.saveFileDialog.FilterIndex = 1; 72 this.saveFileDialog.FilterIndex = 1; 73 73 // SymbolicExpressionTreeChart 74 74 // … … 89 89 #endregion 90 90 91 pr ivateSystem.Windows.Forms.ToolTip toolTip;92 pr ivateSystem.Windows.Forms.ContextMenuStrip contextMenuStrip;93 pr ivateSystem.Windows.Forms.ToolStripMenuItem saveImageToolStripMenuItem;94 pr ivateSystem.Windows.Forms.SaveFileDialog saveFileDialog;91 protected System.Windows.Forms.ToolTip toolTip; 92 protected System.Windows.Forms.ContextMenuStrip contextMenuStrip; 93 protected System.Windows.Forms.ToolStripMenuItem saveImageToolStripMenuItem; 94 protected System.Windows.Forms.SaveFileDialog saveFileDialog; 95 95 } 96 96 } -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs
r7259 r8942 27 27 28 28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 29 public sealedpartial class SymbolicExpressionTreeChart : UserControl {29 public partial class SymbolicExpressionTreeChart : UserControl { 30 30 private Image image; 31 31 private StringFormat stringFormat; … … 36 36 InitializeComponent(); 37 37 this.image = new Bitmap(Width, Height); 38 this.stringFormat = new StringFormat(); 39 this.stringFormat.Alignment = StringAlignment.Center; 40 this.stringFormat.LineAlignment = StringAlignment.Center; 38 this.stringFormat = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }; 41 39 this.spacing = 5; 42 40 this.lineColor = Color.Black; … … 157 155 #region events 158 156 public event MouseEventHandler SymbolicExpressionTreeNodeClicked; 159 pr ivatevoid OnSymbolicExpressionTreeNodeClicked(object sender, MouseEventArgs e) {157 protected virtual void OnSymbolicExpressionTreeNodeClicked(object sender, MouseEventArgs e) { 160 158 var clicked = SymbolicExpressionTreeNodeClicked; 161 159 if (clicked != null) … … 165 163 private void SymbolicExpressionTreeChart_MouseClick(object sender, MouseEventArgs e) { 166 164 VisualSymbolicExpressionTreeNode visualTreeNode = FindVisualSymbolicExpressionTreeNodeAt(e.X, e.Y); 167 if (visualTreeNode != null) 165 if (visualTreeNode != null) { 168 166 OnSymbolicExpressionTreeNodeClicked(visualTreeNode, e); 167 } 169 168 } 170 169 171 170 public event MouseEventHandler SymbolicExpressionTreeNodeDoubleClicked; 172 pr ivatevoid OnSymbolicExpressionTreeNodeDoubleClicked(object sender, MouseEventArgs e) {171 protected virtual void OnSymbolicExpressionTreeNodeDoubleClicked(object sender, MouseEventArgs e) { 173 172 var doubleClicked = SymbolicExpressionTreeNodeDoubleClicked; 174 173 if (doubleClicked != null) … … 183 182 184 183 public event ItemDragEventHandler SymbolicExpressionTreeNodeDrag; 185 pr ivatevoid OnSymbolicExpressionTreeNodeDragDrag(object sender, ItemDragEventArgs e) {184 protected virtual void OnSymbolicExpressionTreeNodeDragDrag(object sender, ItemDragEventArgs e) { 186 185 var dragged = SymbolicExpressionTreeNodeDrag; 187 186 if (dragged != null) … … 234 233 /// 235 234 /// </summary> 236 /// <param name="functionTree"> function tree to draw</param>235 /// <param name="functionTree"> function tree to draw</param> 237 236 /// <param name="graphics">graphics object to draw on</param> 238 237 /// <param name="x">x coordinate of drawing area</param>
Note: See TracChangeset
for help on using the changeset viewer.