Changeset 5640
- Timestamp:
- 10/02/08 11:19:16 (7 weeks ago)
- Location:
- branches/Beta3.1/SRC/org/openmicroscopy/shoola
- Files:
-
- 1 added
- 16 modified
-
agents/dataBrowser/view/DataBrowserToolBar.java (modified) (3 diffs)
-
agents/events/iviewer/ViewImage.java (modified) (3 diffs)
-
agents/imviewer/actions/ProjectionAction.java (modified) (1 diff)
-
agents/imviewer/util/proj/ProjectionDialog.java (modified) (6 diffs)
-
agents/imviewer/util/proj/ProjectionDialogControl.java (modified) (4 diffs)
-
agents/imviewer/util/proj/ProjectionSavingDialog.java (modified) (8 diffs)
-
agents/imviewer/view/ImViewerControl.java (modified) (1 diff)
-
agents/metadata/IconManager.java (modified) (1 diff)
-
agents/metadata/browser/Browser.java (modified) (1 diff)
-
agents/metadata/editor/ToolBar.java (modified) (1 diff)
-
agents/metadata/editor/ViewedByUI.java (modified) (1 diff)
-
agents/metadata/graphx/nuvola_folder_darkblue_open16.png (added)
-
agents/metadata/view/MetadataViewerComponent.java (modified) (3 diffs)
-
agents/treeviewer/view/StatusBar.java (modified) (2 diffs)
-
env/data/OMEROGateway.java (modified) (2 diffs)
-
util/ui/search/SearchPanel.java (modified) (1 diff)
-
util/ui/search/SearchUtil.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/DataBrowserToolBar.java
r5470 r5640 323 323 thumbView = new JToggleButton( 324 324 icons.getIcon(IconManager.THUMBNAIL_VIEW)); 325 thumbView.setToolTipText(" Thumbnails View.");325 thumbView.setToolTipText("View as Thumbnails."); 326 326 thumbView.addActionListener(this); 327 327 thumbView.setActionCommand(""+DataBrowserUI.THUMB_VIEW); … … 330 330 columnsView = new JToggleButton( 331 331 icons.getIcon(IconManager.COLUMN_VIEW)); 332 columnsView.setToolTipText(" Table View.");332 columnsView.setToolTipText("View as Table."); 333 333 columnsView.addActionListener(this); 334 334 columnsView.setActionCommand(""+DataBrowserUI.COLUMNS_VIEW); … … 337 337 slideShowView = new JButton( 338 338 icons.getIcon(IconManager.SLIDE_SHOW_VIEW)); 339 slideShowView.setToolTipText("S lideshow");339 slideShowView.setToolTipText("Show slideshow"); 340 340 UIUtilities.unifiedButtonLookAndFeel(slideShowView); 341 341 slideShowView.addMouseListener(new MouseAdapter() { -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/events/iviewer/ViewImage.java
r5509 r5640 36 36 import org.openmicroscopy.shoola.env.rnd.RndProxyDef; 37 37 38 import pojos.DataObject; 38 39 import pojos.ImageData; 39 40 … … 69 70 private long selectedUserID; 70 71 72 /** The parent object. */ 73 private DataObject parentContext; 74 71 75 /** 72 76 * Creates a new instance. … … 83 87 selectedUserID = -1; 84 88 } 89 90 /** 91 * Sets the parent of the image. 92 * 93 * @param parentContext The parent to set. 94 */ 95 public void setParentContext(DataObject parentContext) 96 { 97 this.parentContext = parentContext; 98 } 99 100 /** 101 * Returns the parent. 102 * 103 * @return See above. 104 */ 105 public DataObject getParentObject() { return parentContext; } 85 106 86 107 /** -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/actions/ProjectionAction.java
r5528 r5640 58 58 59 59 /** The description of the action. */ 60 private static final String DESCRIPTION = " Projection.";60 private static final String DESCRIPTION = "Open Projection Tool."; 61 61 62 62 /** -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionDialog.java
r5619 r5640 30 30 import java.awt.Cursor; 31 31 import java.awt.Dimension; 32 import java.awt.event.WindowAdapter; 33 import java.awt.event.WindowEvent; 32 34 import java.awt.image.BufferedImage; 33 35 import java.util.ArrayList; … … 92 94 /** Bound property indicating to load the datasets containing the image. */ 93 95 public static final String LOAD_DATASETS_PROPERTY = "loadDatasets"; 96 97 /** Bound property indicating to close the window. */ 98 public static final String CLOSE_DIALOG_PROPERTY = "closeDialog"; 94 99 95 100 /** Dimension of the box between the channel buttons. */ … … 228 233 types = new JComboBox(names); 229 234 getRootPane().setDefaultButton(previewButton); 235 236 addWindowListener(new WindowAdapter() { 237 public void windowClosing(WindowEvent e) { 238 super.windowClosing(e); 239 firePropertyChange(CLOSE_DIALOG_PROPERTY, Boolean.FALSE, 240 Boolean.TRUE); 241 } 242 }); 230 243 } 231 244 … … 288 301 {TableLayout.PREFERRED, TableLayout.FILL}}; 289 302 body.setLayout(new TableLayout(tl)); 290 TextualTwoKnobsSlider pp = new TextualTwoKnobsSlider();291 pp.layoutComponents();292 303 body.add(buildControlComponent(), "0, 0, 1, 0"); 293 body.add(pp, "0, 0, 1, 0");294 304 body.add(buildToolBar(), "0, 1"); 295 305 body.add(uiDelegate, "1, 1"); … … 432 442 statusLabel.setText("Projecting..."); 433 443 firePropertyChange(PROJECTION_PREVIEW_PROPERTY, null, ref); 434 //setModal(true);435 444 } 436 445 … … 522 531 { 523 532 enableButtons(false); 533 setModal(false); 524 534 ProjectionSavingDialog d = new ProjectionSavingDialog(this, containers); 525 535 UIUtilities.centerAndShow(this, d); -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionDialogControl.java
r5619 r5640 31 31 import java.beans.PropertyChangeEvent; 32 32 import java.beans.PropertyChangeListener; 33 import java.util.Collection;34 33 import java.util.Iterator; 35 34 import java.util.Map; … … 39 38 //Application-internal dependencies 40 39 import org.openmicroscopy.shoola.agents.imviewer.util.ChannelButton; 41 import org.openmicroscopy.shoola.util.ui.UIUtilities;42 40 43 41 /** … … 78 76 this.model = model; 79 77 } 80 81 /**82 * Sets the datasets containing the image to project.83 *84 * @param datasets The datasets containing the image.85 */86 public void setContainers(Collection datasets)87 {88 ProjectionSavingDialog d = new ProjectionSavingDialog(model, datasets);89 UIUtilities.centerAndShow(d);90 }91 78 92 79 /** … … 103 90 case PROJECT: 104 91 model.loadDatasets(); 105 break;106 92 } 107 93 } -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionSavingDialog.java
r5619 r5640 43 43 import javax.swing.Box; 44 44 import javax.swing.BoxLayout; 45 import javax.swing.ButtonGroup;46 45 import javax.swing.JButton; 47 46 import javax.swing.JCheckBox; … … 51 50 import javax.swing.JLabel; 52 51 import javax.swing.JPanel; 53 import javax.swing.JRadioButton;54 52 import javax.swing.JScrollPane; 55 53 import javax.swing.JSeparator; … … 109 107 /** The text field hosting the name of the file. */ 110 108 private JTextField nameField; 111 112 /** Button to project the active channels. */113 private JRadioButton activeChannels;114 115 /** Button to projec the whole image. */116 private JRadioButton allChannels;117 109 118 110 /** Closes the window. */ … … 229 221 selectionPane = new JPanel(); 230 222 selectionPane.setLayout(new BoxLayout(selectionPane, BoxLayout.Y_AXIS)); 231 232 activeChannels = new JRadioButton("Active channels"); 233 allChannels = new JRadioButton("All channels"); 234 allChannels.setSelected(true); 235 ButtonGroup group = new ButtonGroup(); 236 group.add(allChannels); 237 group.add(activeChannels); 238 239 closeButton = new JButton("Close"); 223 closeButton = new JButton("Cancel"); 240 224 closeButton.setToolTipText(UIUtilities.formatToolTipText( 241 225 "Close the window.")); … … 316 300 * @return See above. 317 301 */ 318 private JPanel buildChannelsPanel()319 {320 JPanel p = new JPanel();321 p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));322 p.add(allChannels);323 p.add(activeChannels);324 return UIUtilities.buildComponentPanel(p);325 }326 327 /**328 * Builds and lays out the channels options.329 *330 * @return See above.331 */332 302 private JPanel buildTimeRangePanel() 333 303 { … … 363 333 double[][] tl = {{TableLayout.PREFERRED, TableLayout.FILL}, //columns 364 334 {TableLayout.PREFERRED, TableLayout.PREFERRED, 5, 365 TableLayout.PREFERRED, height, 5,335 TableLayout.PREFERRED, TableLayout.PREFERRED, height, 5, 366 336 TableLayout.PREFERRED, TableLayout.FILL} }; //rows 367 337 content.setLayout(new TableLayout(tl)); … … 372 342 content.add(new JLabel(), "0, 2, 1, 2"); 373 343 content.add(UIUtilities.setTextFont("Save in "), "0, 3, l, c"); 374 content.add(new JScrollPane(selectionPane), "1, 3, 1, 4"); 344 content.add(UIUtilities.setTextFont("datasets "), "0, 4, l, c"); 345 content.add(new JScrollPane(selectionPane), "1, 3, 1, 5"); 375 346 if (selection != null) { 376 347 Iterator i = selection.keySet().iterator(); … … 378 349 selectionPane.add((JComponent) i.next()); 379 350 } 380 content.add(new JLabel(), "0, 5, 1, 5");381 content.add(UIUtilities.setTextFont("Project "), "0, 6, l, c");382 content.add(buildParametersPanel(), "1, 6, 1, 7");351 content.add(new JLabel(), "0, 6, 1, 6"); 352 content.add(UIUtilities.setTextFont("Project "), "0, 7, l, c"); 353 content.add(buildParametersPanel(), "1, 7, 1, 8"); 383 354 return content; 384 355 } -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerControl.java
r5619 r5640 829 829 } else if (ProjectionDialog.LOAD_DATASETS_PROPERTY.equals(pName)) { 830 830 model.loadContainers(); 831 } else if (ProjectionDialog.CLOSE_DIALOG_PROPERTY.equals(pName)) { 832 view.requestFocus(); 831 833 } 832 834 } -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/IconManager.java
r5564 r5640 218 218 relPaths[URL] = "nuvola_browser16.png"; 219 219 //relPaths[PROJECT] = "nuvola_document16.png"; 220 relPaths[PROJECT] = "nuvola_folder_blue_open16.png"; 221 relPaths[PROJECT] = "nuvola_folder_blue_open16.png"; 220 relPaths[PROJECT] = "nuvola_folder_darkblue_open16.png"; 222 221 relPaths[DATASET] = "nuvola_folder_image16.png"; 223 222 relPaths[IMAGE] = "nuvola_image16.png"; -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/browser/Browser.java
r5621 r5640 54 54 55 55 /** The title related to this component. */ 56 public static final String TITLE = " Related to";56 public static final String TITLE = "Contained in"; 57 57 58 58 /** Bound property indicating that nodes are selected. */ -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/editor/ToolBar.java
r5450 r5640 131 131 saveButton.setEnabled(false); 132 132 downloadButton = new JButton(icons.getIcon(IconManager.DOWNLOAD)); 133 downloadButton.setToolTipText("Download the archived files.");133 downloadButton.setToolTipText("Download the Archived File(s)."); 134 134 downloadButton.addActionListener(this); 135 135 downloadButton.setActionCommand(""+DOWNLOAD); 136 136 downloadButton.setEnabled(false); 137 137 infoButton = new JButton(icons.getIcon(IconManager.INFO)); 138 infoButton.setToolTipText("View image's info.");138 infoButton.setToolTipText("View Image's info."); 139 139 infoButton.addActionListener(this); 140 140 infoButton.setActionCommand(""+INFO); -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/editor/ViewedByUI.java
r5513 r5640 120 120 IconManager icons = IconManager.getInstance(); 121 121 listView = new JToggleButton(icons.getIcon(IconManager.LIST_VIEW)); 122 listView.setToolTipText(" List View");122 listView.setToolTipText("View as List."); 123 123 listView.setActionCommand(""+LIST_VIEW); 124 124 listView.addActionListener(this); 125 125 gridView = new JToggleButton(icons.getIcon(IconManager.GRID_VIEW)); 126 gridView.setToolTipText(" Grid View");126 gridView.setToolTipText("View as Grid."); 127 127 gridView.setActionCommand(""+GRID_VIEW); 128 128 gridView.addActionListener(this); -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/view/MetadataViewerComponent.java
r5620 r5640 316 316 dialog = new MessageBox(view, "Save Annotations", 317 317 "Do you want to attach the annotations to: "); 318 dialog.setNoText("Cancel"); 319 dialog.setYesText("OK"); 318 320 JPanel p = new JPanel(); 319 321 p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); … … 345 347 dialog = new MessageBox(view, "Save Annotations", 346 348 "Do you want to attach the annotations to: "); 349 dialog.setNoText("Cancel"); 350 dialog.setYesText("OK"); 347 351 JPanel p = new JPanel(); 348 352 p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); … … 390 394 dialog = new MessageBox(view, "Save Annotations", 391 395 "Do you want to attach the annotations to: "); 396 dialog.setNoText("Cancel"); 397 dialog.setYesText("OK"); 392 398 JPanel p = new JPanel(); 393 399 p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/StatusBar.java
r4956 r5640 99 99 { 100 100 icons = IconManager.getInstance(); 101 progressLabel = new JLabel(icons.getIcon(IconManager. PROGRESS));101 progressLabel = new JLabel(icons.getIcon(IconManager.TRANSPARENT)); 102 102 progressBar = new JProgressBar(); 103 103 progressBar.setIndeterminate(true); … … 186 186 progressBar.setVisible(!hide); 187 187 progressLabel.setEnabled(!hide); 188 if (hide) progressLabel.setIcon(icons.getIcon(IconManager.TRANSPARENT)); 189 else progressLabel.setIcon(icons.getIcon(IconManager.PROGRESS)); 188 190 } 189 191 -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java
r5637 r5640 642 642 { 643 643 if (terms == null || terms.size() == 0) return null; 644 String value; 645 int n; 646 char[] arr; 647 String v; 648 String[] formattedTerms = new String[terms.size()]; 649 Iterator<String> j = terms.iterator(); 650 int k = 0; 651 while (j.hasNext()) { 652 value = j.next(); 653 if (startWithWildCard(value)) 654 service.setAllowLeadingWildcard(true); 655 //format string 656 n = value.length(); 657 arr = new char[n]; 658 v = ""; 659 value.getChars(0, n, arr, 0); 660 for (int i = 0; i < arr.length; i++) { 661 if (SUPPORTED_SPECIAL_CHAR.contains(arr[i])) 662 v += "\\"+arr[i]; 663 else v += arr[i]; 664 } 665 formattedTerms[k] = v.toLowerCase() ; 666 } 667 668 return formattedTerms; 644 String[] values = new String[terms.size()]; 645 Iterator<String> i = terms.iterator(); 646 int index = 0; 647 while (i.hasNext()) { 648 values[index] = i.next(); 649 index++; 650 } 651 return prepareTextSearch(values, service); 669 652 } 670 653 … … 2806 2789 fNone = formatText(none, "url"); 2807 2790 } 2808 2809 2791 owner = owners.iterator(); 2810 2792 if (fSome != null) { -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/util/ui/search/SearchPanel.java
r5609 r5640 1041 1041 String text = allTermsArea.getText(); 1042 1042 List l = SearchUtil.splitTerms(text); 1043 System.err.println(l); 1043 1044 if (l.size() > 0) 1044 1045 return (String[]) l.toArray(new String[] {}); -
branches/Beta3.1/SRC/org/openmicroscopy/shoola/util/ui/search/SearchUtil.java
r5486 r5640 111 111 value = value.trim(); 112 112 if (value.length() != 0 && !value.equals(ALL) && 113 !value.equals(COMMA_SEPARATOR)) l.add(value); 113 !value.equals(COMMA_SEPARATOR)) { 114 if (value.contains(",")) value = value.replace(",", ""); 115 l.add(value); 116 } 114 117 } 115 118 }
