Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4188 for trunk


Ignore:
Timestamp:
08/10/10 23:54:46 (14 years ago)
Author:
abeham
Message:

#567

  • Started adding problem wizard
Location:
trunk/tools/Templates
Files:
9 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.Designer.cs

    r4187 r4188  
    242242      this.Controls.Add(this.finishButton);
    243243      this.Controls.Add(this.panel2);
     244      this.Controls.Add(this.page1Panel);
    244245      this.Controls.Add(this.page2Panel);
    245       this.Controls.Add(this.page1Panel);
    246246      this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
    247247      this.Name = "AlgorithmWizardForm";
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.cs

    r4187 r4188  
    3737    public AlgorithmWizardForm() {
    3838      InitializeComponent();
    39       AlgorithmName = algorithmNameTextBox.Text;
    40       AlgorithmDescription = algorithmDescriptionTextBox.Text;
    41       IsMultiObjective = isMultiObjectiveCheckBox.Checked;
     39      parametersControl.AddParameter("SetSeedRandomly", "Value", "BoolValue", "True if the random seed should be set to a random value, otherwise false.", "new BoolValue(true)");
     40      parametersControl.AddParameter("Seed", "Value", "IntValue", "The random seed used to initialize the new pseudo random number generator.", string.Empty);
     41      parametersControl.AddParameter("Analyzer", "Value", "MultiAnalyzer", "The operator used to analyze each iteration.", "new MultiAnalyzer()");
    4242    }
    4343
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/HeuristicLab.VS2010Wizards.csproj

    r4182 r4188  
    9191      <DependentUpon>AlgorithmWizardForm.cs</DependentUpon>
    9292    </Compile>
     93    <Compile Include="ProblemWizardForm.cs">
     94      <SubType>Form</SubType>
     95    </Compile>
     96    <Compile Include="ProblemWizardForm.Designer.cs">
     97      <DependentUpon>ProblemWizardForm.cs</DependentUpon>
     98    </Compile>
     99    <Compile Include="ProblemWizard.cs" />
    93100    <Compile Include="ParametersControl.cs">
    94101      <SubType>UserControl</SubType>
     
    117124    <EmbeddedResource Include="AlgorithmWizardForm.resx">
    118125      <DependentUpon>AlgorithmWizardForm.cs</DependentUpon>
     126    </EmbeddedResource>
     127    <EmbeddedResource Include="ProblemWizardForm.resx">
     128      <DependentUpon>ProblemWizardForm.cs</DependentUpon>
    119129    </EmbeddedResource>
    120130    <EmbeddedResource Include="ParametersControl.resx">
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/ParametersControl.Designer.cs

    r4187 r4188  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem(new string[] {
    48             "SetSeedRandomly",
    49             "Value",
    50             "BoolValue",
    51             "True if the random seed should be set to a random value, otherwise false.",
    52             "new BoolValue(false)"}, -1);
    53       System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem(new string[] {
    54             "Seed",
    55             "Value",
    56             "IntValue",
    57             "The random seed used to initialize the new pseudo random number generator.",
    58             ""}, -1);
    59       System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem(new string[] {
    60             "Analyzer",
    61             "Value",
    62             "MultiAnalyzer",
    63             "The operator used to analyze each iteration.",
    64             "new MultiAnalyzer()"}, -1);
    6547      this.parametersListView = new System.Windows.Forms.ListView();
    6648      this.nameColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     
    9173      this.parametersListView.GridLines = true;
    9274      this.parametersListView.HideSelection = false;
    93       this.parametersListView.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
    94             listViewItem4,
    95             listViewItem5,
    96             listViewItem6});
    9775      this.parametersListView.Location = new System.Drawing.Point(35, 3);
    9876      this.parametersListView.MultiSelect = false;
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/ParametersControl.cs

    r4187 r4188  
    3333    public ParametersControl() {
    3434      InitializeComponent();
     35    }
     36
     37    public void AddParameter(string name, string type, string dataType, string description, string defaultValue) {
     38      ListViewItem item = new ListViewItem(name);
     39      item.SubItems.Add(type);
     40      item.SubItems.Add(dataType);
     41      item.SubItems.Add(description);
     42      item.SubItems.Add(defaultValue);
     43      parametersListView.Items.Add(item);
    3544    }
    3645
  • trunk/tools/Templates/VS2010Wizards.sln

    r4181 r4188  
    2626EndProject
    2727Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.VS2010Wizards.Test", "HeuristicLab.VS2010Wizards.Test\HeuristicLab.VS2010Wizards.Test.csproj", "{5908CE89-79AC-4CFC-ADA9-7D73A1D03DC4}"
     28EndProject
     29Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HeuristicLabProblemTemplate", "HeuristicLabProblemTemplate", "{3577ED45-0083-4164-89B3-01B3CE77B279}"
     30  ProjectSection(SolutionItems) = preProject
     31    HeuristicLabProblemTemplate\__TemplateIcon.ico = HeuristicLabProblemTemplate\__TemplateIcon.ico
     32    HeuristicLabProblemTemplate\DefaultProblem.cs = HeuristicLabProblemTemplate\DefaultProblem.cs
     33    HeuristicLabProblemTemplate\InstallTemplate.cmd = HeuristicLabProblemTemplate\InstallTemplate.cmd
     34    HeuristicLabProblemTemplate\MyTemplate.vstemplate = HeuristicLabProblemTemplate\MyTemplate.vstemplate
     35  EndProjectSection
    2836EndProject
    2937Global
     
    6674    {4BB6A8B2-416E-4577-A1D9-9EC3420B8EB2} = {28A05A91-A678-43B9-8573-0A7461E20F81}
    6775    {0F752C36-F6AD-480A-9720-CCEB240BE914} = {28A05A91-A678-43B9-8573-0A7461E20F81}
     76    {3577ED45-0083-4164-89B3-01B3CE77B279} = {28A05A91-A678-43B9-8573-0A7461E20F81}
    6877  EndGlobalSection
    6978EndGlobal
Note: See TracChangeset for help on using the changeset viewer.