Changeset 2790 for trunk/sources/HeuristicLab.Optimizer
- Timestamp:
- 02/13/10 04:37:49 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimizer/3.3
- Files:
-
- 2 deleted
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 24 using System.IO; 3 25 using System.Linq; 4 using System.Text;5 26 using System.Threading; 6 using System.IO;7 27 using System.Windows.Forms; 28 using HeuristicLab.Core; 29 using HeuristicLab.Core.Views; 8 30 using HeuristicLab.MainForm; 9 using HeuristicLab.Core;10 31 using HeuristicLab.Persistence.Default.Xml; 11 using HeuristicLab.Core.Views;12 32 13 33 namespace HeuristicLab.Optimizer { -
trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj
r2754 r2790 124 124 </ItemGroup> 125 125 <ItemGroup> 126 <EmbeddedResource Include="NewItemDialog.resx">127 <DependentUpon>NewItemDialog.cs</DependentUpon>128 </EmbeddedResource>129 <EmbeddedResource Include="OptimizerMainForm.resx">130 <DependentUpon>OptimizerMainForm.cs</DependentUpon>131 </EmbeddedResource>132 126 <EmbeddedResource Include="Properties\Resources.resx"> 133 127 <Generator>ResXFileCodeGenerator</Generator> -
trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLabOptimizerApplication.cs
r2656 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 09Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Text;25 using System.Reflection;26 22 using System.Windows.Forms; 27 23 using HeuristicLab.PluginInfrastructure; 28 using HeuristicLab.Common.Resources;29 using HeuristicLab.MainForm;30 using HeuristicLab.MainForm.WindowsForms;31 24 32 25 namespace HeuristicLab.Optimizer { … … 35 28 public override void Run() { 36 29 OptimizerMainForm mainForm = new OptimizerMainForm(typeof(IOptimizerUserInterfaceItemProvider)); 37 mainForm.ViewClosed += new EventHandler<ViewEventArgs>(FileManager.ViewClosed);38 30 Application.Run(mainForm); 39 31 } -
trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLabOptimizerPlugin.cs.frame
r2754 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 09Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Text;25 22 using HeuristicLab.PluginInfrastructure; 26 23 -
trunk/sources/HeuristicLab.Optimizer/3.3/IOptimizerUserInterfaceItemProvider.cs
r2501 r2790 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 5 21 6 22 namespace HeuristicLab.Optimizer { 7 public interface IOptimizerUserInterfaceItemProvider { 8 } 23 public interface IOptimizerUserInterfaceItemProvider { } 9 24 } -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CloseAllMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Linq; 4 using System.Text;5 25 using System.Windows.Forms; 6 using System.Drawing;7 26 using HeuristicLab.MainForm; 8 using HeuristicLab.MainForm.WindowsForms;9 using HeuristicLab.Common.Resources;10 27 11 28 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CloseMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 24 using System.Windows.Forms; 6 using System.Drawing;7 25 using HeuristicLab.MainForm; 8 using HeuristicLab.MainForm.WindowsForms;9 using HeuristicLab.Common.Resources;10 26 11 27 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/ExitMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 2 22 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 23 using System.Windows.Forms; 6 using System.Drawing;7 24 using HeuristicLab.MainForm; 8 using HeuristicLab.MainForm.WindowsForms;9 using HeuristicLab.Common.Resources;10 25 11 26 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/NewMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 2 22 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 23 using System.Drawing; 5 24 using System.Windows.Forms; 6 using System.Drawing;7 using HeuristicLab.MainForm.WindowsForms;8 25 using HeuristicLab.Common.Resources; 9 26 -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/OpenMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 2 22 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 23 using System.Drawing; 5 24 using System.Windows.Forms; 6 using System.Drawing;7 using HeuristicLab.MainForm.WindowsForms;8 25 using HeuristicLab.Common.Resources; 9 26 -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/OperatorsMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Linq; 4 using System.Text;5 25 using System.Windows.Forms; 6 using System.Drawing;26 using HeuristicLab.Core.Views; 7 27 using HeuristicLab.MainForm; 8 using HeuristicLab.MainForm.WindowsForms;9 using HeuristicLab.Common.Resources;10 using HeuristicLab.Core;11 using HeuristicLab.Core.Views;12 28 13 29 namespace HeuristicLab.Optimizer.MenuItems { 14 30 internal class OperatorsMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider { 15 private OperatorsSidebar view;16 31 private ToolStripMenuItem menuItem; 17 32 … … 27 42 28 43 protected override void OnToolStripItemSet(EventArgs e) { 29 view = new OperatorsSidebar(); 30 view.Dock = DockStyle.Left; 44 MainFormManager.MainForm.ViewShown += new EventHandler<ViewShownEventArgs>(MainForm_ViewShown); 31 45 MainFormManager.MainForm.ViewHidden += new EventHandler<ViewEventArgs>(MainForm_ViewHidden); 32 46 33 47 menuItem = ToolStripItem as ToolStripMenuItem; 34 if (menuItem != null) { 35 menuItem.Checked = true; 48 if (menuItem != null) 36 49 menuItem.CheckOnClick = true; 37 }38 view.Show();39 50 } 40 51 52 private void MainForm_ViewShown(object sender, ViewShownEventArgs e) { 53 if ((e.View is OperatorsSidebar) && (menuItem != null)) 54 menuItem.Checked = true; 55 } 41 56 private void MainForm_ViewHidden(object sender, ViewEventArgs e) { 42 if ((e.View == view) && (menuItem != null))57 if ((e.View is OperatorsSidebar) && (menuItem != null)) 43 58 menuItem.Checked = false; 44 59 } 45 60 46 61 public override void Execute() { 47 if (menuItem != null) {48 if (menuItem.Checked)49 view.Show();50 else51 52 } else {62 var view = (from v in MainFormManager.MainForm.Views 63 where v is OperatorsSidebar 64 select v as OperatorsSidebar).FirstOrDefault(); 65 if (view.IsShown) 66 view.Hide(); 67 else 53 68 view.Show(); 54 }55 69 } 56 70 } -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAllMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 24 using System.Drawing; 3 25 using System.Linq; 4 using System.Text;5 26 using System.Windows.Forms; 6 using System.Drawing;7 using HeuristicLab.MainForm;8 using HeuristicLab.MainForm.WindowsForms;9 27 using HeuristicLab.Common.Resources; 10 28 using HeuristicLab.Core; 11 using HeuristicLab. Core.Views;29 using HeuristicLab.MainForm; 12 30 13 31 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAsMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 24 using System.Windows.Forms; 6 using System.Drawing;25 using HeuristicLab.Core; 7 26 using HeuristicLab.MainForm; 8 using HeuristicLab.MainForm.WindowsForms;9 using HeuristicLab.Common.Resources;10 using HeuristicLab.Core;11 using HeuristicLab.Core.Views;12 27 13 28 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveMenuItem.cs
r2713 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 24 using System.Drawing; 5 25 using System.Windows.Forms; 6 using System.Drawing;7 using HeuristicLab.MainForm;8 using HeuristicLab.MainForm.WindowsForms;9 26 using HeuristicLab.Common.Resources; 10 27 using HeuristicLab.Core; 11 using HeuristicLab. Core.Views;28 using HeuristicLab.MainForm; 12 29 13 30 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/Separators.cs
r2708 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 2 22 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 using System.Windows.Forms;6 using System.Drawing;7 23 using HeuristicLab.MainForm; 8 using HeuristicLab.MainForm.WindowsForms;9 using HeuristicLab.Common.Resources;10 24 11 25 namespace HeuristicLab.Optimizer.MenuItems { -
trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs
r2546 r2790 1 namespace HeuristicLab.Optimizer { 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 namespace HeuristicLab.Optimizer { 2 23 partial class NewItemDialog { 3 24 /// <summary> … … 25 46 private void InitializeComponent() { 26 47 this.components = new System.ComponentModel.Container(); 27 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewItemDialog));28 48 this.okButton = new System.Windows.Forms.Button(); 29 49 this.cancelButton = new System.Windows.Forms.Button(); … … 31 51 this.nameColumnHeader = new System.Windows.Forms.ColumnHeader(); 32 52 this.descriptioncolumnHeader = new System.Windows.Forms.ColumnHeader(); 33 this.itemsLabel = new System.Windows.Forms.Label();34 this.showIconsCheckBox = new System.Windows.Forms.CheckBox();35 this.showDetailsCheckBox = new System.Windows.Forms.CheckBox();36 53 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 37 54 this.SuspendLayout(); … … 70 87 this.descriptioncolumnHeader}); 71 88 this.itemsListView.HideSelection = false; 72 this.itemsListView.Location = new System.Drawing.Point(12, 33);89 this.itemsListView.Location = new System.Drawing.Point(12, 12); 73 90 this.itemsListView.MultiSelect = false; 74 91 this.itemsListView.Name = "itemsListView"; 75 this.itemsListView.Size = new System.Drawing.Size(600, 3 70);92 this.itemsListView.Size = new System.Drawing.Size(600, 391); 76 93 this.itemsListView.TabIndex = 1; 77 94 this.itemsListView.UseCompatibleStateImageBehavior = false; 78 this.itemsListView.View = System.Windows.Forms.View. SmallIcon;95 this.itemsListView.View = System.Windows.Forms.View.Details; 79 96 this.itemsListView.SelectedIndexChanged += new System.EventHandler(this.itemTypesListView_SelectedIndexChanged); 80 97 this.itemsListView.DoubleClick += new System.EventHandler(this.itemTypesListView_DoubleClick); … … 83 100 // 84 101 this.nameColumnHeader.Text = "Name"; 102 this.nameColumnHeader.Width = 91; 85 103 // 86 104 // descriptioncolumnHeader 87 105 // 88 106 this.descriptioncolumnHeader.Text = "Description"; 89 // 90 // itemsLabel 91 // 92 this.itemsLabel.AutoSize = true; 93 this.itemsLabel.Location = new System.Drawing.Point(12, 9); 94 this.itemsLabel.Name = "itemsLabel"; 95 this.itemsLabel.Size = new System.Drawing.Size(35, 13); 96 this.itemsLabel.TabIndex = 0; 97 this.itemsLabel.Text = "&Items:"; 98 // 99 // showIconsCheckBox 100 // 101 this.showIconsCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 102 this.showIconsCheckBox.Appearance = System.Windows.Forms.Appearance.Button; 103 this.showIconsCheckBox.Checked = true; 104 this.showIconsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; 105 this.showIconsCheckBox.Image = ((System.Drawing.Image)(resources.GetObject("showIconsCheckBox.Image"))); 106 this.showIconsCheckBox.Location = new System.Drawing.Point(558, 3); 107 this.showIconsCheckBox.Name = "showIconsCheckBox"; 108 this.showIconsCheckBox.Size = new System.Drawing.Size(24, 24); 109 this.showIconsCheckBox.TabIndex = 4; 110 this.toolTip.SetToolTip(this.showIconsCheckBox, "Show Icons"); 111 this.showIconsCheckBox.UseVisualStyleBackColor = true; 112 this.showIconsCheckBox.Click += new System.EventHandler(this.showIconsCheckBox_Click); 113 // 114 // showDetailsCheckBox 115 // 116 this.showDetailsCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 117 this.showDetailsCheckBox.Appearance = System.Windows.Forms.Appearance.Button; 118 this.showDetailsCheckBox.Image = ((System.Drawing.Image)(resources.GetObject("showDetailsCheckBox.Image"))); 119 this.showDetailsCheckBox.Location = new System.Drawing.Point(588, 3); 120 this.showDetailsCheckBox.Name = "showDetailsCheckBox"; 121 this.showDetailsCheckBox.Size = new System.Drawing.Size(24, 24); 122 this.showDetailsCheckBox.TabIndex = 5; 123 this.toolTip.SetToolTip(this.showDetailsCheckBox, "Show Details"); 124 this.showDetailsCheckBox.UseVisualStyleBackColor = true; 125 this.showDetailsCheckBox.Click += new System.EventHandler(this.showDetailsCheckBox_Click); 107 this.descriptioncolumnHeader.Width = 190; 126 108 // 127 109 // NewItemDialog … … 132 114 this.CancelButton = this.cancelButton; 133 115 this.ClientSize = new System.Drawing.Size(624, 444); 134 this.Controls.Add(this.showDetailsCheckBox);135 this.Controls.Add(this.showIconsCheckBox);136 this.Controls.Add(this.itemsLabel);137 116 this.Controls.Add(this.itemsListView); 138 117 this.Controls.Add(this.cancelButton); … … 149 128 this.Shown += new System.EventHandler(this.NewItemDialog_Shown); 150 129 this.ResumeLayout(false); 151 this.PerformLayout();152 130 153 131 } … … 158 136 private System.Windows.Forms.Button cancelButton; 159 137 private System.Windows.Forms.ListView itemsListView; 160 private System.Windows.Forms.Label itemsLabel;161 private System.Windows.Forms.CheckBox showIconsCheckBox;162 private System.Windows.Forms.CheckBox showDetailsCheckBox;163 138 private System.Windows.Forms.ToolTip toolTip; 164 139 private System.Windows.Forms.ColumnHeader nameColumnHeader; -
trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.cs
r2656 r2790 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 2 23 using System.Collections.Generic; 3 using System.ComponentModel;4 using System.Data;5 using System.Drawing;6 24 using System.Linq; 7 using System.Text;8 25 using System.Windows.Forms; 26 using HeuristicLab.Core; 9 27 using HeuristicLab.PluginInfrastructure; 10 using HeuristicLab.Common.Resources;11 using HeuristicLab.Core;12 28 13 29 namespace HeuristicLab.Optimizer { … … 30 46 private void NewItemDialog_Load(object sender, EventArgs e) { 31 47 if (!initialized) { 32 SetListViewDisplayStyleCheckBoxes();33 34 48 var categories = from t in ApplicationManager.Manager.GetTypes(typeof(IItem)) 35 49 where CreatableAttribute.IsCreatable(t) … … 52 66 } 53 67 } 68 for (int i = 0; i < itemsListView.Columns.Count; i++) 69 itemsListView.Columns[i].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 54 70 initialized = true; 55 71 } … … 78 94 } 79 95 } 80 81 private void showIconsCheckBox_Click(object sender, EventArgs e) {82 itemsListView.View = View.SmallIcon;83 SetListViewDisplayStyleCheckBoxes();84 }85 private void showDetailsCheckBox_Click(object sender, EventArgs e) {86 itemsListView.View = View.Details;87 SetListViewDisplayStyleCheckBoxes();88 for (int i = 0; i < itemsListView.Columns.Count; i++)89 itemsListView.Columns[i].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);90 }91 private void SetListViewDisplayStyleCheckBoxes() {92 showIconsCheckBox.Checked = itemsListView.View == View.SmallIcon;93 showDetailsCheckBox.Checked = itemsListView.View == View.Details;94 }95 96 } 96 97 } -
trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.Designer.cs
r2656 r2790 1 namespace HeuristicLab.Optimizer { 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 namespace HeuristicLab.Optimizer { 2 23 partial class OptimizerMainForm { 3 24 /// <summary> -
trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs
r2547 r2790 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 8 23 using System.Reflection; 9 24 using System.Windows.Forms; 25 using HeuristicLab.Core.Views; 10 26 using HeuristicLab.MainForm; 11 27 using HeuristicLab.MainForm.WindowsForms; … … 25 41 private void OptimizerMainForm_Load(object sender, EventArgs e) { 26 42 Title = "HeuristicLab Optimizer " + Assembly.GetExecutingAssembly().GetName().Version.ToString(); 43 ViewClosed += new EventHandler<ViewEventArgs>(FileManager.ViewClosed); 44 OperatorsSidebar operatorsSidebar = new OperatorsSidebar(); 45 operatorsSidebar.Dock = DockStyle.Left; 46 operatorsSidebar.Show(); 27 47 } 28 48 } -
trunk/sources/HeuristicLab.Optimizer/3.3/Properties/AssemblyInfo.frame
r2754 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 09Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/NewToolBarItem.cs
r2708 r2790 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 6 22 using System.Drawing; 7 using HeuristicLab.MainForm;8 using HeuristicLab.MainForm.WindowsForms;9 23 using HeuristicLab.Common.Resources; 10 24 -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/OpenToolBarItem.cs
r2708 r2790 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 6 22 using System.Drawing; 7 using HeuristicLab.MainForm;8 using HeuristicLab.MainForm.WindowsForms;9 23 using HeuristicLab.Common.Resources; 10 24 -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveAllToolBarItem.cs
r2713 r2790 1 using System; 2 using System.Collections.Generic; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 23 using System.Drawing; 3 24 using System.Linq; 4 using System.Text;5 25 using System.Windows.Forms; 6 using System.Drawing;7 using HeuristicLab.MainForm;8 using HeuristicLab.MainForm.WindowsForms;9 26 using HeuristicLab.Common.Resources; 10 27 using HeuristicLab.Core; 11 using HeuristicLab. Core.Views;28 using HeuristicLab.MainForm; 12 29 13 30 namespace HeuristicLab.Optimizer { -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs
r2713 r2790 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 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 22 using System; 23 using System.Drawing; 5 24 using System.Windows.Forms; 6 using System.Drawing;7 using HeuristicLab.MainForm;8 using HeuristicLab.MainForm.WindowsForms;9 25 using HeuristicLab.Common.Resources; 10 26 using HeuristicLab.Core; 11 using HeuristicLab. Core.Views;27 using HeuristicLab.MainForm; 12 28 13 29 namespace HeuristicLab.Optimizer {
Note: See TracChangeset
for help on using the changeset viewer.