Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/11 19:52:35 (13 years ago)
Author:
abeham
Message:

#1465

  • Added new interface IConfigureableView to HeuristicLab.MainForm
  • Adapted ViewHost to show a configuration button when its ActiveView is of type IConfigureableView
  • Changed DataTableHistoryView to be an IConfigureableView
  • When changing the configuration of a history view the configuration will be applied to every frame
  • Fixed a bug in calculating the histogram (when all values were the same)
  • Added preceeding and trailing 0-bar in the histogram to prevent cutting the first and last column in the view
  • Added a method Replace(IEnumerable<T>) to the ObservableList to do Clear() and AddRange() with just a single event notification
    • Calling that method from the QualityDistributionAnalyzer (otherwise the result view is flickering)
  • Fixing a bug regarding axis labels in the QualityDistributionAnalyzer
  • Removed double AfterDeserializationHook in QAP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram/HeuristicLab.Analysis.Views/3.3/DataTableHistoryView.cs

    r5445 r6115  
    2727  [View("DataTableHistory View")]
    2828  [Content(typeof(DataTableHistory), true)]
    29   public partial class DataTableHistoryView : MovieView<DataTable> {
     29  public partial class DataTableHistoryView : MovieView<DataTable>, IConfigureableView {
    3030    public DataTableHistoryView() {
    3131      InitializeComponent();
    3232      itemsGroupBox.Text = "Data Table";
    3333    }
     34
     35    public void ShowConfiguration() {
     36      DataTable current = viewHost.Content as DataTable;
     37      if (current == null) return;
     38      using (DataTableVisualPropertiesDialog dialog = new DataTableVisualPropertiesDialog(current)) {
     39        if (dialog.ShowDialog() != DialogResult.OK) return;
     40        foreach (DataTable dt in Content) {
     41          if (current != dt) {
     42            dt.VisualProperties = (DataTableVisualProperties)current.VisualProperties.Clone();
     43            foreach (DataRow row in current.Rows)
     44              dt.Rows[row.Name].VisualProperties = (DataRowVisualProperties)row.VisualProperties.Clone();
     45          }
     46        }
     47      }
     48    }
     49
    3450  }
    3551}
Note: See TracChangeset for help on using the changeset viewer.