- Timestamp:
- 04/16/13 13:13:41 (12 years ago)
- Location:
- branches/OaaS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.designer.cs
r8187 r9363 1 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2012 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 namespace HeuristicLab.MainForm.WindowsForms { 3 23 partial class ProgressView { -
branches/OaaS/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewContextMenuStrip.cs
r7259 r9363 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Linq; 25 26 using System.Windows.Forms; … … 33 34 } 34 35 35 public ViewContextMenuStrip(object item) 36 : this() { 37 this.Item = item; 36 public ViewContextMenuStrip(IContainer container) 37 : base(container) { 38 InitializeComponent(); 39 this.menuItems = new Dictionary<Type, ToolStripMenuItem>(); 40 this.ignoredViewTypes = new List<Type>(); 38 41 } 39 42 … … 63 66 if (InvokeRequired) Invoke((Action)RefreshMenuItems); 64 67 else { 68 foreach (ToolStripMenuItem m in menuItems.Values) 69 m.Dispose(); 65 70 this.Items.Clear(); 66 71 this.menuItems.Clear(); -
branches/OaaS/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.Designer.cs
r7967 r9363 48 48 this.messageLabel = new System.Windows.Forms.Label(); 49 49 this.viewsLabel = new System.Windows.Forms.Label(); 50 this.viewContextMenuStrip = new HeuristicLab.MainForm.WindowsForms.ViewContextMenuStrip( );50 this.viewContextMenuStrip = new HeuristicLab.MainForm.WindowsForms.ViewContextMenuStrip(this.components); 51 51 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 52 52 this.configurationLabel = new System.Windows.Forms.Label(); … … 66 66 // 67 67 this.viewsLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 68 this.viewsLabel.ContextMenuStrip = this.viewContextMenuStrip; 68 69 this.viewsLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Windows; 69 70 this.viewsLabel.Location = new System.Drawing.Point(211, 0); -
branches/OaaS/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.cs
r7259 r9363 181 181 activeView.CaptionChanged += new EventHandler(activeView_CaptionChanged); 182 182 activeView.LockedChanged += new EventHandler(activeView_LockedChanged); 183 activeView.Changed += new EventHandler(activeView_Changed); 183 184 } 184 185 private void DeregisterActiveViewEvents() { 185 186 activeView.CaptionChanged -= new EventHandler(activeView_CaptionChanged); 186 187 activeView.LockedChanged -= new EventHandler(activeView_LockedChanged); 188 activeView.Changed -= new EventHandler(activeView_Changed); 187 189 } 188 190 private void activeView_CaptionChanged(object sender, EventArgs e) { … … 193 195 configurationLabel.Enabled = !activeView.Locked; 194 196 } 197 private void activeView_Changed(object sender, EventArgs e) { 198 OnChanged(); 199 } 195 200 196 201 protected override void OnSizeChanged(EventArgs e) { 197 202 //mkommend: solution to resizing issues. taken from http://support.microsoft.com/kb/953934 198 203 //not implemented with a panel to reduce the number of nested controls 199 if (Handle != null) 204 //also cf. http://connect.microsoft.com/VisualStudio/feedback/details/98368/csc-incorrectly-allows-comparison-between-intptr-and-null 205 if (Handle != IntPtr.Zero) 200 206 this.BeginInvoke((Action<EventArgs>)OnSizeChangedHelper, e); 201 207 }
Note: See TracChangeset
for help on using the changeset viewer.