Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/09 15:24:11 (15 years ago)
Author:
mkommend
Message:

tried to add docking views - not working right now (ticket #716)

Location:
trunk/sources/HeuristicLab.MainForm/3.2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/DockForm.Designer.cs

    r2233 r2250  
    6767      this.ClientSize = new System.Drawing.Size(632, 446);
    6868      this.Controls.Add(this.viewPanel);
    69       this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.Document)));
     69      this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft)
     70            | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight)
     71            | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop)
     72            | WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom
     73            | WeifenLuo.WinFormsUI.Docking.DockAreas.Document)));
    7074      this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
    7175      this.Name = "ViewForm";
     
    7579      this.TabText = "View";
    7680      this.Text = "View";
    77       this.TextChanged += new System.EventHandler(this.ViewForm_TextChanged);
    7881      this.ResumeLayout(false);
    79 
    8082    }
    8183
  • trunk/sources/HeuristicLab.MainForm/3.2/DockForm.cs

    r2233 r2250  
    3636    public DockForm(IView view) {
    3737      InitializeComponent();
    38       this.view = view;
     38      this.view = view;     
    3939      if (View != null) {
    4040        Control control = (Control)View;
     
    6262        Invoke(new MethodInvoker(UpdateText));
    6363      else
    64         Text = View.Caption;
    65     }
    66 
    67     private void ViewForm_TextChanged(object sender, EventArgs e) {
    68       TabText = Text;
     64        TabText = View.Caption;
    6965    }
    7066
  • trunk/sources/HeuristicLab.MainForm/3.2/DockingMainForm.cs

    r2233 r2250  
    4848        DockContent content = new DockForm(view);
    4949        content.TabText = content.Text;
    50         content.Show(dockPanel);
    5150        content.Activated += new EventHandler(DockFormActivated);
    5251        content.FormClosing += new FormClosingEventHandler(DockFormClosing);
     52        content.Show(dockPanel, DockState.Document);
    5353      }
    5454    }
     
    9191      this.dockPanel.RightToLeftLayout = true;
    9292      this.dockPanel.Size = new Size(1016, 663);
     93      this.dockPanel.DocumentStyle = DocumentStyle.DockingWindow;
    9394      dockPanelGradient1.EndColor = SystemColors.ControlLight;
    9495      dockPanelGradient1.StartColor = SystemColors.ControlLight;
  • trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs

    r2243 r2250  
    3737    Type UserInterfaceItemType { get; }
    3838    void ShowView(IView view);
     39
     40    void Close();
    3941  }
    4042}
  • trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs

    r2249 r2250  
    7272      openViews.Add(view);
    7373    }
     74
     75    public void Close() {
     76      ((Form)this).Close();
     77    }
    7478    #endregion
    7579
     
    9094      foreach (IToolStripButtonItem toolStripButtonItem in toolStripItems) {
    9195        AddToolStripButtonItem(toolStripButtonItem);
    92       }
     96      }     
    9397    }
    9498
  • trunk/sources/HeuristicLab.MainForm/3.2/ViewBase.cs

    r2233 r2250  
    3030
    3131namespace HeuristicLab.MainForm {
    32   public partial class ViewBase : UserControl {
     32  public partial class ViewBase : UserControl,IView {
    3333    public ViewBase() {
    3434      InitializeComponent();
Note: See TracChangeset for help on using the changeset viewer.