| 0: | // Window.cs | |
| 1: | // Copyright (C) 2000 Mike Krueger | |
| 2: | // | |
| 3: | // This program is free software; you can redistribute it and/or modify | |
| 4: | // it under the terms of the GNU General Public License as published by | |
| 5: | // the Free Software Foundation; either version 2 of the License, or | |
| 6: | // (at your option) any later version. | |
| 7: | // | |
| 8: | // This program is distributed in the hope that it will be useful, | |
| 9: | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10: | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11: | // GNU General Public License for more details. | |
| 12: | // | |
| 13: | // You should have received a copy of the GNU General Public License | |
| 14: | // along with this program; if not, write to the Free Software | |
| 15: | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 16: | ||
| 17: | using Microsoft.Win32; | |
| 18: | using System; | |
| 19: | using System.Collections; | |
| 20: | using System.IO; | |
| 21: | using System.ComponentModel; | |
| 22: | using System.Windows.Forms; | |
| 23: | using System.Drawing; | |
| 24: | using System.Diagnostics; | |
| 25: | using System.CodeDom.Compiler; | |
| 26: | using System.Xml; | |
| 27: | using System.Reflection; | |
| 28: | ||
| 29: | using SharpDevelop.Actions; | |
| 30: | using SharpDevelop.Gui; | |
| 31: | using SharpDevelop.Gui.Dialogs; | |
| 32: | using SharpDevelop.Gui.Window; | |
| 33: | using SharpDevelop.Tool.Data; | |
| 34: | using SharpDevelop.Internal.Project; | |
| 35: | using SharpDevelop.Internal.Messages; | |
| 36: | ||
| 37: | namespace SharpDevelop.Actions.Menu { | |
| 38: | ||
| 39: | public class SelectNextWindow : ISdPlugin | |
| 40: | { | |
| 41: | public ISdMessageHandler MessageHandler { | |
| 42: | get { | |
| 43: | return null; | |
| 44: | } | |
| 45: | } | |
| 46: | public void Execute(ISdPluginExecutor executor) | |
| 47: | { | |
| 48: | if (executor.Main.OpenFileTab.TabCount > 0) { | |
| 49: | executor.Main.OpenFileTab.SelectedIndex = (executor.Main.OpenFileTab.SelectedIndex + 1) % executor.Main.OpenFileTab.TabCount; | |
| 50: | } | |
| 51: | } | |
| 52: | } | |
| 53: | ||
| 54: | public class SelectPrevWindow : ISdPlugin | |
| 55: | { | |
| 56: | public ISdMessageHandler MessageHandler { | |
| 57: | get { | |
| 58: | return null; | |
| 59: | } | |
| 60: | } | |
| 61: | public void Execute(ISdPluginExecutor executor) | |
| 62: | { | |
| 63: | if (executor.Main.OpenFileTab.TabCount > 0) { | |
| 64: | executor.Main.OpenFileTab.SelectedIndex = (executor.Main.OpenFileTab.SelectedIndex + executor.Main.OpenFileTab.TabCount - 1) % executor.Main.OpenFileTab.TabCount; | |
| 65: | } | |
| 66: | } | |
| 67: | } | |
| 68: | public class WindowCascade : ISdPlugin | |
| 69: | { | |
| 70: | public ISdMessageHandler MessageHandler { | |
| 71: | get { | |
| 72: | return null; | |
| 73: | } | |
| 74: | } | |
| 75: | public void Execute(ISdPluginExecutor executor) | |
| 76: | { | |
| 77: | executor.Main.LayoutMdi(MdiLayout.Cascade); | |
| 78: | } | |
| 79: | } | |
| 80: | ||
| 81: | public class WindowTileHorizontal : ISdPlugin | |
| 82: | { | |
| 83: | public ISdMessageHandler MessageHandler { | |
| 84: | get { | |
| 85: | return null; | |
| 86: | } | |
| 87: | } | |
| 88: | public void Execute(ISdPluginExecutor executor) | |
| 89: | { | |
| 90: | executor.Main.LayoutMdi(MdiLayout.TileHorizontal); | |
| 91: | } | |
| 92: | } | |
| 93: | ||
| 94: | public class WindowTileVertical : ISdPlugin | |
| 95: | { | |
| 96: | public ISdMessageHandler MessageHandler { | |
| 97: | get { | |
| 98: | return null; | |
| 99: | } | |
| 100: | } | |
| 101: | public void Execute(ISdPluginExecutor executor) | |
| 102: | { | |
| 103: | executor.Main.LayoutMdi(MdiLayout.TileVertical); | |
| 104: | } | |
| 105: | } | |
| 106: | ||
| 107: | public class WindowArrangeIcons : ISdPlugin | |
| 108: | { | |
| 109: | public ISdMessageHandler MessageHandler { | |
| 110: | get { | |
| 111: | return null; | |
| 112: | } | |
| 113: | } | |
| 114: | public void Execute(ISdPluginExecutor executor) | |
| 115: | { | |
| 116: | executor.Main.LayoutMdi(MdiLayout.ArrangeIcons); | |
| 117: | } | |
| 118: | } | |
| 119: | ||
| 120: | } |
This page was automatically generated by SharpDevelop.