Changeset 4840
- Timestamp:
- 11/18/10 18:50:16 (14 years ago)
- Location:
- branches/DataAnalysis.Extensions
- Files:
-
- 1 added
- 11 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters/3.3/HeuristicLabEncodingsSymbolicExpressionTreeEncodingFormattersPlugin.cs
r4821 r4840 26 26 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters { 28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters", "3.3.1.482 0")]28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters", "3.3.1.4829")] 29 29 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3.1.0")] -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters/3.3/Properties/AssemblyInfo.cs
r4821 r4840 45 45 46 46 [assembly: AssemblyVersion("3.3.0.0")] 47 [assembly: AssemblyFileVersion("3.3.1.482 0")]47 [assembly: AssemblyFileVersion("3.3.1.4829")] -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters/3.3/SymbolicExpressionTreeSmalltalkStringFormatter.cs
r4823 r4840 36 36 protected SymbolicExpressionTreeSmalltalkStringFormatter(bool deserializing) : base(deserializing) { } 37 37 protected SymbolicExpressionTreeSmalltalkStringFormatter(SymbolicExpressionTreeSmalltalkStringFormatter original, Cloner cloner) : base(original, cloner) { } 38 public SymbolicExpressionTreeSmalltalkStringFormatter() : base() { } 38 public SymbolicExpressionTreeSmalltalkStringFormatter() 39 : base() { 40 Name = "Smalltalk String Formatter"; 41 } 39 42 40 43 public string Format(SymbolicExpressionTree symbolicExpressionTree) { -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3.csproj
r4820 r4840 190 190 </BootstrapperPackage> 191 191 </ItemGroup> 192 <ItemGroup> 193 <EmbeddedResource Include="SymbolicExpressionView.resx"> 194 <DependentUpon>SymbolicExpressionView.cs</DependentUpon> 195 </EmbeddedResource> 196 </ItemGroup> 192 197 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 193 198 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/HeuristicLabEncodingsSymbolicExpressionTreeEncodingViewsPlugin.cs
r4821 r4840 26 26 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views", "3.3.1.482 0")]28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views", "3.3.1.4829")] 29 29 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/Properties/AssemblyInfo.cs
r4821 r4840 45 45 46 46 [assembly: AssemblyVersion("3.3.0.0")] 47 [assembly: AssemblyFileVersion("3.3.1.482 0")]47 [assembly: AssemblyFileVersion("3.3.1.4829")] -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionView.Designer.cs
r4803 r4840 46 46 private void InitializeComponent() { 47 47 this.textBox = new System.Windows.Forms.TextBox(); 48 this.formattersComboBox = new System.Windows.Forms.ComboBox(); 49 this.formatterLabel = new System.Windows.Forms.Label(); 48 50 this.SuspendLayout(); 49 51 // 50 52 // textBox 51 53 // 52 this.textBox.Dock = System.Windows.Forms.DockStyle.Fill; 53 this.textBox.Location = new System.Drawing.Point(0, 0); 54 this.textBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 55 | System.Windows.Forms.AnchorStyles.Left) 56 | System.Windows.Forms.AnchorStyles.Right))); 57 this.textBox.Location = new System.Drawing.Point(3, 30); 54 58 this.textBox.Multiline = true; 55 59 this.textBox.Name = "textBox"; 56 this.textBox.Size = new System.Drawing.Size( 150, 150);60 this.textBox.Size = new System.Drawing.Size(475, 282); 57 61 this.textBox.TabIndex = 0; 58 62 // 59 // SymbolicExpressionTreeView 63 // formattersComboBox 64 // 65 this.formattersComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 66 | System.Windows.Forms.AnchorStyles.Right))); 67 this.formattersComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 68 this.formattersComboBox.FormattingEnabled = true; 69 this.formattersComboBox.Location = new System.Drawing.Point(72, 3); 70 this.formattersComboBox.Name = "formattersComboBox"; 71 this.formattersComboBox.Size = new System.Drawing.Size(406, 21); 72 this.formattersComboBox.TabIndex = 1; 73 this.formattersComboBox.SelectedIndexChanged += new System.EventHandler(this.formattersComboBox_SelectedIndexChanged); 74 // 75 // formatterLabel 76 // 77 this.formatterLabel.AutoSize = true; 78 this.formatterLabel.Location = new System.Drawing.Point(3, 6); 79 this.formatterLabel.Name = "formatterLabel"; 80 this.formatterLabel.Size = new System.Drawing.Size(54, 13); 81 this.formatterLabel.TabIndex = 2; 82 this.formatterLabel.Text = "Formatter:"; 83 // 84 // SymbolicExpressionView 60 85 // 61 86 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 62 87 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 88 this.Controls.Add(this.formatterLabel); 89 this.Controls.Add(this.formattersComboBox); 63 90 this.Controls.Add(this.textBox); 64 this.Name = "SymbolicExpressionTreeView"; 91 this.Name = "SymbolicExpressionView"; 92 this.Size = new System.Drawing.Size(481, 315); 65 93 this.ResumeLayout(false); 66 94 this.PerformLayout(); … … 71 99 72 100 private System.Windows.Forms.TextBox textBox; 101 private System.Windows.Forms.ComboBox formattersComboBox; 102 private System.Windows.Forms.Label formatterLabel; 73 103 } 74 104 } -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionView.cs
r4803 r4840 23 23 using HeuristicLab.MainForm; 24 24 using HeuristicLab.MainForm.WindowsForms; 25 using HeuristicLab.PluginInfrastructure; 26 using System.Collections.Generic; 25 27 26 28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { … … 28 30 [Content(typeof(SymbolicExpressionTree), false)] 29 31 public partial class SymbolicExpressionView : AsynchronousContentView { 30 private SymbolicExpressionTreeStringFormatter treeFormatter; 32 private ISymbolicExpressionTreeStringFormatter treeFormatter; 33 List<ISymbolicExpressionTreeStringFormatter> treeFormattersList = new List<ISymbolicExpressionTreeStringFormatter>(); 31 34 32 35 public new SymbolicExpressionTree Content { … … 37 40 public SymbolicExpressionView() { 38 41 InitializeComponent(); 39 treeFormatter = new SymbolicExpressionTreeStringFormatter(); 42 IEnumerator<ISymbolicExpressionTreeStringFormatter> formatters = ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeStringFormatter>().GetEnumerator(); 43 treeFormattersList = new List<ISymbolicExpressionTreeStringFormatter>(); 44 formatters.MoveNext(); 45 int selectedIndex = -1; 46 while (formatters.Current != null) { 47 if (formatters.Current is SymbolicExpressionTreeStringFormatter) 48 selectedIndex = treeFormattersList.Count; 49 treeFormattersList.Add(formatters.Current.Clone() as ISymbolicExpressionTreeStringFormatter); 50 formattersComboBox.Items.Add(treeFormattersList[treeFormattersList.Count - 1].Name); 51 formatters.MoveNext(); 52 } 53 formattersComboBox.SelectedIndex = selectedIndex; 54 //treeFormatter = new SymbolicExpressionTreeStringFormatter(); 40 55 } 41 56 … … 53 68 textBox.ReadOnly = ReadOnly; 54 69 } 70 71 private void formattersComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { 72 treeFormatter = treeFormattersList[formattersComboBox.SelectedIndex]; 73 OnContentChanged(); 74 } 55 75 } 56 76 } -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/HeuristicLabEncodingsSymbolicExpressionTreeEncodingPlugin.cs
r4821 r4840 26 26 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3.1.482 0")]28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3.1.4829")] 29 29 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3.1.0")] -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Properties/AssemblyInfo.cs
r4821 r4840 45 45 46 46 [assembly: AssemblyVersion("3.3.0.0")] 47 [assembly: AssemblyFileVersion("3.3.1.482 0")]47 [assembly: AssemblyFileVersion("3.3.1.4829")] -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeStringFormatter.cs
r4820 r4840 35 35 [StorableConstructor] 36 36 protected SymbolicExpressionTreeStringFormatter(bool deserializing) : base(deserializing) { } 37 protected SymbolicExpressionTreeStringFormatter(SymbolicExpressionTreeStringFormatter original, Cloner cloner) : base(original, cloner) { } 37 protected SymbolicExpressionTreeStringFormatter(SymbolicExpressionTreeStringFormatter original, Cloner cloner) 38 : base(original, cloner) { 39 Indent = original.Indent; 40 } 38 41 public SymbolicExpressionTreeStringFormatter() 39 42 : base() { 43 Name = "Default String Formatter"; 40 44 Indent = true; 41 45 }
Note: See TracChangeset
for help on using the changeset viewer.