Changeset 3694
- Timestamp:
- 05/07/10 04:45:45 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs
r3588 r3694 249 249 T item = e.Data.GetData("Value") as T; 250 250 if (!ReadOnly && (type != null) && (item != null)) { 251 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey251 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 252 252 else if (((e.KeyState & 4) == 4) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move; // SHIFT key 253 253 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3588 r3694 259 259 ListViewItem listViewItem = itemsListView.GetItemAt(p.X, p.Y); 260 260 if (listViewItem != null) { 261 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey261 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 262 262 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 263 263 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3588 r3694 212 212 Type type = e.Data.GetData("Type") as Type; 213 213 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 214 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey214 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 215 215 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 216 216 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3588 r3694 247 247 Type type = e.Data.GetData("Type") as Type; 248 248 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 249 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey249 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 250 250 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 251 251 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableValueView.cs
r3566 r3694 104 104 Type type = e.Data.GetData("Type") as Type; 105 105 if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) { 106 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey106 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 107 107 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 108 108 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r3588 r3694 132 132 Type type = e.Data.GetData("Type") as Type; 133 133 if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) { 134 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey134 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 135 135 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 136 136 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs
r3566 r3694 225 225 Type type = e.Data.GetData("Type") as Type; 226 226 if (!ReadOnly && (type != null) && (typeof(IOperator).IsAssignableFrom(type))) { 227 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key227 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 228 228 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 229 229 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r3588 r3694 230 230 Type type = e.Data.GetData("Type") as Type; 231 231 if ((type != null) && (Content.ProblemType.IsAssignableFrom(type))) { 232 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey232 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 233 233 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 234 234 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r3588 r3694 215 215 Type type = e.Data.GetData("Type") as Type; 216 216 if ((type != null) && (typeof(IAlgorithm).IsAssignableFrom(type))) { 217 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey217 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 218 218 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 219 219 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r3632 r3694 232 232 Type type = e.Data.GetData("Type") as Type; 233 233 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(IRun).IsAssignableFrom(type))) { 234 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey234 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 235 235 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 236 236 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs
r3616 r3694 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Data; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 29 … … 199 200 } 200 201 public virtual void CollectResultValues(IDictionary<string, IItem> values) { 202 values.Add("Execution Time", new TimeSpanValue(ExecutionTime)); 201 203 foreach (IResult result in Results) 202 204 values.Add(result.Name, result.Value); … … 242 244 ExecutionState = ExecutionState.Stopped; 243 245 runsCounter++; 244 runs.Add(new Run(string.Format("{0} Run {1} ({2})", Name, runsCounter, ExecutionTime), this));246 runs.Add(new Run(string.Format("{0} Run {1}", Name, runsCounter), this)); 245 247 EventHandler handler = Stopped; 246 248 if (handler != null) handler(this, EventArgs.Empty); -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r3588 r3694 144 144 Type type = e.Data.GetData("Type") as Type; 145 145 if (!ReadOnly && (type != null) && (Content.DataType.IsAssignableFrom(type))) { 146 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey146 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 147 147 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 148 148 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r3588 r3694 132 132 Type type = e.Data.GetData("Type") as Type; 133 133 if (!ReadOnly && (type != null) && (Content.DataType.IsAssignableFrom(type))) { 134 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey134 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 135 135 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 136 136 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Problems.TestFunctions.Views/3.3/HeuristicLab.Problems.TestFunctions.Views-3.3.csproj
r3647 r3694 146 146 </ProjectReference> 147 147 </ItemGroup> 148 <ItemGroup>149 <EmbeddedResource Include="SingleObjectiveTestFunctionSolutionView.resx">150 <DependentUpon>SingleObjectiveTestFunctionSolutionView.cs</DependentUpon>151 </EmbeddedResource>152 </ItemGroup>153 148 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 154 149 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Problems.TestFunctions.Views/3.3/SingleObjectiveTestFunctionSolutionView.Designer.cs
r3661 r3694 32 32 this.textualTabPage = new System.Windows.Forms.TabPage(); 33 33 this.graphicalTabPage = new System.Windows.Forms.TabPage(); 34 this.pictureBox = new System.Windows.Forms.PictureBox(); 34 35 this.label1 = new System.Windows.Forms.Label(); 35 this.pictureBox = new System.Windows.Forms.PictureBox();36 36 this.splitContainer1.Panel1.SuspendLayout(); 37 37 this.splitContainer1.Panel2.SuspendLayout(); … … 47 47 // qualityView 48 48 // 49 this.qualityView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 50 | System.Windows.Forms.AnchorStyles.Left) 51 | System.Windows.Forms.AnchorStyles.Right))); 49 52 this.qualityView.Caption = null; 50 53 this.qualityView.Content = null; 51 this.qualityView.Dock = System.Windows.Forms.DockStyle.Fill; 52 this.qualityView.Location = new System.Drawing.Point(3, 16); 54 this.qualityView.Location = new System.Drawing.Point(6, 19); 53 55 this.qualityView.Name = "qualityView"; 54 56 this.qualityView.ReadOnly = false; 55 this.qualityView.Size = new System.Drawing.Size(4 85, 31);56 this.qualityView.TabIndex = 1;57 this.qualityView.Size = new System.Drawing.Size(479, 32); 58 this.qualityView.TabIndex = 0; 57 59 this.qualityView.ViewType = null; 58 60 // … … 62 64 this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 63 65 this.splitContainer1.IsSplitterFixed = true; 64 this.splitContainer1.Location = new System.Drawing.Point( 0, 0);66 this.splitContainer1.Location = new System.Drawing.Point(3, 3); 65 67 this.splitContainer1.Name = "splitContainer1"; 66 68 this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; … … 76 78 this.splitContainer1.Panel2MinSize = 30; 77 79 this.splitContainer1.Size = new System.Drawing.Size(491, 304); 78 this.splitContainer1.TabIndex = 7; 80 this.splitContainer1.SplitterDistance = 60; 81 this.splitContainer1.TabIndex = 0; 79 82 // 80 83 // groupBox3 81 84 // 85 this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 86 | System.Windows.Forms.AnchorStyles.Left) 87 | System.Windows.Forms.AnchorStyles.Right))); 82 88 this.groupBox3.Controls.Add(this.qualityView); 83 this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;84 89 this.groupBox3.Location = new System.Drawing.Point(0, 0); 85 90 this.groupBox3.Name = "groupBox3"; 86 this.groupBox3.Size = new System.Drawing.Size(491, 5 0);87 this.groupBox3.TabIndex = 6;91 this.groupBox3.Size = new System.Drawing.Size(491, 57); 92 this.groupBox3.TabIndex = 0; 88 93 this.groupBox3.TabStop = false; 89 94 this.groupBox3.Text = "Quality"; … … 91 96 // groupBox4 92 97 // 98 this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 99 | System.Windows.Forms.AnchorStyles.Left) 100 | System.Windows.Forms.AnchorStyles.Right))); 93 101 this.groupBox4.Controls.Add(this.realVectorView); 94 this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill; 95 this.groupBox4.Location = new System.Drawing.Point(0, 0); 102 this.groupBox4.Location = new System.Drawing.Point(0, 3); 96 103 this.groupBox4.Name = "groupBox4"; 97 this.groupBox4.Size = new System.Drawing.Size(491, 2 50);98 this.groupBox4.TabIndex = 6;104 this.groupBox4.Size = new System.Drawing.Size(491, 237); 105 this.groupBox4.TabIndex = 0; 99 106 this.groupBox4.TabStop = false; 100 107 this.groupBox4.Text = "Real vector"; … … 102 109 // realVectorView 103 110 // 111 this.realVectorView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 112 | System.Windows.Forms.AnchorStyles.Left) 113 | System.Windows.Forms.AnchorStyles.Right))); 104 114 this.realVectorView.Caption = null; 105 115 this.realVectorView.Content = null; 106 this.realVectorView.Dock = System.Windows.Forms.DockStyle.Fill; 107 this.realVectorView.Location = new System.Drawing.Point(3, 16); 116 this.realVectorView.Location = new System.Drawing.Point(6, 19); 108 117 this.realVectorView.Name = "realVectorView"; 109 118 this.realVectorView.ReadOnly = false; 110 this.realVectorView.Size = new System.Drawing.Size(4 85, 231);111 this.realVectorView.TabIndex = 1;119 this.realVectorView.Size = new System.Drawing.Size(479, 212); 120 this.realVectorView.TabIndex = 0; 112 121 this.realVectorView.ViewType = null; 113 122 // … … 121 130 this.tabControl1.SelectedIndex = 0; 122 131 this.tabControl1.Size = new System.Drawing.Size(505, 336); 123 this.tabControl1.TabIndex = 2;132 this.tabControl1.TabIndex = 0; 124 133 // 125 134 // textualTabPage … … 146 155 this.graphicalTabPage.UseVisualStyleBackColor = true; 147 156 // 157 // pictureBox 158 // 159 this.pictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 160 | System.Windows.Forms.AnchorStyles.Left) 161 | System.Windows.Forms.AnchorStyles.Right))); 162 this.pictureBox.BackColor = System.Drawing.Color.White; 163 this.pictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 164 this.pictureBox.Location = new System.Drawing.Point(6, 6); 165 this.pictureBox.Name = "pictureBox"; 166 this.pictureBox.Size = new System.Drawing.Size(485, 298); 167 this.pictureBox.TabIndex = 1; 168 this.pictureBox.TabStop = false; 169 // 148 170 // label1 149 171 // … … 155 177 this.label1.TabIndex = 0; 156 178 this.label1.Text = "The graphical view is only available for 2 dimensions"; 157 //158 // pictureBox159 //160 this.pictureBox.BackColor = System.Drawing.Color.White;161 this.pictureBox.Dock = System.Windows.Forms.DockStyle.Fill;162 this.pictureBox.Location = new System.Drawing.Point(0, 0);163 this.pictureBox.Name = "pictureBox";164 this.pictureBox.Size = new System.Drawing.Size(491, 304);165 this.pictureBox.TabIndex = 1;166 this.pictureBox.TabStop = false;167 179 // 168 180 // SingleObjectiveTestFunctionSolutionView … … 190 202 private System.Windows.Forms.SplitContainer splitContainer1; 191 203 private System.Windows.Forms.GroupBox groupBox4; 192 pr otectedHeuristicLab.MainForm.WindowsForms.ViewHost qualityView;204 private HeuristicLab.MainForm.WindowsForms.ViewHost qualityView; 193 205 private System.Windows.Forms.GroupBox groupBox3; 194 pr otectedHeuristicLab.MainForm.WindowsForms.ViewHost realVectorView;206 private HeuristicLab.MainForm.WindowsForms.ViewHost realVectorView; 195 207 private System.Windows.Forms.TabControl tabControl1; 196 208 private System.Windows.Forms.TabPage textualTabPage;
Note: See TracChangeset
for help on using the changeset viewer.