Changeset 3250
- Timestamp:
- 07/27/10 14:40:55 (6 weeks ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 modified
- 1 moved
-
resources/newinteractionmenu.gif (added)
-
src/gui/org/pathvisio/gui/swing/MainPanel.java (modified) (7 diffs)
-
src/gui/org/pathvisio/gui/swing/ObjectsPane.java (moved) (moved from trunk/src/swing/org/pathvisio/gui/swing/ItemsPane.java) (2 diffs)
-
src/swing/org/pathvisio/gui/swing/MainPanelStandalone.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/org/pathvisio/gui/swing/MainPanel.java
r3249 r3250 16 16 // 17 17 package org.pathvisio.gui.swing; 18 19 import com.mammothsoftware.frwk.ddb.DropDownButton; 18 20 19 21 import java.awt.BorderLayout; … … 66 68 import org.pathvisio.gui.swing.dnd.PathwayImportHandler; 67 69 import org.pathvisio.gui.swing.propertypanel.PathwayTableModel; 68 import org.pathvisio.gui.swing.ImageButton;69 70 import org.pathvisio.model.PathwayElement; 70 71 import org.pathvisio.util.Resources; … … 77 78 import org.pathvisio.view.VPathwayListener; 78 79 79 import com.mammothsoftware.frwk.ddb.DropDownButton; 80 81 82 80 83 81 84 /** … … 101 104 protected DropDownButton itemsDropDown; 102 105 103 private ItemsPane itemsPane;106 private ObjectsPane objectsPane; 104 107 105 108 private JTable propertyTable; … … 199 202 pathwayScrollPane.getViewport().setBackground(Color.LIGHT_GRAY); 200 203 201 itemsPane = new ItemsPane(swingEngine);204 objectsPane = new ObjectsPane(swingEngine); 202 205 int numItemsPerRow = 10; 203 itemsPane.addButtons(actions.newShapeActions, "Basic Shapes", numItemsPerRow);204 itemsPane.addButtons(actions.newCellularComponentActions, "Cellular components", numItemsPerRow);205 itemsPane.addButtons(actions.newMIMShapeActions, "Molecular interaction map", numItemsPerRow);206 itemsPane.addButtons(actions.newInteractionActions, "Basic interactions", numItemsPerRow);207 itemsPane.addButtons(actions.newRLInteractionActions, "Receptor/ligand", numItemsPerRow);208 itemsPane.addButtons(actions.newMIMInteractionActions, "Molecular interaction map", numItemsPerRow);206 objectsPane.addButtons(actions.newShapeActions, "Basic Shapes", numItemsPerRow); 207 objectsPane.addButtons(actions.newCellularComponentActions, "Cellular components", numItemsPerRow); 208 objectsPane.addButtons(actions.newMIMShapeActions, "Molecular interaction map", numItemsPerRow); 209 objectsPane.addButtons(actions.newInteractionActions, "Basic interactions", numItemsPerRow); 210 objectsPane.addButtons(actions.newRLInteractionActions, "Receptor/ligand", numItemsPerRow); 211 objectsPane.addButtons(actions.newMIMInteractionActions, "Molecular interaction map", numItemsPerRow); 209 212 210 213 propertyTable = new JTable(model) { … … 251 254 252 255 sidebarTabbedPane = new JTabbedPane(); 253 sidebarTabbedPane.addTab(" Items", itemsPane);256 sidebarTabbedPane.addTab("Objects", objectsPane); 254 257 sidebarTabbedPane.addTab( "Properties", propertiesScrollPane ); 255 258 sidebarTabbedPane.addTab( "Backpage", new JScrollPane(backpagePane) ); … … 515 518 backpagePane.dispose(); 516 519 } 520 521 /** 522 * hook of the objects tab 523 */ 524 public ObjectsPane getObjectsPane() 525 { 526 return objectsPane; 527 } 517 528 518 529 /** -
trunk/src/gui/org/pathvisio/gui/swing/ObjectsPane.java
r3249 r3250 34 34 35 35 /** 36 * A side panel which displays all items.36 * A side panel which displays all objects. 37 37 */ 38 public class ItemsPane extends JPanel38 public class ObjectsPane extends JPanel 39 39 { 40 40 private Engine engine; … … 42 42 private JPanel currentPane; 43 43 44 public ItemsPane(SwingEngine swingEngine)44 public ObjectsPane(SwingEngine swingEngine) 45 45 { 46 46 this.engine = swingEngine.getEngine(); -
trunk/src/swing/org/pathvisio/gui/swing/MainPanelStandalone.java
r3248 r3250 263 263 264 264 // define the drop-down menu for interactions 265 icon = "new linemenu.gif";265 icon = "newinteractionmenu.gif"; 266 266 tooltip = "Select a interaction to draw"; 267 267 DropDownButton lineButton = new DropDownButton( 268 268 new ImageIcon(Resources.getResourceURL(icon))); 269 269 lineButton.setToolTipText(tooltip); 270 itemsDropDown = lineButton;270 //itemsDropDown = lineButton; 271 271 272 272 numItemsPerRow = 6;
