[Monodevelop-patches-list] r2263 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Commands Gui Gui/Pads
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Sun Feb 20 16:00:30 EST 2005
Author: jluke
Date: 2005-02-20 16:00:30 -0500 (Sun, 20 Feb 2005)
New Revision: 2263
Removed:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/SideBarCommands.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/ErrorDialogs/
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SideBarView.cs
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am
Log:
more cruft
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-02-20 19:52:09 UTC (rev 2262)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-02-20 21:00:30 UTC (rev 2263)
@@ -9,6 +9,10 @@
* Gui/Components/SideBar/AxSideTab.cs
* Gui/Components/SideBar/SharpDevelopSideBar.cs
* Gui/Components/SideBar/SharpDevelopSideTabItem.cs
+ * Commands/SideBarCommands.cs:
+ * Gui/Pads/SideBarView.cs:
+ * Gui/ErrorDialogs:
+ * Gui/ErrorDialogs/LoadingError.cs:
* Makefile.am: remove unused stuff from SD
2005-02-11 Todd Berman <tberman at off.net>
Deleted: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/SideBarCommands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/SideBarCommands.cs 2005-02-20 19:52:09 UTC (rev 2262)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/SideBarCommands.cs 2005-02-20 21:00:30 UTC (rev 2263)
@@ -1,189 +0,0 @@
-// <file>
-// <copyright see="prj:///doc/copyright.txt"/>
-// <license see="prj:///doc/license.txt"/>
-// <owner name="Mike Krüger" email="mike at icsharpcode.net"/>
-// <version value="$version"/>
-// </file>
-
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.Collections;
-
-using MonoDevelop.Core.AddIns;
-using MonoDevelop.Core.AddIns.Codons;
-
-using MonoDevelop.Core.Services;
-using MonoDevelop.Core.Properties;
-
-using MonoDevelop.Gui;
-using MonoDevelop.Gui.Dialogs;
-using MonoDevelop.Internal.Project;
-using MonoDevelop.Gui.Components;
-
-namespace MonoDevelop.Commands
-{/*
- public class SideBarRenameTabItem : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- AxSideTabItem item = sideBar.ActiveTab.ChoosedItem;
- if (item != null) {
- sideBar.StartRenamingOf(item);
- }
- }
- }
-
- public class SideBarDeleteTabItem: AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- AxSideTabItem item = sideBar.ActiveTab.ChoosedItem;
- ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
- StringParserService stringParserService = (StringParserService)ServiceManager.Services.GetService(typeof(StringParserService));
-
- if (item != null && MessageBox.Show(stringParserService.Parse(resourceService.GetString("SideBarComponent.ContextMenu.DeleteTabItemQuestion"), new string[,] { {"TabItem", item.Name}}),
- resourceService.GetString("Global.QuestionText"),
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Question,
- MessageBoxDefaultButton.Button2) == DialogResult.Yes) {
- sideBar.ActiveTab.Items.Remove(item);
- sideBar.Refresh();
- }
- }
- }
-
- public class SideBarAddTabHeader : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- AxSideTab tab = new AxSideTab(sideBar, "New Tab");
- sideBar.Tabs.Add(tab);
- sideBar.StartRenamingOf(tab);
- sideBar.DoAddTab = true;
- sideBar.Refresh();
- }
- }
-
- public class SideBarMoveTabUp : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- int index = sideBar.GetTabIndexAt(sideBar.SideBarMousePosition.X, sideBar.SideBarMousePosition.Y);
- if (index > 0) {
- AxSideTab tab = sideBar.Tabs[index];
- sideBar.Tabs[index] = sideBar.Tabs[index - 1];
- sideBar.Tabs[index - 1] = tab;
- sideBar.Refresh();
- }
- }
- }
- public class SideBarMoveTabDown : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- int index = sideBar.GetTabIndexAt(sideBar.SideBarMousePosition.X, sideBar.SideBarMousePosition.Y);
- if (index >= 0 && index < sideBar.Tabs.Count - 1) {
- AxSideTab tab = sideBar.Tabs[index];
- sideBar.Tabs[index] = sideBar.Tabs[index + 1];
- sideBar.Tabs[index + 1] = tab;
- sideBar.Refresh();
- }
-
- }
- }
-
- public class SideBarMoveActiveTabUp : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- int index = sideBar.Tabs.IndexOf(sideBar.ActiveTab);
- if (index > 0) {
- AxSideTab tab = sideBar.Tabs[index];
- sideBar.Tabs[index] = sideBar.Tabs[index - 1];
- sideBar.Tabs[index - 1] = tab;
- sideBar.Refresh();
- }
- }
- }
-
- public class SideBarMoveActiveMoveTabDown : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- int index = sideBar.Tabs.IndexOf(sideBar.ActiveTab);
- if (index >= 0 && index < sideBar.Tabs.Count - 1) {
- AxSideTab tab = sideBar.Tabs[index];
- sideBar.Tabs[index] = sideBar.Tabs[index + 1];
- sideBar.Tabs[index + 1] = tab;
- sideBar.Refresh();
- }
- }
- }
-
- public class SideBarDeleteTabHeader : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- AxSideTab selectedSideTab = sideBar.GetTabAt(sideBar.SideBarMousePosition.X, sideBar.SideBarMousePosition.Y);
- ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
- StringParserService stringParserService = (StringParserService)ServiceManager.Services.GetService(typeof(StringParserService));
-
- if (MessageBox.Show(stringParserService.Parse(resourceService.GetString("SideBarComponent.ContextMenu.DeleteTabHeaderQuestion"), new string[,] { {"TabHeader", selectedSideTab.Name}}),
- resourceService.GetString("Global.QuestionText"),
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Question,
- MessageBoxDefaultButton.Button2) == DialogResult.Yes) {
- sideBar.Tabs.Remove(selectedSideTab);
- sideBar.Refresh();
- }
- }
- }
-
- public class SideBarRenameTabHeader : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- sideBar.StartRenamingOf(sideBar.GetTabAt(sideBar.SideBarMousePosition.X, sideBar.SideBarMousePosition.Y));
- }
- }
-
- public class SideBarMoveActiveItemUp : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- int index = sideBar.ActiveTab.Items.IndexOf(sideBar.ActiveTab.SelectedItem);
- if (index > 0) {
- AxSideTabItem item = sideBar.ActiveTab.Items[index];
- sideBar.ActiveTab.Items[index] = sideBar.ActiveTab.Items[index - 1];
- sideBar.ActiveTab.Items[index - 1] = item;
- sideBar.Refresh();
- }
- }
- }
-
- public class SideBarMoveActiveItemDown : AbstractMenuCommand
- {
- public override void Run()
- {
- SharpDevelopSideBar sideBar = (SharpDevelopSideBar)Owner;
- int index = sideBar.ActiveTab.Items.IndexOf(sideBar.ActiveTab.SelectedItem);
- if (index >= 0 && index < sideBar.ActiveTab.Items.Count - 1) {
- AxSideTabItem item = sideBar.ActiveTab.Items[index];
- sideBar.ActiveTab.Items[index] = sideBar.ActiveTab.Items[index + 1];
- sideBar.ActiveTab.Items[index + 1] = item;
- sideBar.Refresh();
- }
- }
- }*/
-}
Deleted: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SideBarView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SideBarView.cs 2005-02-20 19:52:09 UTC (rev 2262)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SideBarView.cs 2005-02-20 21:00:30 UTC (rev 2263)
@@ -1,133 +0,0 @@
-// <file>
-// <copyright see="prj:///doc/copyright.txt"/>
-// <license see="prj:///doc/license.txt"/>
-// <owner name="Mike Krüger" email="mike at icsharpcode.net"/>
-// <version value="$version"/>
-// </file>
-
-using System;
-using System.IO;
-using System.Xml;
-
-using MonoDevelop.Gui;
-using MonoDevelop.Gui.Components;
-using MonoDevelop.Core.Properties;
-using MonoDevelop.Core.Services;
-using MonoDevelop.Services;
-
-namespace MonoDevelop.Gui.Pads
-{
- public class SideBarView : IPadContent, IDisposable
- {
- public Gtk.Widget Control {
- get {
- return null;
- //return sideBar; FIXME
- }
- }
-
- public string Title {
- get {
- return GettextCatalog.GetString ("Toolbox");
- }
- }
-
- public string Icon {
- get {
- return "Icons.16x16.ToolBar";
- }
- }
-
- public void RedrawContent()
- {
- OnTitleChanged(null);
- OnIconChanged(null);
- //sideBar.Refresh();
- }
-
- public void Dispose()
- {
- SaveSideBarViewConfig();
- //sideBar.Dispose();
- }
-
- //public static SharpDevelopSideBar sideBar = null;
- public SideBarView()
- {
- try {
- XmlDocument doc = new XmlDocument();
- doc.Load (Runtime.Properties.ConfigDirectory + "SideBarConfig.xml");
- if (doc.DocumentElement.Attributes["version"] == null || doc.DocumentElement.Attributes["version"].InnerText != "1.0") {
- GenerateStandardSideBar();
- } else {
- //sideBar = new SharpDevelopSideBar(doc.DocumentElement["SideBar"]);
- }
- } catch (Exception) {
- GenerateStandardSideBar();
- }
-
- //sideBar.Dock = DockStyle.Fill;
- }
-
- void GenerateStandardSideBar()
- {/*
- sideBar = new SharpDevelopSideBar();
- AxSideTab tab = new AxSideTab(sideBar, "${res:SharpDevelop.SideBar.GeneralCategory}");
-
- sideBar.Tabs.Add(tab);
- sideBar.ActiveTab = tab;
-
- tab = new AxSideTab(sideBar, "${res:SharpDevelop.SideBar.ClipboardRing}");
- tab.IsClipboardRing = true;
- tab.CanBeDeleted = false;
- tab.CanDragDrop = false;
- sideBar.Tabs.Add(tab);*/
- }
-
- public static void PutInClipboardRing(string text)
- {/*
- if (sideBar != null) {
- sideBar.PutInClipboardRing(text);
- sideBar.Refresh();
- }*/
- }
-
- public void SaveSideBarViewConfig()
- {/*
- XmlDocument doc = new XmlDocument();
- doc.LoadXml("<SideBarConfig version=\"1.0\"/>");
- doc.DocumentElement.AppendChild(sideBar.ToXmlElement(doc));
- PropertyService propertyService = (PropertyService)ServiceManager.Services.GetService(typeof(PropertyService));
-
- FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
- fileUtilityService.ObservedSave(new NamedFileOperationDelegate(doc.Save),
- propertyService.ConfigDirectory + "SideBarConfig.xml",
- FileErrorPolicy.ProvideAlternative);*/
- }
-
- protected virtual void OnTitleChanged(EventArgs e)
- {
- if (TitleChanged != null) {
- TitleChanged(this, e);
- }
- }
- protected virtual void OnIconChanged(EventArgs e)
- {
- if (IconChanged != null) {
- IconChanged(this, e);
- }
- }
- public event EventHandler TitleChanged;
- public event EventHandler IconChanged;
-
- public void BringToFront()
- {
- if (!WorkbenchSingleton.Workbench.WorkbenchLayout.IsVisible(this)) {
- WorkbenchSingleton.Workbench.WorkbenchLayout.ShowPad(this);
- }
- WorkbenchSingleton.Workbench.WorkbenchLayout.ActivatePad(this);
- }
-
- }
-}
-
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am 2005-02-20 19:52:09 UTC (rev 2262)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am 2005-02-20 21:00:30 UTC (rev 2263)
@@ -42,7 +42,6 @@
Gui/Pads/ClassScout/BrowserNode/AbstractClassScoutNode.cs \
Gui/Pads/HelpBrowser/MonodocTreePad.cs \
Gui/Pads/HelpBrowser/HelpViewer.cs \
-Gui/Pads/SideBarView.cs \
Gui/Pads/DefaultMonitorPad.cs \
Gui/AbstractPadContent.cs \
Gui/ISecondaryViewContent.cs \
@@ -112,7 +111,6 @@
Gui/ContentInterfaces/IParseInformationListener.cs \
Gui/ContentInterfaces/IParsableContent.cs \
Gui/IBaseViewContent.cs \
-Gui/ErrorDialogs/LoadingError.cs \
Gui/IWorkbenchLayout.cs \
Gui/ErrorHandlers/GenericError.cs \
Gui/ErrorHandlers/CombineLoadError.cs \
@@ -151,7 +149,6 @@
Commands/ProjectCommands.cs \
Commands/VBConverter/ConvertProject.cs \
Commands/VBConverter/ConvertBuffer.cs \
-Commands/SideBarCommands.cs \
Commands/ProjectOptionsCommands.cs \
Commands/EditCommands.cs \
Commands/WindowCommands.cs \
More information about the Monodevelop-patches-list
mailing list