diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-03-08 14:18:38 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-03-08 14:18:38 +0300 |
commit | a46b6e0f6dc60626efc00420596f5ca8377dea88 (patch) | |
tree | c4d394128d02b54aa89c427938d0b09b07f5a1b1 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons | |
parent | 03d6b2923810950ff6a926ee109b4c5473aef817 (diff) | |
parent | b5fde8dbb2d3c5aa458b1ad4f96eac7f7d757b28 (diff) |
* MonoDevelop.Ide.FindInFiles/Scope.cs:
* MonoDevelop.Ide.FindInFiles/FindReplace.cs:
* MonoDevelop.Ide.FindInFiles/FindInFilesDialog.cs: Make better use of
progress monitors. Use it to log the directories being searched.
* MonoDevelop.Ide.Gui/Workbench.cs:
* MonoDevelop.Ide.Tasks/TaskStore.cs:
* MonoDevelop.Ide.Tasks/TaskService.cs:
* MonoDevelop.Ide.Commands/ViewCommands.cs:
* MonoDevelop.Ide.Gui.Pads/ILocationListPad.cs:
* MonoDevelop.Ide.FindInFiles/SearchResultPad.cs:
* MonoDevelop.Ide.Gui/TextFileNavigationPoint.cs:
* MonoDevelop.Ide.FindInFiles/SearchResultWidget.cs: Improved Show
Next/Previous command (F4). The list on which the command works now
has to be explicitly set using the
IdeApp.Workbench.ActiveLocationList.
* Makefile.am:
* MonoDevelop.Ide.csproj: Added new files.
* MonoDevelop.Ide.Commands/NavigationCommands.cs: Some api changes.
* MonoDevelop.Ide.Gui.Pads/FileScout.cs:
* MonoDevelop.Ide.Tasks/ITaskListView.cs:
* MonoDevelop.Ide.Tasks/UserTasksView.cs:
* MonoDevelop.Ide.Gui.Pads/TaskListPad.cs:
* MonoDevelop.Ide.Tasks/CommentTasksView.cs:
* MonoDevelop.Ide.Gui.Pads/InternalLogPad.cs:
* MonoDevelop.Ide.Gui.Pads.ClassPad/ClassBrowserPad.cs:
* MonoDevelop.Ide.Gui.Pads.ClassPad/ClassBrowserPadWidget.cs: Use the
new DockItemToolbar for showing toolbar commands.
* MonoDevelop.Ide.Gui.Components/LogView.cs:
* MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs: Factorized the widget
which shows log from an IProgressMonitor from DefaultMonitorPad into
the new LogView widget.
* MonoDevelop.Ide.Gui/ProjectOperations.cs:
* MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs: Use the new
DockItemToolbar for showing toolbar commands. Integrated the output
pad into the errors list pad.
* MonoDevelop.Ide.Gui/IdePreferences.cs:
* MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs:
* gtk-gui/MonoDevelop.Ide.Gui.OptionPanels.IDEStyleOptionsPanelWidget.cs:
Added option for selection the GUI compactness.
* MonoDevelop.Ide.Gui.OptionPanels/BuildMessagePanel.cs:
* gtk-gui/MonoDevelop.Ide.Gui.OptionPanels.BuildMessagePanelWidget.cs:
Removed option for showing the build output pad, since it is now
integrated into the errors pad.
* MonoDevelop.Ide.addin.xml: Show the errors pad minimized by default.
* gtk-gui/gui.stetic: Updated.
* MonoDevelop.Ide.Gui/HiddenWorkbenchWindow.cs: Fix warning.
* MonoDevelop.Ide.Gui/OutputProgressMonitor.cs: Factorized into the
new LogView widget.
* MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs:
* MonoDevelop.Ide.Gui/NavigationHistoryService.cs: Changed the api to
be able to make the NavigationPoint class more reusable. It is now
being used by the Show Next/Previous infrastructure.
* MonoDevelop.Ide.Gui/MonoDevelopStatusBar.cs: Embed the bottom dock
bar.
* MonoDevelop.Ide.Gui/IPadContainer.cs: Added flags for setting a pad
as Working, HasErrors and HasNewData.
* MonoDevelop.Ide.Gui/IWorkbench.cs:
* MonoDevelop.Ide.Gui/IWorkbenchLayout.cs:
* MonoDevelop.Ide.Gui/DefaultWorkbench.cs:
* MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs: Removed IWorkbech and
IWorkbenchLayout interfaces, which are internal and not required
anymore.
* MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs: Track misc api changes.
Implement the new IPadWindow.IsWorking, HasErrors and HasNewData
properties.
* MonoDevelop.Ide.Gui/ProgressMonitors.cs: By default, autohide
dynamically created output pads. The build progress monitor now
shows the log in the errors list pad. Don't use spaces in the output
pad ids, since it may break serialization into xml.
* MonoDevelop.Ide.Gui/Pad.cs: Track class name changes.
* MonoDevelop.Ide.Gui/DockItemToolbarLoader.cs: New utility class with
extension methods which allows loading a docking toolbar from a
command entry set.
* MonoDevelop.Ide.Codons/PadCodon.cs: Allow setting a default status
for a pad (e.g. auto hide). Allow setting a custom widget as label
to show when the pad is in autohide mode.
* MonoDevelop.Ide.Gui/SideBar.cs: New layout switcher. Not yet used.
* MonoDevelop.Ide.Gui/WorkbenchWindow.cs: New base class for the root
workbench window.
* MonoDevelop.Ide.Gui/WorkbenchContext.cs: File renamed from
IWorkspace.
svn path=/trunk/monodevelop/; revision=153243
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs index fd888fdaba..aaa1193c23 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs @@ -36,11 +36,12 @@ using MonoDevelop.Core; using Mono.Addins; using MonoDevelop.Core.Gui; using MonoDevelop.Ide.Gui; +using MonoDevelop.Components.Docking; namespace MonoDevelop.Ide.Codons { [ExtensionNode ("Pad", "Registers a pad to be shown in the workbench.")] - public class PadCodon : ExtensionNode + public class PadCodon : ExtensionNode, IDockItemLabelProvider { IPadContent content; string id; @@ -64,7 +65,16 @@ namespace MonoDevelop.Ide.Codons )] string defaultPlacement = "left"; + [NodeAttribute ("defaultStatus", "Default status ofthe pad. It can be 'Dockable', 'Floating', 'AutoHide'.")] + DockItemStatus defaultStatus = DockItemStatus.Dockable; + + [NodeAttribute("dockLabelProvider", "Name of a class implementing IDockItemLabelProvider. " + + "Using this class it is possible to use a custom widget as label when the item" + + "is docked in auto-hide mode.")] + string dockLabelProvider = null; + string[] contexts; + IDockItemLabelProvider cachedDockLabelProvider; bool initializeCalled; public IPadContent PadContent { @@ -114,6 +124,10 @@ namespace MonoDevelop.Ide.Codons get { return defaultPlacement; } } + public DockItemStatus DefaultStatus { + get { return defaultStatus; } + } + public string[] Contexts { get { return contexts; } } @@ -143,5 +157,13 @@ namespace MonoDevelop.Ide.Codons return (IPadContent) Addin.CreateInstance (className, true); } + Gtk.Widget IDockItemLabelProvider.CreateLabel (Gtk.Orientation orientation) + { + if (dockLabelProvider == null) + return null; + if (cachedDockLabelProvider == null) + cachedDockLabelProvider = (IDockItemLabelProvider) Addin.CreateInstance (dockLabelProvider, true); + return cachedDockLabelProvider.CreateLabel (orientation); + } } } |