Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2010-05-10 14:50:55 +0400
committerLluis Sanchez <lluis@novell.com>2010-05-10 14:50:55 +0400
commit5fe1b5c222531d4225df39f6ab710b6b97058161 (patch)
treeef88e1ccef062971dd09c5a397a6cad3563b6b95 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components
parent8c334b75305c2b9cddd1a31b73f4b5ed49d6fd23 (diff)
* MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs: Update zoom
commands according to the zoom status. svn path=/trunk/monodevelop/; revision=157003
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs
index fa0d892002..1c969027c8 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs
@@ -937,6 +937,24 @@ namespace MonoDevelop.Ide.Gui.Components
Zoom = 1;
}
+ [CommandUpdateHandler (ViewCommands.ZoomIn)]
+ protected void UpdateZoomIn (CommandInfo cinfo)
+ {
+ cinfo.Enabled = Zoom != 8.0;
+ }
+
+ [CommandUpdateHandler (ViewCommands.ZoomOut)]
+ protected void UpdateZoomOut (CommandInfo cinfo)
+ {
+ cinfo.Enabled = Zoom != 0.3;
+ }
+
+ [CommandUpdateHandler (ViewCommands.ZoomReset)]
+ protected void UpdateZoomReset (CommandInfo cinfo)
+ {
+ cinfo.Enabled = Zoom != 1;
+ }
+
[CommandHandler (EditCommands.Copy)]
public void CopyCurrentItem ()
{