Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3300 for trunk


Ignore:
Timestamp:
04/11/10 04:30:31 (14 years ago)
Author:
swagner
Message:

Continued work on algorithm batch processing (#947).

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.Designer.cs

    r3281 r3300  
    5353      this.nameColumnHeader = new System.Windows.Forms.ColumnHeader();
    5454      this.valueColumnHeader = new System.Windows.Forms.ColumnHeader();
     55      this.imageList = new System.Windows.Forms.ImageList(this.components);
    5556      this.detailsGroupBox = new System.Windows.Forms.GroupBox();
    5657      this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
    57       this.imageList = new System.Windows.Forms.ImageList(this.components);
     58      this.showAlgorithmButton = new System.Windows.Forms.Button();
    5859      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5960      this.parametersResultsGroupBox.SuspendLayout();
     
    8283      this.parametersResultsGroupBox.Location = new System.Drawing.Point(0, 52);
    8384      this.parametersResultsGroupBox.Name = "parametersResultsGroupBox";
    84       this.parametersResultsGroupBox.Size = new System.Drawing.Size(495, 299);
     85      this.parametersResultsGroupBox.Size = new System.Drawing.Size(495, 272);
    8586      this.parametersResultsGroupBox.TabIndex = 4;
    8687      this.parametersResultsGroupBox.TabStop = false;
     
    100101      //
    101102      this.splitContainer.Panel2.Controls.Add(this.detailsGroupBox);
    102       this.splitContainer.Size = new System.Drawing.Size(489, 280);
     103      this.splitContainer.Size = new System.Drawing.Size(489, 253);
    103104      this.splitContainer.SplitterDistance = 177;
    104105      this.splitContainer.TabIndex = 0;
     
    125126      this.listView.Name = "listView";
    126127      this.listView.ShowItemToolTips = true;
    127       this.listView.Size = new System.Drawing.Size(171, 274);
     128      this.listView.Size = new System.Drawing.Size(171, 247);
    128129      this.listView.SmallImageList = this.imageList;
    129130      this.listView.Sorting = System.Windows.Forms.SortOrder.Ascending;
     
    132133      this.listView.View = System.Windows.Forms.View.Details;
    133134      this.listView.SelectedIndexChanged += new System.EventHandler(this.listView_SelectedIndexChanged);
     135      this.listView.DoubleClick += new System.EventHandler(this.listView_DoubleClick);
     136      this.listView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.listView_ItemDrag);
    134137      //
    135138      // nameColumnHeader
     
    140143      //
    141144      this.valueColumnHeader.Text = "Value";
     145      //
     146      // imageList
     147      //
     148      this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     149      this.imageList.ImageSize = new System.Drawing.Size(16, 16);
     150      this.imageList.TransparentColor = System.Drawing.Color.Transparent;
    142151      //
    143152      // detailsGroupBox
     
    149158      this.detailsGroupBox.Location = new System.Drawing.Point(3, 3);
    150159      this.detailsGroupBox.Name = "detailsGroupBox";
    151       this.detailsGroupBox.Size = new System.Drawing.Size(302, 274);
     160      this.detailsGroupBox.Size = new System.Drawing.Size(302, 247);
    152161      this.detailsGroupBox.TabIndex = 0;
    153162      this.detailsGroupBox.TabStop = false;
     
    162171      this.viewHost.Location = new System.Drawing.Point(6, 19);
    163172      this.viewHost.Name = "viewHost";
    164       this.viewHost.Size = new System.Drawing.Size(290, 249);
     173      this.viewHost.Size = new System.Drawing.Size(290, 222);
    165174      this.viewHost.TabIndex = 0;
    166175      this.viewHost.ViewType = null;
    167176      //
    168       // imageList
    169       //
    170       this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
    171       this.imageList.ImageSize = new System.Drawing.Size(16, 16);
    172       this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     177      // showAlgorithmButton
     178      //
     179      this.showAlgorithmButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
     180                  | System.Windows.Forms.AnchorStyles.Right)));
     181      this.showAlgorithmButton.Location = new System.Drawing.Point(0, 330);
     182      this.showAlgorithmButton.Name = "showAlgorithmButton";
     183      this.showAlgorithmButton.Size = new System.Drawing.Size(495, 23);
     184      this.showAlgorithmButton.TabIndex = 5;
     185      this.showAlgorithmButton.Text = "&Show Algorithm";
     186      this.toolTip.SetToolTip(this.showAlgorithmButton, "Show the algorithm which produced these results");
     187      this.showAlgorithmButton.UseVisualStyleBackColor = true;
     188      this.showAlgorithmButton.Click += new System.EventHandler(this.showAlgorithmButton_Click);
    173189      //
    174190      // RunView
     
    177193      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    178194      this.Controls.Add(this.parametersResultsGroupBox);
     195      this.Controls.Add(this.showAlgorithmButton);
    179196      this.Name = "RunView";
    180       this.Size = new System.Drawing.Size(495, 351);
     197      this.Size = new System.Drawing.Size(495, 353);
     198      this.Controls.SetChildIndex(this.showAlgorithmButton, 0);
    181199      this.Controls.SetChildIndex(this.parametersResultsGroupBox, 0);
    182200      this.Controls.SetChildIndex(this.descriptionLabel, 0);
     
    205223    private HeuristicLab.MainForm.WindowsForms.ViewHost viewHost;
    206224    private System.Windows.Forms.ImageList imageList;
     225    private System.Windows.Forms.Button showAlgorithmButton;
    207226
    208227  }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs

    r3280 r3300  
    117117      }
    118118    }
     119    private void listView_DoubleClick(object sender, EventArgs e) {
     120      if (listView.SelectedItems.Count == 1) {
     121        IItem item = (IItem)listView.SelectedItems[0].Tag;
     122        IView view = MainFormManager.CreateDefaultView(item);
     123        if (view != null) view.Show();
     124      }
     125    }
     126    private void listView_ItemDrag(object sender, ItemDragEventArgs e) {
     127      ListViewItem listViewItem = (ListViewItem)e.Item;
     128      IItem item = (IItem)listViewItem.Tag;
     129      DataObject data = new DataObject();
     130      data.SetData("Type", item.GetType());
     131      data.SetData("Value", item);
     132      DragDropEffects result = DoDragDrop(data, DragDropEffects.Copy | DragDropEffects.Link);
     133    }
     134    private void showAlgorithmButton_Click(object sender, EventArgs e) {
     135      MainFormManager.CreateDefaultView(Content.Algorithm).Show();
     136    }
    119137  }
    120138}
  • trunk/sources/HeuristicLab.Optimization/3.3/Run.cs

    r3280 r3300  
    7777    private void Initialize(IAlgorithm algorithm) {
    7878      this.algorithm = algorithm;
     79      this.algorithm.Runs.Clear();
    7980      parameters = new Dictionary<string, IItem>();
    8081      results = new Dictionary<string, IItem>();
Note: See TracChangeset for help on using the changeset viewer.