Changeset 2250 for trunk/sources
- Timestamp:
- 08/06/09 15:24:11 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 added
- 9 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.Test/3.2/Actions/NewEditorAction.cs
r2249 r2250 11 11 public void Execute(IMainForm mainform) { 12 12 mainform.StatusStripText = "New Editor action called"; 13 mainform.ShowView(new EditorView()); 13 14 } 14 15 -
trunk/sources/HeuristicLab.MainForm.Test/3.2/Actions/NewFormAction.cs
r2249 r2250 10 10 11 11 public void Execute(IMainForm mainform) { 12 mainform.S tatusStripText = "New Form action called";12 mainform.ShowView(new FormView()); 13 13 } 14 14 -
trunk/sources/HeuristicLab.MainForm.Test/3.2/HeuristicLab.MainForm.Test-3.2.csproj
r2249 r2250 87 87 <Compile Include="ButtonItems\SaveToolStripButtonItem.cs" /> 88 88 <Compile Include="ButtonItems\OpenToolStripButtonItem.cs" /> 89 <Compile Include="EditorView.cs"> 90 <SubType>UserControl</SubType> 91 </Compile> 92 <Compile Include="EditorView.Designer.cs"> 93 <DependentUpon>EditorView.cs</DependentUpon> 94 </Compile> 95 <Compile Include="FormView.cs"> 96 <SubType>UserControl</SubType> 97 </Compile> 98 <Compile Include="FormView.Designer.cs"> 99 <DependentUpon>FormView.cs</DependentUpon> 100 </Compile> 101 <Compile Include="MenuItems\ExitToolStripMenuItem.cs" /> 89 102 <Compile Include="MenuItems\NewFormToolStripMenuItem.cs" /> 90 103 <Compile Include="MenuItems\NewEditorToolStripMenuItem.cs" /> … … 122 135 <None Include="Properties\AssemblyInfo.frame" /> 123 136 </ItemGroup> 137 <ItemGroup> 138 <EmbeddedResource Include="EditorView.resx"> 139 <DependentUpon>EditorView.cs</DependentUpon> 140 </EmbeddedResource> 141 <EmbeddedResource Include="FormView.resx"> 142 <DependentUpon>FormView.cs</DependentUpon> 143 </EmbeddedResource> 144 </ItemGroup> 124 145 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 125 146 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.MainForm.Test/3.2/MenuItems/ExitToolStripMenuItem.cs
r2249 r2250 9 9 10 10 namespace HeuristicLab.MainForm.Test { 11 public class SaveToolStripMenuItem : ToolStripMenuItemBase, ITestUserInterfaceItemProvider {11 public class CloseToolStripMenuItem : ToolStripMenuItemBase, ITestUserInterfaceItemProvider { 12 12 public override string Name { 13 get { return " Save"; }13 get { return "Exit"; } 14 14 } 15 15 … … 19 19 20 20 public override int Position { 21 get { return 1300; } 22 } 23 24 public override Keys ShortCutKeys { 25 get { return Keys.Control | Keys.S; } 26 } 27 28 public override System.Drawing.Image Image { 29 get { return Resources.SaveIcon; } 21 get { return 1400; } 30 22 } 31 23 32 24 public override void Execute(IMainForm mainform) { 33 new SaveAction().Execute(mainform);25 mainform.Close(); 34 26 } 35 27 } -
trunk/sources/HeuristicLab.MainForm/3.2/DockForm.Designer.cs
r2233 r2250 67 67 this.ClientSize = new System.Drawing.Size(632, 446); 68 68 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))); 70 74 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 71 75 this.Name = "ViewForm"; … … 75 79 this.TabText = "View"; 76 80 this.Text = "View"; 77 this.TextChanged += new System.EventHandler(this.ViewForm_TextChanged);78 81 this.ResumeLayout(false); 79 80 82 } 81 83 -
trunk/sources/HeuristicLab.MainForm/3.2/DockForm.cs
r2233 r2250 36 36 public DockForm(IView view) { 37 37 InitializeComponent(); 38 this.view = view; 38 this.view = view; 39 39 if (View != null) { 40 40 Control control = (Control)View; … … 62 62 Invoke(new MethodInvoker(UpdateText)); 63 63 else 64 Text = View.Caption; 65 } 66 67 private void ViewForm_TextChanged(object sender, EventArgs e) { 68 TabText = Text; 64 TabText = View.Caption; 69 65 } 70 66 -
trunk/sources/HeuristicLab.MainForm/3.2/DockingMainForm.cs
r2233 r2250 48 48 DockContent content = new DockForm(view); 49 49 content.TabText = content.Text; 50 content.Show(dockPanel);51 50 content.Activated += new EventHandler(DockFormActivated); 52 51 content.FormClosing += new FormClosingEventHandler(DockFormClosing); 52 content.Show(dockPanel, DockState.Document); 53 53 } 54 54 } … … 91 91 this.dockPanel.RightToLeftLayout = true; 92 92 this.dockPanel.Size = new Size(1016, 663); 93 this.dockPanel.DocumentStyle = DocumentStyle.DockingWindow; 93 94 dockPanelGradient1.EndColor = SystemColors.ControlLight; 94 95 dockPanelGradient1.StartColor = SystemColors.ControlLight; -
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs
r2243 r2250 37 37 Type UserInterfaceItemType { get; } 38 38 void ShowView(IView view); 39 40 void Close(); 39 41 } 40 42 } -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2249 r2250 72 72 openViews.Add(view); 73 73 } 74 75 public void Close() { 76 ((Form)this).Close(); 77 } 74 78 #endregion 75 79 … … 90 94 foreach (IToolStripButtonItem toolStripButtonItem in toolStripItems) { 91 95 AddToolStripButtonItem(toolStripButtonItem); 92 } 96 } 93 97 } 94 98 -
trunk/sources/HeuristicLab.MainForm/3.2/ViewBase.cs
r2233 r2250 30 30 31 31 namespace HeuristicLab.MainForm { 32 public partial class ViewBase : UserControl {32 public partial class ViewBase : UserControl,IView { 33 33 public ViewBase() { 34 34 InitializeComponent();
Note: See TracChangeset
for help on using the changeset viewer.