| 1: | // ToolsCommands.cs | |
| 2: | // Copyright (C) 2002 Mike Krueger | |
| 3: | // | |
| 4: | // This program is free software; you can redistribute it and/or modify | |
| 5: | // it under the terms of the GNU General Public License as published by | |
| 6: | // the Free Software Foundation; either version 2 of the License, or | |
| 7: | // (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: | using System; | |
| 19: | using System.Collections; | |
| 20: | using System.CodeDom.Compiler; | |
| 21: | using System.Windows.Forms; | |
| 22: | ||
| 23: | using Core.AddIns; | |
| 24: | using Core.Properties; | |
| 25: | using Core.Gui.Creators; | |
| 26: | ||
| 27: | using SharpDevelop.Gui; | |
| 28: | using SharpDevelop.Gui.Dialogs; | |
| 29: | ||
| 30: | namespace SharpDevelop.Base.Commands { | |
| 31: | ||
| 32: | public class OptionsCommand : AbstractMenuCommand | |
| 33: | { | |
| 34: | public override void Run() | |
| 35: | { | |
| 36: | TreeViewOptions optionsDialog = new TreeViewOptions((IProperties)GlobalProperties.GetProperty("SharpDevelop.DefaultEditor.Text.Document.DefaultDocumentProperties", new DefaultProperties()), | |
| 37: | AddInTreeSingleton.AddInTree.GetTreeNode("/SharpDevelop/Dialogs/OptionsDialog")); | |
| 38: | optionsDialog.Height = 460; | |
| 39: | optionsDialog.FormBorderStyle = FormBorderStyle.FixedDialog; | |
| 40: | ||
| 41: | optionsDialog.Owner = (Form)WorkbenchSingleton.Workbench; | |
| 42: | optionsDialog.ShowDialog(); | |
| 43: | optionsDialog.Dispose(); | |
| 44: | WorkbenchSingleton.Workbench.RedrawAllComponents(); | |
| 45: | } | |
| 46: | } | |
| 47: | ||
| 48: | public class ToggleFullscreenCommand : AbstractMenuCommand | |
| 49: | { | |
| 50: | public override void Run() | |
| 51: | { | |
| 52: | ((DefaultWorkbench)WorkbenchSingleton.Workbench).FullScreen = !((DefaultWorkbench)WorkbenchSingleton.Workbench).FullScreen; | |
| 53: | } | |
| 54: | } | |
| 55: | ||
| 56: | ||
| 57: | } |
This page was automatically generated by SharpDevelop.