Changeset 13244
- Timestamp:
- 11/18/15 12:30:56 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r13014 r13244 277 277 T item = itemsListView.SelectedItems[0].Tag as T; 278 278 if (item != null) { 279 Control c = this; 280 BreadcrumbViewHost bcvh; 281 282 do { 283 c = c.Parent; 284 bcvh = c as BreadcrumbViewHost; 285 } while ((bcvh == null || !bcvh.EnableBreadcrumbs) && c != null); 286 287 if (bcvh != null) { 288 bcvh.AddBreadcrumbs(bcvh.Content); 289 bcvh.AddBreadcrumbs(item); 290 bcvh.Content = item; 291 bcvh.ReadOnly = ReadOnly; 292 bcvh.Locked = Locked; 293 } else { 294 IContentView view = MainFormManager.MainForm.ShowContent(item); 295 if (view != null) { 296 view.ReadOnly = ReadOnly; 297 view.Locked = Locked; 298 } 279 IContentView view = MainFormManager.MainForm.ShowContent(item); 280 if (view != null) { 281 view.ReadOnly = ReadOnly; 282 view.Locked = Locked; 299 283 } 300 284 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterCollectionView.cs
r13014 r13244 27 27 using HeuristicLab.Collections; 28 28 using HeuristicLab.MainForm; 29 using HeuristicLab.MainForm.WindowsForms;30 29 31 30 namespace HeuristicLab.Core.Views { … … 155 154 IParameter item = itemsListView.SelectedItems[0].Tag as IParameter; 156 155 if (item != null) { 157 Control c = this; 158 BreadcrumbViewHost bcvh; 159 160 do { 161 c = c.Parent; 162 bcvh = c as BreadcrumbViewHost; 163 } while ((bcvh == null || !bcvh.EnableBreadcrumbs) && c != null); 164 165 if (bcvh != null) { 166 bcvh.AddBreadcrumbs(bcvh.Content); 167 bcvh.AddBreadcrumbs(item); 168 bcvh.Content = item; 169 bcvh.ReadOnly = ReadOnly || (item.Hidden && !AllowEditingOfHiddenParameters); 170 bcvh.Locked = Locked; 171 } else { 172 IContentView view = MainFormManager.MainForm.ShowContent(item); 173 if (view != null) { 174 view.ReadOnly = ReadOnly || (item.Hidden && !AllowEditingOfHiddenParameters); 175 view.Locked = Locked; 176 } 156 IContentView view = MainFormManager.MainForm.ShowContent(item); 157 if (view != null) { 158 view.ReadOnly = ReadOnly || (item.Hidden && !AllowEditingOfHiddenParameters); 159 view.Locked = Locked; 177 160 } 178 161 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterizedNamedItemView.Designer.cs
r13014 r13244 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.parameterCollectionView = new HeuristicLab.Core.Views. BreadcrumbViewHost();47 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 48 48 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 49 49 this.SuspendLayout(); … … 72 72 this.parameterCollectionView.Size = new System.Drawing.Size(490, 327); 73 73 this.parameterCollectionView.TabIndex = 3; 74 this.parameterCollectionView.ViewsLabelVisible = false;75 74 // 76 75 // ParameterizedNamedItemView … … 93 92 #endregion 94 93 95 protected HeuristicLab.Core.Views.BreadcrumbViewHostparameterCollectionView;94 protected ParameterCollectionView parameterCollectionView; 96 95 97 96 } -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs
r13014 r13244 141 141 if (shapeInfo != null) { 142 142 IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo); 143 AlgorithmOperator algOp = op as AlgorithmOperator;143 IOperatorGraphOperator graphOp = op as IOperatorGraphOperator; 144 144 145 145 Control c = this; … … 151 151 } while ((vh == null || !vh.EnableBreadcrumbs) && c != null); 152 152 153 if ( algOp != null && vh != null) {153 if (graphOp != null && vh != null) { 154 154 vh.AddBreadcrumbs(vh.Content); 155 vh.AddBreadcrumb( algOp.Name, algOp.OperatorGraph);156 vh.Content = algOp.OperatorGraph;155 vh.AddBreadcrumb(graphOp.Name, graphOp.OperatorGraph); 156 vh.Content = graphOp.OperatorGraph; 157 157 vh.ReadOnly = ReadOnly; 158 158 vh.Locked = Locked; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.Designer.cs
r13014 r13244 41 41 this.newProblemButton = new System.Windows.Forms.Button(); 42 42 this.parametersTabPage = new System.Windows.Forms.TabPage(); 43 this.parameterCollectionView = new HeuristicLab.Core.Views. BreadcrumbViewHost();43 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 44 44 this.resultsTabPage = new System.Windows.Forms.TabPage(); 45 45 this.resultsView = new HeuristicLab.Optimization.Views.ResultCollectionView(); … … 179 179 // parameterCollectionView 180 180 // 181 this.parameterCollectionView.AllowEditingOfHiddenParameters = true; 181 182 this.parameterCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 182 183 | System.Windows.Forms.AnchorStyles.Left) … … 184 185 this.parameterCollectionView.Caption = "ParameterCollection View"; 185 186 this.parameterCollectionView.Content = null; 186 this.parameterCollectionView.EnableBreadcrumbs = true;187 187 this.parameterCollectionView.Location = new System.Drawing.Point(6, 6); 188 188 this.parameterCollectionView.Name = "parameterCollectionView"; … … 190 190 this.parameterCollectionView.Size = new System.Drawing.Size(659, 388); 191 191 this.parameterCollectionView.TabIndex = 0; 192 this.parameterCollectionView.ViewsLabelVisible = false;193 192 // 194 193 // resultsTabPage … … 298 297 protected System.Windows.Forms.TabPage parametersTabPage; 299 298 protected System.Windows.Forms.TabPage problemTabPage; 300 protected HeuristicLab.Core.Views. BreadcrumbViewHostparameterCollectionView;299 protected HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView; 301 300 protected HeuristicLab.MainForm.WindowsForms.ViewHost problemViewHost; 302 301 protected System.Windows.Forms.Button newProblemButton; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r13014 r13244 88 88 } else { 89 89 parameterCollectionView.Content = Content.Parameters; 90 var view = parameterCollectionView.ActiveView as ParameterCollectionView;91 if (view != null) view.AllowEditingOfHiddenParameters = true;92 90 problemViewHost.ViewType = null; 93 91 problemViewHost.Content = Content.Problem; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ProblemView.Designer.cs
r13014 r13244 58 58 // parameterCollectionView 59 59 // 60 this.parameterCollectionView.EnableBreadcrumbs = true;61 60 this.parameterCollectionView.Location = new System.Drawing.Point(6, 27); 62 61 this.parameterCollectionView.Size = new System.Drawing.Size(501, 303);
Note: See TracChangeset
for help on using the changeset viewer.