Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14903 for branches


Ignore:
Timestamp:
05/02/17 15:28:48 (8 years ago)
Author:
pfleck
Message:

#2709

  • Added warning when creating a new regression/classification that data will be lost.
  • Renamed view shortcuts to have a more descriptive name instead of the camel casing.
  • Added missing license header.
Location:
branches/DataPreprocessing Enhancements
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs

    r14545 r14903  
    126126    }
    127127    private void newRegressionToolStripMenuItem_Click(object sender, EventArgs e) {
    128       Content.Import(new RegressionProblemData());
     128      if (CheckNew("Regression"))
     129        Content.Import(new RegressionProblemData());
    129130    }
    130131    private void newClassificationToolStripMenuItem_Click(object sender, EventArgs e) {
    131       Content.Import(new ClassificationProblemData());
     132      if (CheckNew("Classification"))
     133        Content.Import(new ClassificationProblemData());
    132134    }
    133135    private void newTimeSeriesToolStripMenuItem_Click(object sender, EventArgs e) {
    134       Content.Import(new TimeSeriesPrognosisProblemData());
     136      if (CheckNew("Time Series Prognosis"))
     137        Content.Import(new TimeSeriesPrognosisProblemData());
     138    }
     139
     140    private bool CheckNew(string type) {
     141      return DialogResult.OK == MessageBox.Show(
     142               this,
     143               string.Format("When creating a new {0}, all previous information will be lost.", type),
     144               "Continue?",
     145               MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
    135146    }
    136147    #endregion
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/Utils/VerticalLabel.cs

    r14514 r14903  
    1 
    2 #region License Information
     1#region License Information
    32/* HeuristicLab
    43 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/DataCompletenessChartContent.cs

    r14467 r14903  
    1 using System.Drawing;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System.Drawing;
    223using HeuristicLab.Common;
    324using HeuristicLab.Core;
    425
    526namespace HeuristicLab.DataPreprocessing {
    6   [Item("DataCompletenessChart", "Represents a datacompleteness chart.")]
     27  [Item("Data Completeness Chart", "Represents a datacompleteness chart.")]
    728
    829  public class DataCompletenessChartContent : Item, IViewShortcut {
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/DataGridContent.cs

    r14185 r14903  
    3030namespace HeuristicLab.DataPreprocessing {
    3131
    32   [Item("DataGrid", "Represents a data grid.")]
     32  [Item("Data Grid", "Represents a data grid.")]
    3333  public class DataGridContent : Item, IStringConvertibleMatrix, IViewShortcut {
    3434
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/LineChartContent.cs

    r14459 r14903  
    2626namespace HeuristicLab.DataPreprocessing {
    2727
    28   [Item("LineChart", "Represents the line chart grid.")]
     28  [Item("Line Chart", "Represents the line chart grid.")]
    2929  public class LineChartContent : PreprocessingChartContent {
    3030
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/MultiScatterPlotContent.cs

    r14462 r14903  
    2626namespace HeuristicLab.DataPreprocessing {
    2727
    28   [Item("MultiScatterPlot", "Represents a multi scatter plot.")]
     28  [Item("Multi Scatter Plot", "Represents a multi scatter plot.")]
    2929  public class MultiScatterPlotContent : ScatterPlotContent {
    3030
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/SingleScatterPlotContent.cs

    r14725 r14903  
    2626namespace HeuristicLab.DataPreprocessing {
    2727
    28   [Item("ScatterPlot", "Represents a scatter plot.")]
     28  [Item("Scatter Plot", "Represents a scatter plot.")]
    2929  public class SingleScatterPlotContent : ScatterPlotContent {
    3030
Note: See TracChangeset for help on using the changeset viewer.