Changeset 2727 for trunk/sources
- Timestamp:
- 01/30/10 05:05:19 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/EngineView.cs
r2713 r2727 36 36 /// </summary> 37 37 [Content(typeof(Engine), true)] 38 [Content(typeof(IEngine), false)] 38 39 public partial class EngineView : ItemView { 39 40 private int executionTimeCounter; … … 43 44 /// </summary> 44 45 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="EditorBase"/>.</remarks> 45 public new Engine Content {46 get { return ( Engine)base.Content; }46 public new IEngine Content { 47 get { return (IEngine)base.Content; } 47 48 set { base.Content = value; } 48 49 } … … 54 55 InitializeComponent(); 55 56 } 56 public EngineView( Engine engine)57 public EngineView(IEngine content) 57 58 : this() { 58 Content = engine;59 Content = content; 59 60 } 60 61 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r2713 r2727 33 33 34 34 namespace HeuristicLab.Core.Views { 35 [Content(typeof(ItemCollection<>), true)] 36 [Content(typeof(IObservableCollection<>), false)] 35 37 public partial class ItemCollectionView<T> : ContentView where T : class, IItem { 36 38 public new IObservableCollection<T> Content { … … 46 48 InitializeComponent(); 47 49 Caption = "Item Collection"; 50 } 51 public ItemCollectionView(IObservableCollection<T> content) 52 : this() { 53 Content = content; 48 54 } 49 55 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r2713 r2727 36 36 /// The visual representation of all variables in a specified scope. 37 37 /// </summary> 38 [Content(typeof(ItemList<>), true)] 39 [Content(typeof(IObservableList<>), false)] 38 40 public partial class ItemListView<T> : ContentView where T : class, IItem { 39 41 /// <summary> … … 57 59 InitializeComponent(); 58 60 Caption = "Item List"; 61 } 62 public ItemListView(IObservableList<T> content) 63 : this() { 64 Content = content; 59 65 } 60 66 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemSetView.cs
r2713 r2727 32 32 33 33 namespace HeuristicLab.Core.Views { 34 [Content(typeof(ItemSet<>), true)] 35 [Content(typeof(IObservableSet<>), false)] 34 36 public partial class ItemSetView<T> : ItemCollectionView<T> where T : class, IItem { 35 37 public new IObservableSet<T> Content { … … 47 49 InitializeComponent(); 48 50 Caption = "Item Set"; 51 } 52 public ItemSetView(IObservableSet<T> content) 53 : this() { 54 Content = content; 49 55 } 50 56 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemView.cs
r2713 r2727 28 28 using System.Xml; 29 29 using System.Windows.Forms; 30 using HeuristicLab.MainForm; 30 31 using HeuristicLab.MainForm.WindowsForms; 31 32 … … 34 35 /// Base class for all visual representations. 35 36 /// </summary> 37 [Content(typeof(Item), false)] 38 [Content(typeof(IItem), false)] 36 39 public partial class ItemView : ContentView { 37 40 public new IItem Content { … … 46 49 InitializeComponent(); 47 50 Caption = "View"; 51 } 52 public ItemView(IItem content) 53 : this() { 54 Content = content; 48 55 } 49 56 -
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemCollectionView.cs
r2713 r2727 32 32 33 33 namespace HeuristicLab.Core.Views { 34 [Content(typeof(NamedItemCollection<>), true)] 34 35 public partial class NamedItemCollectionView<T> : ItemCollectionView<T> where T : class, INamedItem { 35 36 public new IObservableKeyedCollection<string, T> Content { … … 47 48 InitializeComponent(); 48 49 Caption = "Named Item Collection"; 50 } 51 public NamedItemCollectionView(IObservableKeyedCollection<string, T> content) 52 : this() { 53 Content = content; 49 54 } 50 55 -
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.cs
r2713 r2727 34 34 /// </summary> 35 35 [Content(typeof(NamedItem), true)] 36 [Content(typeof(INamedItem), false)] 36 37 public partial class NamedItemView : ItemView { 37 public new NamedItem Content {38 get { return ( NamedItem)base.Content; }38 public new INamedItem Content { 39 get { return (INamedItem)base.Content; } 39 40 set { base.Content = value; } 40 41 } … … 46 47 errorProvider.SetIconPadding(nameTextBox, 2); 47 48 } 48 public NamedItemView( NamedItem namedItem)49 public NamedItemView(INamedItem content) 49 50 : this() { 50 Content = namedItem;51 Content = content; 51 52 } 52 53 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorCollectionView.cs
r2713 r2727 12 12 namespace HeuristicLab.Core.Views { 13 13 [Content(typeof(OperatorCollection), true)] 14 [Content(typeof(IObservableCollection<IOperator>), true)]14 [Content(typeof(IObservableCollection<IOperator>), false)] 15 15 public partial class OperatorCollectionView : ItemCollectionView<IOperator> { 16 16 protected TypeSelectorDialog typeSelectorDialog; … … 30 30 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 31 31 /// <param name="scope">The scope whose variables should be represented visually.</param> 32 public OperatorCollectionView(IObservableCollection<IOperator> operatorCollection)32 public OperatorCollectionView(IObservableCollection<IOperator> content) 33 33 : this() { 34 Content = operatorCollection;34 Content = content; 35 35 } 36 36 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs
r2713 r2727 61 61 /// <remarks>Calls <see cref="OperatorGraphView()"/>.</remarks> 62 62 /// <param name="operatorGraph">The operator graph to represent visually.</param> 63 public OperatorGraphView(OperatorGraph operatorGraph)63 public OperatorGraphView(OperatorGraph content) 64 64 : this() { 65 Content = operatorGraph;65 Content = content; 66 66 } 67 67 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorListView.cs
r2713 r2727 12 12 namespace HeuristicLab.Core.Views { 13 13 [Content(typeof(OperatorList), true)] 14 [Content(typeof(IObservableList<IOperator>), true)]14 [Content(typeof(IObservableList<IOperator>), false)] 15 15 public partial class OperatorListView : ItemListView<IOperator> { 16 16 protected TypeSelectorDialog typeSelectorDialog; … … 30 30 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 31 31 /// <param name="scope">The scope whose variables should be represented visually.</param> 32 public OperatorListView(IObservableList<IOperator> operatorList)32 public OperatorListView(IObservableList<IOperator> content) 33 33 : this() { 34 Content = operatorList;34 Content = content; 35 35 } 36 36 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorSetView.cs
r2713 r2727 12 12 namespace HeuristicLab.Core.Views { 13 13 [Content(typeof(OperatorSet), true)] 14 [Content(typeof(IObservableSet<IOperator>), true)]14 [Content(typeof(IObservableSet<IOperator>), false)] 15 15 public partial class OperatorSetView : ItemSetView<IOperator> { 16 16 protected TypeSelectorDialog typeSelectorDialog; … … 30 30 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 31 31 /// <param name="scope">The scope whose variables should be represented visually.</param> 32 public OperatorSetView(IObservableSet<IOperator> operatorSet)32 public OperatorSetView(IObservableSet<IOperator> content) 33 33 : this() { 34 Content = operatorSet;34 Content = content; 35 35 } 36 36 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r2713 r2727 69 69 /// <remarks>Calls <see cref="OperatorGraphView()"/>.</remarks> 70 70 /// <param name="operatorGraph">The operator graph to represent visually.</param> 71 public OperatorTreeView(IOperator op)71 public OperatorTreeView(IOperator content) 72 72 : this() { 73 Content = op;73 Content = content; 74 74 } 75 75 -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterCollectionView.cs
r2713 r2727 12 12 namespace HeuristicLab.Core.Views { 13 13 [Content(typeof(ParameterCollection), true)] 14 [Content(typeof(IObservableKeyedCollection<string, IParameter>), true)]14 [Content(typeof(IObservableKeyedCollection<string, IParameter>), false)] 15 15 public partial class ParameterCollectionView : NamedItemCollectionView<IParameter> { 16 16 protected CreateParameterDialog createParameterDialog; … … 29 29 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 30 30 /// <param name="scope">The scope whose variables should be represented visually.</param> 31 public ParameterCollectionView(IObservableKeyedCollection<string, IParameter> parameterCollection)31 public ParameterCollectionView(IObservableKeyedCollection<string, IParameter> content) 32 32 : this() { 33 Content = parameterCollection;33 Content = content; 34 34 } 35 35 -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeListView.cs
r2713 r2727 12 12 namespace HeuristicLab.Core.Views { 13 13 [Content(typeof(ScopeList), true)] 14 [Content(typeof(IObservableList<IScope>), true)]14 [Content(typeof(IObservableList<IScope>), false)] 15 15 public partial class ScopeListView : ItemListView<IScope> { 16 16 /// <summary> … … 28 28 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 29 29 /// <param name="scope">The scope whose variables should be represented visually.</param> 30 public ScopeListView(IObservableList<IScope> scopeList)30 public ScopeListView(IObservableList<IScope> content) 31 31 : this() { 32 Content = scopeList;32 Content = content; 33 33 } 34 34 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs
r2713 r2727 37 37 /// </summary> 38 38 [Content(typeof(Scope), true)] 39 [Content(typeof(IScope), false)] 39 40 public sealed partial class ScopeView : ItemView { 40 41 private Dictionary<IScope, TreeNode> scopeNodeTable; … … 67 68 /// <remarks>Calls <see cref="ScopeView()"/>.</remarks> 68 69 /// <param name="scope">The scope to represent visually.</param> 69 public ScopeView(IScope scope)70 public ScopeView(IScope content) 70 71 : this() { 71 Content = scope;72 Content = content; 72 73 } 73 74 -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableCollectionView.cs
r2713 r2727 12 12 namespace HeuristicLab.Core.Views { 13 13 [Content(typeof(VariableCollection), true)] 14 [Content(typeof(IObservableKeyedCollection<string, IVariable>), true)]14 [Content(typeof(IObservableKeyedCollection<string, IVariable>), false)] 15 15 public partial class VariableCollectionView : NamedItemCollectionView<IVariable> { 16 16 /// <summary> … … 28 28 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 29 29 /// <param name="scope">The scope whose variables should be represented visually.</param> 30 public VariableCollectionView(IObservableKeyedCollection<string, IVariable> variableCollection)30 public VariableCollectionView(IObservableKeyedCollection<string, IVariable> content) 31 31 : this() { 32 Content = variableCollection;32 Content = content; 33 33 } 34 34 -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r2713 r2727 34 34 /// </summary> 35 35 [Content(typeof(Variable), true)] 36 [Content(typeof(IVariable), false)] 36 37 public partial class VariableView : NamedItemView { 37 38 protected TypeSelectorDialog typeSelectorDialog; … … 42 43 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 43 44 /// No own data storage present.</remarks> 44 public new Variable Content {45 get { return ( Variable)base.Content; }45 public new IVariable Content { 46 get { return (IVariable)base.Content; } 46 47 set { base.Content = value; } 47 48 } … … 59 60 /// <remarks>Calls <see cref="VariableView()"/>.</remarks> 60 61 /// <param name="variable">The variable to represent visually.</param> 61 public VariableView( Variable variable)62 public VariableView(IVariable content) 62 63 : this() { 63 Content = variable;64 Content = content; 64 65 } 65 66 -
trunk/sources/HeuristicLab.Core.Views/3.3/ViewHost.cs
r2713 r2727 85 85 86 86 Control view = (Control)MainFormManager.CreateDefaultView(Content); 87 if ((view == null) && (contextMenuStrip.Items.Count > 0)) // create first available view if default view is not available 88 view = (Control)MainFormManager.CreateView((Type)contextMenuStrip.Items[0].Tag, Content); 87 89 if (view != null) { 88 90 viewPanel.Controls.Add(view); -
trunk/sources/HeuristicLab.Data.Views/3.3/BoolDataView.cs
r2713 r2727 43 43 Caption = "BoolData View"; 44 44 } 45 public BoolDataView(BoolData boolData)45 public BoolDataView(BoolData content) 46 46 : this() { 47 Content = boolData;47 Content = content; 48 48 } 49 49 -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleDataView.cs
r2713 r2727 46 46 errorProvider.SetIconPadding(valueTextBox, 2); 47 47 } 48 public StringConvertibleDataView(IStringConvertibleData stringConvertibleData)48 public StringConvertibleDataView(IStringConvertibleData content) 49 49 : this() { 50 Content = stringConvertibleData;50 Content = content; 51 51 } 52 52 -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixDataView.cs
r2713 r2727 49 49 errorProvider.SetIconPadding(columnsTextBox, 2); 50 50 } 51 public StringConvertibleMatrixDataView(IStringConvertibleMatrixData stringConvertibleArrayData)51 public StringConvertibleMatrixDataView(IStringConvertibleMatrixData content) 52 52 : this() { 53 Content = stringConvertibleArrayData;53 Content = content; 54 54 } 55 55 -
trunk/sources/HeuristicLab.Data/3.3/StringArrayData.cs
r2694 r2727 31 31 namespace HeuristicLab.Data { 32 32 [Item("StringArrayData", "Represents an array of strings.")] 33 [Creatable("Test")] 33 34 public sealed class StringArrayData : Item, IEnumerable, IStringConvertibleMatrixData { 34 35 [Storable] -
trunk/sources/HeuristicLab.Data/3.3/StringMatrixData.cs
r2694 r2727 31 31 namespace HeuristicLab.Data { 32 32 [Item("StringMatrixData", "Represents a matrix of strings.")] 33 [Creatable("Test")] 33 34 public sealed class StringMatrixData : Item, IEnumerable, IStringConvertibleMatrixData { 34 35 [Storable] -
trunk/sources/HeuristicLab.Operators.Views/3.3/CombinedOperatorView.cs
r2713 r2727 52 52 /// </summary> 53 53 /// <param name="item">The item that should be displayed.</param> 54 public CombinedOperatorView(CombinedOperator co mbinedOperator)54 public CombinedOperatorView(CombinedOperator content) 55 55 : this() { 56 Content = co mbinedOperator;56 Content = content; 57 57 } 58 58 -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.cs
r2713 r2727 36 36 /// </summary> 37 37 [Content(typeof(Operator), true)] 38 [Content(typeof(IOperator), false)] 38 39 public partial class OperatorView : NamedItemView { 39 public new Operator Content {40 get { return ( Operator)base.Content; }40 public new IOperator Content { 41 get { return (IOperator)base.Content; } 41 42 set { base.Content = value; } 42 43 } … … 52 53 /// </summary> 53 54 /// <param name="item">The item that should be displayed.</param> 54 public OperatorView( Operator op)55 public OperatorView(IOperator content) 55 56 : this() { 56 Content = op;57 Content = content; 57 58 } 58 59 -
trunk/sources/HeuristicLab.Operators/3.3/CombinedOperator.cs
r2684 r2727 65 65 CombinedOperator clone = (CombinedOperator)base.Clone(cloner); 66 66 clone.operatorGraph = (OperatorGraph)cloner.Clone(operatorGraph); 67 return base.Clone(cloner);67 return clone; 68 68 } 69 69 -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ItemParameterView.cs
r2715 r2727 61 61 /// <remarks>Calls <see cref="VariableView()"/>.</remarks> 62 62 /// <param name="variable">The variable to represent visually.</param> 63 public ItemParameterView(ItemParameter<T> parameter)63 public ItemParameterView(ItemParameter<T> content) 64 64 : this() { 65 Content = parameter;65 Content = content; 66 66 } 67 67 -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ParameterView.cs
r2714 r2727 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.Core; 29 30 using HeuristicLab.Core.Views; 30 31 using HeuristicLab.MainForm; … … 35 36 /// </summary> 36 37 [Content(typeof(Parameter), true)] 38 [Content(typeof(IParameter), false)] 37 39 public partial class ParameterView : NamedItemView { 38 40 /// <summary> … … 41 43 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 42 44 /// No own data storage present.</remarks> 43 public new Parameter Content {44 get { return ( Parameter)base.Content; }45 public new IParameter Content { 46 get { return (IParameter)base.Content; } 45 47 set { base.Content = value; } 46 48 } … … 58 60 /// <remarks>Calls <see cref="VariableView()"/>.</remarks> 59 61 /// <param name="variable">The variable to represent visually.</param> 60 public ParameterView( Parameter parameter)62 public ParameterView(IParameter content) 61 63 : this() { 62 Content = parameter;64 Content = content; 63 65 } 64 66
Note: See TracChangeset
for help on using the changeset viewer.