Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
Added new icon for specifying to form a segment. Done by Nikhil.
authorlingutln <lingutln@localhost>
Tue, 3 Jan 2012 20:00:50 +0000 (20:00 +0000)
committerlingutln <lingutln@localhost>
Tue, 3 Jan 2012 20:00:50 +0000 (20:00 +0000)
svn path=/; revision=248

Annotation/resources/config/view.properties
Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java

index 77597571b7b41394c6eb00a0295113587d82c4e7..38e43a0d5602c30d8a37cb80d323abba604b705d 100644 (file)
@@ -7,6 +7,9 @@ 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.FormSegment.text=Form a segment from current view.
+SegmentationView.Action.FormSegment.tooltip=Form a segment from current view.
+SegmentationView.Action.FormSegment.image=file:resources/icons/apply.png
 SegmentationView.Action.ZoomIn.text=Zoom In
 SegmentationView.Action.ZoomIn.tooltip=Zoom In
 SegmentationView.Action.ZoomIn.image=file:resources/icons/zoom-in.png
index 3695cb8dbfa90103bfae32e059e2e69e6b99a070..7de28f589d8fea2b956926b95e6a87f7faea10ea 100644 (file)
@@ -95,6 +95,7 @@ public class SegmentationView extends Composite {
                Foreground,
                Background,
                OperatingMode,
+               FormSegment,
                ZoomIn,
                ZoomOut,
                ZoomOriginal,
@@ -174,6 +175,7 @@ public class SegmentationView extends Composite {
                m.add(getAction(Tool.Foreground));
                m.add(getAction(Tool.Background));
                m.add(getAction(Tool.OperatingMode));
+               m.add(getAction(Tool.FormSegment));
                m.add(new Separator());
                m.add(getAction(Tool.ZoomIn));
                m.add(getAction(Tool.ZoomOut));
@@ -830,6 +832,7 @@ public class SegmentationView extends Composite {
                        Tool.Foreground.action.setEnabled(!labelMode && canZoomIn());
                        Tool.Background.action.setEnabled(!labelMode && canZoomIn());
                        Tool.OperatingMode.action.setEnabled(canZoomIn());
+                       Tool.FormSegment.action.setEnabled(CanLabel());
                                                
                        // Always enabled if view enabled
                        Tool.SetBrushSize.action.setEnabled(true);