From: lingutln Date: Tue, 31 Jan 2012 21:56:32 +0000 (+0000) Subject: Right panel modifications. Done by Nikhil. X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=994cfdf91c468c6d2e274d170e803862440c1512;p=old-jaiswallab-svn%2F.git Right panel modifications. Done by Nikhil. svn path=/; revision=289 --- diff --git a/Annotation/resources/config/application.properties b/Annotation/resources/config/application.properties index 31a723f..3b458e8 100644 --- a/Annotation/resources/config/application.properties +++ b/Annotation/resources/config/application.properties @@ -28,4 +28,7 @@ ExperimentPanel.button.text.finish=Finish # Web Service Configuration POWebService.TermSearch.URL=http://palea.cgrb.oregonstate.edu/services/PO_web_service.php?request_type=term_search&search_value=&inc_synonyms&branch_filter=plant_anatomy&max=20 -POWebService.TermDetail.URL=http://palea.cgrb.oregonstate.edu/services/PO_web_service.php?request_type=term_detail&accession_id= \ No newline at end of file +POWebService.TermDetail.URL=http://palea.cgrb.oregonstate.edu/services/PO_web_service.php?request_type=term_detail&accession_id= + +#Curators names +CuratorNamesList=Nikhil,Justin,Pankaj,Lol Cooper,Rajani \ No newline at end of file diff --git a/Annotation/resources/config/view.properties b/Annotation/resources/config/view.properties index 38e43a0..be5f897 100644 --- a/Annotation/resources/config/view.properties +++ b/Annotation/resources/config/view.properties @@ -52,4 +52,7 @@ SegmentationView.Action.SegmenterOptions.image=file:resources/icons/preferences. SegmentationView.Action.SetLabel.text=Annotate : SegmentationView.Action.SetLabel.tooltip=Annotate the segmented piece. SegmentationView.Action.SetLabel.image= +SegmentationView.Action.SetCurator.text=Curator Name : +SegmentationView.Action.SetCurator.tooltip=Select the name of the curator. +SegmentationView.Action.SetCurator.image= diff --git a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java index 209f538..c77c58e 100644 --- a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java +++ b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java @@ -1,6 +1,7 @@ package ie.dcu.apps.ist.views; +import ie.dcu.apps.ist.AppWindow; import ie.dcu.apps.ist.PainterRegistry; import ie.dcu.apps.ist.event.*; import ie.dcu.apps.ist.widgets.*; @@ -41,18 +42,19 @@ public class SegmentationView extends Composite { // Houses various painters private final PainterRegistry painters; - // View handling annotations (image pane) private final AnnotatedImageControl view; // tool bars private final ToolBar mainToolbar, viewSelectionToolbar, termLookupBar; + private ToolBar termDetailToolbar; + // Composite for Term details private Composite termDetailComposite; // term detail table - private final Table termDetailTable; + private Table termDetailTable; // Control to change brush size private final BrushControl brushControl; @@ -74,7 +76,7 @@ public class SegmentationView extends Composite { // Combo box housing the selectable views private Combo combo; - public static Combo comboLabel; + public static Combo comboLabel,curatorCombo; private static Button assign; @@ -112,6 +114,7 @@ public class SegmentationView extends Composite { SetPainter, SetLabel, AssignButton, + SetCurator, SegmenterOptions; private ToolAction action; @@ -131,12 +134,11 @@ public class SegmentationView extends Composite { this.props = props; painters = new PainterRegistry(); - mainToolbar = new ToolBar(this, SWT.RIGHT | SWT.FLAT); viewSelectionToolbar = new ToolBar(this, SWT.RIGHT | SWT.FLAT); termLookupBar = new ToolBar(this, SWT.RIGHT | SWT.FLAT); view = new AnnotatedImageControl(this, SWT.BORDER); - termDetailTable = new Table(this, SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION); + termDetailComposite = new Composite(this, SWT.BORDER | SWT.RIGHT | SWT.FLAT); brushControl = new BrushControl(getShell(), SWT.BORDER); eventHandler = new EventHandler(); @@ -157,6 +159,7 @@ public class SegmentationView extends Composite { createToolViewSelectionToolbar(); createToolTermLookupBar(); createTermDetailTable(); + createTermDetailFields(); // lay out the controls layoutControls(); @@ -298,16 +301,17 @@ public class SegmentationView extends Composite { * Set initial properties of the Term Detail right pane */ private void createTermDetailTable() { + termDetailTable = new Table(termDetailComposite, SWT.BORDER | SWT.FULL_SELECTION); termDetailTable.setLinesVisible (true); termDetailTable.setHeaderVisible (true); GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); - data.heightHint = 200; + //data.heightHint = 200; termDetailTable.setLayoutData(data); String[] titles = {"Label","Data"}; for (int i=0; i