Changeset 3250

Show
Ignore:
Timestamp:
07/27/10 14:40:55 (6 weeks ago)
Author:
martijn
Message:

1. change the title of the side-bar tab from "Items" to "Objects"
2. update the related variable names
3. new icon for new line drop-down

Location:
trunk
Files:
1 added
2 modified
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/org/pathvisio/gui/swing/MainPanel.java

    r3249 r3250  
    1616// 
    1717package org.pathvisio.gui.swing; 
     18 
     19import com.mammothsoftware.frwk.ddb.DropDownButton; 
    1820 
    1921import java.awt.BorderLayout; 
     
    6668import org.pathvisio.gui.swing.dnd.PathwayImportHandler; 
    6769import org.pathvisio.gui.swing.propertypanel.PathwayTableModel; 
    68 import org.pathvisio.gui.swing.ImageButton; 
    6970import org.pathvisio.model.PathwayElement; 
    7071import org.pathvisio.util.Resources; 
     
    7778import org.pathvisio.view.VPathwayListener; 
    7879 
    79 import com.mammothsoftware.frwk.ddb.DropDownButton; 
     80 
     81 
     82 
    8083 
    8184/** 
     
    101104        protected DropDownButton itemsDropDown; 
    102105         
    103         private ItemsPane itemsPane; 
     106        private ObjectsPane objectsPane; 
    104107 
    105108        private JTable propertyTable; 
     
    199202                pathwayScrollPane.getViewport().setBackground(Color.LIGHT_GRAY); 
    200203                 
    201                 itemsPane = new ItemsPane(swingEngine); 
     204                objectsPane = new ObjectsPane(swingEngine); 
    202205                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); 
    209212                 
    210213                propertyTable = new JTable(model) { 
     
    251254 
    252255                sidebarTabbedPane = new JTabbedPane(); 
    253                 sidebarTabbedPane.addTab("Items", itemsPane); 
     256                sidebarTabbedPane.addTab("Objects", objectsPane); 
    254257                sidebarTabbedPane.addTab( "Properties", propertiesScrollPane ); 
    255258                sidebarTabbedPane.addTab( "Backpage", new JScrollPane(backpagePane) ); 
     
    515518                backpagePane.dispose(); 
    516519        } 
     520 
     521        /** 
     522         * hook of the objects tab 
     523         */ 
     524        public ObjectsPane getObjectsPane() 
     525        { 
     526                return objectsPane; 
     527        } 
    517528         
    518529        /** 
  • trunk/src/gui/org/pathvisio/gui/swing/ObjectsPane.java

    r3249 r3250  
    3434 
    3535/** 
    36  * A side panel which displays all items. 
     36 * A side panel which displays all objects. 
    3737 */ 
    38 public class ItemsPane extends JPanel 
     38public class ObjectsPane extends JPanel 
    3939{ 
    4040        private Engine engine; 
     
    4242        private JPanel currentPane; 
    4343 
    44         public ItemsPane(SwingEngine swingEngine) 
     44        public ObjectsPane(SwingEngine swingEngine) 
    4545        { 
    4646                this.engine = swingEngine.getEngine(); 
  • trunk/src/swing/org/pathvisio/gui/swing/MainPanelStandalone.java

    r3248 r3250  
    263263                 
    264264                // define the drop-down menu for interactions 
    265                 icon = "newlinemenu.gif"; 
     265                icon = "newinteractionmenu.gif"; 
    266266                tooltip = "Select a interaction to draw"; 
    267267                DropDownButton lineButton = new DropDownButton( 
    268268                                new ImageIcon(Resources.getResourceURL(icon))); 
    269269                lineButton.setToolTipText(tooltip);              
    270                 itemsDropDown = lineButton; 
     270                //itemsDropDown = lineButton; 
    271271                 
    272272                numItemsPerRow = 6;