From a79cc4799067947bcc6308c56b1e215013103c3f Mon Sep 17 00:00:00 2001 From: lingutln Date: Fri, 23 Dec 2011 21:02:27 +0000 Subject: [PATCH] Added Toggle Between Segmentation and Labelling icon in the menu bar. Done by Nikhil. svn path=/; revision=236 --- Annotation/resources/config/view.properties | 3 +++ Annotation/src/ie/dcu/apps/ist/AppWindow.java | 2 +- Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Annotation/resources/config/view.properties b/Annotation/resources/config/view.properties index 73be3a2..7759757 100644 --- a/Annotation/resources/config/view.properties +++ b/Annotation/resources/config/view.properties @@ -4,6 +4,9 @@ SegmentationView.Action.Foreground.image=file:resources/icons/foreground.png SegmentationView.Action.Background.text=Markup Background SegmentationView.Action.Background.tooltip=Markup Background Pixels SegmentationView.Action.Background.image=file:resources/icons/background.png +SegmentationView.Action.OperatingMode.text=Toggle between Segmentation and Labelling +SegmentationView.Action.OperatingMode.tooltip=Toggle between Segmentation and Labelling +SegmentationView.Action.OperatingMode.image=file:resources/icons/copy.png SegmentationView.Action.ZoomIn.text=Zoom In SegmentationView.Action.ZoomIn.tooltip=Zoom In SegmentationView.Action.ZoomIn.image=file:resources/icons/zoom-in.png diff --git a/Annotation/src/ie/dcu/apps/ist/AppWindow.java b/Annotation/src/ie/dcu/apps/ist/AppWindow.java index 59b4211..30e3315 100644 --- a/Annotation/src/ie/dcu/apps/ist/AppWindow.java +++ b/Annotation/src/ie/dcu/apps/ist/AppWindow.java @@ -221,7 +221,7 @@ public class AppWindow extends ApplicationWindow implements FileDropListener { super.configureShell(shell); updateWindowTitle(); loadIcons(shell); - shell.setSize(800, 600); + shell.setSize(900, 650); SwtUtils.center(shell); } diff --git a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java index d7dadce..56669a4 100644 --- a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java +++ b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java @@ -89,6 +89,7 @@ public class SegmentationView extends Composite { public enum Tool { Foreground, Background, + OperatingMode, ZoomIn, ZoomOut, ZoomOriginal, @@ -163,6 +164,7 @@ public class SegmentationView extends Composite { ToolBarManager m = new ToolBarManager(bar1); m.add(getAction(Tool.Foreground)); m.add(getAction(Tool.Background)); + m.add(getAction(Tool.OperatingMode)); m.add(new Separator()); m.add(getAction(Tool.ZoomIn)); m.add(getAction(Tool.ZoomOut)); -- 2.34.1