Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3759 for trunk


Ignore:
Timestamp:
05/11/10 05:01:42 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

Location:
trunk/sources
Files:
1 added
7 edited

Legend:

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

    r3525 r3759  
    4646    private void InitializeComponent() {
    4747      this.engineLabel = new System.Windows.Forms.Label();
    48       this.createUserDefinedAlgorithmButton = new System.Windows.Forms.Button();
    4948      this.engineComboBox = new System.Windows.Forms.ComboBox();
    5049      this.engineTabPage = new System.Windows.Forms.TabPage();
     
    119118      //
    120119      this.executionTimeLabel.Location = new System.Drawing.Point(487, 532);
    121       this.executionTimeLabel.TabIndex = 10;
     120      this.executionTimeLabel.TabIndex = 9;
    122121      //
    123122      // executionTimeTextBox
    124123      //
    125124      this.executionTimeTextBox.Location = new System.Drawing.Point(576, 529);
    126       this.executionTimeTextBox.TabIndex = 11;
     125      this.executionTimeTextBox.TabIndex = 10;
    127126      //
    128127      // resultsTabPage
     
    169168      this.engineLabel.TabIndex = 0;
    170169      this.engineLabel.Text = "&Engine:";
    171       //
    172       // createUserDefinedAlgorithmButton
    173       //
    174       this.createUserDefinedAlgorithmButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    175       this.createUserDefinedAlgorithmButton.Location = new System.Drawing.Point(150, 525);
    176       this.createUserDefinedAlgorithmButton.Name = "createUserDefinedAlgorithmButton";
    177       this.createUserDefinedAlgorithmButton.Size = new System.Drawing.Size(254, 24);
    178       this.createUserDefinedAlgorithmButton.TabIndex = 9;
    179       this.createUserDefinedAlgorithmButton.Text = "&Create User Defined Algorithm";
    180       this.toolTip.SetToolTip(this.createUserDefinedAlgorithmButton, "Create User Defined Algorithm from this Algorithm");
    181       this.createUserDefinedAlgorithmButton.UseVisualStyleBackColor = true;
    182       this.createUserDefinedAlgorithmButton.Click += new System.EventHandler(this.createUserDefinedAlgorithmButton_Click);
    183170      //
    184171      // engineComboBox
     
    273260      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    274261      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    275       this.Controls.Add(this.createUserDefinedAlgorithmButton);
    276262      this.Name = "EngineAlgorithmView";
    277263      this.Size = new System.Drawing.Size(713, 549);
    278264      this.Controls.SetChildIndex(this.stopButton, 0);
    279       this.Controls.SetChildIndex(this.createUserDefinedAlgorithmButton, 0);
    280265      this.Controls.SetChildIndex(this.resetButton, 0);
    281266      this.Controls.SetChildIndex(this.pauseButton, 0);
     
    306291
    307292    protected System.Windows.Forms.Label engineLabel;
    308     protected System.Windows.Forms.Button createUserDefinedAlgorithmButton;
    309293    protected System.Windows.Forms.ComboBox engineComboBox;
    310294    protected System.Windows.Forms.TabPage engineTabPage;
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs

    r3640 r3759  
    108108      operatorGraphViewHost.ReadOnly = true;
    109109      engineComboBox.Enabled = Content != null && !ReadOnly;
    110       createUserDefinedAlgorithmButton.Enabled = Content != null && !Locked;
    111110    }
    112111
     
    143142      }
    144143    }
    145 
    146     protected virtual void createUserDefinedAlgorithmButton_Click(object sender, EventArgs e) {
    147       IContentView view = MainFormManager.MainForm.ShowContent(Content.CreateUserDefinedAlgorithm());
    148       if (view != null) {
    149         view.ReadOnly = this.ReadOnly;
    150         view.Locked = this.Locked;
    151       }
    152     }
    153144  }
    154145}
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs

    r3505 r3759  
    5858      this.globalScopeTabPage.SuspendLayout();
    5959      this.SuspendLayout();
    60       //
    61       // createUserDefinedAlgorithmButton
    62       //
    63       this.createUserDefinedAlgorithmButton.Enabled = false;
    64       this.toolTip.SetToolTip(this.createUserDefinedAlgorithmButton, "Create User Defined Algorithm from this Algorithm");
    65       this.createUserDefinedAlgorithmButton.Visible = false;
    6660      //
    6761      // engineComboBox
  • trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj

    r3736 r3759  
    8989    <Compile Include="MenuItems\ClipboardMenuItem.cs" />
    9090    <Compile Include="MenuItems\AboutMenuItem.cs" />
     91    <Compile Include="MenuItems\ConvertIntoUserDefinedAlgorithmMenuItem.cs" />
    9192    <Compile Include="MenuItems\CopyToClipboardMenuItem.cs" />
    9293    <Compile Include="MenuItems\StartPageMenuItem.cs" />
     
    169170      <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project>
    170171      <Name>HeuristicLab.MainForm-3.3</Name>
     172    </ProjectReference>
     173    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
     174      <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>
     175      <Name>HeuristicLab.Optimization-3.3</Name>
    171176    </ProjectReference>
    172177    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
  • trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLabOptimizerPlugin.cs.frame

    r3702 r3759  
    3333  [PluginDependency("HeuristicLab.MainForm", "3.3")]
    3434  [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")]
     35  [PluginDependency("HeuristicLab.Optimization", "3.3")]
    3536  public class HeuristicLabOptimizerPlugin : PluginBase {
    3637  }
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/AboutMenuItem.cs

    r3736 r3759  
    3939    }
    4040    public override int Position {
    41       get { return 4100; }
     41      get { return 9100; }
    4242    }
    4343
     
    4545      if (aboutDialog == null)
    4646        aboutDialog = new AboutDialog();
    47       aboutDialog.ShowDialog();
     47      aboutDialog.ShowDialog((IWin32Window)MainFormManager.MainForm);
    4848    }
    4949  }
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CopyToClipboardMenuItem.cs

    r3518 r3759  
    3939      get { return 2100; }
    4040    }
     41    public override string ToolTipText {
     42      get { return "Copy the shown content into the HeuristicLab Optimizer clipboard"; }
     43    }
    4144
    4245    protected override void OnToolStripItemSet(EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.