Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/11/11 17:54:42 (13 years ago)
Author:
mkommend
Message:

#1618: Enabled problem data changes in DataAnalysisSolutions.

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs

    r6652 r6653  
    3535      set { base.Content = value; }
    3636    }
     37
     38    #region drag and drop
     39    protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
     40      validDragOperation = false;
     41      if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is ClassificationProblemData)) {
     42        validDragOperation = true;
     43      }
     44    }
     45    #endregion
    3746  }
    3847}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClusteringSolutionView.cs

    r6652 r6653  
    3535      set { base.Content = value; }
    3636    }
     37
     38    #region drag and drop
     39    protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
     40      validDragOperation = false;
     41      if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is ClusteringProblemData)) {
     42        validDragOperation = true;
     43      }
     44    }
     45    #endregion
    3746  }
    3847}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r6652 r6653  
    3737      InitializeComponent();
    3838      viewHost.ViewsLabelVisible = false;
    39       base.ReadOnly = true;
    4039    }
    4140
     
    118117        itemsListView.Items.Remove(item);
    119118    }
     119
     120    #region drag and drop
     121    protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
     122      validDragOperation = false;
     123      if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData)) {
     124        validDragOperation = true;
     125      }
     126    }
     127
     128    protected override void itemsListView_DragDrop(object sender, DragEventArgs e) {
     129      if (e.Effect != DragDropEffects.None) {
     130        if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData) {
     131          DataAnalysisProblemData problemData = (DataAnalysisProblemData)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
     132          Content.ProblemData = (DataAnalysisProblemData)problemData.Clone();
     133        }
     134      }
     135    }
     136    #endregion
    120137  }
    121138}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/RegressionSolutionView.cs

    r6652 r6653  
    3535      set { base.Content = value; }
    3636    }
     37
     38    #region drag and drop
     39    protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
     40      validDragOperation = false;
     41      if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is RegressionProblemData)) {
     42        validDragOperation = true;
     43      }
     44    }
     45    #endregion
    3746  }
    3847}
Note: See TracChangeset for help on using the changeset viewer.