| 1: | // WindowCommands.cs | |
| 2: | // Copyright (C) 2001 Mike Krueger | |
| 3: | // | |
| 4: | // This program is free software; you can redistribute it and/or | |
| 5: | // modify it under the terms of the GNU General Public License | |
| 6: | // as published by the Free Software Foundation; either version 2 | |
| 7: | // of the License, or (at your option) any later version. | |
| 8: | // | |
| 9: | // This program is distributed in the hope that it will be useful, | |
| 10: | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11: | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12: | // GNU General Public License for more details. | |
| 13: | // | |
| 14: | // You should have received a copy of the GNU General Public License | |
| 15: | // along with this program; if not, write to the Free Software | |
| 16: | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
| 17: | // | |
| 18: | // As a special exception, if you link this library with other files to | |
| 19: | // produce an executable, this library does not by itself cause the | |
| 20: | // resulting executable to be covered by the GNU General Public License. | |
| 21: | // This exception does not however invalidate any other reasons why the | |
| 22: | // executable file might be covered by the GNU General Public License. | |
| 23: | ||
| 24: | using System; | |
| 25: | using System.Collections; | |
| 26: | using System.CodeDom.Compiler; | |
| 27: | using System.Windows.Forms; | |
| 28: | ||
| 29: | using Core.Properties; | |
| 30: | using Core.Gui.Creators; | |
| 31: | ||
| 32: | using SharpDevelop.Gui; | |
| 33: | using SharpDevelop.Gui.Dialogs; | |
| 34: | ||
| 35: | namespace SharpDevelop.Base.Commands { | |
| 36: | ||
| 37: | public class WindowCascade : AbstractMenuCommand | |
| 38: | { | |
| 39: | public override void Run() | |
| 40: | { | |
| 41: | ((Form)WorkbenchSingleton.Workbench).LayoutMdi(MdiLayout.Cascade); | |
| 42: | } | |
| 43: | } | |
| 44: | ||
| 45: | public class WindowTileHorizontal : AbstractMenuCommand | |
| 46: | { | |
| 47: | public override void Run() | |
| 48: | { | |
| 49: | ((Form)WorkbenchSingleton.Workbench).LayoutMdi(MdiLayout.TileHorizontal); | |
| 50: | } | |
| 51: | } | |
| 52: | ||
| 53: | public class WindowTileVertical : AbstractMenuCommand | |
| 54: | { | |
| 55: | public override void Run() | |
| 56: | { | |
| 57: | ((Form)WorkbenchSingleton.Workbench).LayoutMdi(MdiLayout.TileVertical); | |
| 58: | } | |
| 59: | } | |
| 60: | ||
| 61: | public class WindowArrangeIcons : AbstractMenuCommand | |
| 62: | { | |
| 63: | public override void Run() | |
| 64: | { | |
| 65: | ((Form)WorkbenchSingleton.Workbench).LayoutMdi(MdiLayout.ArrangeIcons); | |
| 66: | } | |
| 67: | } | |
| 68: | ||
| 69: | public class CloseAllWindows : AbstractMenuCommand | |
| 70: | { | |
| 71: | public override void Run() | |
| 72: | { | |
| 73: | WorkbenchSingleton.Workbench.CloseAllFiles(); | |
| 74: | } | |
| 75: | } | |
| 76: | ||
| 77: | } |
This page was automatically generated by SharpDevelop.