- Timestamp:
- 06/12/14 13:26:18 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views merged: 10545,10561,10564,10799,10956
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj
r9975 r11009 111 111 <ItemGroup> 112 112 <Compile Include="Exporters\SymbolicSolutionExcelExporter.cs" /> 113 <Compile Include="InteractiveSymbolicExpressionTreeChart.cs"> 114 <SubType>UserControl</SubType> 115 </Compile> 113 <Compile Include="InteractiveSymbolicExpressionTreeChart.cs" /> 116 114 <Compile Include="InteractiveSymbolicExpressionTreeChart.Designer.cs"> 117 115 <DependentUpon>InteractiveSymbolicExpressionTreeChart.cs</DependentUpon> 118 116 </Compile> 119 <Compile Include="MathSymbolicDataAnalysisModelView.cs"> 120 <SubType>UserControl</SubType> 121 </Compile> 117 <Compile Include="MathSymbolicDataAnalysisModelView.cs" /> 122 118 <Compile Include="MathSymbolicDataAnalysisModelView.designer.cs"> 123 119 <DependentUpon>MathSymbolicDataAnalysisModelView.cs</DependentUpon> 124 120 </Compile> 125 121 <Compile Include="Plugin.cs" /> 126 <Compile Include="TextualSymbolicDataAnalysisModelView.cs"> 127 <SubType>UserControl</SubType> 128 </Compile> 122 <Compile Include="TextualSymbolicDataAnalysisModelView.cs" /> 129 123 <Compile Include="TextualSymbolicDataAnalysisModelView.designer.cs"> 130 124 <DependentUpon>TextualSymbolicDataAnalysisModelView.cs</DependentUpon> 131 125 </Compile> 132 <Compile Include="InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs"> 133 <SubType>UserControl</SubType> 134 </Compile> 126 <Compile Include="InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs" /> 135 127 <Compile Include="InteractiveSymbolicDataAnalysisSolutionSimplifierView.Designer.cs"> 136 128 <DependentUpon>InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs</DependentUpon> 137 129 </Compile> 138 <Compile Include="GraphicalSymbolicDataAnalysisModelView.cs"> 139 <SubType>UserControl</SubType> 140 </Compile> 130 <Compile Include="GraphicalSymbolicDataAnalysisModelView.cs" /> 141 131 <Compile Include="GraphicalSymbolicDataAnalysisModelView.designer.cs"> 142 132 <DependentUpon>GraphicalSymbolicDataAnalysisModelView.cs</DependentUpon> 143 133 </Compile> 144 <Compile Include="Symbols\ConstantView.cs"> 145 <SubType>UserControl</SubType> 146 </Compile> 134 <Compile Include="Symbols\ConstantView.cs" /> 147 135 <Compile Include="Symbols\ConstantView.Designer.cs"> 148 136 <DependentUpon>ConstantView.cs</DependentUpon> 149 137 </Compile> 150 <Compile Include="Symbols\LaggedVariableView.cs"> 151 <SubType>UserControl</SubType> 152 </Compile> 138 <Compile Include="Symbols\LaggedVariableView.cs" /> 153 139 <Compile Include="Symbols\LaggedVariableView.Designer.cs"> 154 140 <DependentUpon>LaggedVariableView.cs</DependentUpon> 155 141 </Compile> 156 <Compile Include="Symbols\TimeLagView.cs"> 157 <SubType>UserControl</SubType> 158 </Compile> 142 <Compile Include="Symbols\TimeLagView.cs" /> 159 143 <Compile Include="Symbols\TimeLagView.Designer.cs"> 160 144 <DependentUpon>TimeLagView.cs</DependentUpon> 161 145 </Compile> 162 <Compile Include="Symbols\VariableConditionView.cs"> 163 <SubType>UserControl</SubType> 164 </Compile> 146 <Compile Include="Symbols\VariableConditionView.cs" /> 165 147 <Compile Include="Symbols\VariableConditionView.Designer.cs"> 166 148 <DependentUpon>VariableConditionView.cs</DependentUpon> 167 149 </Compile> 168 <Compile Include="Symbols\VariableView.cs"> 169 <SubType>UserControl</SubType> 170 </Compile> 150 <Compile Include="Symbols\VariableView.cs" /> 171 151 <Compile Include="Symbols\VariableView.Designer.cs"> 172 152 <DependentUpon>VariableView.cs</DependentUpon> … … 193 173 <None Include="Plugin.cs.frame" /> 194 174 <None Include="Properties\AssemblyInfo.cs.frame" /> 195 <Compile Include="RunCollectionVariableImpactView.cs"> 196 <SubType>UserControl</SubType> 197 </Compile> 175 <Compile Include="RunCollectionVariableImpactView.cs" /> 198 176 <Compile Include="RunCollectionVariableImpactView.Designer.cs"> 199 177 <DependentUpon>RunCollectionVariableImpactView.cs</DependentUpon> … … 205 183 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> 206 184 <Name>HeuristicLab.Collections-3.3</Name> 185 <Private>False</Private> 186 </ProjectReference> 187 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj"> 188 <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project> 189 <Name>HeuristicLab.Common.Resources-3.3</Name> 207 190 <Private>False</Private> 208 191 </ProjectReference> -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.Designer.cs
r9462 r11009 19 19 */ 20 20 #endregion 21 21 22 22 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { … … 137 138 // 138 139 // btnOptimizeConstants 139 // 140 this.btnOptimizeConstants.A nchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));140 // 141 this.btnOptimizeConstants.AutoSize = true; 141 142 this.btnOptimizeConstants.Enabled = false; 142 this.btnOptimizeConstants.Location = new System.Drawing.Point(104, 3); 143 this.btnOptimizeConstants.Image = HeuristicLab.Common.Resources.VSImageLibrary.Performance; 144 this.btnOptimizeConstants.ImageAlign = System.Drawing.ContentAlignment.MiddleCenter; 145 this.btnOptimizeConstants.Location = new System.Drawing.Point(105, 3); 143 146 this.btnOptimizeConstants.Name = "btnOptimizeConstants"; 144 this.btnOptimizeConstants.Size = new System.Drawing.Size( 97, 23);147 this.btnOptimizeConstants.Size = new System.Drawing.Size(80, 24); 145 148 this.btnOptimizeConstants.TabIndex = 2; 146 149 this.btnOptimizeConstants.Text = "Optimize"; 150 this.btnOptimizeConstants.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 151 this.btnOptimizeConstants.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 147 152 this.btnOptimizeConstants.UseVisualStyleBackColor = true; 148 153 this.btnOptimizeConstants.Click += new System.EventHandler(this.btnOptimizeConstants_Click); … … 150 155 // btnSimplify 151 156 // 157 this.btnSimplify.AutoSize = true; 158 this.btnSimplify.Enabled = true; 159 this.btnSimplify.Image = HeuristicLab.Common.Resources.VSImageLibrary.FormulaEvaluator; 160 this.btnSimplify.ImageAlign = System.Drawing.ContentAlignment.MiddleCenter; 152 161 this.btnSimplify.Location = new System.Drawing.Point(3, 3); 153 162 this.btnSimplify.Name = "btnSimplify"; 154 this.btnSimplify.Size = new System.Drawing.Size( 95, 23);163 this.btnSimplify.Size = new System.Drawing.Size(80, 24); 155 164 this.btnSimplify.TabIndex = 1; 156 165 this.btnSimplify.Text = "Simplify"; 166 this.btnSimplify.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 167 this.btnSimplify.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 157 168 this.btnSimplify.UseVisualStyleBackColor = true; 158 169 this.btnSimplify.Click += new System.EventHandler(this.btnSimplify_Click); -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
r10538 r11009 52 52 Content.ModelChanged += Content_Changed; 53 53 Content.ProblemDataChanged += Content_Changed; 54 treeChart.Repainted += treeChart_Repainted; 54 55 } 55 56 protected override void DeregisterContentEvents() { … … 57 58 Content.ModelChanged -= Content_Changed; 58 59 Content.ProblemDataChanged -= Content_Changed; 60 treeChart.Repainted -= treeChart_Repainted; 59 61 } 60 62 … … 68 70 UpdateView(); 69 71 viewHost.Content = this.Content; 72 } 73 74 private void treeChart_Repainted(object sender, EventArgs e) { 75 if (nodeImpacts != null && nodeImpacts.Count > 0) 76 PaintNodeImpacts(); 70 77 } 71 78 … … 98 105 private void treeChart_SymbolicExpressionTreeNodeDoubleClicked(object sender, MouseEventArgs e) { 99 106 var visualNode = (VisualTreeNode<ISymbolicExpressionTreeNode>)sender; 107 if (visualNode.Content == null) { throw new Exception("Visual node content cannot be null."); } 100 108 var symbExprTreeNode = (SymbolicExpressionTreeNode)visualNode.Content; 101 if (symbExprTreeNode == null) return; 102 var tree = Content.Model.SymbolicExpressionTree; 109 if (!foldedNodes.ContainsKey(symbExprTreeNode)) return; // constant nodes cannot be folded 103 110 var parent = symbExprTreeNode.Parent; 104 111 int indexOfSubtree = parent.IndexOfSubtree(symbExprTreeNode); 105 if (foldedNodes.ContainsKey(symbExprTreeNode)) { 106 // undo node folding 107 SwitchNodeWithReplacementNode(parent, indexOfSubtree); 108 } 109 UpdateModel(tree); 112 SwitchNodeWithReplacementNode(parent, indexOfSubtree); 113 UpdateModel(Content.Model.SymbolicExpressionTree); 110 114 } 111 115 112 116 private void SwitchNodeWithReplacementNode(ISymbolicExpressionTreeNode parent, int subTreeIndex) { 113 117 ISymbolicExpressionTreeNode subTree = parent.GetSubtree(subTreeIndex); 114 parent.RemoveSubtree(subTreeIndex);115 118 if (foldedNodes.ContainsKey(subTree)) { 119 parent.RemoveSubtree(subTreeIndex); 116 120 var replacementNode = foldedNodes[subTree]; 117 121 parent.InsertSubtree(subTreeIndex, replacementNode); … … 130 134 131 135 if (!(treeNode is ConstantTreeNode) && nodeImpacts.ContainsKey(treeNode)) { 136 visualTree.ToolTip = visualTree.Content.ToString(); // to avoid duplicate tooltips 132 137 double impact = nodeImpacts[treeNode]; 133 138 -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs
r10538 r11009 218 218 if (tempNode.IterateNodesBreadth().Contains(node)) 219 219 throw new ArgumentException();// cannot cut/paste a node into itself 220 ModifyTree(Tree, tempNode.Parent, tempNode, null); //remove node from its original parent 220 ModifyTree(Tree, tempNode.Parent, tempNode, null); //remove node from its original parent 221 221 ModifyTree(Tree, node, null, tempNode); //insert it as a child to the new parent 222 222 break; -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Plugin.cs.frame
r10037 r11009 32 32 [PluginDependency("HeuristicLab.Collections", "3.3")] 33 33 [PluginDependency("HeuristicLab.Common", "3.3")] 34 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] 34 35 [PluginDependency("HeuristicLab.Core", "3.3")] 35 36 [PluginDependency("HeuristicLab.Core.Views", "3.3")] -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/TextualSymbolicDataAnalysisModelView.designer.cs
r10538 r11009 54 54 this.symbolicExpressionTreeView.Content = null; 55 55 this.symbolicExpressionTreeView.Dock = System.Windows.Forms.DockStyle.Fill; 56 this.symbolicExpressionTreeView.Font = new System.Drawing.Font("Consolas", 8.25F);57 56 this.symbolicExpressionTreeView.Location = new System.Drawing.Point(0, 0); 58 57 this.symbolicExpressionTreeView.Name = "symbolicExpressionTreeView";
Note: See TracChangeset
for help on using the changeset viewer.