- Timestamp:
- 04/20/10 03:00:00 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataRow.cs
r3376 r3431 54 54 DataRow clone = new DataRow(Name, Description); 55 55 cloner.RegisterClonedObject(this, clone); 56 clone.ReadOnlyView = ReadOnlyView;57 56 clone.values.AddRange(values); 58 57 return clone; -
trunk/sources/HeuristicLab.Analysis/3.3/DataTable.cs
r3376 r3431 58 58 DataTable clone = new DataTable(Name, Description); 59 59 cloner.RegisterClonedObject(this, clone); 60 clone.ReadOnlyView = ReadOnlyView;61 60 clone.rows = (NamedItemCollection<DataRow>)cloner.Clone(rows); 62 61 return clone; -
trunk/sources/HeuristicLab.Common/3.3/Content/Content.cs
r3414 r3431 26 26 27 27 namespace HeuristicLab.Common { 28 public class Content : DeepCloneable, IContent { 29 public Content() { 30 this.readOnlyView = false; 31 } 32 public Content(bool readOnlyView) 33 : this() { 34 this.ReadOnlyView = readOnlyView; 35 } 36 37 private bool readOnlyView; 38 public virtual bool ReadOnlyView { 39 get { return readOnlyView; } 40 set { 41 if (readOnlyView != value) { 42 readOnlyView = value; 43 OnReadOnlyViewChanged(); 44 } 45 } 46 } 47 48 public event EventHandler ReadOnlyViewChanged; 49 protected virtual void OnReadOnlyViewChanged() { 50 EventHandler handler = ReadOnlyViewChanged; 51 if (handler != null) handler(this, EventArgs.Empty); 52 } 53 } 28 public class Content : DeepCloneable, IContent { } 54 29 } -
trunk/sources/HeuristicLab.Common/3.3/Content/IContent.cs
r3414 r3431 26 26 27 27 namespace HeuristicLab.Common { 28 public interface IContent :IDeepCloneable{ 29 bool ReadOnlyView { get; set; } 30 event EventHandler ReadOnlyViewChanged; 31 } 28 public interface IContent : IDeepCloneable { } 32 29 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs
r3390 r3431 52 52 } 53 53 54 [Storable] 55 private bool readOnlyView; 56 public virtual bool ReadOnlyView { 57 get { return readOnlyView; } 58 set { 59 if ((readOnlyView != value) && !(array.IsReadOnly)) { 60 readOnlyView = value; 61 OnReadOnlyViewChanged(); 62 OnPropertyChanged("ReadOnlyView"); 63 } 64 } 65 } 66 67 public ItemArray() 68 : base() { 69 readOnlyView = array.IsReadOnly; 70 } 71 public ItemArray(int length) 72 : base(length) { 73 readOnlyView = array.IsReadOnly; 74 } 75 public ItemArray(T[] array) 76 : base(array) { 77 readOnlyView = array.IsReadOnly; 78 } 79 public ItemArray(IEnumerable<T> collection) 80 : base(collection) { 81 readOnlyView = array.IsReadOnly; 82 } 54 public ItemArray() : base() { } 55 public ItemArray(int length) : base(length) { } 56 public ItemArray(T[] array) : base(array) { } 57 public ItemArray(IEnumerable<T> collection) : base(collection) { } 83 58 [StorableConstructor] 84 59 protected ItemArray(bool deserializing) { } … … 90 65 ItemArray<T> clone = (ItemArray<T>)Activator.CreateInstance(this.GetType()); 91 66 cloner.RegisterClonedObject(this, clone); 92 clone.readOnlyView = readOnlyView;93 67 clone.array = this.Select(x => (T)cloner.Clone(x)).ToArray(); 94 68 return clone; … … 113 87 if (handler != null) handler(this, EventArgs.Empty); 114 88 } 115 public event EventHandler ReadOnlyViewChanged;116 protected virtual void OnReadOnlyViewChanged() {117 EventHandler handler = ReadOnlyViewChanged;118 if (handler != null) handler(this, EventArgs.Empty);119 }120 89 } 121 90 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs
r3390 r3431 49 49 } 50 50 51 [Storable] 52 private bool readOnlyView; 53 public virtual bool ReadOnlyView { 54 get { return readOnlyView; } 55 set { 56 if ((readOnlyView != value) && !((ICollection<T>)list).IsReadOnly) { 57 readOnlyView = value; 58 OnReadOnlyViewChanged(); 59 OnPropertyChanged("ReadOnlyView"); 60 } 61 } 62 } 63 64 public ItemCollection() 65 : base() { 66 readOnlyView = ((ICollection<T>)list).IsReadOnly; 67 } 68 public ItemCollection(int capacity) 69 : base(capacity) { 70 readOnlyView = ((ICollection<T>)list).IsReadOnly; 71 } 72 public ItemCollection(IEnumerable<T> collection) 73 : base(collection) { 74 readOnlyView = ((ICollection<T>)list).IsReadOnly; 75 } 51 public ItemCollection() : base() { } 52 public ItemCollection(int capacity) : base(capacity) { } 53 public ItemCollection(IEnumerable<T> collection) : base(collection) { } 76 54 [StorableConstructor] 77 55 protected ItemCollection(bool deserializing) { } … … 83 61 ItemCollection<T> clone = (ItemCollection<T>)Activator.CreateInstance(this.GetType()); 84 62 cloner.RegisterClonedObject(this, clone); 85 clone.readOnlyView = readOnlyView;86 63 clone.list = new List<T>(this.Select(x => (T)cloner.Clone(x))); 87 64 return clone; … … 106 83 if (handler != null) handler(this, EventArgs.Empty); 107 84 } 108 public event EventHandler ReadOnlyViewChanged;109 protected virtual void OnReadOnlyViewChanged() {110 EventHandler handler = ReadOnlyViewChanged;111 if (handler != null) handler(this, EventArgs.Empty);112 }113 85 } 114 86 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs
r3390 r3431 49 49 } 50 50 51 [Storable] 52 private bool readOnlyView; 53 public virtual bool ReadOnlyView { 54 get { return readOnlyView; } 55 set { 56 if ((readOnlyView != value) && !((ICollection<KeyValuePair<TKey, TValue>>)dict).IsReadOnly) { 57 readOnlyView = value; 58 OnReadOnlyViewChanged(); 59 OnPropertyChanged("ReadOnlyView"); 60 } 61 } 62 } 63 64 public ItemDictionary() 65 : base() { 66 readOnlyView = ((ICollection<KeyValuePair<TKey, TValue>>)dict).IsReadOnly; 67 } 68 public ItemDictionary(int capacity) 69 : base(capacity) { 70 readOnlyView = ((ICollection<KeyValuePair<TKey, TValue>>)dict).IsReadOnly; 71 } 72 public ItemDictionary(IDictionary<TKey, TValue> dictionary) 73 : base(dictionary) { 74 readOnlyView = ((ICollection<KeyValuePair<TKey, TValue>>)dict).IsReadOnly; 75 } 51 public ItemDictionary() : base() { } 52 public ItemDictionary(int capacity) : base(capacity) { } 53 public ItemDictionary(IDictionary<TKey, TValue> dictionary) : base(dictionary) { } 76 54 [StorableConstructor] 77 55 protected ItemDictionary(bool deserializing) { } … … 83 61 ItemDictionary<TKey, TValue> clone = (ItemDictionary<TKey, TValue>)Activator.CreateInstance(this.GetType()); 84 62 cloner.RegisterClonedObject(this, clone); 85 clone.readOnlyView = readOnlyView;86 63 foreach (TKey key in dict.Keys) 87 64 clone.dict.Add((TKey)cloner.Clone(key), (TValue)cloner.Clone(dict[key])); … … 107 84 if (handler != null) handler(this, EventArgs.Empty); 108 85 } 109 public event EventHandler ReadOnlyViewChanged;110 protected virtual void OnReadOnlyViewChanged() {111 EventHandler handler = ReadOnlyViewChanged;112 if (handler != null) handler(this, EventArgs.Empty);113 }114 86 } 115 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs
r3390 r3431 52 52 } 53 53 54 [Storable] 55 private bool readOnlyView; 56 public virtual bool ReadOnlyView { 57 get { return readOnlyView; } 58 set { 59 if ((readOnlyView != value) && !((ICollection<T>)list).IsReadOnly) { 60 readOnlyView = value; 61 OnReadOnlyViewChanged(); 62 OnPropertyChanged("ReadOnlyView"); 63 } 64 } 65 } 66 67 public ItemList() 68 : base() { 69 readOnlyView = ((ICollection<T>)list).IsReadOnly; 70 } 71 public ItemList(int capacity) 72 : base(capacity) { 73 readOnlyView = ((ICollection<T>)list).IsReadOnly; 74 } 75 public ItemList(IEnumerable<T> collection) 76 : base(collection) { 77 readOnlyView = ((ICollection<T>)list).IsReadOnly; 78 } 54 public ItemList() : base() { } 55 public ItemList(int capacity) : base(capacity) { } 56 public ItemList(IEnumerable<T> collection) : base(collection) { } 79 57 [StorableConstructor] 80 58 protected ItemList(bool deserializing) { } … … 86 64 ItemList<T> clone = (ItemList<T>)Activator.CreateInstance(this.GetType()); 87 65 cloner.RegisterClonedObject(this, clone); 88 clone.readOnlyView = readOnlyView;89 66 clone.list = new List<T>(this.Select(x => (T)cloner.Clone(x))); 90 67 return clone; … … 109 86 if (handler != null) handler(this, EventArgs.Empty); 110 87 } 111 public event EventHandler ReadOnlyViewChanged;112 protected virtual void OnReadOnlyViewChanged() {113 EventHandler handler = ReadOnlyViewChanged;114 if (handler != null) handler(this, EventArgs.Empty);115 }116 88 } 117 89 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r3390 r3431 52 52 } 53 53 54 [Storable] 55 private bool readOnlyView; 56 public virtual bool ReadOnlyView { 57 get { return readOnlyView; } 58 set { 59 if ((readOnlyView != value) && !((ICollection<T>)set).IsReadOnly) { 60 readOnlyView = value; 61 OnReadOnlyViewChanged(); 62 OnPropertyChanged("ReadOnlyView"); 63 } 64 } 65 } 66 67 public ItemSet() 68 : base() { 69 readOnlyView = ((ICollection<T>)set).IsReadOnly; 70 } 71 public ItemSet(IEnumerable<T> collection) 72 : base(collection) { 73 readOnlyView = ((ICollection<T>)set).IsReadOnly; 74 } 54 public ItemSet() : base() { } 55 public ItemSet(IEnumerable<T> collection) : base(collection) { } 75 56 [StorableConstructor] 76 57 protected ItemSet(bool deserializing) { } … … 82 63 ItemSet<T> clone = (ItemSet<T>)Activator.CreateInstance(this.GetType()); 83 64 cloner.RegisterClonedObject(this, clone); 84 clone.readOnlyView = readOnlyView;85 65 clone.set = new HashSet<T>(this.Select(x => (T)cloner.Clone(x))); 86 66 return clone; … … 105 85 if (handler != null) handler(this, EventArgs.Empty); 106 86 } 107 public event EventHandler ReadOnlyViewChanged;108 protected virtual void OnReadOnlyViewChanged() {109 EventHandler handler = ReadOnlyViewChanged;110 if (handler != null) handler(this, EventArgs.Empty);111 }112 87 } 113 88 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs
r3390 r3431 48 48 } 49 49 50 [Storable] 51 private bool readOnlyView; 52 public virtual bool ReadOnlyView { 53 get { return readOnlyView; } 54 set { 55 if ((readOnlyView != value) && !((ICollection<KeyValuePair<TKey, TItem>>)dict).IsReadOnly) { 56 readOnlyView = value; 57 OnReadOnlyViewChanged(); 58 OnPropertyChanged("ReadOnlyView"); 59 } 60 } 61 } 62 63 protected KeyedItemCollection() : base() { 64 readOnlyView = ((ICollection<KeyValuePair<TKey, TItem>>)dict).IsReadOnly; 65 } 66 protected KeyedItemCollection(int capacity) : base(capacity) { 67 readOnlyView = ((ICollection<KeyValuePair<TKey, TItem>>)dict).IsReadOnly; 68 } 69 protected KeyedItemCollection(IEnumerable<TItem> collection) : base(collection) { 70 readOnlyView = ((ICollection<KeyValuePair<TKey, TItem>>)dict).IsReadOnly; 71 } 50 protected KeyedItemCollection() : base() { } 51 protected KeyedItemCollection(int capacity) : base(capacity) { } 52 protected KeyedItemCollection(IEnumerable<TItem> collection) : base(collection) { } 72 53 [StorableConstructor] 73 54 protected KeyedItemCollection(bool deserializing) { } … … 79 60 KeyedItemCollection<TKey, TItem> clone = (KeyedItemCollection<TKey, TItem>)Activator.CreateInstance(this.GetType()); 80 61 cloner.RegisterClonedObject(this, clone); 81 clone.readOnlyView = readOnlyView;82 62 foreach (TItem item in dict.Values) { 83 63 TItem clonedItem = (TItem)cloner.Clone(item); … … 105 85 if (handler != null) handler(this, EventArgs.Empty); 106 86 } 107 public event EventHandler ReadOnlyViewChanged;108 protected virtual void OnReadOnlyViewChanged() {109 EventHandler handler = ReadOnlyViewChanged;110 if (handler != null) handler(this, EventArgs.Empty);111 }112 87 } 113 88 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs
r3390 r3431 49 49 } 50 50 51 public bool ReadOnlyView {52 get { return true; }53 set { }54 }55 56 51 public ReadOnlyItemArray() : base(new ItemArray<T>()) { } 57 52 public ReadOnlyItemArray(IItemArray<T> array) : base(array) { } … … 89 84 if (handler != null) handler(this, EventArgs.Empty); 90 85 } 91 event EventHandler IContent.ReadOnlyViewChanged {92 add { }93 remove { }94 }95 86 } 96 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs
r3390 r3431 49 49 } 50 50 51 public bool ReadOnlyView {52 get { return true; }53 set { }54 }55 56 51 public ReadOnlyItemCollection() : base(new ItemCollection<T>()) { } 57 52 public ReadOnlyItemCollection(IItemCollection<T> collection) : base(collection) { } … … 89 84 if (handler != null) handler(this, EventArgs.Empty); 90 85 } 91 event EventHandler IContent.ReadOnlyViewChanged {92 add { }93 remove { }94 }95 86 } 96 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r3390 r3431 49 49 } 50 50 51 public bool ReadOnlyView {52 get { return true; }53 set { }54 }55 56 51 public ReadOnlyItemDictionary() : base(new ItemDictionary<TKey, TValue>()) { } 57 52 public ReadOnlyItemDictionary(IItemDictionary<TKey, TValue> dictionary) : base(dictionary) { } … … 89 84 if (handler != null) handler(this, EventArgs.Empty); 90 85 } 91 event EventHandler IContent.ReadOnlyViewChanged {92 add { }93 remove { }94 }95 86 } 96 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs
r3390 r3431 49 49 } 50 50 51 public bool ReadOnlyView {52 get { return true; }53 set { }54 }55 56 51 public ReadOnlyItemList() : base(new ItemList<T>()) { } 57 52 public ReadOnlyItemList(IItemList<T> list) : base(list) { } … … 89 84 if (handler != null) handler(this, EventArgs.Empty); 90 85 } 91 event EventHandler IContent.ReadOnlyViewChanged {92 add { }93 remove { }94 }95 86 } 96 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs
r3390 r3431 49 49 } 50 50 51 public bool ReadOnlyView {52 get { return true; }53 set { }54 }55 56 51 public ReadOnlyItemSet() : base(new ItemSet<T>()) { } 57 52 public ReadOnlyItemSet(IItemSet<T> set) : base(set) { } … … 89 84 if (handler != null) handler(this, EventArgs.Empty); 90 85 } 91 event EventHandler IContent.ReadOnlyViewChanged {92 add { }93 remove { }94 }95 86 } 96 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs
r3390 r3431 49 49 } 50 50 51 public bool ReadOnlyView {52 get { return true; }53 set { }54 }55 56 51 protected ReadOnlyKeyedItemCollection() : base() { } 57 52 public ReadOnlyKeyedItemCollection(IKeyedItemCollection<TKey, TItem> collection) : base(collection) { } … … 89 84 if (handler != null) handler(this, EventArgs.Empty); 90 85 } 91 event EventHandler IContent.ReadOnlyViewChanged {92 add { }93 remove { }94 }95 86 } 96 87 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ScopeList.cs
r3390 r3431 38 38 ScopeList clone = new ScopeList(); 39 39 cloner.RegisterClonedObject(this, clone); 40 clone.ReadOnlyView = ReadOnlyView;41 40 clone.list = new List<IScope>(this.Select(x => (IScope)cloner.Clone(x))); 42 41 return clone; -
trunk/sources/HeuristicLab.Core/3.3/Collections/VariableCollection.cs
r3390 r3431 38 38 VariableCollection clone = new VariableCollection(); 39 39 cloner.RegisterClonedObject(this, clone); 40 clone.ReadOnlyView = ReadOnlyView;41 40 foreach (string key in dict.Keys) 42 41 clone.dict.Add(key, (IVariable)cloner.Clone(dict[key])); -
trunk/sources/HeuristicLab.Core/3.3/Item.cs
r3385 r3431 42 42 } 43 43 44 [Storable] 45 private bool readOnlyView; 46 public virtual bool ReadOnlyView { 47 get { return readOnlyView; } 48 set { 49 if (readOnlyView != value) { 50 readOnlyView = value; 51 OnReadOnlyViewChanged(); 52 } 53 } 54 } 55 56 protected Item() 57 : base() { 58 readOnlyView = false; 59 } 44 protected Item() : base() { } 60 45 [StorableConstructor] 61 46 protected Item(bool deserializing) { } 62 63 /// <summary>64 /// Clones the current instance (deep clone).65 /// </summary>66 /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param>67 /// <returns>The cloned object as <see cref="Variable"/>.</returns>68 public override IDeepCloneable Clone(Cloner cloner) {69 Item clone = (Item)base.Clone(cloner);70 clone.readOnlyView = readOnlyView;71 return clone;72 }73 47 74 48 /// <summary> … … 85 59 if (handler != null) handler(this, EventArgs.Empty); 86 60 } 87 public event EventHandler ReadOnlyViewChanged;88 protected virtual void OnReadOnlyViewChanged() {89 EventHandler handler = ReadOnlyViewChanged;90 if (handler != null) handler(this, EventArgs.Empty);91 }92 61 public event EventHandler ToStringChanged; 93 62 protected virtual void OnToStringChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Scope.cs
r3376 r3431 104 104 Scope clone = new Scope(); 105 105 cloner.RegisterClonedObject(this, clone); 106 clone.ReadOnlyView = ReadOnlyView;107 106 clone.name = name; 108 107 clone.description = description; -
trunk/sources/HeuristicLab.Core/3.3/Variable.cs
r3341 r3431 103 103 Variable clone = new Variable(Name, Description); 104 104 cloner.RegisterClonedObject(this, clone); 105 clone.ReadOnlyView = ReadOnlyView;106 105 clone.value = (IItem)cloner.Clone(value); 107 106 clone.Initialize(); -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
r3430 r3431 111 111 dataGridView.Columns[0].Width = dataGridView.Columns[0].GetPreferredWidth(DataGridViewAutoSizeColumnMode.AllCells, true); 112 112 } 113 dataGridView.ReadOnly = Content.ReadOnlyView;114 113 dataGridView.Enabled = true; 115 114 } -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r3430 r3431 71 71 Content.ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged); 72 72 Content.RowNamesChanged -= new EventHandler(Content_RowNamesChanged); 73 Content.ReadOnlyViewChanged -= new EventHandler(Content_ReadOnlyViewChanged);74 73 base.DeregisterContentEvents(); 75 74 } … … 80 79 Content.ColumnNamesChanged += new EventHandler(Content_ColumnNamesChanged); 81 80 Content.RowNamesChanged += new EventHandler(Content_RowNamesChanged); 82 Content.ReadOnlyViewChanged += new EventHandler(Content_ReadOnlyViewChanged);83 81 } 84 82 … … 126 124 virtualRowIndizes = Enumerable.Range(0, Content.Rows).ToArray(); 127 125 //DataGridViews with Rows but no columns are not allowed ! 128 if (Content.Rows == 0 && dataGridView.RowCount != Content.Rows && !Content.ReadOnly View)126 if (Content.Rows == 0 && dataGridView.RowCount != Content.Rows && !Content.ReadOnly) 129 127 Content.Rows = dataGridView.RowCount; 130 128 else 131 129 dataGridView.RowCount = Content.Rows; 132 if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnly View)130 if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnly) 133 131 Content.Columns = dataGridView.ColumnCount; 134 132 else … … 162 160 } 163 161 164 private void UpdateReadOnlyControls() {165 dataGridView.ReadOnly = Content.ReadOnlyView;166 rowsTextBox.ReadOnly = Content.ReadOnlyView;167 columnsTextBox.ReadOnly = Content.ReadOnlyView;168 }169 170 162 private void Content_RowNamesChanged(object sender, EventArgs e) { 171 163 if (InvokeRequired) … … 191 183 else 192 184 UpdateData(); 193 }194 195 private void Content_ReadOnlyViewChanged(object sender, EventArgs e) {196 if (InvokeRequired)197 Invoke(new EventHandler(Content_ReadOnlyViewChanged), sender, e);198 else199 UpdateReadOnlyControls();200 185 } 201 186 -
trunk/sources/HeuristicLab.Data/3.3/BoolArray.cs
r3430 r3431 36 36 BoolArray clone = new BoolArray(array); 37 37 cloner.RegisterClonedObject(this, clone); 38 clone.ReadOnlyView = ReadOnlyView;39 38 clone.readOnly = readOnly; 40 39 return clone; -
trunk/sources/HeuristicLab.Data/3.3/BoolMatrix.cs
r3430 r3431 41 41 BoolMatrix clone = new BoolMatrix(); 42 42 cloner.RegisterClonedObject(this, clone); 43 clone.ReadOnlyView = ReadOnlyView;44 43 clone.matrix = (bool[,])matrix.Clone(); 45 44 clone.columnNames = new List<string>(columnNames); -
trunk/sources/HeuristicLab.Data/3.3/BoolValue.cs
r3430 r3431 41 41 BoolValue clone = new BoolValue(value); 42 42 cloner.RegisterClonedObject(this, clone); 43 clone.ReadOnlyView = ReadOnlyView;44 43 clone.readOnly = readOnly; 45 44 return clone; -
trunk/sources/HeuristicLab.Data/3.3/Comparison.cs
r3430 r3431 40 40 Comparison clone = new Comparison(value); 41 41 cloner.RegisterClonedObject(this, clone); 42 clone.ReadOnlyView = ReadOnlyView;43 42 clone.readOnly = readOnly; 44 43 return clone; -
trunk/sources/HeuristicLab.Data/3.3/DateTimeValue.cs
r3430 r3431 35 35 DateTimeValue clone = new DateTimeValue(value); 36 36 cloner.RegisterClonedObject(this, clone); 37 clone.ReadOnlyView = ReadOnlyView;38 37 clone.readOnly = readOnly; 39 38 return clone; -
trunk/sources/HeuristicLab.Data/3.3/DoubleArray.cs
r3430 r3431 36 36 DoubleArray clone = new DoubleArray(array); 37 37 cloner.RegisterClonedObject(this, clone); 38 clone.ReadOnlyView = ReadOnlyView;39 38 clone.readOnly = readOnly; 40 39 return clone; -
trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs
r3430 r3431 41 41 DoubleMatrix clone = new DoubleMatrix(); 42 42 cloner.RegisterClonedObject(this, clone); 43 clone.ReadOnlyView = ReadOnlyView;44 43 clone.matrix = (double[,])matrix.Clone(); 45 44 clone.columnNames = new List<string>(columnNames); -
trunk/sources/HeuristicLab.Data/3.3/DoubleValue.cs
r3430 r3431 41 41 DoubleValue clone = new DoubleValue(value); 42 42 cloner.RegisterClonedObject(this, clone); 43 clone.ReadOnlyView = ReadOnlyView;44 43 clone.readOnly = readOnly; 45 44 return clone; -
trunk/sources/HeuristicLab.Data/3.3/IntArray.cs
r3430 r3431 36 36 IntArray clone = new IntArray(array); 37 37 cloner.RegisterClonedObject(this, clone); 38 clone.ReadOnlyView = ReadOnlyView;39 38 clone.readOnly = readOnly; 40 39 return clone; -
trunk/sources/HeuristicLab.Data/3.3/IntMatrix.cs
r3430 r3431 41 41 IntMatrix clone = new IntMatrix(); 42 42 cloner.RegisterClonedObject(this, clone); 43 clone.ReadOnlyView = ReadOnlyView;44 43 clone.matrix = (int[,])matrix.Clone(); 45 44 clone.columnNames = new List<string>(columnNames); -
trunk/sources/HeuristicLab.Data/3.3/IntValue.cs
r3430 r3431 41 41 IntValue clone = new IntValue(value); 42 42 cloner.RegisterClonedObject(this, clone); 43 clone.ReadOnlyView = ReadOnlyView;44 43 clone.readOnly = readOnly; 45 44 return clone; -
trunk/sources/HeuristicLab.Data/3.3/PercentValue.cs
r3430 r3431 35 35 PercentValue clone = new PercentValue(value); 36 36 cloner.RegisterClonedObject(this, clone); 37 clone.ReadOnlyView = ReadOnlyView;38 37 clone.readOnly = readOnly; 39 38 return clone; -
trunk/sources/HeuristicLab.Data/3.3/StringArray.cs
r3430 r3431 91 91 StringArray clone = new StringArray(); 92 92 cloner.RegisterClonedObject(this, clone); 93 clone.ReadOnlyView = ReadOnlyView;94 93 clone.array = (string[])array.Clone(); 95 94 clone.readOnly = readOnly; -
trunk/sources/HeuristicLab.Data/3.3/StringMatrix.cs
r3430 r3431 184 184 StringMatrix clone = new StringMatrix(); 185 185 cloner.RegisterClonedObject(this, clone); 186 clone.ReadOnlyView = ReadOnlyView;187 186 clone.matrix = (string[,])matrix.Clone(); 188 187 clone.columnNames = new List<string>(columnNames); -
trunk/sources/HeuristicLab.Data/3.3/StringValue.cs
r3430 r3431 67 67 StringValue clone = new StringValue(value); 68 68 cloner.RegisterClonedObject(this, clone); 69 clone.ReadOnlyView = ReadOnlyView;70 69 clone.readOnly = readOnly; 71 70 return clone; -
trunk/sources/HeuristicLab.Data/3.3/TimeSpanValue.cs
r3430 r3431 36 36 TimeSpanValue clone = new TimeSpanValue(value); 37 37 cloner.RegisterClonedObject(this, clone); 38 clone.ReadOnlyView = ReadOnlyView;39 38 clone.readOnly = readOnly; 40 39 return clone; -
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVector.cs
r3430 r3431 45 45 BinaryVector clone = new BinaryVector(array); 46 46 cloner.RegisterClonedObject(this, clone); 47 clone.ReadOnlyView = ReadOnlyView;48 47 clone.readOnly = readOnly; 49 48 return clone; -
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/TestRandom.cs
r3380 r3431 113 113 } 114 114 115 public bool ReadOnlyView {116 get { throw new NotImplementedException(); }117 set { throw new NotImplementedException(); }118 }119 120 115 #pragma warning disable 67 121 116 public event EventHandler ItemImageChanged; 122 public event EventHandler ReadOnlyViewChanged;123 117 public event EventHandler ToStringChanged; 124 118 #pragma warning restore 67 -
trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVector.cs
r3430 r3431 45 45 IntegerVector clone = new IntegerVector(array); 46 46 cloner.RegisterClonedObject(this, clone); 47 clone.ReadOnlyView = ReadOnlyView;48 47 clone.readOnly = readOnly; 49 48 return clone; -
trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests/TestRandom.cs
r3380 r3431 113 113 } 114 114 115 public bool ReadOnlyView {116 get { throw new NotImplementedException(); }117 set { throw new NotImplementedException(); }118 }119 120 115 #pragma warning disable 67 121 116 public event EventHandler ItemImageChanged; 122 public event EventHandler ReadOnlyViewChanged;123 117 public event EventHandler ToStringChanged; 124 118 #pragma warning restore 67 -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Permutation.cs
r3430 r3431 66 66 Permutation clone = new Permutation(permutationType, array); 67 67 cloner.RegisterClonedObject(this, clone); 68 clone.ReadOnlyView = ReadOnlyView;69 68 clone.readOnly = readOnly; 70 69 return clone; -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationType.cs
r3376 r3431 35 35 PermutationType clone = new PermutationType(value); 36 36 cloner.RegisterClonedObject(this, clone); 37 clone.ReadOnlyView = ReadOnlyView;38 37 return clone; 39 38 } -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/Random.cs
r3380 r3431 113 113 } 114 114 115 public bool ReadOnlyView {116 get { throw new NotImplementedException(); }117 set { throw new NotImplementedException(); }118 }119 120 115 #pragma warning disable 67 121 116 public event EventHandler ItemImageChanged; 122 public event EventHandler ReadOnlyViewChanged;123 117 public event EventHandler ToStringChanged; 124 118 #pragma warning restore 67 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVector.cs
r3430 r3431 45 45 RealVector clone = new RealVector(array); 46 46 cloner.RegisterClonedObject(this, clone); 47 clone.ReadOnlyView = ReadOnlyView;48 47 clone.readOnly = readOnly; 49 48 return clone; -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/TestRandom.cs
r3380 r3431 113 113 } 114 114 115 public bool ReadOnlyView {116 get { throw new NotImplementedException(); }117 set { throw new NotImplementedException(); }118 }119 120 115 #pragma warning disable 67 121 116 public event EventHandler ItemImageChanged; 122 public event EventHandler ReadOnlyViewChanged;123 117 public event EventHandler ToStringChanged; 124 118 #pragma warning restore 67 -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTree.cs
r3409 r3431 77 77 SymbolicExpressionTree clone = new SymbolicExpressionTree(); 78 78 cloner.RegisterClonedObject(this, clone); 79 clone.ReadOnlyView = ReadOnlyView;80 79 clone.root = (SymbolicExpressionTreeNode)this.root.Clone(); 81 80 return clone; -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/General/GraphVisualizationInfo.cs
r3386 r3431 86 86 return clone; 87 87 } 88 89 #region IContent Members90 [Storable]91 private bool readOnlyView;92 public virtual bool ReadOnlyView {93 get { return readOnlyView; }94 set {95 if (readOnlyView != value) {96 readOnlyView = value;97 OnReadOnlyViewChanged();98 }99 }100 }101 public event EventHandler ReadOnlyViewChanged;102 protected virtual void OnReadOnlyViewChanged() {103 EventHandler handler = ReadOnlyViewChanged;104 if (handler != null) handler(this, EventArgs.Empty);105 }106 #endregion107 88 } 108 89 } -
trunk/sources/HeuristicLab.Optimization/3.3/Result.cs
r3341 r3431 111 111 Result clone = new Result(Name, Description, DataType); 112 112 cloner.RegisterClonedObject(this, clone); 113 clone.ReadOnlyView = ReadOnlyView;114 113 clone.value = (IItem)cloner.Clone(value); 115 114 clone.Initialize(); -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs
r3430 r3431 85 85 parameterNames = new List<string>(); 86 86 resultNames = new List<string>(); 87 this.ReadOnlyView = true;88 87 } 89 88 -
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/AntTrail.cs
r3317 r3431 98 98 AntTrail clone = new AntTrail(); 99 99 cloner.RegisterClonedObject(this, clone); 100 clone.ReadOnlyView = ReadOnlyView;101 100 clone.expression = (SymbolicExpressionTree)cloner.Clone(expression); 102 101 clone.world = (BoolMatrix)cloner.Clone(world); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisSolution.cs
r3408 r3431 78 78 DataAnalysisSolution clone = new DataAnalysisSolution(); 79 79 cloner.RegisterClonedObject(this, clone); 80 clone.ReadOnlyView = ReadOnlyView;81 80 clone.predictor = (IPredictor)cloner.Clone(predictor); 82 81 clone.problemData = problemData; -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs
r3430 r3431 48 48 this.VariableNames = variableNames; 49 49 this.SortableView = false; 50 this.ReadOnlyView = true;51 50 } 52 51 -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/PathTSPTour.cs
r3317 r3431 90 90 PathTSPTour clone = new PathTSPTour(); 91 91 cloner.RegisterClonedObject(this, clone); 92 clone.ReadOnlyView = ReadOnlyView;93 92 clone.coordinates = (DoubleMatrix)cloner.Clone(coordinates); 94 93 clone.permutation = (Permutation)cloner.Clone(permutation);
Note: See TracChangeset
for help on using the changeset viewer.