- Timestamp:
- 06/07/11 12:49:03 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.MainForm.WindowsForms/3.3/Controls
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.Designer.cs
r5956 r6377 51 51 this.viewContextMenuStrip = new HeuristicLab.MainForm.WindowsForms.ViewContextMenuStrip(); 52 52 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 53 this.configurationLabel = new System.Windows.Forms.Label(); 53 54 this.SuspendLayout(); 54 55 // … … 86 87 this.viewContextMenuStrip.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.viewContextMenuStrip_ItemClicked); 87 88 // 89 // configurationLabel 90 // 91 this.configurationLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 92 this.configurationLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.EditInformation; 93 this.configurationLabel.Location = new System.Drawing.Point(211, 22); 94 this.configurationLabel.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); 95 this.configurationLabel.Name = "configurationLabel"; 96 this.configurationLabel.Size = new System.Drawing.Size(16, 16); 97 this.configurationLabel.TabIndex = 0; 98 this.configurationLabel.Visible = false; 99 this.configurationLabel.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.configurationLabel_MouseDoubleClick); 100 // 88 101 // ViewHost 89 102 // … … 91 104 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 92 105 this.Controls.Add(this.viewsLabel); 106 this.Controls.Add(this.configurationLabel); 93 107 this.Controls.Add(this.messageLabel); 94 108 this.Name = "ViewHost"; … … 103 117 private System.Windows.Forms.ToolTip toolTip; 104 118 private HeuristicLab.MainForm.WindowsForms.ViewContextMenuStrip viewContextMenuStrip; 119 private System.Windows.Forms.Label configurationLabel; 105 120 106 121 } -
branches/GP.Grammar.Editor/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.cs
r5956 r6377 101 101 } 102 102 } else viewType = null; 103 configurationLabel.Visible = activeView is IConfigureableView; 104 configurationLabel.Enabled = activeView != null && !activeView.Locked; 103 105 } 104 106 } … … 189 191 private void activeView_LockedChanged(object sender, EventArgs e) { 190 192 Locked = activeView.Locked; 193 configurationLabel.Enabled = !activeView.Locked; 191 194 } 192 195 … … 200 203 base.OnSizeChanged(e); 201 204 viewsLabel.Location = new Point(Width - viewsLabel.Margin.Right - viewsLabel.Width, viewsLabel.Margin.Top); 205 configurationLabel.Location = new Point(Width - configurationLabel.Margin.Right - configurationLabel.Width, viewsLabel.Bottom + viewsLabel.Margin.Bottom + configurationLabel.Margin.Top); 202 206 } 203 207 … … 287 291 startDragAndDrop = false; 288 292 } 293 294 private void configurationLabel_MouseDoubleClick(object sender, MouseEventArgs e) { 295 ((IConfigureableView)ActiveView).ShowConfiguration(); 296 } 289 297 #endregion 290 298 }
Note: See TracChangeset
for help on using the changeset viewer.