Changeset 3431


Ignore:
Timestamp:
04/20/10 03:00:00 (11 years ago)
Author:
swagner
Message:

Removed property ReadOnlyView (#969)

Location:
trunk/sources
Files:
56 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/DataRow.cs

    r3376 r3431  
    5454      DataRow clone = new DataRow(Name, Description);
    5555      cloner.RegisterClonedObject(this, clone);
    56       clone.ReadOnlyView = ReadOnlyView;
    5756      clone.values.AddRange(values);
    5857      return clone;
  • trunk/sources/HeuristicLab.Analysis/3.3/DataTable.cs

    r3376 r3431  
    5858      DataTable clone = new DataTable(Name, Description);
    5959      cloner.RegisterClonedObject(this, clone);
    60       clone.ReadOnlyView = ReadOnlyView;
    6160      clone.rows = (NamedItemCollection<DataRow>)cloner.Clone(rows);
    6261      return clone;
  • trunk/sources/HeuristicLab.Common/3.3/Content/Content.cs

    r3414 r3431  
    2626
    2727namespace 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 { }
    5429}
  • trunk/sources/HeuristicLab.Common/3.3/Content/IContent.cs

    r3414 r3431  
    2626
    2727namespace HeuristicLab.Common {
    28   public interface IContent :IDeepCloneable{
    29     bool ReadOnlyView { get; set; }
    30     event EventHandler ReadOnlyViewChanged;
    31   }
     28  public interface IContent : IDeepCloneable { }
    3229}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs

    r3390 r3431  
    5252    }
    5353
    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) { }
    8358    [StorableConstructor]
    8459    protected ItemArray(bool deserializing) { }
     
    9065      ItemArray<T> clone = (ItemArray<T>)Activator.CreateInstance(this.GetType());
    9166      cloner.RegisterClonedObject(this, clone);
    92       clone.readOnlyView = readOnlyView;
    9367      clone.array = this.Select(x => (T)cloner.Clone(x)).ToArray();
    9468      return clone;
     
    11387      if (handler != null) handler(this, EventArgs.Empty);
    11488    }
    115     public event EventHandler ReadOnlyViewChanged;
    116     protected virtual void OnReadOnlyViewChanged() {
    117       EventHandler handler = ReadOnlyViewChanged;
    118       if (handler != null) handler(this, EventArgs.Empty);
    119     }
    12089  }
    12190}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs

    r3390 r3431  
    4949    }
    5050
    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) { }
    7654    [StorableConstructor]
    7755    protected ItemCollection(bool deserializing) { }
     
    8361      ItemCollection<T> clone = (ItemCollection<T>)Activator.CreateInstance(this.GetType());
    8462      cloner.RegisterClonedObject(this, clone);
    85       clone.readOnlyView = readOnlyView;
    8663      clone.list = new List<T>(this.Select(x => (T)cloner.Clone(x)));
    8764      return clone;
     
    10683      if (handler != null) handler(this, EventArgs.Empty);
    10784    }
    108     public event EventHandler ReadOnlyViewChanged;
    109     protected virtual void OnReadOnlyViewChanged() {
    110       EventHandler handler = ReadOnlyViewChanged;
    111       if (handler != null) handler(this, EventArgs.Empty);
    112     }
    11385  }
    11486}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs

    r3390 r3431  
    4949    }
    5050
    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) { }
    7654    [StorableConstructor]
    7755    protected ItemDictionary(bool deserializing) { }
     
    8361      ItemDictionary<TKey, TValue> clone = (ItemDictionary<TKey, TValue>)Activator.CreateInstance(this.GetType());
    8462      cloner.RegisterClonedObject(this, clone);
    85       clone.readOnlyView = readOnlyView;
    8663      foreach (TKey key in dict.Keys)
    8764        clone.dict.Add((TKey)cloner.Clone(key), (TValue)cloner.Clone(dict[key]));
     
    10784      if (handler != null) handler(this, EventArgs.Empty);
    10885    }
    109     public event EventHandler ReadOnlyViewChanged;
    110     protected virtual void OnReadOnlyViewChanged() {
    111       EventHandler handler = ReadOnlyViewChanged;
    112       if (handler != null) handler(this, EventArgs.Empty);
    113     }
    11486  }
    11587}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs

    r3390 r3431  
    5252    }
    5353
    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) { }
    7957    [StorableConstructor]
    8058    protected ItemList(bool deserializing) { }
     
    8664      ItemList<T> clone = (ItemList<T>)Activator.CreateInstance(this.GetType());
    8765      cloner.RegisterClonedObject(this, clone);
    88       clone.readOnlyView = readOnlyView;
    8966      clone.list = new List<T>(this.Select(x => (T)cloner.Clone(x)));
    9067      return clone;
     
    10986      if (handler != null) handler(this, EventArgs.Empty);
    11087    }
    111     public event EventHandler ReadOnlyViewChanged;
    112     protected virtual void OnReadOnlyViewChanged() {
    113       EventHandler handler = ReadOnlyViewChanged;
    114       if (handler != null) handler(this, EventArgs.Empty);
    115     }
    11688  }
    11789}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs

    r3390 r3431  
    5252    }
    5353
    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) { }
    7556    [StorableConstructor]
    7657    protected ItemSet(bool deserializing) { }
     
    8263      ItemSet<T> clone = (ItemSet<T>)Activator.CreateInstance(this.GetType());
    8364      cloner.RegisterClonedObject(this, clone);
    84       clone.readOnlyView = readOnlyView;
    8565      clone.set = new HashSet<T>(this.Select(x => (T)cloner.Clone(x)));
    8666      return clone;
     
    10585      if (handler != null) handler(this, EventArgs.Empty);
    10686    }
    107     public event EventHandler ReadOnlyViewChanged;
    108     protected virtual void OnReadOnlyViewChanged() {
    109       EventHandler handler = ReadOnlyViewChanged;
    110       if (handler != null) handler(this, EventArgs.Empty);
    111     }
    11287  }
    11388}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs

    r3390 r3431  
    4848    }
    4949
    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) { }
    7253    [StorableConstructor]
    7354    protected KeyedItemCollection(bool deserializing) { }
     
    7960      KeyedItemCollection<TKey, TItem> clone = (KeyedItemCollection<TKey, TItem>)Activator.CreateInstance(this.GetType());
    8061      cloner.RegisterClonedObject(this, clone);
    81       clone.readOnlyView = readOnlyView;
    8262      foreach (TItem item in dict.Values) {
    8363        TItem clonedItem = (TItem)cloner.Clone(item);
     
    10585      if (handler != null) handler(this, EventArgs.Empty);
    10686    }
    107     public event EventHandler ReadOnlyViewChanged;
    108     protected virtual void OnReadOnlyViewChanged() {
    109       EventHandler handler = ReadOnlyViewChanged;
    110       if (handler != null) handler(this, EventArgs.Empty);
    111     }
    11287  }
    11388}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs

    r3390 r3431  
    4949    }
    5050
    51     public bool ReadOnlyView {
    52       get { return true; }
    53       set { }
    54     }
    55 
    5651    public ReadOnlyItemArray() : base(new ItemArray<T>()) { }
    5752    public ReadOnlyItemArray(IItemArray<T> array) : base(array) { }
     
    8984      if (handler != null) handler(this, EventArgs.Empty);
    9085    }
    91     event EventHandler IContent.ReadOnlyViewChanged {
    92       add { }
    93       remove { }
    94     }
    9586  }
    9687}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs

    r3390 r3431  
    4949    }
    5050
    51     public bool ReadOnlyView {
    52       get { return true; }
    53       set { }
    54     }
    55 
    5651    public ReadOnlyItemCollection() : base(new ItemCollection<T>()) { }
    5752    public ReadOnlyItemCollection(IItemCollection<T> collection) : base(collection) { }
     
    8984      if (handler != null) handler(this, EventArgs.Empty);
    9085    }
    91     event EventHandler IContent.ReadOnlyViewChanged {
    92       add { }
    93       remove { }
    94     }
    9586  }
    9687}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs

    r3390 r3431  
    4949    }
    5050
    51     public bool ReadOnlyView {
    52       get { return true; }
    53       set { }
    54     }
    55 
    5651    public ReadOnlyItemDictionary() : base(new ItemDictionary<TKey, TValue>()) { }
    5752    public ReadOnlyItemDictionary(IItemDictionary<TKey, TValue> dictionary) : base(dictionary) { }
     
    8984      if (handler != null) handler(this, EventArgs.Empty);
    9085    }
    91     event EventHandler IContent.ReadOnlyViewChanged {
    92       add { }
    93       remove { }
    94     }
    9586  }
    9687}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs

    r3390 r3431  
    4949    }
    5050
    51     public bool ReadOnlyView {
    52       get { return true; }
    53       set { }
    54     }
    55 
    5651    public ReadOnlyItemList() : base(new ItemList<T>()) { }
    5752    public ReadOnlyItemList(IItemList<T> list) : base(list) { }
     
    8984      if (handler != null) handler(this, EventArgs.Empty);
    9085    }
    91     event EventHandler IContent.ReadOnlyViewChanged {
    92       add { }
    93       remove { }
    94     }
    9586  }
    9687}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs

    r3390 r3431  
    4949    }
    5050
    51     public bool ReadOnlyView {
    52       get { return true; }
    53       set { }
    54     }
    55 
    5651    public ReadOnlyItemSet() : base(new ItemSet<T>()) { }
    5752    public ReadOnlyItemSet(IItemSet<T> set) : base(set) { }
     
    8984      if (handler != null) handler(this, EventArgs.Empty);
    9085    }
    91     event EventHandler IContent.ReadOnlyViewChanged {
    92       add { }
    93       remove { }
    94     }
    9586  }
    9687}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs

    r3390 r3431  
    4949    }
    5050
    51     public bool ReadOnlyView {
    52       get { return true; }
    53       set { }
    54     }
    55 
    5651    protected ReadOnlyKeyedItemCollection() : base() { }
    5752    public ReadOnlyKeyedItemCollection(IKeyedItemCollection<TKey, TItem> collection) : base(collection) { }
     
    8984      if (handler != null) handler(this, EventArgs.Empty);
    9085    }
    91     event EventHandler IContent.ReadOnlyViewChanged {
    92       add { }
    93       remove { }
    94     }
    9586  }
    9687}
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ScopeList.cs

    r3390 r3431  
    3838      ScopeList clone = new ScopeList();
    3939      cloner.RegisterClonedObject(this, clone);
    40       clone.ReadOnlyView = ReadOnlyView;
    4140      clone.list = new List<IScope>(this.Select(x => (IScope)cloner.Clone(x)));
    4241      return clone;
  • trunk/sources/HeuristicLab.Core/3.3/Collections/VariableCollection.cs

    r3390 r3431  
    3838      VariableCollection clone = new VariableCollection();
    3939      cloner.RegisterClonedObject(this, clone);
    40       clone.ReadOnlyView = ReadOnlyView;
    4140      foreach (string key in dict.Keys)
    4241        clone.dict.Add(key, (IVariable)cloner.Clone(dict[key]));
  • trunk/sources/HeuristicLab.Core/3.3/Item.cs

    r3385 r3431  
    4242    }
    4343
    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() { }
    6045    [StorableConstructor]
    6146    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     }
    7347
    7448    /// <summary>
     
    8559      if (handler != null) handler(this, EventArgs.Empty);
    8660    }
    87     public event EventHandler ReadOnlyViewChanged;
    88     protected virtual void OnReadOnlyViewChanged() {
    89       EventHandler handler = ReadOnlyViewChanged;
    90       if (handler != null) handler(this, EventArgs.Empty);
    91     }
    9261    public event EventHandler ToStringChanged;
    9362    protected virtual void OnToStringChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Scope.cs

    r3376 r3431  
    104104      Scope clone = new Scope();
    105105      cloner.RegisterClonedObject(this, clone);
    106       clone.ReadOnlyView = ReadOnlyView;
    107106      clone.name = name;
    108107      clone.description = description;
  • trunk/sources/HeuristicLab.Core/3.3/Variable.cs

    r3341 r3431  
    103103      Variable clone = new Variable(Name, Description);
    104104      cloner.RegisterClonedObject(this, clone);
    105       clone.ReadOnlyView = ReadOnlyView;
    106105      clone.value = (IItem)cloner.Clone(value);
    107106      clone.Initialize();
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs

    r3430 r3431  
    111111        dataGridView.Columns[0].Width = dataGridView.Columns[0].GetPreferredWidth(DataGridViewAutoSizeColumnMode.AllCells, true);
    112112      }
    113       dataGridView.ReadOnly = Content.ReadOnlyView;
    114113      dataGridView.Enabled = true;
    115114    }
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r3430 r3431  
    7171      Content.ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged);
    7272      Content.RowNamesChanged -= new EventHandler(Content_RowNamesChanged);
    73       Content.ReadOnlyViewChanged -= new EventHandler(Content_ReadOnlyViewChanged);
    7473      base.DeregisterContentEvents();
    7574    }
     
    8079      Content.ColumnNamesChanged += new EventHandler(Content_ColumnNamesChanged);
    8180      Content.RowNamesChanged += new EventHandler(Content_RowNamesChanged);
    82       Content.ReadOnlyViewChanged += new EventHandler(Content_ReadOnlyViewChanged);
    8381    }
    8482
     
    126124      virtualRowIndizes = Enumerable.Range(0, Content.Rows).ToArray();
    127125      //DataGridViews with Rows but no columns are not allowed !
    128       if (Content.Rows == 0 && dataGridView.RowCount != Content.Rows && !Content.ReadOnlyView)
     126      if (Content.Rows == 0 && dataGridView.RowCount != Content.Rows && !Content.ReadOnly)
    129127        Content.Rows = dataGridView.RowCount;
    130128      else
    131129        dataGridView.RowCount = Content.Rows;
    132       if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnlyView)
     130      if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnly)
    133131        Content.Columns = dataGridView.ColumnCount;
    134132      else
     
    162160    }
    163161
    164     private void UpdateReadOnlyControls() {
    165       dataGridView.ReadOnly = Content.ReadOnlyView;
    166       rowsTextBox.ReadOnly = Content.ReadOnlyView;
    167       columnsTextBox.ReadOnly = Content.ReadOnlyView;
    168     }
    169 
    170162    private void Content_RowNamesChanged(object sender, EventArgs e) {
    171163      if (InvokeRequired)
     
    191183      else
    192184        UpdateData();
    193     }
    194 
    195     private void Content_ReadOnlyViewChanged(object sender, EventArgs e) {
    196       if (InvokeRequired)
    197         Invoke(new EventHandler(Content_ReadOnlyViewChanged), sender, e);
    198       else
    199         UpdateReadOnlyControls();
    200185    }
    201186
  • trunk/sources/HeuristicLab.Data/3.3/BoolArray.cs

    r3430 r3431  
    3636      BoolArray clone = new BoolArray(array);
    3737      cloner.RegisterClonedObject(this, clone);
    38       clone.ReadOnlyView = ReadOnlyView;
    3938      clone.readOnly = readOnly;
    4039      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/BoolMatrix.cs

    r3430 r3431  
    4141      BoolMatrix clone = new BoolMatrix();
    4242      cloner.RegisterClonedObject(this, clone);
    43       clone.ReadOnlyView = ReadOnlyView;
    4443      clone.matrix = (bool[,])matrix.Clone();
    4544      clone.columnNames = new List<string>(columnNames);
  • trunk/sources/HeuristicLab.Data/3.3/BoolValue.cs

    r3430 r3431  
    4141      BoolValue clone = new BoolValue(value);
    4242      cloner.RegisterClonedObject(this, clone);
    43       clone.ReadOnlyView = ReadOnlyView;
    4443      clone.readOnly = readOnly;
    4544      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/Comparison.cs

    r3430 r3431  
    4040      Comparison clone = new Comparison(value);
    4141      cloner.RegisterClonedObject(this, clone);
    42       clone.ReadOnlyView = ReadOnlyView;
    4342      clone.readOnly = readOnly;
    4443      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/DateTimeValue.cs

    r3430 r3431  
    3535      DateTimeValue clone = new DateTimeValue(value);
    3636      cloner.RegisterClonedObject(this, clone);
    37       clone.ReadOnlyView = ReadOnlyView;
    3837      clone.readOnly = readOnly;
    3938      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/DoubleArray.cs

    r3430 r3431  
    3636      DoubleArray clone = new DoubleArray(array);
    3737      cloner.RegisterClonedObject(this, clone);
    38       clone.ReadOnlyView = ReadOnlyView;
    3938      clone.readOnly = readOnly;
    4039      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs

    r3430 r3431  
    4141      DoubleMatrix clone = new DoubleMatrix();
    4242      cloner.RegisterClonedObject(this, clone);
    43       clone.ReadOnlyView = ReadOnlyView;
    4443      clone.matrix = (double[,])matrix.Clone();
    4544      clone.columnNames = new List<string>(columnNames);
  • trunk/sources/HeuristicLab.Data/3.3/DoubleValue.cs

    r3430 r3431  
    4141      DoubleValue clone = new DoubleValue(value);
    4242      cloner.RegisterClonedObject(this, clone);
    43       clone.ReadOnlyView = ReadOnlyView;
    4443      clone.readOnly = readOnly;
    4544      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/IntArray.cs

    r3430 r3431  
    3636      IntArray clone = new IntArray(array);
    3737      cloner.RegisterClonedObject(this, clone);
    38       clone.ReadOnlyView = ReadOnlyView;
    3938      clone.readOnly = readOnly;
    4039      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/IntMatrix.cs

    r3430 r3431  
    4141      IntMatrix clone = new IntMatrix();
    4242      cloner.RegisterClonedObject(this, clone);
    43       clone.ReadOnlyView = ReadOnlyView;
    4443      clone.matrix = (int[,])matrix.Clone();
    4544      clone.columnNames = new List<string>(columnNames);
  • trunk/sources/HeuristicLab.Data/3.3/IntValue.cs

    r3430 r3431  
    4141      IntValue clone = new IntValue(value);
    4242      cloner.RegisterClonedObject(this, clone);
    43       clone.ReadOnlyView = ReadOnlyView;
    4443      clone.readOnly = readOnly;
    4544      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/PercentValue.cs

    r3430 r3431  
    3535      PercentValue clone = new PercentValue(value);
    3636      cloner.RegisterClonedObject(this, clone);
    37       clone.ReadOnlyView = ReadOnlyView;
    3837      clone.readOnly = readOnly;
    3938      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/StringArray.cs

    r3430 r3431  
    9191      StringArray clone = new StringArray();
    9292      cloner.RegisterClonedObject(this, clone);
    93       clone.ReadOnlyView = ReadOnlyView;
    9493      clone.array = (string[])array.Clone();
    9594      clone.readOnly = readOnly;
  • trunk/sources/HeuristicLab.Data/3.3/StringMatrix.cs

    r3430 r3431  
    184184      StringMatrix clone = new StringMatrix();
    185185      cloner.RegisterClonedObject(this, clone);
    186       clone.ReadOnlyView = ReadOnlyView;
    187186      clone.matrix = (string[,])matrix.Clone();
    188187      clone.columnNames = new List<string>(columnNames);
  • trunk/sources/HeuristicLab.Data/3.3/StringValue.cs

    r3430 r3431  
    6767      StringValue clone = new StringValue(value);
    6868      cloner.RegisterClonedObject(this, clone);
    69       clone.ReadOnlyView = ReadOnlyView;
    7069      clone.readOnly = readOnly;
    7170      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/TimeSpanValue.cs

    r3430 r3431  
    3636      TimeSpanValue clone = new TimeSpanValue(value);
    3737      cloner.RegisterClonedObject(this, clone);
    38       clone.ReadOnlyView = ReadOnlyView;
    3938      clone.readOnly = readOnly;
    4039      return clone;
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVector.cs

    r3430 r3431  
    4545      BinaryVector clone = new BinaryVector(array);
    4646      cloner.RegisterClonedObject(this, clone);
    47       clone.ReadOnlyView = ReadOnlyView;
    4847      clone.readOnly = readOnly;
    4948      return clone;
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/TestRandom.cs

    r3380 r3431  
    113113    }
    114114
    115     public bool ReadOnlyView {
    116       get { throw new NotImplementedException(); }
    117       set { throw new NotImplementedException(); }
    118     }
    119 
    120115#pragma warning disable 67
    121116    public event EventHandler ItemImageChanged;
    122     public event EventHandler ReadOnlyViewChanged;
    123117    public event EventHandler ToStringChanged;
    124118#pragma warning restore 67
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVector.cs

    r3430 r3431  
    4545      IntegerVector clone = new IntegerVector(array);
    4646      cloner.RegisterClonedObject(this, clone);
    47       clone.ReadOnlyView = ReadOnlyView;
    4847      clone.readOnly = readOnly;
    4948      return clone;
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests/TestRandom.cs

    r3380 r3431  
    113113    }
    114114
    115     public bool ReadOnlyView {
    116       get { throw new NotImplementedException(); }
    117       set { throw new NotImplementedException(); }
    118     }
    119 
    120115#pragma warning disable 67
    121116    public event EventHandler ItemImageChanged;
    122     public event EventHandler ReadOnlyViewChanged;
    123117    public event EventHandler ToStringChanged;
    124118#pragma warning restore 67
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Permutation.cs

    r3430 r3431  
    6666      Permutation clone = new Permutation(permutationType, array);
    6767      cloner.RegisterClonedObject(this, clone);
    68       clone.ReadOnlyView = ReadOnlyView;
    6968      clone.readOnly = readOnly;
    7069      return clone;
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationType.cs

    r3376 r3431  
    3535      PermutationType clone = new PermutationType(value);
    3636      cloner.RegisterClonedObject(this, clone);
    37       clone.ReadOnlyView = ReadOnlyView;
    3837      return clone;
    3938    }
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/Random.cs

    r3380 r3431  
    113113    }
    114114
    115     public bool ReadOnlyView {
    116       get { throw new NotImplementedException(); }
    117       set { throw new NotImplementedException(); }
    118     }
    119 
    120115#pragma warning disable 67
    121116    public event EventHandler ItemImageChanged;
    122     public event EventHandler ReadOnlyViewChanged;
    123117    public event EventHandler ToStringChanged;
    124118#pragma warning restore 67
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVector.cs

    r3430 r3431  
    4545      RealVector clone = new RealVector(array);
    4646      cloner.RegisterClonedObject(this, clone);
    47       clone.ReadOnlyView = ReadOnlyView;
    4847      clone.readOnly = readOnly;
    4948      return clone;
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/TestRandom.cs

    r3380 r3431  
    113113    }
    114114
    115     public bool ReadOnlyView {
    116       get { throw new NotImplementedException(); }
    117       set { throw new NotImplementedException(); }
    118     }
    119 
    120115#pragma warning disable 67
    121116    public event EventHandler ItemImageChanged;
    122     public event EventHandler ReadOnlyViewChanged;
    123117    public event EventHandler ToStringChanged;
    124118#pragma warning restore 67
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTree.cs

    r3409 r3431  
    7777      SymbolicExpressionTree clone = new SymbolicExpressionTree();
    7878      cloner.RegisterClonedObject(this, clone);
    79       clone.ReadOnlyView = ReadOnlyView;
    8079      clone.root = (SymbolicExpressionTreeNode)this.root.Clone();
    8180      return clone;
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/General/GraphVisualizationInfo.cs

    r3386 r3431  
    8686      return clone;
    8787    }
    88 
    89     #region IContent Members
    90     [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     #endregion
    10788  }
    10889}
  • trunk/sources/HeuristicLab.Optimization/3.3/Result.cs

    r3341 r3431  
    111111      Result clone = new Result(Name, Description, DataType);
    112112      cloner.RegisterClonedObject(this, clone);
    113       clone.ReadOnlyView = ReadOnlyView;
    114113      clone.value = (IItem)cloner.Clone(value);
    115114      clone.Initialize();
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs

    r3430 r3431  
    8585      parameterNames = new List<string>();
    8686      resultNames = new List<string>();
    87       this.ReadOnlyView = true;
    8887    }
    8988
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/AntTrail.cs

    r3317 r3431  
    9898      AntTrail clone = new AntTrail();
    9999      cloner.RegisterClonedObject(this, clone);
    100       clone.ReadOnlyView = ReadOnlyView;
    101100      clone.expression = (SymbolicExpressionTree)cloner.Clone(expression);
    102101      clone.world = (BoolMatrix)cloner.Clone(world);
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisSolution.cs

    r3408 r3431  
    7878      DataAnalysisSolution clone = new DataAnalysisSolution();
    7979      cloner.RegisterClonedObject(this, clone);
    80       clone.ReadOnlyView = ReadOnlyView;
    8180      clone.predictor = (IPredictor)cloner.Clone(predictor);
    8281      clone.problemData = problemData;
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs

    r3430 r3431  
    4848      this.VariableNames = variableNames;
    4949      this.SortableView = false;
    50       this.ReadOnlyView = true;
    5150    }
    5251
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/PathTSPTour.cs

    r3317 r3431  
    9090      PathTSPTour clone = new PathTSPTour();
    9191      cloner.RegisterClonedObject(this, clone);
    92       clone.ReadOnlyView = ReadOnlyView;
    9392      clone.coordinates = (DoubleMatrix)cloner.Clone(coordinates);
    9493      clone.permutation = (Permutation)cloner.Clone(permutation);
Note: See TracChangeset for help on using the changeset viewer.