- Timestamp:
- 03/06/10 04:48:03 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r2932 r2949 162 162 T item = itemsListView.SelectedItems[0].Tag as T; 163 163 detailsGroupBox.Enabled = true; 164 viewHost.ViewType = null; 164 165 viewHost.Content = item; 165 166 } else { -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r2932 r2949 137 137 T item = (T)itemsListView.SelectedItems[0].Tag; 138 138 detailsGroupBox.Enabled = true; 139 viewHost.ViewType = null; 139 140 viewHost.Content = item; 140 141 } else { -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r2932 r2949 164 164 T item = (T)itemsListView.SelectedItems[0].Tag; 165 165 detailsGroupBox.Enabled = true; 166 viewHost.ViewType = null; 166 167 viewHost.Content = item; 167 168 } else { -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.Designer.cs
r2947 r2949 131 131 this.operatorTreeView.Size = new System.Drawing.Size(590, 183); 132 132 this.operatorTreeView.TabIndex = 0; 133 this.operatorTreeView.SelectedOperatorChanged += new System.EventHandler(this.operatorTreeView_SelectedOperatorChanged); 133 134 // 134 135 // OperatorGraphView -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs
r2947 r2949 110 110 } 111 111 112 #region Operator Tree View Events 113 protected virtual void operatorTreeView_SelectedOperatorChanged(object sender, EventArgs e) { 114 foreach (ListViewItem item in operatorsView.ItemsListView.Items) 115 item.Selected = item.Tag == operatorTreeView.SelectedOperator; 116 } 117 #endregion 118 112 119 #region Context Menu Events 113 120 protected virtual void operatorsView_Load(object sender, EventArgs e) { -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.Designer.cs
r2790 r2949 80 80 this.graphTreeView.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.graphTreeView_BeforeExpand); 81 81 this.graphTreeView.DragDrop += new System.Windows.Forms.DragEventHandler(this.graphTreeView_DragDrop); 82 this.graphTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.graphTreeView_AfterSelect); 82 83 this.graphTreeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.graphTreeView_MouseDown); 83 84 this.graphTreeView.DragEnter += new System.Windows.Forms.DragEventHandler(this.graphTreeView_DragEnterOver); -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r2917 r2949 49 49 } 50 50 51 private IOperator selectedOperator; 52 public IOperator SelectedOperator { 53 get { return selectedOperator; } 54 private set { 55 if (value != selectedOperator) { 56 selectedOperator = value; 57 OnSelectedOperatorChanged(); 58 } 59 } 60 } 61 51 62 /// <summary> 52 63 /// Initializes a new instance of <see cref="OperatorGraphView"/> with caption "Operator Graph". … … 90 101 } 91 102 103 public event EventHandler SelectedOperatorChanged; 104 private void OnSelectedOperatorChanged() { 105 if (SelectedOperatorChanged != null) 106 SelectedOperatorChanged(this, EventArgs.Empty); 107 } 108 92 109 #region TreeNode Management 93 110 private TreeNode CreateTreeNode(IValueParameter<IOperator> opParam) { … … 299 316 if (opParam != null) opParam.Value = null; 300 317 } 318 } 319 private void graphTreeView_AfterSelect(object sender, TreeViewEventArgs e) { 320 SelectedOperator = graphTreeView.SelectedNode == null ? null : GetOperatorTag(graphTreeView.SelectedNode); 301 321 } 302 322 private void graphContextMenuStrip_Opening(object sender, CancelEventArgs e) { -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r2948 r2949 97 97 clearValueButton.Enabled = Content.Value != null; 98 98 valueGroupBox.Enabled = true; 99 viewHost.ViewType = null; 99 100 viewHost.Content = Content.Value; 100 101 } … … 108 109 dataTypeTextBox.Enabled = Content.Value != null; 109 110 clearValueButton.Enabled = Content.Value != null; 111 viewHost.ViewType = null; 110 112 viewHost.Content = Content.Value; 111 113 } -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphView.cs
r2934 r2949 86 86 IOperatorShapeInfo shapeInfo = shape.Tag as IOperatorShapeInfo; 87 87 IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo); 88 this.detailsViewHost.ViewType = null; 88 89 this.detailsViewHost.Content = op; 89 90 return; … … 103 104 if (connectorName != "Predecessor") { 104 105 IParameter parameter = op.Parameters.Where(p => p.Name == connectorName).First(); 106 this.detailsViewHost.ViewType = null; 105 107 this.detailsViewHost.Content = parameter; 106 108 return; -
trunk/sources/HeuristicLab.Operators.Views/3.3/AlgorithmOperatorView.Designer.cs
r2917 r2949 136 136 this.breakpointCheckBox.UseVisualStyleBackColor = true; 137 137 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 138 this.toolTip.SetToolTip(this.breakpointCheckBox, "Check if an engine should stop execution each time after this operator has been processed."); 138 139 // 139 140 // breakpointLabel -
trunk/sources/HeuristicLab.Operators.Views/3.3/AlgorithmOperatorView.cs
r2917 r2949 82 82 breakpointCheckBox.Enabled = true; 83 83 parameterCollectionView.Content = ((IOperator)Content).Parameters; 84 operatorGraphViewHost.ViewType = null; 84 85 operatorGraphViewHost.Content = Content.OperatorGraph; 85 86 tabControl.Enabled = true; -
trunk/sources/HeuristicLab.Operators.Views/3.3/MultipleCallsOperatorView.Designer.cs
r2917 r2949 136 136 this.breakpointCheckBox.UseVisualStyleBackColor = true; 137 137 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 138 this.toolTip.SetToolTip(this.breakpointCheckBox, "Check if an engine should stop execution each time after this operator has been processed."); 138 139 // 139 140 // breakpointLabel -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.Designer.cs
r2917 r2949 79 79 this.breakpointCheckBox.UseVisualStyleBackColor = true; 80 80 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 81 this.toolTip.SetToolTip(this.breakpointCheckBox, "Check if an engine should stop execution each time after this operator has been processed."); 81 82 // 82 83 // OperatorView -
trunk/sources/HeuristicLab.Operators.Views/3.3/ValuesCollectorView.Designer.cs
r2917 r2949 136 136 this.breakpointCheckBox.UseVisualStyleBackColor = true; 137 137 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 138 this.toolTip.SetToolTip(this.breakpointCheckBox, "Check if an engine should stop execution each time after this operator has been processed."); 138 139 // 139 140 // breakpointLabel -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r2917 r2949 106 106 parameterCollectionView.Content = Content.Parameters; 107 107 saveProblemButton.Enabled = Content.Problem != null; 108 problemViewHost.ViewType = null; 108 109 problemViewHost.Content = Content.Problem; 109 110 resultsView.Content = Content.Results; … … 136 137 Invoke(new EventHandler(Content_ProblemChanged), sender, e); 137 138 else { 139 problemViewHost.ViewType = null; 138 140 problemViewHost.Content = Content.Problem; 139 141 saveProblemButton.Enabled = Content.Problem != null; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs
r2933 r2949 97 97 engineComboBox.SelectedIndex = engineTypes.IndexOf(Content.Engine.GetType()); 98 98 engineViewHost.Enabled = true; 99 engineViewHost.ViewType = null; 99 100 engineViewHost.Content = Content.Engine; 100 101 } … … 109 110 else 110 111 engineComboBox.SelectedIndex = engineTypes.IndexOf(Content.Engine.GetType()); 112 engineViewHost.ViewType = null; 111 113 engineViewHost.Content = Content.Engine; 112 114 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.cs
r2917 r2949 69 69 globalScopeView.Content = null; 70 70 } else { 71 operatorGraphViewHost.ViewType = null; 71 72 operatorGraphViewHost.Content = Content.OperatorGraph; 72 73 globalScopeView.Content = Content.GlobalScope; … … 77 78 if (InvokeRequired) 78 79 Invoke(new EventHandler(Content_OperatorGraphChanged), sender, e); 79 else 80 else { 81 operatorGraphViewHost.ViewType = null; 80 82 operatorGraphViewHost.Content = Content.OperatorGraph; 83 } 81 84 } 82 85 -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ConstrainedValueParameterView.cs
r2948 r2949 100 100 valueGroupBox.Enabled = true; 101 101 FillValueComboBox(); 102 viewHost.ViewType = null; 102 103 viewHost.Content = Content.Value; 103 104 } … … 129 130 else { 130 131 valueComboBox.SelectedIndex = valueComboBoxItems.IndexOf(Content.Value); 132 viewHost.ViewType = null; 131 133 viewHost.Content = Content.Value; 132 134 } -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r2948 r2949 100 100 clearValueButton.Enabled = Content.Value != null; 101 101 valueGroupBox.Enabled = true; 102 viewHost.ViewType = null; 102 103 viewHost.Content = Content.Value; 103 104 } … … 115 116 else { 116 117 clearValueButton.Enabled = Content.Value != null; 118 viewHost.ViewType = null; 117 119 viewHost.Content = Content.Value; 118 120 } -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r2948 r2949 97 97 clearValueButton.Enabled = Content.Value != null; 98 98 valueGroupBox.Enabled = true; 99 viewHost.ViewType = null; 99 100 viewHost.Content = Content.Value; 100 101 } … … 106 107 else { 107 108 clearValueButton.Enabled = Content.Value != null; 109 viewHost.ViewType = null; 108 110 viewHost.Content = Content.Value; 109 111 }
Note: See TracChangeset
for help on using the changeset viewer.