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.MainForm.WindowsForms/3.3/Controls/ViewHost.cs

    r5956 r6115  
    101101            }
    102102          } else viewType = null;
     103          configurationLabel.Visible = activeView is IConfigureableView;
     104          configurationLabel.Enabled = activeView != null && !activeView.Locked;
    103105        }
    104106      }
     
    189191    private void activeView_LockedChanged(object sender, EventArgs e) {
    190192      Locked = activeView.Locked;
     193      configurationLabel.Enabled = !activeView.Locked;
    191194    }
    192195
     
    200203      base.OnSizeChanged(e);
    201204      viewsLabel.Location = new Point(Width - viewsLabel.Margin.Right - viewsLabel.Width, viewsLabel.Margin.Top);
     205      configurationLabel.Location = new Point(Width - configurationLabel.Margin.Right - configurationLabel.Width, viewsLabel.Bottom + viewsLabel.Margin.Bottom + configurationLabel.Margin.Top);
    202206    }
    203207
     
    287291        startDragAndDrop = false;
    288292    }
     293
     294    private void configurationLabel_MouseDoubleClick(object sender, MouseEventArgs e) {
     295      ((IConfigureableView)ActiveView).ShowConfiguration();
     296    }
    289297    #endregion
    290298  }
Note: See TracChangeset for help on using the changeset viewer.